apteva 0.4.17 → 0.4.19
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/dist/ActivityPage.9a1qg4bp.js +3 -0
- package/dist/ApiDocsPage.rfpf7ws1.js +4 -0
- package/dist/App.1nmg2h01.js +4 -0
- package/dist/App.5qw2dtxs.js +4 -0
- package/dist/App.6nc5acvk.js +4 -0
- package/dist/App.7vzbaz56.js +4 -0
- package/dist/App.8rfz30p1.js +4 -0
- package/dist/App.amwp54wf.js +4 -0
- package/dist/App.e4202qb4.js +267 -0
- package/dist/App.errxz2q4.js +4 -0
- package/dist/App.f8qsyhpr.js +4 -0
- package/dist/App.g8vq68n0.js +20 -0
- package/dist/App.kfyrnznw.js +13 -0
- package/dist/{App.mq6jqare.js → App.p02f4ret.js} +1 -1
- package/dist/App.p93mmyqw.js +4 -0
- package/dist/App.qmg33p02.js +4 -0
- package/dist/App.sdsc0258.js +4 -0
- package/dist/ConnectionsPage.7zqba1r0.js +3 -0
- package/dist/McpPage.kf2g327t.js +3 -0
- package/dist/SettingsPage.472c15ep.js +3 -0
- package/dist/SkillsPage.xdxnh68a.js +3 -0
- package/dist/TasksPage.7g0b8xwc.js +3 -0
- package/dist/TelemetryPage.pr7rbz4r.js +3 -0
- package/dist/TestsPage.zhc6rqjm.js +3 -0
- package/dist/apteva-kit.css +1 -1
- package/dist/index.html +1 -1
- package/dist/styles.css +1 -1
- package/package.json +9 -4
- package/src/auth/middleware.ts +2 -0
- package/src/channels/index.ts +40 -0
- package/src/channels/telegram.ts +306 -0
- package/src/db.ts +342 -11
- package/src/integrations/agentdojo.ts +1 -1
- package/src/mcp-handler.ts +31 -24
- package/src/mcp-platform.ts +41 -1
- package/src/providers.ts +22 -9
- package/src/routes/api/agent-utils.ts +38 -2
- package/src/routes/api/agents.ts +65 -2
- package/src/routes/api/channels.ts +182 -0
- package/src/routes/api/integrations.ts +13 -5
- package/src/routes/api/mcp.ts +27 -9
- package/src/routes/api/projects.ts +19 -2
- package/src/routes/api/system.ts +26 -12
- package/src/routes/api/telemetry.ts +30 -0
- package/src/routes/api/triggers.ts +478 -0
- package/src/routes/api/webhooks.ts +171 -0
- package/src/routes/api.ts +7 -1
- package/src/routes/static.ts +12 -3
- package/src/server.ts +43 -6
- package/src/triggers/agentdojo.ts +253 -0
- package/src/triggers/composio.ts +264 -0
- package/src/triggers/index.ts +71 -0
- package/src/tui/AgentList.tsx +145 -0
- package/src/tui/App.tsx +102 -0
- package/src/tui/Login.tsx +104 -0
- package/src/tui/api.ts +72 -0
- package/src/tui/index.tsx +7 -0
- package/src/web/App.tsx +18 -11
- package/src/web/components/agents/AgentCard.tsx +14 -7
- package/src/web/components/agents/AgentPanel.tsx +94 -137
- package/src/web/components/common/Icons.tsx +16 -0
- package/src/web/components/common/index.ts +1 -0
- package/src/web/components/connections/ConnectionsPage.tsx +54 -0
- package/src/web/components/connections/IntegrationsTab.tsx +144 -0
- package/src/web/components/connections/OverviewTab.tsx +137 -0
- package/src/web/components/connections/TriggersTab.tsx +1169 -0
- package/src/web/components/index.ts +1 -0
- package/src/web/components/layout/Header.tsx +196 -4
- package/src/web/components/layout/Sidebar.tsx +7 -1
- package/src/web/components/mcp/IntegrationsPanel.tsx +19 -3
- package/src/web/components/settings/SettingsPage.tsx +364 -2
- package/src/web/components/tasks/TasksPage.tsx +2 -2
- package/src/web/components/tests/TestsPage.tsx +1 -2
- package/src/web/context/TelemetryContext.tsx +14 -1
- package/src/web/context/index.ts +1 -1
- package/src/web/hooks/useAgents.ts +15 -11
- package/src/web/types.ts +1 -1
- package/dist/App.fq4xbpcz.js +0 -228
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import{a as ez}from"./App.8rfz30p1.js";import"./App.5qw2dtxs.js";import"./App.1nmg2h01.js";import{f as D2,g as rH}from"./App.f8qsyhpr.js";import"./App.amwp54wf.js";import"./App.6nc5acvk.js";import{A as M2,B as v2,C as T2,D as I2,F as V2,G as y2,H as C2,I as w2,j as xJ,k as sz,l as dH,m as aH,n as iH,o as _X,p as I7,q as BX,r as UX,s as Z8,t as fJ,u as OX,v as P2,w as A2,x as LX,y as WX,z as b2}from"./App.sdsc0258.js";import"./App.kfyrnznw.js";import"./App.qmg33p02.js";import{L as oH,M as cJ}from"./App.p93mmyqw.js";import"./App.errxz2q4.js";import{P as Qz}from"./App.7vzbaz56.js";import{$ as F2,Q as n,R as YX,S as Q8,T as e0,U as k1,V as m2,W as qY,X as k2,Y as gJ,Z as kJ,_ as h2,aa as G4,ba as p2,ca as N2,da as u4,ea as j2}from"./App.g8vq68n0.js";var IL=YX((bF)=>{(function(){function G(){if(a=!1,g){var t=bF.unstable_now();c=t;var G0=!0;try{z:{e=!1,s&&(s=!1,l(I0),I0=-1),d=!0;var H0=j;try{$:{N(t);for(p=_(b);p!==null&&!(p.expirationTime>t&&U());){var V=p.callback;if(typeof V==="function"){p.callback=null,j=p.priorityLevel;var i=V(p.expirationTime<=t);if(t=bF.unstable_now(),typeof i==="function"){p.callback=i,N(t),G0=!0;break $}p===_(b)&&O(b),N(t)}else O(b);p=_(b)}if(p!==null)G0=!0;else{var D=_(k);D!==null&&y(W,D.startTime-t),G0=!1}}break z}finally{p=null,j=H0,d=!1}G0=void 0}}finally{G0?u():g=!1}}}function H(t,G0){var H0=t.length;t.push(G0);z:for(;0<H0;){var V=H0-1>>>1,i=t[V];if(0<L(i,G0))t[V]=G0,t[H0]=i,H0=V;else break z}}function _(t){return t.length===0?null:t[0]}function O(t){if(t.length===0)return null;var G0=t[0],H0=t.pop();if(H0!==G0){t[0]=H0;z:for(var V=0,i=t.length,D=i>>>1;V<D;){var z0=2*(V+1)-1,P0=t[z0],D0=z0+1,r0=t[D0];if(0>L(P0,H0))D0<i&&0>L(r0,P0)?(t[V]=r0,t[D0]=H0,V=D0):(t[V]=P0,t[z0]=H0,V=z0);else if(D0<i&&0>L(r0,H0))t[V]=r0,t[D0]=H0,V=D0;else break z}}return G0}function L(t,G0){var H0=t.sortIndex-G0.sortIndex;return H0!==0?H0:t.id-G0.id}function N(t){for(var G0=_(k);G0!==null;){if(G0.callback===null)O(k);else if(G0.startTime<=t)O(k),G0.sortIndex=G0.expirationTime,H(b,G0);else break;G0=_(k)}}function W(t){if(s=!1,N(t),!e)if(_(b)!==null)e=!0,g||(g=!0,u());else{var G0=_(k);G0!==null&&y(W,G0.startTime-t)}}function U(){return a?!0:bF.unstable_now()-c<E?!1:!0}function y(t,G0){I0=_0(function(){t(bF.unstable_now())},G0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),bF.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var C=performance;bF.unstable_now=function(){return C.now()}}else{var F=Date,R=F.now();bF.unstable_now=function(){return F.now()-R}}var b=[],k=[],S=1,p=null,j=3,d=!1,e=!1,s=!1,a=!1,_0=typeof setTimeout==="function"?setTimeout:null,l=typeof clearTimeout==="function"?clearTimeout:null,L0=typeof setImmediate<"u"?setImmediate:null,g=!1,I0=-1,E=5,c=-1;if(typeof L0==="function")var u=function(){L0(G)};else if(typeof MessageChannel<"u"){var J0=new MessageChannel,M0=J0.port2;J0.port1.onmessage=G,u=function(){M0.postMessage(null)}}else u=function(){_0(G,0)};bF.unstable_IdlePriority=5,bF.unstable_ImmediatePriority=1,bF.unstable_LowPriority=4,bF.unstable_NormalPriority=3,bF.unstable_Profiling=null,bF.unstable_UserBlockingPriority=2,bF.unstable_cancelCallback=function(t){t.callback=null},bF.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<t?Math.floor(1000/t):5},bF.unstable_getCurrentPriorityLevel=function(){return j},bF.unstable_next=function(t){switch(j){case 1:case 2:case 3:var G0=3;break;default:G0=j}var H0=j;j=G0;try{return t()}finally{j=H0}},bF.unstable_requestPaint=function(){a=!0},bF.unstable_runWithPriority=function(t,G0){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var H0=j;j=t;try{return G0()}finally{j=H0}},bF.unstable_scheduleCallback=function(t,G0,H0){var V=bF.unstable_now();switch(typeof H0==="object"&&H0!==null?(H0=H0.delay,H0=typeof H0==="number"&&0<H0?V+H0:V):H0=V,t){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5000}return i=H0+i,t={id:S++,callback:G0,priorityLevel:t,startTime:H0,expirationTime:i,sortIndex:-1},H0>V?(t.sortIndex=H0,H(k,t),_(b)===null&&t===_(k)&&(s?(l(I0),I0=-1):s=!0,y(W,H0-V))):(t.sortIndex=i,H(b,t),e||d||(e=!0,g||(g=!0,u()))),t},bF.unstable_shouldYield=U,bF.unstable_wrapCallback=function(t){var G0=j;return function(){var H0=j;j=G0;try{return t.apply(this,arguments)}finally{j=H0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var kL=YX((MF)=>{var IH=n(e0());(function(){function G(){}function H(F){return""+F}function _(F,R,b){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{H(k);var S=!1}catch(p){S=!0}return S&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object"),H(k)),{$$typeof:y,key:k==null?null:""+k,children:F,containerInfo:R,implementation:b}}function O(F,R){if(F==="font")return"";if(typeof R==="string")return R==="use-credentials"?R:""}function L(F){return F===null?"`null`":F===void 0?"`undefined`":F===""?"an empty string":'something with type "'+typeof F+'"'}function N(F){return F===null?"`null`":F===void 0?"`undefined`":F===""?"an empty string":typeof F==="string"?JSON.stringify(F):typeof F==="number"?"`"+F+"`":'something with type "'+typeof F+'"'}function W(){var F=C.H;return F===null&&console.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:
|
|
2
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
3
|
+
2. You might be breaking the Rules of Hooks
|
|
4
|
+
3. You might have more than one copy of React in the same app
|
|
5
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),F}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U={d:{f:G,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:G,C:G,L:G,m:G,X:G,S:G,M:G},p:0,findDOMNode:null},y=Symbol.for("react.portal"),C=IH.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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://reactjs.org/link/react-polyfills"),MF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,MF.createPortal=function(F,R){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!R||R.nodeType!==1&&R.nodeType!==9&&R.nodeType!==11)throw Error("Target container is not a DOM element.");return _(F,R,null,b)},MF.flushSync=function(F){var R=C.T,b=U.p;try{if(C.T=null,U.p=2,F)return F()}finally{C.T=R,U.p=b,U.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},MF.preconnect=function(F,R){typeof F==="string"&&F?R!=null&&typeof R!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",N(R)):R!=null&&typeof R.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",L(R.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",L(F)),typeof F==="string"&&(R?(R=R.crossOrigin,R=typeof R==="string"?R==="use-credentials"?R:"":void 0):R=null,U.d.C(F,R))},MF.prefetchDNS=function(F){if(typeof F!=="string"||!F)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",L(F));else if(1<arguments.length){var R=arguments[1];typeof R==="object"&&R.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",N(R)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",N(R))}typeof F==="string"&&U.d.D(F)},MF.preinit=function(F,R){if(typeof F==="string"&&F?R==null||typeof R!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",N(R)):R.as!=="style"&&R.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',N(R.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",L(F)),typeof F==="string"&&R&&typeof R.as==="string"){var b=R.as,k=O(b,R.crossOrigin),S=typeof R.integrity==="string"?R.integrity:void 0,p=typeof R.fetchPriority==="string"?R.fetchPriority:void 0;b==="style"?U.d.S(F,typeof R.precedence==="string"?R.precedence:void 0,{crossOrigin:k,integrity:S,fetchPriority:p}):b==="script"&&U.d.X(F,{crossOrigin:k,integrity:S,fetchPriority:p,nonce:typeof R.nonce==="string"?R.nonce:void 0})}},MF.preinitModule=function(F,R){var b="";if(typeof F==="string"&&F||(b+=" The `href` argument encountered was "+L(F)+"."),R!==void 0&&typeof R!=="object"?b+=" The `options` argument encountered was "+L(R)+".":R&&("as"in R)&&R.as!=="script"&&(b+=" The `as` option encountered was "+N(R.as)+"."),b)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",b);else switch(b=R&&typeof R.as==="string"?R.as:"script",b){case"script":break;default:b=N(b),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',b,F)}if(typeof F==="string")if(typeof R==="object"&&R!==null){if(R.as==null||R.as==="script")b=O(R.as,R.crossOrigin),U.d.M(F,{crossOrigin:b,integrity:typeof R.integrity==="string"?R.integrity:void 0,nonce:typeof R.nonce==="string"?R.nonce:void 0})}else R==null&&U.d.M(F)},MF.preload=function(F,R){var b="";if(typeof F==="string"&&F||(b+=" The `href` argument encountered was "+L(F)+"."),R==null||typeof R!=="object"?b+=" The `options` argument encountered was "+L(R)+".":typeof R.as==="string"&&R.as||(b+=" The `as` option encountered was "+L(R.as)+"."),b&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',b),typeof F==="string"&&typeof R==="object"&&R!==null&&typeof R.as==="string"){b=R.as;var k=O(b,R.crossOrigin);U.d.L(F,b,{crossOrigin:k,integrity:typeof R.integrity==="string"?R.integrity:void 0,nonce:typeof R.nonce==="string"?R.nonce:void 0,type:typeof R.type==="string"?R.type:void 0,fetchPriority:typeof R.fetchPriority==="string"?R.fetchPriority:void 0,referrerPolicy:typeof R.referrerPolicy==="string"?R.referrerPolicy:void 0,imageSrcSet:typeof R.imageSrcSet==="string"?R.imageSrcSet:void 0,imageSizes:typeof R.imageSizes==="string"?R.imageSizes:void 0,media:typeof R.media==="string"?R.media:void 0})}},MF.preloadModule=function(F,R){var b="";typeof F==="string"&&F||(b+=" The `href` argument encountered was "+L(F)+"."),R!==void 0&&typeof R!=="object"?b+=" The `options` argument encountered was "+L(R)+".":R&&("as"in R)&&typeof R.as!=="string"&&(b+=" The `as` option encountered was "+L(R.as)+"."),b&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',b),typeof F==="string"&&(R?(b=O(R.as,R.crossOrigin),U.d.m(F,{as:typeof R.as==="string"&&R.as!=="script"?R.as:void 0,crossOrigin:b,integrity:typeof R.integrity==="string"?R.integrity:void 0})):U.d.m(F))},MF.requestFormReset=function(F){U.d.r(F)},MF.unstable_batchedUpdates=function(F,R){return F(R)},MF.useFormState=function(F,R,b){return W().useFormState(F,R,b)},MF.useFormStatus=function(){return W().useHostTransitionStatus()},MF.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yL=YX((BM,VL)=>{var wF=n(kL());VL.exports=wF});var CL=YX((PF)=>{var z1=n(IL()),ZX=n(e0()),kH=n(yL());(function(){function G(z,$){for(z=z.memoizedState;z!==null&&0<$;)z=z.next,$--;return z}function H(z,$,X,Y){if(X>=$.length)return Y;var Z=$[X],J=Z4(z)?z.slice():u0({},z);return J[Z]=H(z[Z],$,X+1,Y),J}function _(z,$,X){if($.length!==X.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<X.length-1;Y++)if($[Y]!==X[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return O(z,$,X,0)}}function O(z,$,X,Y){var Z=$[Y],J=Z4(z)?z.slice():u0({},z);return Y+1===$.length?(J[X[Y]]=J[Z],Z4(J)?J.splice(Z,1):delete J[Z]):J[Z]=O(z[Z],$,X,Y+1),J}function L(z,$,X){var Y=$[X],Z=Z4(z)?z.slice():u0({},z);if(X+1===$.length)return Z4(Z)?Z.splice(Y,1):delete Z[Y],Z;return Z[Y]=L(z[Y],$,X+1),Z}function N(){return!1}function W(){return null}function U(){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 y(){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 C(){}function F(){}function R(z){var $=[];return z.forEach(function(X){$.push(X)}),$.sort().join(", ")}function b(z,$,X,Y){return new HW(z,$,X,Y)}function k(z,$){z.context===E8&&(iG(z.current,2,$,z,null,null),O$())}function S(z,$){if(F6!==null){var X=$.staleFamilies;$=$.updatedFamilies,sX(),SK(z.current,$,X),O$()}}function p(z){F6=z}function j(z){return!(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)}function d(z){var $=z,X=z;if(z.alternate)for(;$.return;)$=$.return;else{z=$;do $=z,($.flags&4098)!==0&&(X=$.return),z=$.return;while(z)}return $.tag===3?X:null}function e(z){if(z.tag===13){var $=z.memoizedState;if($===null&&(z=z.alternate,z!==null&&($=z.memoizedState)),$!==null)return $.dehydrated}return null}function s(z){if(z.tag===31){var $=z.memoizedState;if($===null&&(z=z.alternate,z!==null&&($=z.memoizedState)),$!==null)return $.dehydrated}return null}function a(z){if(d(z)!==z)throw Error("Unable to find node on an unmounted component.")}function _0(z){var $=z.alternate;if(!$){if($=d(z),$===null)throw Error("Unable to find node on an unmounted component.");return $!==z?null:z}for(var X=z,Y=$;;){var Z=X.return;if(Z===null)break;var J=Z.alternate;if(J===null){if(Y=Z.return,Y!==null){X=Y;continue}break}if(Z.child===J.child){for(J=Z.child;J;){if(J===X)return a(Z),z;if(J===Y)return a(Z),$;J=J.sibling}throw Error("Unable to find node on an unmounted component.")}if(X.return!==Y.return)X=Z,Y=J;else{for(var Q=!1,q=Z.child;q;){if(q===X){Q=!0,X=Z,Y=J;break}if(q===Y){Q=!0,Y=Z,X=J;break}q=q.sibling}if(!Q){for(q=J.child;q;){if(q===X){Q=!0,X=J,Y=Z;break}if(q===Y){Q=!0,Y=J,X=Z;break}q=q.sibling}if(!Q)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(X.alternate!==Y)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(X.tag!==3)throw Error("Unable to find node on an unmounted component.");return X.stateNode.current===X?z:$}function l(z){var $=z.tag;if($===5||$===26||$===27||$===6)return z;for(z=z.child;z!==null;){if($=l(z),$!==null)return $;z=z.sibling}return null}function L0(z){if(z===null||typeof z!=="object")return null;return z=xU&&z[xU]||z["@@iterator"],typeof z==="function"?z:null}function g(z){if(z==null)return null;if(typeof z==="function")return z.$$typeof===y3?null:z.displayName||z.name||null;if(typeof z==="string")return z;switch(z){case M$:return"Fragment";case eG:return"Profiler";case wZ:return"StrictMode";case $q:return"Suspense";case Xq:return"SuspenseList";case Yq:return"Activity"}if(typeof z==="object")switch(typeof z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),z.$$typeof){case b$:return"Portal";case L7:return z.displayName||"Context";case zq:return(z._context.displayName||"Context")+".Consumer";case q5:var $=z.render;return z=z.displayName,z||(z=$.displayName||$.name||"",z=z!==""?"ForwardRef("+z+")":"ForwardRef"),z;case PZ:return $=z.displayName||null,$!==null?$:g(z.type)||"Memo";case J6:$=z._payload,z=z._init;try{return g(z($))}catch(X){}}return null}function I0(z){return typeof z.tag==="number"?E(z):typeof z.name==="string"?z.name:null}function E(z){var $=z.type;switch(z.tag){case 31:return"Activity";case 24:return"Cache";case 9:return($._context.displayName||"Context")+".Consumer";case 10:return $.displayName||"Context";case 18:return"DehydratedFragment";case 11:return z=$.render,z=z.displayName||z.name||"",$.displayName||(z!==""?"ForwardRef("+z+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return $;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return g($);case 8:return $===wZ?"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 $==="function")return $.displayName||$.name||null;if(typeof $==="string")return $;break;case 29:if($=z._debugInfo,$!=null){for(var X=$.length-1;0<=X;X--)if(typeof $[X].name==="string")return $[X].name}if(z.return!==null)return E(z.return)}return null}function c(z){return{current:z}}function u(z,$){0>p7?console.error("Unexpected pop."):($!==Jq[p7]&&console.error("Unexpected Fiber popped."),z.current=Zq[p7],Zq[p7]=null,Jq[p7]=null,p7--)}function J0(z,$,X){p7++,Zq[p7]=z.current,Jq[p7]=X,z.current=$}function M0(z){return z===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),z}function t(z,$){J0(k8,$,z),J0(H5,z,z),J0(I8,null,z);var X=$.nodeType;switch(X){case 9:case 11:X=X===9?"#document":"#fragment",$=($=$.documentElement)?($=$.namespaceURI)?KU($):s7:s7;break;default:if(X=$.tagName,$=$.namespaceURI)$=KU($),$=_U($,X);else switch(X){case"svg":$=$X;break;case"math":$=MJ;break;default:$=s7}}X=X.toLowerCase(),X=ZK(null,X),X={context:$,ancestorInfo:X},u(I8,z),J0(I8,X,z)}function G0(z){u(I8,z),u(H5,z),u(k8,z)}function H0(){return M0(I8.current)}function V(z){z.memoizedState!==null&&J0(AZ,z,z);var $=M0(I8.current),X=z.type,Y=_U($.context,X);X=ZK($.ancestorInfo,X),Y={context:Y,ancestorInfo:X},$!==Y&&(J0(H5,z,z),J0(I8,Y,z))}function i(z){H5.current===z&&(u(I8,z),u(H5,z)),AZ.current===z&&(u(AZ,z),zY._currentValue=cz)}function D(){}function z0(){if(K5===0){gU=console.log,uU=console.info,lU=console.warn,cU=console.error,dU=console.group,aU=console.groupCollapsed,iU=console.groupEnd;var z={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}K5++}function P0(){if(K5--,K5===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:u0({},z,{value:gU}),info:u0({},z,{value:uU}),warn:u0({},z,{value:lU}),error:u0({},z,{value:cU}),group:u0({},z,{value:dU}),groupCollapsed:u0({},z,{value:aU}),groupEnd:u0({},z,{value:iU})})}0>K5&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function D0(z){var $=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,z=z.stack,Error.prepareStackTrace=$,z.startsWith(`Error: react-stack-top-frame
|
|
6
|
+
`)&&(z=z.slice(29)),$=z.indexOf(`
|
|
7
|
+
`),$!==-1&&(z=z.slice($+1)),$=z.indexOf("react_stack_bottom_frame"),$!==-1&&($=z.lastIndexOf(`
|
|
8
|
+
`,$)),$!==-1)z=z.slice(0,$);else return"";return z}function r0(z){if(Qq===void 0)try{throw Error()}catch(X){var $=X.stack.trim().match(/\n( *(at )?)/);Qq=$&&$[1]||"",oU=-1<X.stack.indexOf(`
|
|
9
|
+
at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
10
|
+
`+Qq+z+oU}function v4(z,$){if(!z||Gq)return"";var X=qq.get(z);if(X!==void 0)return X;Gq=!0,X=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=h.H,h.H=null,z0();try{var Z={DetermineComponentFrameRoot:function(){try{if($){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch($0){var f=$0}Reflect.construct(z,[],P)}else{try{P.call()}catch($0){f=$0}z.call(P.prototype)}}else{try{throw Error()}catch($0){f=$0}(P=z())&&typeof P.catch==="function"&&P.catch(function(){})}}catch($0){if($0&&f&&typeof $0.stack==="string")return[$0.stack,f.stack]}return[null,null]}};Z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var J=Object.getOwnPropertyDescriptor(Z.DetermineComponentFrameRoot,"name");J&&J.configurable&&Object.defineProperty(Z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Q=Z.DetermineComponentFrameRoot(),q=Q[0],K=Q[1];if(q&&K){var B=q.split(`
|
|
11
|
+
`),T=K.split(`
|
|
12
|
+
`);for(Q=J=0;J<B.length&&!B[J].includes("DetermineComponentFrameRoot");)J++;for(;Q<T.length&&!T[Q].includes("DetermineComponentFrameRoot");)Q++;if(J===B.length||Q===T.length)for(J=B.length-1,Q=T.length-1;1<=J&&0<=Q&&B[J]!==T[Q];)Q--;for(;1<=J&&0<=Q;J--,Q--)if(B[J]!==T[Q]){if(J!==1||Q!==1)do if(J--,Q--,0>Q||B[J]!==T[Q]){var I=`
|
|
13
|
+
`+B[J].replace(" at new "," at ");return z.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",z.displayName)),typeof z==="function"&&qq.set(z,I),I}while(1<=J&&0<=Q);break}}}finally{Gq=!1,h.H=Y,P0(),Error.prepareStackTrace=X}return B=(B=z?z.displayName||z.name:"")?r0(B):"",typeof z==="function"&&qq.set(z,B),B}function t0(z,$){switch(z.tag){case 26:case 27:case 5:return r0(z.type);case 16:return r0("Lazy");case 13:return z.child!==$&&$!==null?r0("Suspense Fallback"):r0("Suspense");case 19:return r0("SuspenseList");case 0:case 15:return v4(z.type,!1);case 11:return v4(z.type.render,!1);case 1:return v4(z.type,!0);case 31:return r0("Activity");default:return""}}function T4(z){try{var $="",X=null;do{$+=t0(z,X);var Y=z._debugInfo;if(Y)for(var Z=Y.length-1;0<=Z;Z--){var J=Y[Z];if(typeof J.name==="string"){var Q=$;z:{var{name:q,env:K,debugLocation:B}=J;if(B!=null){var T=D0(B),I=T.lastIndexOf(`
|
|
14
|
+
`),P=I===-1?T:T.slice(I+1);if(P.indexOf(q)!==-1){var f=`
|
|
15
|
+
`+P;break z}}f=r0(q+(K?" ["+K+"]":""))}$=Q+f}}X=z,z=z.return}while(z);return $}catch($0){return`
|
|
16
|
+
Error generating stack: `+$0.message+`
|
|
17
|
+
`+$0.stack}}function C4(z){return(z=z?z.displayName||z.name:"")?r0(z):""}function r1(){if(Q6===null)return null;var z=Q6._debugOwner;return z!=null?I0(z):null}function G8(){if(Q6===null)return"";var z=Q6;try{var $="";switch(z.tag===6&&(z=z.return),z.tag){case 26:case 27:case 5:$+=r0(z.type);break;case 13:$+=r0("Suspense");break;case 19:$+=r0("SuspenseList");break;case 31:$+=r0("Activity");break;case 30:case 0:case 15:case 1:z._debugOwner||$!==""||($+=C4(z.type));break;case 11:z._debugOwner||$!==""||($+=C4(z.type.render))}for(;z;)if(typeof z.tag==="number"){var X=z;z=X._debugOwner;var Y=X._debugStack;if(z&&Y){var Z=D0(Y);Z!==""&&($+=`
|
|
18
|
+
`+Z)}}else if(z.debugStack!=null){var J=z.debugStack;(z=z.owner)&&J&&($+=`
|
|
19
|
+
`+D0(J))}else break;var Q=$}catch(q){Q=`
|
|
20
|
+
Error generating stack: `+q.message+`
|
|
21
|
+
`+q.stack}return Q}function o(z,$,X,Y,Z,J,Q){var q=Q6;a1(z);try{return z!==null&&z._debugTask?z._debugTask.run($.bind(null,X,Y,Z,J,Q)):$(X,Y,Z,J,Q)}finally{a1(q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function a1(z){h.getCurrentStack=z===null?null:G8,W7=!1,Q6=z}function g1(z){return typeof Symbol==="function"&&Symbol.toStringTag&&z[Symbol.toStringTag]||z.constructor.name||"Object"}function K4(z){try{return k7(z),!1}catch($){return!0}}function k7(z){return""+z}function E0(z,$){if(K4(z))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",$,g1(z)),k7(z)}function z$(z,$){if(K4(z))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.",$,g1(z)),k7(z)}function o6(z){if(K4(z))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.",g1(z)),k7(z)}function rJ(z){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var $=__REACT_DEVTOOLS_GLOBAL_HOOK__;if($.isDisabled)return!0;if(!$.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{P$=$.inject(z),k4=$}catch(X){console.error("React instrumentation encountered an error: %o.",X)}return $.checkDCE?!0:!1}function s0(z){if(typeof h3==="function"&&p3(z),k4&&typeof k4.setStrictMode==="function")try{k4.setStrictMode(P$,z)}catch($){R7||(R7=!0,console.error("React instrumentation encountered an error: %o",$))}}function tH(z){return z>>>=0,z===0?32:31-(j3(z)/x3|0)|0}function R4(z){var $=z&42;if($!==0)return $;switch(z&-z){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 z&261888;case 262144:case 524288:case 1048576:case 2097152:return z&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return z&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."),z}}function $$(z,$,X){var Y=z.pendingLanes;if(Y===0)return 0;var Z=0,J=z.suspendedLanes,Q=z.pingedLanes;z=z.warmLanes;var q=Y&134217727;return q!==0?(Y=q&~J,Y!==0?Z=R4(Y):(Q&=q,Q!==0?Z=R4(Q):X||(X=q&~z,X!==0&&(Z=R4(X))))):(q=Y&~J,q!==0?Z=R4(q):Q!==0?Z=R4(Q):X||(X=Y&~z,X!==0&&(Z=R4(X)))),Z===0?0:$!==0&&$!==Z&&($&J)===0&&(J=Z&-Z,X=$&-$,J>=X||J===32&&(X&4194048)!==0)?$:Z}function y6(z,$){return(z.pendingLanes&~(z.suspendedLanes&~z.pingedLanes)&$)===0}function nJ(z,$){switch(z){case 1:case 2:case 4:case 8:case 64:return $+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 $+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 r6(){var z=IZ;return IZ<<=1,(IZ&62914560)===0&&(IZ=4194304),z}function FX(z){for(var $=[],X=0;31>X;X++)$.push(z);return $}function C6(z,$){z.pendingLanes|=$,$!==268435456&&(z.suspendedLanes=0,z.pingedLanes=0,z.warmLanes=0)}function UY(z,$,X,Y,Z,J){var Q=z.pendingLanes;z.pendingLanes=X,z.suspendedLanes=0,z.pingedLanes=0,z.warmLanes=0,z.expiredLanes&=X,z.entangledLanes&=X,z.errorRecoveryDisabledLanes&=X,z.shellSuspendCounter=0;var{entanglements:q,expirationTimes:K,hiddenUpdates:B}=z;for(X=Q&~X;0<X;){var T=31-E4(X),I=1<<T;q[T]=0,K[T]=-1;var P=B[T];if(P!==null)for(B[T]=null,T=0;T<P.length;T++){var f=P[T];f!==null&&(f.lane&=-536870913)}X&=~I}Y!==0&&n6(z,Y,0),J!==0&&Z===0&&z.tag!==0&&(z.suspendedLanes|=J&~(Q&~$))}function n6(z,$,X){z.pendingLanes|=$,z.suspendedLanes&=~$;var Y=31-E4($);z.entangledLanes|=$,z.entanglements[Y]=z.entanglements[Y]|1073741824|X&261930}function NX(z,$){var X=z.entangledLanes|=$;for(z=z.entanglements;X;){var Y=31-E4(X),Z=1<<Y;Z&$|z[Y]&$&&(z[Y]|=$),X&=~Z}}function q8(z,$){var X=$&-$;return X=(X&42)!==0?1:bX(X),(X&(z.suspendedLanes|$))!==0?0:X}function bX(z){switch(z){case 2:z=1;break;case 8:z=4;break;case 32:z=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:z=128;break;case 268435456:z=134217728;break;default:z=0}return z}function H8(z,$,X){if(F7)for(z=z.pendingUpdatersLaneMap;0<X;){var Y=31-E4(X),Z=1<<Y;z[Y].add($),X&=~Z}}function OY(z,$){if(F7)for(var{pendingUpdatersLaneMap:X,memoizedUpdaters:Y}=z;0<$;){var Z=31-E4($);z=1<<Z,Z=X[Z],0<Z.size&&(Z.forEach(function(J){var Q=J.alternate;Q!==null&&Y.has(Q)||Y.add(J)}),Z.clear()),$&=~z}}function MX(z){return z&=-z,G6!==0&&G6<z?p6!==0&&p6<z?(z&134217727)!==0?N7:kZ:p6:G6}function wX(){var z=H1.p;if(z!==0)return z;return z=window.event,z===void 0?N7:SU(z.type)}function LY(z,$){var X=H1.p;try{return H1.p=z,$()}finally{H1.p=X}}function WY(z){delete z[M4],delete z[f4],delete z[Uq],delete z[g3],delete z[u3]}function O6(z){var $=z[M4];if($)return $;for(var X=z.parentNode;X;){if($=X[y8]||X[M4]){if(X=$.alternate,$.child!==null||X!==null&&X.child!==null)for(z=NU(z);z!==null;){if(X=z[M4])return X;z=NU(z)}return $}z=X,X=z.parentNode}return null}function D4(z){if(z=z[M4]||z[y8]){var $=z.tag;if($===5||$===6||$===13||$===31||$===26||$===27||$===3)return z}return null}function K8(z){var $=z.tag;if($===5||$===26||$===27||$===6)return z.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function _8(z){var $=z[rU];return $||($=z[rU]={hoistableStyles:new Map,hoistableScripts:new Map}),$}function u1(z){z[_5]=!0}function t6(z,$){B8(z,$),B8(z+"Capture",$)}function B8(z,$){wz[z]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",z),wz[z]=$;var X=z.toLowerCase();Oq[X]=z,z==="onDoubleClick"&&(Oq.ondblclick=z);for(z=0;z<$.length;z++)nU.add($[z])}function U8(z,$){l3[$.type]||$.onChange||$.onInput||$.readOnly||$.disabled||$.value==null||(z==="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`.")),$.onChange||$.readOnly||$.disabled||$.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 PX(z){if(h6.call(sU,z))return!0;if(h6.call(tU,z))return!1;if(c3.test(z))return sU[z]=!0;return tU[z]=!0,console.error("Invalid attribute name: `%s`",z),!1}function AX(z,$,X){if(PX($)){if(!z.hasAttribute($)){switch(typeof X){case"symbol":case"object":return X;case"function":return X;case"boolean":if(X===!1)return X}return X===void 0?void 0:null}if(z=z.getAttribute($),z===""&&X===!0)return!0;return E0(X,$),z===""+X?X:z}}function vX(z,$,X){if(PX($))if(X===null)z.removeAttribute($);else{switch(typeof X){case"undefined":case"function":case"symbol":z.removeAttribute($);return;case"boolean":var Y=$.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){z.removeAttribute($);return}}E0(X,$),z.setAttribute($,""+X)}}function Z1(z,$,X){if(X===null)z.removeAttribute($);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":z.removeAttribute($);return}E0(X,$),z.setAttribute($,""+X)}}function P1(z,$,X,Y){if(Y===null)z.removeAttribute(X);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":z.removeAttribute(X);return}E0(Y,X),z.setAttributeNS($,X,""+Y)}}function A1(z){switch(typeof z){case"bigint":case"boolean":case"number":case"string":case"undefined":return z;case"object":return o6(z),z;default:return""}}function E1(z){var $=z.type;return(z=z.nodeName)&&z.toLowerCase()==="input"&&($==="checkbox"||$==="radio")}function y1(z,$,X){var Y=Object.getOwnPropertyDescriptor(z.constructor.prototype,$);if(!z.hasOwnProperty($)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:Z,set:J}=Y;return Object.defineProperty(z,$,{configurable:!0,get:function(){return Z.call(this)},set:function(Q){o6(Q),X=""+Q,J.call(this,Q)}}),Object.defineProperty(z,$,{enumerable:Y.enumerable}),{getValue:function(){return X},setValue:function(Q){o6(Q),X=""+Q},stopTracking:function(){z._valueTracker=null,delete z[$]}}}}function B1(z){if(!z._valueTracker){var $=E1(z)?"checked":"value";z._valueTracker=y1(z,$,""+z[$])}}function J1(z){if(!z)return!1;var $=z._valueTracker;if(!$)return!0;var X=$.getValue(),Y="";return z&&(Y=E1(z)?z.checked?"true":"false":z.value),z=Y,z!==X?($.setValue(z),!0):!1}function O1(z){if(z=z||(typeof document<"u"?document:void 0),typeof z>"u")return null;try{return z.activeElement||z.body}catch($){return z.body}}function C0(z){return z.replace(d3,function($){return"\\"+$.charCodeAt(0).toString(16)+" "})}function D6(z,$){$.checked===void 0||$.defaultChecked===void 0||z9||(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",r1()||"A component",$.type),z9=!0),$.value===void 0||$.defaultValue===void 0||eU||(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",r1()||"A component",$.type),eU=!0)}function V7(z,$,X,Y,Z,J,Q,q){if(z.name="",Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"?(E0(Q,"type"),z.type=Q):z.removeAttribute("type"),$!=null)if(Q==="number"){if($===0&&z.value===""||z.value!=$)z.value=""+A1($)}else z.value!==""+A1($)&&(z.value=""+A1($));else Q!=="submit"&&Q!=="reset"||z.removeAttribute("value");$!=null?TX(z,Q,A1($)):X!=null?TX(z,Q,A1(X)):Y!=null&&z.removeAttribute("value"),Z==null&&J!=null&&(z.defaultChecked=!!J),Z!=null&&(z.checked=Z&&typeof Z!=="function"&&typeof Z!=="symbol"),q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"?(E0(q,"name"),z.name=""+A1(q)):z.removeAttribute("name")}function X$(z,$,X,Y,Z,J,Q,q){if(J!=null&&typeof J!=="function"&&typeof J!=="symbol"&&typeof J!=="boolean"&&(E0(J,"type"),z.type=J),$!=null||X!=null){if(!(J!=="submit"&&J!=="reset"||$!==void 0&&$!==null)){B1(z);return}X=X!=null?""+A1(X):"",$=$!=null?""+A1($):X,q||$===z.value||(z.value=$),z.defaultValue=$}Y=Y!=null?Y:Z,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,z.checked=q?z.checked:!!Y,z.defaultChecked=!!Y,Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&typeof Q!=="boolean"&&(E0(Q,"name"),z.name=Q),B1(z)}function TX(z,$,X){$==="number"&&O1(z.ownerDocument)===z||z.defaultValue===""+X||(z.defaultValue=""+X)}function S6(z,$){$.value==null&&(typeof $.children==="object"&&$.children!==null?ZX.Children.forEach($.children,function(X){X==null||typeof X==="string"||typeof X==="number"||typeof X==="bigint"||X9||(X9=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):$.dangerouslySetInnerHTML==null||Y9||(Y9=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),$.selected==null||$9||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),$9=!0)}function w0(){var z=r1();return z?`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+z+"`.":""}function W0(z,$,X,Y){if(z=z.options,$){$={};for(var Z=0;Z<X.length;Z++)$["$"+X[Z]]=!0;for(X=0;X<z.length;X++)Z=$.hasOwnProperty("$"+z[X].value),z[X].selected!==Z&&(z[X].selected=Z),Z&&Y&&(z[X].defaultSelected=!0)}else{X=""+A1(X),$=null;for(Z=0;Z<z.length;Z++){if(z[Z].value===X){z[Z].selected=!0,Y&&(z[Z].defaultSelected=!0);return}$!==null||z[Z].disabled||($=z[Z])}$!==null&&($.selected=!0)}}function G1(z,$){for(z=0;z<J9.length;z++){var X=J9[z];if($[X]!=null){var Y=Z4($[X]);$.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,w0()):!$.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,w0())}}$.value===void 0||$.defaultValue===void 0||Z9||(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"),Z9=!0)}function O8(z,$){$.value===void 0||$.defaultValue===void 0||Q9||(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",r1()||"A component"),Q9=!0),$.children!=null&&$.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function sH(z,$,X){if($!=null&&($=""+A1($),$!==z.value&&(z.value=$),X==null)){z.defaultValue!==$&&(z.defaultValue=$);return}z.defaultValue=X!=null?""+A1(X):""}function eH(z,$,X,Y){if($==null){if(Y!=null){if(X!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Z4(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}X=Y}X==null&&(X=""),$=X}X=A1($),z.defaultValue=X,Y=z.textContent,Y===X&&Y!==""&&Y!==null&&(z.value=Y),B1(z)}function zK(z,$){return z.serverProps===void 0&&z.serverTail.length===0&&z.children.length===1&&3<z.distanceFromLeaf&&z.distanceFromLeaf>15-$?zK(z.children[0],$):z}function t4(z){return" "+" ".repeat(z)}function Y$(z){return"+ "+" ".repeat(z)}function Gz(z){return"- "+" ".repeat(z)}function $K(z){switch(z.tag){case 26:case 27:case 5:return z.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return z=z.type,z.displayName||z.name||null;case 11:return z=z.type.render,z.displayName||z.name||null;case 1:return z=z.type,z.displayName||z.name||null;default:return null}}function IX(z,$){return G9.test(z)?(z=JSON.stringify(z),z.length>$-2?8>$?'{"..."}':"{"+z.slice(0,$-7)+'..."}':"{"+z+"}"):z.length>$?5>$?'{"..."}':z.slice(0,$-3)+"...":z}function RY(z,$,X){var Y=120-2*X;if($===null)return Y$(X)+IX(z,Y)+`
|
|
24
|
+
`;if(typeof $==="string"){for(var Z=0;Z<$.length&&Z<z.length&&$.charCodeAt(Z)===z.charCodeAt(Z);Z++);return Z>Y-8&&10<Z&&(z="..."+z.slice(Z-8),$="..."+$.slice(Z-8)),Y$(X)+IX(z,Y)+`
|
|
25
|
+
`+Gz(X)+IX($,Y)+`
|
|
26
|
+
`}return t4(X)+IX(z,Y)+`
|
|
27
|
+
`}function tJ(z){return Object.prototype.toString.call(z).replace(/^\[object (.*)\]$/,function($,X){return X})}function kX(z,$){switch(typeof z){case"string":return z=JSON.stringify(z),z.length>$?5>$?'"..."':z.slice(0,$-4)+'..."':z;case"object":if(z===null)return"null";if(Z4(z))return"[...]";if(z.$$typeof===O7)return($=g(z.type))?"<"+$+">":"<...>";var X=tJ(z);if(X==="Object"){X="",$-=2;for(var Y in z)if(z.hasOwnProperty(Y)){var Z=JSON.stringify(Y);if(Z!=='"'+Y+'"'&&(Y=Z),$-=Y.length-2,Z=kX(z[Y],15>$?$:15),$-=Z.length,0>$){X+=X===""?"...":", ...";break}X+=(X===""?"":",")+Y+":"+Z}return"{"+X+"}"}return X;case"function":return($=z.displayName||z.name)?"function "+$:"function";default:return String(z)}}function Z$(z,$){return typeof z!=="string"||G9.test(z)?"{"+kX(z,$-2)+"}":z.length>$-2?5>$?'"..."':'"'+z.slice(0,$-5)+'..."':'"'+z+'"'}function sJ(z,$,X){var Y=120-X.length-z.length,Z=[],J;for(J in $)if($.hasOwnProperty(J)&&J!=="children"){var Q=Z$($[J],120-X.length-J.length-1);Y-=J.length+Q.length+2,Z.push(J+"="+Q)}return Z.length===0?X+"<"+z+`>
|
|
28
|
+
`:0<Y?X+"<"+z+" "+Z.join(" ")+`>
|
|
29
|
+
`:X+"<"+z+`
|
|
30
|
+
`+X+" "+Z.join(`
|
|
31
|
+
`+X+" ")+`
|
|
32
|
+
`+X+`>
|
|
33
|
+
`}function g2(z,$,X){var Y="",Z=u0({},$),J;for(J in z)if(z.hasOwnProperty(J)){delete Z[J];var Q=120-2*X-J.length-2,q=kX(z[J],Q);$.hasOwnProperty(J)?(Q=kX($[J],Q),Y+=Y$(X)+J+": "+q+`
|
|
34
|
+
`,Y+=Gz(X)+J+": "+Q+`
|
|
35
|
+
`):Y+=Y$(X)+J+": "+q+`
|
|
36
|
+
`}for(var K in Z)Z.hasOwnProperty(K)&&(z=kX(Z[K],120-2*X-K.length-2),Y+=Gz(X)+K+": "+z+`
|
|
37
|
+
`);return Y}function u2(z,$,X,Y){var Z="",J=new Map;for(B in X)X.hasOwnProperty(B)&&J.set(B.toLowerCase(),B);if(J.size===1&&J.has("children"))Z+=sJ(z,$,t4(Y));else{for(var Q in $)if($.hasOwnProperty(Q)&&Q!=="children"){var q=120-2*(Y+1)-Q.length-1,K=J.get(Q.toLowerCase());if(K!==void 0){J.delete(Q.toLowerCase());var B=$[Q];K=X[K];var T=Z$(B,q);q=Z$(K,q),typeof B==="object"&&B!==null&&typeof K==="object"&&K!==null&&tJ(B)==="Object"&&tJ(K)==="Object"&&(2<Object.keys(B).length||2<Object.keys(K).length||-1<T.indexOf("...")||-1<q.indexOf("..."))?Z+=t4(Y+1)+Q+`={{
|
|
38
|
+
`+g2(B,K,Y+2)+t4(Y+1)+`}}
|
|
39
|
+
`:(Z+=Y$(Y+1)+Q+"="+T+`
|
|
40
|
+
`,Z+=Gz(Y+1)+Q+"="+q+`
|
|
41
|
+
`)}else Z+=t4(Y+1)+Q+"="+Z$($[Q],q)+`
|
|
42
|
+
`}J.forEach(function(I){if(I!=="children"){var P=120-2*(Y+1)-I.length-1;Z+=Gz(Y+1)+I+"="+Z$(X[I],P)+`
|
|
43
|
+
`}}),Z=Z===""?t4(Y)+"<"+z+`>
|
|
44
|
+
`:t4(Y)+"<"+z+`
|
|
45
|
+
`+Z+t4(Y)+`>
|
|
46
|
+
`}if(z=X.children,$=$.children,typeof z==="string"||typeof z==="number"||typeof z==="bigint"){if(J="",typeof $==="string"||typeof $==="number"||typeof $==="bigint")J=""+$;Z+=RY(J,""+z,Y+1)}else if(typeof $==="string"||typeof $==="number"||typeof $==="bigint")Z=z==null?Z+RY(""+$,null,Y+1):Z+RY(""+$,void 0,Y+1);return Z}function XK(z,$){var X=$K(z);if(X===null){X="";for(z=z.child;z;)X+=XK(z,$),z=z.sibling;return X}return t4($)+"<"+X+`>
|
|
47
|
+
`}function eJ(z,$){var X=zK(z,$);if(X!==z&&(z.children.length!==1||z.children[0]!==X))return t4($)+`...
|
|
48
|
+
`+eJ(X,$+1);X="";var Y=z.fiber._debugInfo;if(Y)for(var Z=0;Z<Y.length;Z++){var J=Y[Z].name;typeof J==="string"&&(X+=t4($)+"<"+J+`>
|
|
49
|
+
`,$++)}if(Y="",Z=z.fiber.pendingProps,z.fiber.tag===6)Y=RY(Z,z.serverProps,$),$++;else if(J=$K(z.fiber),J!==null)if(z.serverProps===void 0){Y=$;var Q=120-2*Y-J.length-2,q="";for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var K=Z$(Z[B],15);if(Q-=B.length+K.length+2,0>Q){q+=" ...";break}q+=" "+B+"="+K}Y=t4(Y)+"<"+J+q+`>
|
|
50
|
+
`,$++}else z.serverProps===null?(Y=sJ(J,Z,Y$($)),$++):typeof z.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=u2(J,Z,z.serverProps,$),$++);var B="";Z=z.fiber.child;for(J=0;Z&&J<z.children.length;)Q=z.children[J],Q.fiber===Z?(B+=eJ(Q,$),J++):B+=XK(Z,$),Z=Z.sibling;Z&&0<z.children.length&&(B+=t4($)+`...
|
|
51
|
+
`),Z=z.serverTail,z.serverProps===null&&$--;for(z=0;z<Z.length;z++)J=Z[z],B=typeof J==="string"?B+(Gz($)+IX(J,120-2*$)+`
|
|
52
|
+
`):B+sJ(J.type,J.props,Gz($));return X+Y+B}function zQ(z){try{return`
|
|
53
|
+
|
|
54
|
+
`+eJ(z,0)}catch($){return""}}function YK(z,$,X){for(var Y=$,Z=null,J=0;Y;)Y===z&&(J=0),Z={fiber:Y,children:Z!==null?[Z]:[],serverProps:Y===$?X:Y===z?null:void 0,serverTail:[],distanceFromLeaf:J},J++,Y=Y.return;return Z!==null?zQ(Z).replaceAll(/^[+-]/gm,">"):""}function ZK(z,$){var X=u0({},z||H9),Y={tag:$};if(q9.indexOf($)!==-1&&(X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null),i3.indexOf($)!==-1&&(X.pTagInButtonScope=null),a3.indexOf($)!==-1&&$!=="address"&&$!=="div"&&$!=="p"&&(X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null),X.current=Y,$==="form"&&(X.formTag=Y),$==="a"&&(X.aTagInScope=Y),$==="button"&&(X.buttonTagInScope=Y),$==="nobr"&&(X.nobrTagInScope=Y),$==="p"&&(X.pTagInButtonScope=Y),$==="li"&&(X.listItemTagAutoclosing=Y),$==="dd"||$==="dt")X.dlItemTagAutoclosing=Y;return $==="#document"||$==="html"?X.containerTagInScope=null:X.containerTagInScope||(X.containerTagInScope=Y),z!==null||$!=="#document"&&$!=="html"&&$!=="body"?X.implicitRootScope===!0&&(X.implicitRootScope=!1):X.implicitRootScope=!0,X}function JK(z,$,X){switch($){case"select":return z==="hr"||z==="option"||z==="optgroup"||z==="script"||z==="template"||z==="#text";case"optgroup":return z==="option"||z==="#text";case"option":return z==="#text";case"tr":return z==="th"||z==="td"||z==="style"||z==="script"||z==="template";case"tbody":case"thead":case"tfoot":return z==="tr"||z==="style"||z==="script"||z==="template";case"colgroup":return z==="col"||z==="template";case"table":return z==="caption"||z==="colgroup"||z==="tbody"||z==="tfoot"||z==="thead"||z==="style"||z==="script"||z==="template";case"head":return z==="base"||z==="basefont"||z==="bgsound"||z==="link"||z==="meta"||z==="title"||z==="noscript"||z==="noframes"||z==="style"||z==="script"||z==="template";case"html":if(X)break;return z==="head"||z==="body"||z==="frameset";case"frameset":return z==="frame";case"#document":if(!X)return z==="html"}switch(z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $!=="h1"&&$!=="h2"&&$!=="h3"&&$!=="h4"&&$!=="h5"&&$!=="h6";case"rp":case"rt":return o3.indexOf($)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return $==null;case"head":return X||$===null;case"html":return X&&$==="#document"||$===null;case"body":return X&&($==="#document"||$==="html")||$===null}return!0}function l2(z,$){switch(z){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 $.pTagInButtonScope;case"form":return $.formTag||$.pTagInButtonScope;case"li":return $.listItemTagAutoclosing;case"dd":case"dt":return $.dlItemTagAutoclosing;case"button":return $.buttonTagInScope;case"a":return $.aTagInScope;case"nobr":return $.nobrTagInScope}return null}function QK(z,$){for(;z;){switch(z.tag){case 5:case 26:case 27:if(z.type===$)return z}z=z.return}return null}function $Q(z,$){$=$||H9;var X=$.current;if($=(X=JK(z,X&&X.tag,$.implicitRootScope)?null:X)?null:l2(z,$),$=X||$,!$)return!0;var Y=$.tag;if($=String(!!X)+"|"+z+"|"+Y,VZ[$])return!1;VZ[$]=!0;var Z=($=Q6)?QK($.return,Y):null,J=$!==null&&Z!==null?YK(Z,$,null):"",Q="<"+z+">";return X?(X="",Y==="table"&&z==="tr"&&(X+=" 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
|
|
55
|
+
This will cause a hydration error.%s`,Q,Y,X,J)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
56
|
+
This will cause a hydration error.%s`,Q,Y,J),$&&(z=$.return,Z===null||z===null||Z===z&&z._debugOwner===$._debugOwner||o(Z,function(){console.error(`<%s> cannot contain a nested %s.
|
|
57
|
+
See this log for the ancestor stack trace.`,Y,Q)})),!1}function FY(z,$,X){if(X||JK("#text",$,!1))return!0;if(X="#text|"+$,VZ[X])return!1;VZ[X]=!0;var Y=(X=Q6)?QK(X,$):null;return X=X!==null&&Y!==null?YK(Y,X,X.tag!==6?{children:null}:null):"",/\S/.test(z)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
58
|
+
This will cause a hydration error.%s`,$,X):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.
|
|
59
|
+
This will cause a hydration error.%s`,$,X),!1}function VX(z,$){if($){var X=z.firstChild;if(X&&X===z.lastChild&&X.nodeType===3){X.nodeValue=$;return}}z.textContent=$}function c2(z){return z.replace(t3,function($,X){return X.toUpperCase()})}function GK(z,$,X){var Y=$.indexOf("--")===0;Y||(-1<$.indexOf("-")?A$.hasOwnProperty($)&&A$[$]||(A$[$]=!0,console.error("Unsupported style property %s. Did you mean %s?",$,c2($.replace(n3,"ms-")))):r3.test($)?A$.hasOwnProperty($)&&A$[$]||(A$[$]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",$,$.charAt(0).toUpperCase()+$.slice(1))):!B9.test(X)||Wq.hasOwnProperty(X)&&Wq[X]||(Wq[X]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,$,X.replace(B9,""))),typeof X==="number"&&(isNaN(X)?U9||(U9=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",$)):isFinite(X)||O9||(O9=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",$)))),X==null||typeof X==="boolean"||X===""?Y?z.setProperty($,""):$==="float"?z.cssFloat="":z[$]="":Y?z.setProperty($,X):typeof X!=="number"||X===0||L9.has($)?$==="float"?z.cssFloat=X:(z$(X,$),z[$]=(""+X).trim()):z[$]=X+"px"}function qK(z,$,X){if($!=null&&typeof $!=="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($&&Object.freeze($),z=z.style,X!=null){if($){var Y={};if(X){for(var Z in X)if(X.hasOwnProperty(Z)&&!$.hasOwnProperty(Z))for(var J=Lq[Z]||[Z],Q=0;Q<J.length;Q++)Y[J[Q]]=Z}for(var q in $)if($.hasOwnProperty(q)&&(!X||X[q]!==$[q]))for(Z=Lq[q]||[q],J=0;J<Z.length;J++)Y[Z[J]]=q;q={};for(var K in $)for(Z=Lq[K]||[K],J=0;J<Z.length;J++)q[Z[J]]=K;K={};for(var B in Y)if(Z=Y[B],(J=q[B])&&Z!==J&&(Q=Z+","+J,!K[Q])){K[Q]=!0,Q=console;var T=$[Z];Q.error.call(Q,"%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.",T==null||typeof T==="boolean"||T===""?"Removing":"Updating",Z,J)}}for(var I in X)!X.hasOwnProperty(I)||$!=null&&$.hasOwnProperty(I)||(I.indexOf("--")===0?z.setProperty(I,""):I==="float"?z.cssFloat="":z[I]="");for(var P in $)B=$[P],$.hasOwnProperty(P)&&X[P]!==B&&GK(z,P,B)}else for(Y in $)$.hasOwnProperty(Y)&&GK(z,Y,$[Y])}function yX(z){if(z.indexOf("-")===-1)return!1;switch(z){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 HK(z){return s3.get(z)||z}function d2(z,$){if(h6.call(T$,$)&&T$[$])return!0;if(zR.test($)){if(z="aria-"+$.slice(4).toLowerCase(),z=W9.hasOwnProperty(z)?z:null,z==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",$),T$[$]=!0;if($!==z)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",$,z),T$[$]=!0}if(e3.test($)){if(z=$.toLowerCase(),z=W9.hasOwnProperty(z)?z:null,z==null)return T$[$]=!0,!1;$!==z&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",$,z),T$[$]=!0)}return!0}function a2(z,$){var X=[],Y;for(Y in $)d2(z,Y)||X.push(Y);$=X.map(function(Z){return"`"+Z+"`"}).join(", "),X.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,z):1<X.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",$,z)}function i2(z,$,X,Y){if(h6.call(m4,$)&&m4[$])return!0;var Z=$.toLowerCase();if(Z==="onfocusin"||Z==="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."),m4[$]=!0;if(typeof X==="function"&&(z==="form"&&$==="action"||z==="input"&&$==="formAction"||z==="button"&&$==="formAction"))return!0;if(Y!=null){if(z=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty($))return!0;if(Y=z.hasOwnProperty(Z)?z[Z]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",$,Y),m4[$]=!0;if(F9.test($))return console.error("Unknown event handler property `%s`. It will be ignored.",$),m4[$]=!0}else if(F9.test($))return $R.test($)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",$),m4[$]=!0;if(XR.test($)||YR.test($))return!0;if(Z==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),m4[$]=!0;if(Z==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),m4[$]=!0;if(Z==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),m4[$]=!0;if(typeof X==="number"&&isNaN(X))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",$),m4[$]=!0;if(CZ.hasOwnProperty(Z)){if(Z=CZ[Z],Z!==$)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",$,Z),m4[$]=!0}else if($!==Z)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.",$,Z),m4[$]=!0;switch($){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 X){case"boolean":switch($){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(Z=$.toLowerCase().slice(0,5),Z==="data-"||Z==="aria-")return!0;return X?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()}.',X,$,$,X,$):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.',X,$,$,X,$,$,$),m4[$]=!0}case"function":case"symbol":return m4[$]=!0,!1;case"string":if(X==="false"||X==="true"){switch($){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}?",X,$,X==="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".',$,X),m4[$]=!0}}return!0}function o2(z,$,X){var Y=[],Z;for(Z in $)i2(z,Z,$[Z],X)||Y.push(Z);$=Y.map(function(J){return"`"+J+"`"}).join(", "),Y.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 ",$,z):1<Y.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 ",$,z)}function CX(z){return ZR.test(""+z)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":z}function y7(){}function XQ(z){return z=z.target||z.srcElement||window,z.correspondingUseElement&&(z=z.correspondingUseElement),z.nodeType===3?z.parentNode:z}function KK(z){var $=D4(z);if($&&(z=$.stateNode)){var X=z[f4]||null;z:switch(z=$.stateNode,$.type){case"input":if(V7(z,X.value,X.defaultValue,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name),$=X.name,X.type==="radio"&&$!=null){for(X=z;X.parentNode;)X=X.parentNode;E0($,"name"),X=X.querySelectorAll('input[name="'+C0(""+$)+'"][type="radio"]');for($=0;$<X.length;$++){var Y=X[$];if(Y!==z&&Y.form===z.form){var Z=Y[f4]||null;if(!Z)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");V7(Y,Z.value,Z.defaultValue,Z.defaultValue,Z.checked,Z.defaultChecked,Z.type,Z.name)}}for($=0;$<X.length;$++)Y=X[$],Y.form===z.form&&J1(Y)}break z;case"textarea":sH(z,X.value,X.defaultValue);break z;case"select":$=X.value,$!=null&&W0(z,!!X.multiple,$,!1)}}}function _K(z,$,X){if(Rq)return z($,X);Rq=!0;try{var Y=z($);return Y}finally{if(Rq=!1,I$!==null||k$!==null){if(O$(),I$&&($=I$,z=k$,k$=I$=null,KK($),z))for($=0;$<z.length;$++)KK(z[$])}}}function DX(z,$){var X=z.stateNode;if(X===null)return null;var Y=X[f4]||null;if(Y===null)return null;X=Y[$];z:switch($){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||(z=z.type,Y=!(z==="button"||z==="input"||z==="select"||z==="textarea")),z=!Y;break z;default:z=!1}if(z)return null;if(X&&typeof X!=="function")throw Error("Expected `"+$+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}function BK(){if(DZ)return DZ;var z,$=Nq,X=$.length,Y,Z="value"in C8?C8.value:C8.textContent,J=Z.length;for(z=0;z<X&&$[z]===Z[z];z++);var Q=X-z;for(Y=1;Y<=Q&&$[X-Y]===Z[J-Y];Y++);return DZ=Z.slice(z,1<Y?1-Y:void 0)}function NY(z){var $=z.keyCode;return"charCode"in z?(z=z.charCode,z===0&&$===13&&(z=13)):z=$,z===10&&(z=13),32<=z||z===13?z:0}function bY(){return!0}function UK(){return!1}function l4(z){function $(X,Y,Z,J,Q){this._reactName=X,this._targetInst=Z,this.type=Y,this.nativeEvent=J,this.target=Q,this.currentTarget=null;for(var q in z)z.hasOwnProperty(q)&&(X=z[q],this[q]=X?X(J):J[q]);return this.isDefaultPrevented=(J.defaultPrevented!=null?J.defaultPrevented:J.returnValue===!1)?bY:UK,this.isPropagationStopped=UK,this}return u0($.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!=="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=bY)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!=="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=bY)},persist:function(){},isPersistent:bY}),$}function r2(z){var $=this.nativeEvent;return $.getModifierState?$.getModifierState(z):(z=RR[z])?!!$[z]:!1}function YQ(){return r2}function OK(z,$){switch(z){case"keyup":return VR.indexOf($.keyCode)!==-1;case"keydown":return $.keyCode!==w9;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LK(z){return z=z.detail,typeof z==="object"&&"data"in z?z.data:null}function n2(z,$){switch(z){case"compositionend":return LK($);case"keypress":if($.which!==A9)return null;return T9=!0,v9;case"textInput":return z=$.data,z===v9&&T9?null:z;default:return null}}function t2(z,$){if(V$)return z==="compositionend"||!Pq&&OK(z,$)?(z=BK(),DZ=Nq=C8=null,V$=!1,z):null;switch(z){case"paste":return null;case"keypress":if(!($.ctrlKey||$.altKey||$.metaKey)||$.ctrlKey&&$.altKey){if($.char&&1<$.char.length)return $.char;if($.which)return String.fromCharCode($.which)}return null;case"compositionend":return P9&&$.locale!=="ko"?null:$.data;default:return null}}function WK(z){var $=z&&z.nodeName&&z.nodeName.toLowerCase();return $==="input"?!!CR[z.type]:$==="textarea"?!0:!1}function s2(z){if(!b7)return!1;z="on"+z;var $=z in document;return $||($=document.createElement("div"),$.setAttribute(z,"return;"),$=typeof $[z]==="function"),$}function RK(z,$,X,Y){I$?k$?k$.push(Y):k$=[Y]:I$=Y,$=BZ($,"onChange"),0<$.length&&(X=new SZ("onChange","change",null,X,Y),z.push({event:X,listeners:$}))}function e2(z){eB(z,0)}function MY(z){var $=K8(z);if(J1($))return z}function FK(z,$){if(z==="change")return $}function NK(){R5&&(R5.detachEvent("onpropertychange",bK),F5=R5=null)}function bK(z){if(z.propertyName==="value"&&MY(F5)){var $=[];RK($,F5,z,XQ(z)),_K(e2,$)}}function zW(z,$,X){z==="focusin"?(NK(),R5=$,F5=X,R5.attachEvent("onpropertychange",bK)):z==="focusout"&&NK()}function $W(z){if(z==="selectionchange"||z==="keyup"||z==="keydown")return MY(F5)}function XW(z,$){if(z==="click")return MY($)}function YW(z,$){if(z==="input"||z==="change")return MY($)}function ZW(z,$){return z===$&&(z!==0||1/z===1/$)||z!==z&&$!==$}function SX(z,$){if(h4(z,$))return!0;if(typeof z!=="object"||z===null||typeof $!=="object"||$===null)return!1;var X=Object.keys(z),Y=Object.keys($);if(X.length!==Y.length)return!1;for(Y=0;Y<X.length;Y++){var Z=X[Y];if(!h6.call($,Z)||!h4(z[Z],$[Z]))return!1}return!0}function MK(z){for(;z&&z.firstChild;)z=z.firstChild;return z}function wK(z,$){var X=MK(z);z=0;for(var Y;X;){if(X.nodeType===3){if(Y=z+X.textContent.length,z<=$&&Y>=$)return{node:X,offset:$-z};z=Y}z:{for(;X;){if(X.nextSibling){X=X.nextSibling;break z}X=X.parentNode}X=void 0}X=MK(X)}}function PK(z,$){return z&&$?z===$?!0:z&&z.nodeType===3?!1:$&&$.nodeType===3?PK(z,$.parentNode):("contains"in z)?z.contains($):z.compareDocumentPosition?!!(z.compareDocumentPosition($)&16):!1:!1}function AK(z){z=z!=null&&z.ownerDocument!=null&&z.ownerDocument.defaultView!=null?z.ownerDocument.defaultView:window;for(var $=O1(z.document);$ instanceof z.HTMLIFrameElement;){try{var X=typeof $.contentWindow.location.href==="string"}catch(Y){X=!1}if(X)z=$.contentWindow;else break;$=O1(z.document)}return $}function ZQ(z){var $=z&&z.nodeName&&z.nodeName.toLowerCase();return $&&($==="input"&&(z.type==="text"||z.type==="search"||z.type==="tel"||z.type==="url"||z.type==="password")||$==="textarea"||z.contentEditable==="true")}function vK(z,$,X){var Y=X.window===X?X.document:X.nodeType===9?X:X.ownerDocument;vq||y$==null||y$!==O1(Y)||(Y=y$,("selectionStart"in Y)&&ZQ(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),N5&&SX(N5,Y)||(N5=Y,Y=BZ(Aq,"onSelect"),0<Y.length&&($=new SZ("onSelect","select",null,$,X),z.push({event:$,listeners:Y}),$.target=y$)))}function qz(z,$){var X={};return X[z.toLowerCase()]=$.toLowerCase(),X["Webkit"+z]="webkit"+$,X["Moz"+z]="moz"+$,X}function Hz(z){if(Tq[z])return Tq[z];if(!C$[z])return z;var $=C$[z],X;for(X in $)if($.hasOwnProperty(X)&&X in k9)return Tq[z]=$[X];return z}function E6(z,$){S9.set(z,$),t6($,[z])}function JW(z){for(var $=fZ,X=0;X<z.length;X++){var Y=z[X];if(typeof Y==="object"&&Y!==null)if(Z4(Y)&&Y.length===2&&typeof Y[0]==="string"){if($!==fZ&&$!==Cq)return Vq;$=Cq}else return Vq;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||$!==fZ&&$!==yq)return Vq;$=yq}}return $}function JQ(z,$,X,Y){for(var Z in z)h6.call(z,Z)&&Z[0]!=="_"&&s6(Z,z[Z],$,X,Y)}function s6(z,$,X,Y,Z){switch(typeof $){case"object":if($===null){$="null";break}else{if($.$$typeof===O7){var J=g($.type)||"…",Q=$.key;$=$.props;var q=Object.keys($),K=q.length;if(Q==null&&K===0){$="<"+J+" />";break}if(3>Y||K===1&&q[0]==="children"&&Q==null){$="<"+J+" … />";break}X.push([Z+" ".repeat(Y)+z,"<"+J]),Q!==null&&s6("key",Q,X,Y+1,Z),z=!1;for(var B in $)B==="children"?$.children!=null&&(!Z4($.children)||0<$.children.length)&&(z=!0):h6.call($,B)&&B[0]!=="_"&&s6(B,$[B],X,Y+1,Z);X.push(["",z?">…</"+J+">":"/>"]);return}if(J=Object.prototype.toString.call($),J=J.slice(8,J.length-1),J==="Array"){if(B=JW($),B===yq||B===fZ){$=JSON.stringify($);break}else if(B===Cq){X.push([Z+" ".repeat(Y)+z,""]);for(z=0;z<$.length;z++)J=$[z],s6(J[0],J[1],X,Y+1,Z);return}}if(J==="Promise"){if($.status==="fulfilled"){if(J=X.length,s6(z,$.value,X,Y,Z),X.length>J){X=X[J],X[1]="Promise<"+(X[1]||"Object")+">";return}}else if($.status==="rejected"&&(J=X.length,s6(z,$.reason,X,Y,Z),X.length>J)){X=X[J],X[1]="Rejected Promise<"+X[1]+">";return}X.push([" ".repeat(Y)+z,"Promise"]);return}J==="Object"&&(B=Object.getPrototypeOf($))&&typeof B.constructor==="function"&&(J=B.constructor.name),X.push([Z+" ".repeat(Y)+z,J==="Object"?3>Y?"":"…":J]),3>Y&&JQ($,X,Y+1,Z);return}case"function":$=$.name===""?"() => {}":$.name+"() {}";break;case"string":$=$===pR?"…":JSON.stringify($);break;case"undefined":$="undefined";break;case"boolean":$=$?"true":"false";break;default:$=String($)}X.push([Z+" ".repeat(Y)+z,$])}function TK(z,$,X,Y){var Z=!0;for(Q in z)Q in $||(X.push([mZ+" ".repeat(Y)+Q,"…"]),Z=!1);for(var J in $)if(J in z){var Q=z[J],q=$[J];if(Q!==q){if(Y===0&&J==="children")Z=" ".repeat(Y)+J,X.push([mZ+Z,"…"],[hZ+Z,"…"]);else{if(!(3<=Y)){if(typeof Q==="object"&&typeof q==="object"&&Q!==null&&q!==null&&Q.$$typeof===q.$$typeof)if(q.$$typeof===O7){if(Q.type===q.type&&Q.key===q.key){Q=g(q.type)||"…",Z=" ".repeat(Y)+J,Q="<"+Q+" … />",X.push([mZ+Z,Q],[hZ+Z,Q]),Z=!1;continue}}else{var K=Object.prototype.toString.call(Q),B=Object.prototype.toString.call(q);if(K===B&&(B==="[object Object]"||B==="[object Array]")){K=[m9+" ".repeat(Y)+J,B==="[object Array]"?"Array":""],X.push(K),B=X.length,TK(Q,q,X,Y+1)?B===X.length&&(K[1]="Referentially unequal but deeply equal objects. Consider memoization."):Z=!1;continue}}else if(typeof Q==="function"&&typeof q==="function"&&Q.name===q.name&&Q.length===q.length&&(K=Function.prototype.toString.call(Q),B=Function.prototype.toString.call(q),K===B)){Q=q.name===""?"() => {}":q.name+"() {}",X.push([m9+" ".repeat(Y)+J,Q+" Referentially unequal function closure. Consider memoization."]);continue}}s6(J,Q,X,Y,mZ),s6(J,q,X,Y,hZ)}Z=!1}}else X.push([hZ+" ".repeat(Y)+J,"…"]),Z=!1;return Z}function s4(z){c0=z&63?"Blocking":z&64?"Gesture":z&4194176?"Transition":z&62914560?"Suspense":z&2080374784?"Idle":"Other"}function e6(z,$,X,Y){v1&&(S8.start=$,S8.end=X,j7.color="warning",j7.tooltipText=Y,j7.properties=null,(z=z._debugTask)?z.run(performance.measure.bind(performance,Y,S8)):performance.measure(Y,S8))}function wY(z,$,X){e6(z,$,X,"Reconnect")}function PY(z,$,X,Y,Z){var J=E(z);if(J!==null&&v1){var{alternate:Q,actualDuration:q}=z;if(Q===null||Q.child!==z.child)for(var K=z.child;K!==null;K=K.sibling)q-=K.actualDuration;Y=0.5>q?Y?"tertiary-light":"primary-light":10>q?Y?"tertiary":"primary":100>q?Y?"tertiary-dark":"primary-dark":"error";var B=z.memoizedProps;q=z._debugTask,B!==null&&Q!==null&&Q.memoizedProps!==B?(K=[jR],B=TK(Q.memoizedProps,B,K,0),1<K.length&&(B&&!D8&&(Q.lanes&Z)===0&&100<z.actualDuration?(D8=!0,K[0]=xR,j7.color="warning",j7.tooltipText=h9):(j7.color=Y,j7.tooltipText=J),j7.properties=K,S8.start=$,S8.end=X,q!=null?q.run(performance.measure.bind(performance,""+J,S8)):performance.measure(""+J,S8))):q!=null?q.run(console.timeStamp.bind(console,J,$,X,W6,void 0,Y)):console.timeStamp(J,$,X,W6,void 0,Y)}}function QQ(z,$,X,Y){if(v1){var Z=E(z);if(Z!==null){for(var J=null,Q=[],q=0;q<Y.length;q++){var K=Y[q];J==null&&K.source!==null&&(J=K.source._debugTask),K=K.value,Q.push(["Error",typeof K==="object"&&K!==null&&typeof K.message==="string"?String(K.message):String(K)])}z.key!==null&&s6("key",z.key,Q,0,""),z.memoizedProps!==null&&JQ(z.memoizedProps,Q,0,""),J==null&&(J=z._debugTask),z={start:$,end:X,detail:{devtools:{color:"error",track:W6,tooltipText:z.tag===13?"Hydration failed":"Error boundary caught an error",properties:Q}}},J?J.run(performance.measure.bind(performance,""+Z,z)):performance.measure(""+Z,z)}}}function z7(z,$,X,Y,Z){if(Z!==null){if(v1){var J=E(z);if(J!==null){Y=[];for(var Q=0;Q<Z.length;Q++){var q=Z[Q].value;Y.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}z.key!==null&&s6("key",z.key,Y,0,""),z.memoizedProps!==null&&JQ(z.memoizedProps,Y,0,""),$={start:$,end:X,detail:{devtools:{color:"error",track:W6,tooltipText:"A lifecycle or effect errored",properties:Y}}},(z=z._debugTask)?z.run(performance.measure.bind(performance,""+J,$)):performance.measure(""+J,$)}}}else J=E(z),J!==null&&v1&&(Z=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",(z=z._debugTask)?z.run(console.timeStamp.bind(console,J,$,X,W6,void 0,Z)):console.timeStamp(J,$,X,W6,void 0,Z))}function QW(z,$,X,Y){if(v1&&!($<=z)){var Z=(X&738197653)===X?"tertiary-dark":"primary-dark";X=(X&536870912)===X?"Prepared":(X&201326741)===X?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,X,z,$,c0,l0,Z)):console.timeStamp(X,z,$,c0,l0,Z)}}function IK(z,$,X,Y){!v1||$<=z||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",z,$,c0,l0,X)):console.timeStamp("Prewarm",z,$,c0,l0,X))}function kK(z,$,X,Y){!v1||$<=z||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",z,$,c0,l0,X)):console.timeStamp("Suspended",z,$,c0,l0,X))}function GW(z,$,X,Y,Z,J){if(v1&&!($<=z)){X=[];for(var Q=0;Q<Y.length;Q++){var q=Y[Q].value;X.push(["Recoverable Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}z={start:z,end:$,detail:{devtools:{color:"primary-dark",track:c0,trackGroup:l0,tooltipText:Z?"Hydration Failed":"Recovered after Error",properties:X}}},J?J.run(performance.measure.bind(performance,"Recovered",z)):performance.measure("Recovered",z)}}function GQ(z,$,X,Y){!v1||$<=z||(Y?Y.run(console.timeStamp.bind(console,"Errored",z,$,c0,l0,"error")):console.timeStamp("Errored",z,$,c0,l0,"error"))}function qW(z,$,X,Y){!v1||$<=z||(Y?Y.run(console.timeStamp.bind(console,X,z,$,c0,l0,"secondary-light")):console.timeStamp(X,z,$,c0,l0,"secondary-light"))}function VK(z,$,X,Y,Z){if(v1&&!($<=z)){for(var J=[],Q=0;Q<X.length;Q++){var q=X[Q].value;J.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}z={start:z,end:$,detail:{devtools:{color:"error",track:c0,trackGroup:l0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:J}}},Z?Z.run(performance.measure.bind(performance,"Errored",z)):performance.measure("Errored",z)}}function EX(z,$,X){!v1||$<=z||(X?X.run(console.timeStamp.bind(console,"Animating",z,$,c0,l0,"secondary-dark")):console.timeStamp("Animating",z,$,c0,l0,"secondary-dark"))}function AY(){for(var z=D$,$=Dq=D$=0;$<z;){var X=R6[$];R6[$++]=null;var Y=R6[$];R6[$++]=null;var Z=R6[$];R6[$++]=null;var J=R6[$];if(R6[$++]=null,Y!==null&&Z!==null){var Q=Y.pending;Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),Y.pending=Z}J!==0&&yK(X,Z,J)}}function vY(z,$,X,Y){R6[D$++]=z,R6[D$++]=$,R6[D$++]=X,R6[D$++]=Y,Dq|=Y,z.lanes|=Y,z=z.alternate,z!==null&&(z.lanes|=Y)}function qQ(z,$,X,Y){return vY(z,$,X,Y),TY(z)}function I4(z,$){return vY(z,null,null,$),TY(z)}function yK(z,$,X){z.lanes|=X;var Y=z.alternate;Y!==null&&(Y.lanes|=X);for(var Z=!1,J=z.return;J!==null;)J.childLanes|=X,Y=J.alternate,Y!==null&&(Y.childLanes|=X),J.tag===22&&(z=J.stateNode,z===null||z._visibility&b5||(Z=!0)),z=J,J=J.return;return z.tag===3?(J=z.stateNode,Z&&$!==null&&(Z=31-E4(X),z=J.hiddenUpdates,Y=z[Z],Y===null?z[Z]=[$]:Y.push($),$.lane=X|536870912),J):null}function TY(z){if(i5>$F)throw pz=i5=0,o5=_H=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.");pz>XF&&(pz=0,o5=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.")),z.alternate===null&&(z.flags&4098)!==0&&aB(z);for(var $=z,X=$.return;X!==null;)$.alternate===null&&($.flags&4098)!==0&&aB(z),$=X,X=$.return;return $.tag===3?$.stateNode:null}function Kz(z){if(F6===null)return z;var $=F6(z);return $===void 0?z:$.current}function HQ(z){if(F6===null)return z;var $=F6(z);return $===void 0?z!==null&&z!==void 0&&typeof z.render==="function"&&($=Kz(z.render),z.render!==$)?($={$$typeof:q5,render:$},z.displayName!==void 0&&($.displayName=z.displayName),$):z:$.current}function CK(z,$){if(F6===null)return!1;var X=z.elementType;$=$.type;var Y=!1,Z=typeof $==="object"&&$!==null?$.$$typeof:null;switch(z.tag){case 1:typeof $==="function"&&(Y=!0);break;case 0:typeof $==="function"?Y=!0:Z===J6&&(Y=!0);break;case 11:Z===q5?Y=!0:Z===J6&&(Y=!0);break;case 14:case 15:Z===PZ?Y=!0:Z===J6&&(Y=!0);break;default:return!1}return Y&&(z=F6(X),z!==void 0&&z===F6($))?!0:!1}function DK(z){F6!==null&&typeof WeakSet==="function"&&(S$===null&&(S$=new WeakSet),S$.add(z))}function SK(z,$,X){do{var Y=z,Z=Y.alternate,J=Y.child,Q=Y.sibling,q=Y.tag;Y=Y.type;var K=null;switch(q){case 0:case 15:case 1:K=Y;break;case 11:K=Y.render}if(F6===null)throw Error("Expected resolveFamily to be set during hot reload.");var B=!1;if(Y=!1,K!==null&&(K=F6(K),K!==void 0&&(X.has(K)?Y=!0:$.has(K)&&(q===1?Y=!0:B=!0))),S$!==null&&(S$.has(z)||Z!==null&&S$.has(Z))&&(Y=!0),Y&&(z._debugNeedsRemount=!0),Y||B)Z=I4(z,2),Z!==null&&p1(Z,z,2);if(J===null||Y||SK(J,$,X),Q===null)break;z=Q}while(1)}function HW(z,$,X,Y){this.tag=z,this.key=X,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=$,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,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,p9||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function KQ(z){return z=z.prototype,!(!z||!z.isReactComponent)}function C7(z,$){var X=z.alternate;switch(X===null?(X=b(z.tag,$,z.key,z.mode),X.elementType=z.elementType,X.type=z.type,X.stateNode=z.stateNode,X._debugOwner=z._debugOwner,X._debugStack=z._debugStack,X._debugTask=z._debugTask,X._debugHookTypes=z._debugHookTypes,X.alternate=z,z.alternate=X):(X.pendingProps=$,X.type=z.type,X.flags=0,X.subtreeFlags=0,X.deletions=null,X.actualDuration=-0,X.actualStartTime=-1.1),X.flags=z.flags&65011712,X.childLanes=z.childLanes,X.lanes=z.lanes,X.child=z.child,X.memoizedProps=z.memoizedProps,X.memoizedState=z.memoizedState,X.updateQueue=z.updateQueue,$=z.dependencies,X.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},X.sibling=z.sibling,X.index=z.index,X.ref=z.ref,X.refCleanup=z.refCleanup,X.selfBaseDuration=z.selfBaseDuration,X.treeBaseDuration=z.treeBaseDuration,X._debugInfo=z._debugInfo,X._debugNeedsRemount=z._debugNeedsRemount,X.tag){case 0:case 15:X.type=Kz(z.type);break;case 1:X.type=Kz(z.type);break;case 11:X.type=HQ(z.type)}return X}function EK(z,$){z.flags&=65011714;var X=z.alternate;return X===null?(z.childLanes=0,z.lanes=$,z.child=null,z.subtreeFlags=0,z.memoizedProps=null,z.memoizedState=null,z.updateQueue=null,z.dependencies=null,z.stateNode=null,z.selfBaseDuration=0,z.treeBaseDuration=0):(z.childLanes=X.childLanes,z.lanes=X.lanes,z.child=X.child,z.subtreeFlags=0,z.deletions=null,z.memoizedProps=X.memoizedProps,z.memoizedState=X.memoizedState,z.updateQueue=X.updateQueue,z.type=X.type,$=X.dependencies,z.dependencies=$===null?null:{lanes:$.lanes,firstContext:$.firstContext,_debugThenableState:$._debugThenableState},z.selfBaseDuration=X.selfBaseDuration,z.treeBaseDuration=X.treeBaseDuration),z}function _Q(z,$,X,Y,Z,J){var Q=0,q=z;if(typeof z==="function")KQ(z)&&(Q=1),q=Kz(q);else if(typeof z==="string")Q=H0(),Q=F3(z,X,Q)?26:z==="html"||z==="head"||z==="body"?27:5;else z:switch(z){case Yq:return $=b(31,X,$,Z),$.elementType=Yq,$.lanes=J,$;case M$:return _z(X.children,Z,J,$);case wZ:Q=8,Z|=V4,Z|=j6;break;case eG:return z=X,Y=Z,typeof z.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof z.id),$=b(12,z,$,Y|m0),$.elementType=eG,$.lanes=J,$.stateNode={effectDuration:0,passiveEffectDuration:0},$;case $q:return $=b(13,X,$,Z),$.elementType=$q,$.lanes=J,$;case Xq:return $=b(19,X,$,Z),$.elementType=Xq,$.lanes=J,$;default:if(typeof z==="object"&&z!==null)switch(z.$$typeof){case L7:Q=10;break z;case zq:Q=9;break z;case q5:Q=11,q=HQ(q);break z;case PZ:Q=14;break z;case J6:Q=16,q=null;break z}if(q="",z===void 0||typeof z==="object"&&z!==null&&Object.keys(z).length===0)q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";z===null?X="null":Z4(z)?X="array":z!==void 0&&z.$$typeof===O7?(X="<"+(g(z.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):X=typeof z,(Q=Y?I0(Y):null)&&(q+=`
|
|
60
|
+
|
|
61
|
+
Check the render method of \``+Q+"`."),Q=29,X=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(X+"."+q)),q=null}return $=b(Q,X,$,Z),$.elementType=z,$.type=q,$.lanes=J,$._debugOwner=Y,$}function IY(z,$,X){return $=_Q(z.type,z.key,z.props,z._owner,$,X),$._debugOwner=z._owner,$._debugStack=z._debugStack,$._debugTask=z._debugTask,$}function _z(z,$,X,Y){return z=b(7,z,Y,$),z.lanes=X,z}function BQ(z,$,X){return z=b(6,z,null,$),z.lanes=X,z}function fK(z){var $=b(18,null,null,T0);return $.stateNode=z,$}function UQ(z,$,X){return $=b(4,z.children!==null?z.children:[],z.key,$),$.lanes=X,$.stateNode={containerInfo:z.containerInfo,pendingChildren:null,implementation:z.implementation},$}function e4(z,$){if(typeof z==="object"&&z!==null){var X=Sq.get(z);if(X!==void 0)return X;return $={value:z,source:$,stack:T4($)},Sq.set(z,$),$}return{value:z,source:$,stack:T4($)}}function D7(z,$){L8(),E$[f$++]=M5,E$[f$++]=pZ,pZ=z,M5=$}function mK(z,$,X){L8(),N6[b6++]=g7,N6[b6++]=u7,N6[b6++]=Az,Az=z;var Y=g7;z=u7;var Z=32-E4(Y)-1;Y&=~(1<<Z),X+=1;var J=32-E4($)+Z;if(30<J){var Q=Z-Z%5;J=(Y&(1<<Q)-1).toString(32),Y>>=Q,Z-=Q,g7=1<<32-E4($)+Z|X<<Z|Y,u7=J+z}else g7=1<<J|X<<Z|Y,u7=z}function OQ(z){L8(),z.return!==null&&(D7(z,1),mK(z,1,0))}function LQ(z){for(;z===pZ;)pZ=E$[--f$],E$[f$]=null,M5=E$[--f$],E$[f$]=null;for(;z===Az;)Az=N6[--b6],N6[b6]=null,u7=N6[--b6],N6[b6]=null,g7=N6[--b6],N6[b6]=null}function hK(){return L8(),Az!==null?{id:g7,overflow:u7}:null}function pK(z,$){L8(),N6[b6++]=g7,N6[b6++]=u7,N6[b6++]=Az,g7=$.id,u7=$.overflow,Az=z}function L8(){d0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Bz(z,$){if(z.return===null){if(q6===null)q6={fiber:z,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$};else{if(q6.fiber!==z)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");q6.distanceFromLeaf>$&&(q6.distanceFromLeaf=$)}return q6}var X=Bz(z.return,$+1).children;if(0<X.length&&X[X.length-1].fiber===z)return X=X[X.length-1],X.distanceFromLeaf>$&&(X.distanceFromLeaf=$),X;return $={fiber:z,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:$},X.push($),$}function jK(){d0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function kY(z,$){M7||(z=Bz(z,0),z.serverProps=null,$!==null&&($=RU($),z.serverTail.push($)))}function W8(z){var $=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,X="",Y=q6;throw Y!==null&&(q6=null,X=zQ(Y)),fX(e4(Error("Hydration failed because the server rendered "+($?"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:
|
|
62
|
+
|
|
63
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
64
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
65
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
66
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
67
|
+
- Invalid HTML tag nesting.
|
|
68
|
+
|
|
69
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
70
|
+
|
|
71
|
+
https://react.dev/link/hydration-mismatch`+X),z)),Eq}function xK(z){var{stateNode:$,type:X,memoizedProps:Y}=z;switch($[M4]=z,$[f4]=Y,fG(X,Y),X){case"dialog":a0("cancel",$),a0("close",$);break;case"iframe":case"object":case"embed":a0("load",$);break;case"video":case"audio":for(X=0;X<r5.length;X++)a0(r5[X],$);break;case"source":a0("error",$);break;case"img":case"image":case"link":a0("error",$),a0("load",$);break;case"details":a0("toggle",$);break;case"input":U8("input",Y),a0("invalid",$),D6($,Y),X$($,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":S6($,Y);break;case"select":U8("select",Y),a0("invalid",$),G1($,Y);break;case"textarea":U8("textarea",Y),a0("invalid",$),O8($,Y),eH($,Y.value,Y.defaultValue,Y.children)}X=Y.children,typeof X!=="string"&&typeof X!=="number"&&typeof X!=="bigint"||$.textContent===""+X||Y.suppressHydrationWarning===!0||YU($.textContent,X)?(Y.popover!=null&&(a0("beforetoggle",$),a0("toggle",$)),Y.onScroll!=null&&a0("scroll",$),Y.onScrollEnd!=null&&a0("scrollend",$),Y.onClick!=null&&($.onclick=y7),$=!0):$=!1,$||W8(z,!0)}function gK(z){for(w4=z.return;w4;)switch(w4.tag){case 5:case 31:case 13:M6=!1;return;case 27:case 3:M6=!0;return;default:w4=w4.return}}function J$(z){if(z!==w4)return!1;if(!d0)return gK(z),d0=!0,!1;var $=z.tag,X;if(X=$!==3&&$!==27){if(X=$===5)X=z.type,X=!(X!=="form"&&X!=="button")||xG(z.type,z.memoizedProps);X=!X}if(X&&T1){for(X=T1;X;){var Y=Bz(z,0),Z=RU(X);Y.serverTail.push(Z),X=Z.type==="Suspense"?cG(X):Z6(X.nextSibling)}W8(z)}if(gK(z),$===13){if(z=z.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");T1=cG(z)}else if($===31){if(z=z.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");T1=cG(z)}else $===27?($=T1,T8(z.type)?(z=PH,PH=null,T1=z):T1=$):T1=w4?Z6(z.stateNode.nextSibling):null;return!0}function Uz(){T1=w4=null,M7=d0=!1}function WQ(){var z=f8;return z!==null&&(g4===null?g4=z:g4.push.apply(g4,z),f8=null),z}function fX(z){f8===null?f8=[z]:f8.push(z)}function RQ(){var z=q6;if(z!==null){q6=null;for(var $=zQ(z);0<z.children.length;)z=z.children[0];o(z.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:
|
|
72
|
+
|
|
73
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
74
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
75
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
76
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
77
|
+
- Invalid HTML tag nesting.
|
|
78
|
+
|
|
79
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
80
|
+
|
|
81
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",$)})}}function VY(){m$=jZ=null,h$=!1}function R8(z,$,X){J0(fq,$._currentValue,z),$._currentValue=X,J0(mq,$._currentRenderer,z),$._currentRenderer!==void 0&&$._currentRenderer!==null&&$._currentRenderer!==x9&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),$._currentRenderer=x9}function S7(z,$){z._currentValue=fq.current;var X=mq.current;u(mq,$),z._currentRenderer=X,u(fq,$)}function FQ(z,$,X){for(;z!==null;){var Y=z.alternate;if((z.childLanes&$)!==$?(z.childLanes|=$,Y!==null&&(Y.childLanes|=$)):Y!==null&&(Y.childLanes&$)!==$&&(Y.childLanes|=$),z===X)break;z=z.return}z!==X&&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 NQ(z,$,X,Y){var Z=z.child;Z!==null&&(Z.return=z);for(;Z!==null;){var J=Z.dependencies;if(J!==null){var Q=Z.child;J=J.firstContext;z:for(;J!==null;){var q=J;J=Z;for(var K=0;K<$.length;K++)if(q.context===$[K]){J.lanes|=X,q=J.alternate,q!==null&&(q.lanes|=X),FQ(J.return,X,z),Y||(Q=null);break z}J=q.next}}else if(Z.tag===18){if(Q=Z.return,Q===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");Q.lanes|=X,J=Q.alternate,J!==null&&(J.lanes|=X),FQ(Q,X,z),Q=null}else Q=Z.child;if(Q!==null)Q.return=Z;else for(Q=Z;Q!==null;){if(Q===z){Q=null;break}if(Z=Q.sibling,Z!==null){Z.return=Q.return,Q=Z;break}Q=Q.return}Z=Q}}function Q$(z,$,X,Y){z=null;for(var Z=$,J=!1;Z!==null;){if(!J){if((Z.flags&524288)!==0)J=!0;else if((Z.flags&262144)!==0)break}if(Z.tag===10){var Q=Z.alternate;if(Q===null)throw Error("Should have a current fiber. This is a bug in React.");if(Q=Q.memoizedProps,Q!==null){var q=Z.type;h4(Z.pendingProps.value,Q.value)||(z!==null?z.push(q):z=[q])}}else if(Z===AZ.current){if(Q=Z.alternate,Q===null)throw Error("Should have a current fiber. This is a bug in React.");Q.memoizedState.memoizedState!==Z.memoizedState.memoizedState&&(z!==null?z.push(zY):z=[zY])}Z=Z.return}z!==null&&NQ($,z,X,Y),$.flags|=262144}function yY(z){for(z=z.firstContext;z!==null;){if(!h4(z.context._currentValue,z.memoizedValue))return!0;z=z.next}return!1}function Oz(z){jZ=z,m$=null,z=z.dependencies,z!==null&&(z.firstContext=null)}function C1(z){return h$&&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()."),uK(jZ,z)}function CY(z,$){return jZ===null&&Oz(z),uK(z,$)}function uK(z,$){var X=$._currentValue;if($={context:$,memoizedValue:X,next:null},m$===null){if(z===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().");m$=$,z.dependencies={lanes:0,firstContext:$,_debugThenableState:null},z.flags|=524288}else m$=m$.next=$;return X}function bQ(){return{controller:new lR,data:new Map,refCount:0}}function Lz(z){z.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),z.refCount++}function mX(z){z.refCount--,0>z.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),z.refCount===0&&cR(dR,function(){z.controller.abort()})}function $7(z,$,X){if((z&127)!==0)0>w7&&(w7=t1(),P5=xZ($),hq=$,X!=null&&(pq=E(X)),(n0&(Q4|_6))!==L4&&(j1=!0,p8=w5),z=Y5(),$=X5(),z!==p$||$!==A5?p$=-1.1:$!==null&&(p8=w5),Tz=z,A5=$);else if((z&4194048)!==0&&0>w6&&(w6=t1(),v5=xZ($),g9=$,X!=null&&(u9=E(X)),0>d7)){if(z=Y5(),$=X5(),z!==x8||$!==Iz)x8=-1.1;j8=z,Iz=$}}function KW(z){if(0>w7){w7=t1(),P5=z._debugTask!=null?z._debugTask:null,(n0&(Q4|_6))!==L4&&(p8=w5);var $=Y5(),X=X5();$!==p$||X!==A5?p$=-1.1:X!==null&&(p8=w5),Tz=$,A5=X}if(0>w6&&(w6=t1(),v5=z._debugTask!=null?z._debugTask:null,0>d7)){if(z=Y5(),$=X5(),z!==x8||$!==Iz)x8=-1.1;j8=z,Iz=$}}function E7(){var z=vz;return vz=0,z}function DY(z){var $=vz;return vz=z,$}function hX(z){var $=vz;return vz+=z,$}function SY(){A0=N0=-1.1}function z6(){var z=N0;return N0=-1.1,z}function $6(z){0<=z&&(N0=z)}function X7(){var z=f1;return f1=-0,z}function Y7(z){0<=z&&(f1=z)}function Z7(){var z=D1;return D1=null,z}function J7(){var z=j1;return j1=!1,z}function MQ(z){p4=t1(),0>z.actualStartTime&&(z.actualStartTime=p4)}function wQ(z){if(0<=p4){var $=t1()-p4;z.actualDuration+=$,z.selfBaseDuration=$,p4=-1}}function lK(z){if(0<=p4){var $=t1()-p4;z.actualDuration+=$,p4=-1}}function Q7(){if(0<=p4){var z=t1(),$=z-p4;p4=-1,vz+=$,f1+=$,A0=z}}function cK(z){D1===null&&(D1=[]),D1.push(z),c7===null&&(c7=[]),c7.push(z)}function G7(){p4=t1(),0>N0&&(N0=p4)}function pX(z){for(var $=z.child;$;)z.actualDuration+=$.actualDuration,$=$.sibling}function _W(z,$){if(I5===null){var X=I5=[];xq=0,kz=CG(),j$={status:"pending",value:void 0,then:function(Y){X.push(Y)}}}return xq++,$.then(dK,dK),$}function dK(){if(--xq===0&&(-1<w6||(d7=-1.1),I5!==null)){j$!==null&&(j$.status="fulfilled");var z=I5;I5=null,kz=0,j$=null;for(var $=0;$<z.length;$++)(0,z[$])()}}function BW(z,$){var X=[],Y={status:"pending",value:null,reason:null,then:function(Z){X.push(Z)}};return z.then(function(){Y.status="fulfilled",Y.value=$;for(var Z=0;Z<X.length;Z++)(0,X[Z])($)},function(Z){Y.status="rejected",Y.reason=Z;for(Z=0;Z<X.length;Z++)(0,X[Z])(void 0)}),Y}function PQ(){var z=Vz.current;return z!==null?z:R1.pooledCache}function EY(z,$){$===null?J0(Vz,Vz.current,z):J0(Vz,$.pool,z)}function aK(){var z=PQ();return z===null?null:{parent:n1._currentValue,pool:z}}function iK(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function oK(z){return z=z.status,z==="fulfilled"||z==="rejected"}function rK(z,$,X){h.actQueue!==null&&(h.didUsePromise=!0);var Y=z.thenables;if(X=Y[X],X===void 0?Y.push($):X!==$&&(z.didWarnAboutUncachedPromise||(z.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.")),$.then(y7,y7),$=X),$._debugInfo===void 0){z=performance.now(),Y=$.displayName;var Z={name:typeof Y==="string"?Y:"Promise",start:z,end:z,value:$};$._debugInfo=[{awaited:Z}],$.status!=="fulfilled"&&$.status!=="rejected"&&(z=function(){Z.end=performance.now()},$.then(z,z))}switch($.status){case"fulfilled":return $.value;case"rejected":throw z=$.reason,tK(z),z;default:if(typeof $.status==="string")$.then(y7,y7);else{if(z=R1,z!==null&&100<z.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.");z=$,z.status="pending",z.then(function(J){if($.status==="pending"){var Q=$;Q.status="fulfilled",Q.value=J}},function(J){if($.status==="pending"){var Q=$;Q.status="rejected",Q.reason=J}})}switch($.status){case"fulfilled":return $.value;case"rejected":throw z=$.reason,tK(z),z}throw Cz=$,E5=!0,x$}}function F8(z){try{return rR(z)}catch($){if($!==null&&typeof $==="object"&&typeof $.then==="function")throw Cz=$,E5=!0,x$;throw $}}function nK(){if(Cz===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var z=Cz;return Cz=null,E5=!1,z}function tK(z){if(z===x$||z===oZ)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 F4(z){var $=h0;return z!=null&&(h0=$===null?z:$.concat(z)),$}function AQ(){var z=h0;if(z!=null){for(var $=z.length-1;0<=$;$--)if(z[$].name!=null){var X=z[$].debugTask;if(X!=null)return X}}return null}function fY(z,$,X){for(var Y=Object.keys(z.props),Z=0;Z<Y.length;Z++){var J=Y[Z];if(J!=="children"&&J!=="key"){$===null&&($=IY(z,X.mode,0),$._debugInfo=h0,$.return=X),o($,function(Q){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Q)},J);break}}}function mY(z){var $=f5;return f5+=1,g$===null&&(g$=iK()),rK(g$,z,$)}function jX(z,$){$=$.props.ref,z.ref=$!==void 0?$:null}function sK(z,$){if($.$$typeof===k3)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
82
|
+
- Multiple copies of the "react" package is used.
|
|
83
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
84
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw z=Object.prototype.toString.call($),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}function hY(z,$){var X=AQ();X!==null?X.run(sK.bind(null,z,$)):sK(z,$)}function eK(z,$){var X=E(z)||"Component";qO[X]||(qO[X]=!0,$=$.displayName||$.name||"Component",z.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.
|
|
85
|
+
root.render(%s)`,$,$,$):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.
|
|
86
|
+
<%s>{%s}</%s>`,$,$,X,$,X))}function pY(z,$){var X=AQ();X!==null?X.run(eK.bind(null,z,$)):eK(z,$)}function z_(z,$){var X=E(z)||"Component";HO[X]||(HO[X]=!0,$=String($),z.tag===3?console.error(`Symbols are not valid as a React child.
|
|
87
|
+
root.render(%s)`,$):console.error(`Symbols are not valid as a React child.
|
|
88
|
+
<%s>%s</%s>`,X,$,X))}function jY(z,$){var X=AQ();X!==null?X.run(z_.bind(null,z,$)):z_(z,$)}function $_(z){function $(w,A){if(z){var v=w.deletions;v===null?(w.deletions=[A],w.flags|=16):v.push(A)}}function X(w,A){if(!z)return null;for(;A!==null;)$(w,A),A=A.sibling;return null}function Y(w){for(var A=new Map;w!==null;)w.key!==null?A.set(w.key,w):A.set(w.index,w),w=w.sibling;return A}function Z(w,A){return w=C7(w,A),w.index=0,w.sibling=null,w}function J(w,A,v){if(w.index=v,!z)return w.flags|=1048576,A;if(v=w.alternate,v!==null)return v=v.index,v<A?(w.flags|=67108866,A):v;return w.flags|=67108866,A}function Q(w){return z&&w.alternate===null&&(w.flags|=67108866),w}function q(w,A,v,x){if(A===null||A.tag!==6)return A=BQ(v,w.mode,x),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,A._debugInfo=h0,A;return A=Z(A,v),A.return=w,A._debugInfo=h0,A}function K(w,A,v,x){var Y0=v.type;if(Y0===M$)return A=T(w,A,v.props.children,x,v.key),fY(v,A,w),A;if(A!==null&&(A.elementType===Y0||CK(A,v)||typeof Y0==="object"&&Y0!==null&&Y0.$$typeof===J6&&F8(Y0)===A.type))return A=Z(A,v.props),jX(A,v),A.return=w,A._debugOwner=v._owner,A._debugInfo=h0,A;return A=IY(v,w.mode,x),jX(A,v),A.return=w,A._debugInfo=h0,A}function B(w,A,v,x){if(A===null||A.tag!==4||A.stateNode.containerInfo!==v.containerInfo||A.stateNode.implementation!==v.implementation)return A=UQ(v,w.mode,x),A.return=w,A._debugInfo=h0,A;return A=Z(A,v.children||[]),A.return=w,A._debugInfo=h0,A}function T(w,A,v,x,Y0){if(A===null||A.tag!==7)return A=_z(v,w.mode,x,Y0),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,A._debugInfo=h0,A;return A=Z(A,v),A.return=w,A._debugInfo=h0,A}function I(w,A,v){if(typeof A==="string"&&A!==""||typeof A==="number"||typeof A==="bigint")return A=BQ(""+A,w.mode,v),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,A._debugInfo=h0,A;if(typeof A==="object"&&A!==null){switch(A.$$typeof){case O7:return v=IY(A,w.mode,v),jX(v,A),v.return=w,w=F4(A._debugInfo),v._debugInfo=h0,h0=w,v;case b$:return A=UQ(A,w.mode,v),A.return=w,A._debugInfo=h0,A;case J6:var x=F4(A._debugInfo);return A=F8(A),w=I(w,A,v),h0=x,w}if(Z4(A)||L0(A))return v=_z(A,w.mode,v,null),v.return=w,v._debugOwner=w,v._debugTask=w._debugTask,w=F4(A._debugInfo),v._debugInfo=h0,h0=w,v;if(typeof A.then==="function")return x=F4(A._debugInfo),w=I(w,mY(A),v),h0=x,w;if(A.$$typeof===L7)return I(w,CY(w,A),v);hY(w,A)}return typeof A==="function"&&pY(w,A),typeof A==="symbol"&&jY(w,A),null}function P(w,A,v,x){var Y0=A!==null?A.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return Y0!==null?null:q(w,A,""+v,x);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case O7:return v.key===Y0?(Y0=F4(v._debugInfo),w=K(w,A,v,x),h0=Y0,w):null;case b$:return v.key===Y0?B(w,A,v,x):null;case J6:return Y0=F4(v._debugInfo),v=F8(v),w=P(w,A,v,x),h0=Y0,w}if(Z4(v)||L0(v)){if(Y0!==null)return null;return Y0=F4(v._debugInfo),w=T(w,A,v,x,null),h0=Y0,w}if(typeof v.then==="function")return Y0=F4(v._debugInfo),w=P(w,A,mY(v),x),h0=Y0,w;if(v.$$typeof===L7)return P(w,A,CY(w,v),x);hY(w,v)}return typeof v==="function"&&pY(w,v),typeof v==="symbol"&&jY(w,v),null}function f(w,A,v,x,Y0){if(typeof x==="string"&&x!==""||typeof x==="number"||typeof x==="bigint")return w=w.get(v)||null,q(A,w,""+x,Y0);if(typeof x==="object"&&x!==null){switch(x.$$typeof){case O7:return v=w.get(x.key===null?v:x.key)||null,w=F4(x._debugInfo),A=K(A,v,x,Y0),h0=w,A;case b$:return w=w.get(x.key===null?v:x.key)||null,B(A,w,x,Y0);case J6:var V0=F4(x._debugInfo);return x=F8(x),A=f(w,A,v,x,Y0),h0=V0,A}if(Z4(x)||L0(x))return v=w.get(v)||null,w=F4(x._debugInfo),A=T(A,v,x,Y0,null),h0=w,A;if(typeof x.then==="function")return V0=F4(x._debugInfo),A=f(w,A,v,mY(x),Y0),h0=V0,A;if(x.$$typeof===L7)return f(w,A,v,CY(A,x),Y0);hY(A,x)}return typeof x==="function"&&pY(A,x),typeof x==="symbol"&&jY(A,x),null}function $0(w,A,v,x){if(typeof v!=="object"||v===null)return x;switch(v.$$typeof){case O7:case b$:F(w,A,v);var Y0=v.key;if(typeof Y0!=="string")break;if(x===null){x=new Set,x.add(Y0);break}if(!x.has(Y0)){x.add(Y0);break}o(A,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.",Y0)});break;case J6:v=F8(v),$0(w,A,v,x)}return x}function Z0(w,A,v,x){for(var Y0=null,V0=null,F0=null,B0=A,f0=A=0,I1=null;B0!==null&&f0<v.length;f0++){B0.index>f0?(I1=B0,B0=null):I1=B0.sibling;var o1=P(w,B0,v[f0],x);if(o1===null){B0===null&&(B0=I1);break}Y0=$0(w,o1,v[f0],Y0),z&&B0&&o1.alternate===null&&$(w,B0),A=J(o1,A,f0),F0===null?V0=o1:F0.sibling=o1,F0=o1,B0=I1}if(f0===v.length)return X(w,B0),d0&&D7(w,f0),V0;if(B0===null){for(;f0<v.length;f0++)B0=I(w,v[f0],x),B0!==null&&(Y0=$0(w,B0,v[f0],Y0),A=J(B0,A,f0),F0===null?V0=B0:F0.sibling=B0,F0=B0);return d0&&D7(w,f0),V0}for(B0=Y(B0);f0<v.length;f0++)I1=f(B0,w,f0,v[f0],x),I1!==null&&(Y0=$0(w,I1,v[f0],Y0),z&&I1.alternate!==null&&B0.delete(I1.key===null?f0:I1.key),A=J(I1,A,f0),F0===null?V0=I1:F0.sibling=I1,F0=I1);return z&&B0.forEach(function(z8){return $(w,z8)}),d0&&D7(w,f0),V0}function b1(w,A,v,x){if(v==null)throw Error("An iterable object provided no iterator.");for(var Y0=null,V0=null,F0=A,B0=A=0,f0=null,I1=null,o1=v.next();F0!==null&&!o1.done;B0++,o1=v.next()){F0.index>B0?(f0=F0,F0=null):f0=F0.sibling;var z8=P(w,F0,o1.value,x);if(z8===null){F0===null&&(F0=f0);break}I1=$0(w,z8,o1.value,I1),z&&F0&&z8.alternate===null&&$(w,F0),A=J(z8,A,B0),V0===null?Y0=z8:V0.sibling=z8,V0=z8,F0=f0}if(o1.done)return X(w,F0),d0&&D7(w,B0),Y0;if(F0===null){for(;!o1.done;B0++,o1=v.next())F0=I(w,o1.value,x),F0!==null&&(I1=$0(w,F0,o1.value,I1),A=J(F0,A,B0),V0===null?Y0=F0:V0.sibling=F0,V0=F0);return d0&&D7(w,B0),Y0}for(F0=Y(F0);!o1.done;B0++,o1=v.next())f0=f(F0,w,B0,o1.value,x),f0!==null&&(I1=$0(w,f0,o1.value,I1),z&&f0.alternate!==null&&F0.delete(f0.key===null?B0:f0.key),A=J(f0,A,B0),V0===null?Y0=f0:V0.sibling=f0,V0=f0);return z&&F0.forEach(function(NF){return $(w,NF)}),d0&&D7(w,B0),Y0}function i0(w,A,v,x){if(typeof v==="object"&&v!==null&&v.type===M$&&v.key===null&&(fY(v,null,w),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case O7:var Y0=F4(v._debugInfo);z:{for(var V0=v.key;A!==null;){if(A.key===V0){if(V0=v.type,V0===M$){if(A.tag===7){X(w,A.sibling),x=Z(A,v.props.children),x.return=w,x._debugOwner=v._owner,x._debugInfo=h0,fY(v,x,w),w=x;break z}}else if(A.elementType===V0||CK(A,v)||typeof V0==="object"&&V0!==null&&V0.$$typeof===J6&&F8(V0)===A.type){X(w,A.sibling),x=Z(A,v.props),jX(x,v),x.return=w,x._debugOwner=v._owner,x._debugInfo=h0,w=x;break z}X(w,A);break}else $(w,A);A=A.sibling}v.type===M$?(x=_z(v.props.children,w.mode,x,v.key),x.return=w,x._debugOwner=w,x._debugTask=w._debugTask,x._debugInfo=h0,fY(v,x,w),w=x):(x=IY(v,w.mode,x),jX(x,v),x.return=w,x._debugInfo=h0,w=x)}return w=Q(w),h0=Y0,w;case b$:z:{Y0=v;for(v=Y0.key;A!==null;){if(A.key===v)if(A.tag===4&&A.stateNode.containerInfo===Y0.containerInfo&&A.stateNode.implementation===Y0.implementation){X(w,A.sibling),x=Z(A,Y0.children||[]),x.return=w,w=x;break z}else{X(w,A);break}else $(w,A);A=A.sibling}x=UQ(Y0,w.mode,x),x.return=w,w=x}return Q(w);case J6:return Y0=F4(v._debugInfo),v=F8(v),w=i0(w,A,v,x),h0=Y0,w}if(Z4(v))return Y0=F4(v._debugInfo),w=Z0(w,A,v,x),h0=Y0,w;if(L0(v)){if(Y0=F4(v._debugInfo),V0=L0(v),typeof V0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var F0=V0.call(v);if(F0===v){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(F0)!=="[object Generator]")QO||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."),QO=!0}else v.entries!==V0||cq||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cq=!0);return w=b1(w,A,F0,x),h0=Y0,w}if(typeof v.then==="function")return Y0=F4(v._debugInfo),w=i0(w,A,mY(v),x),h0=Y0,w;if(v.$$typeof===L7)return i0(w,A,CY(w,v),x);hY(w,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return Y0=""+v,A!==null&&A.tag===6?(X(w,A.sibling),x=Z(A,Y0),x.return=w,w=x):(X(w,A),x=BQ(Y0,w.mode,x),x.return=w,x._debugOwner=w,x._debugTask=w._debugTask,x._debugInfo=h0,w=x),Q(w);return typeof v==="function"&&pY(w,v),typeof v==="symbol"&&jY(w,v),X(w,A)}return function(w,A,v,x){var Y0=h0;h0=null;try{f5=0;var V0=i0(w,A,v,x);return g$=null,V0}catch(I1){if(I1===x$||I1===oZ)throw I1;var F0=b(29,I1,null,w.mode);F0.lanes=x,F0.return=w;var B0=F0._debugInfo=h0;if(F0._debugOwner=w._debugOwner,F0._debugTask=w._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){F0._debugOwner=B0[f0],F0._debugTask=B0[f0].debugTask;break}}return F0}finally{h0=Y0}}}function X_(z,$){var X=Z4(z);return z=!X&&typeof L0(z)==="function",X||z?(X=X?"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>",X,$,X),!1):!0}function vQ(z){z.updateQueue={baseState:z.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function TQ(z,$){z=z.updateQueue,$.updateQueue===z&&($.updateQueue={baseState:z.baseState,firstBaseUpdate:z.firstBaseUpdate,lastBaseUpdate:z.lastBaseUpdate,shared:z.shared,callbacks:null})}function N8(z){return{lane:z,tag:_O,payload:null,callback:null,next:null}}function b8(z,$,X){var Y=z.updateQueue;if(Y===null)return null;if(Y=Y.shared,aq===Y&&!OO){var Z=E(z);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.
|
|
89
|
+
|
|
90
|
+
Please update the following component: %s`,Z),OO=!0}if((n0&Q4)!==L4)return Z=Y.pending,Z===null?$.next=$:($.next=Z.next,Z.next=$),Y.pending=$,$=TY(z),yK(z,null,X),$;return vY(z,Y,$,X),TY(z)}function xX(z,$,X){if($=$.updateQueue,$!==null&&($=$.shared,(X&4194048)!==0)){var Y=$.lanes;Y&=z.pendingLanes,X|=Y,$.lanes=X,NX(z,X)}}function xY(z,$){var{updateQueue:X,alternate:Y}=z;if(Y!==null&&(Y=Y.updateQueue,X===Y)){var Z=null,J=null;if(X=X.firstBaseUpdate,X!==null){do{var Q={lane:X.lane,tag:X.tag,payload:X.payload,callback:null,next:null};J===null?Z=J=Q:J=J.next=Q,X=X.next}while(X!==null);J===null?Z=J=$:J=J.next=$}else Z=J=$;X={baseState:Y.baseState,firstBaseUpdate:Z,lastBaseUpdate:J,shared:Y.shared,callbacks:Y.callbacks},z.updateQueue=X;return}z=X.lastBaseUpdate,z===null?X.firstBaseUpdate=$:z.next=$,X.lastBaseUpdate=$}function gX(){if(iq){var z=j$;if(z!==null)throw z}}function uX(z,$,X,Y){iq=!1;var Z=z.updateQueue;g8=!1,aq=Z.shared;var{firstBaseUpdate:J,lastBaseUpdate:Q}=Z,q=Z.shared.pending;if(q!==null){Z.shared.pending=null;var K=q,B=K.next;K.next=null,Q===null?J=B:Q.next=B,Q=K;var T=z.alternate;T!==null&&(T=T.updateQueue,q=T.lastBaseUpdate,q!==Q&&(q===null?T.firstBaseUpdate=B:q.next=B,T.lastBaseUpdate=K))}if(J!==null){var I=Z.baseState;Q=0,T=B=K=null,q=J;do{var P=q.lane&-536870913,f=P!==q.lane;if(f?(p0&P)===P:(Y&P)===P){P!==0&&P===kz&&(iq=!0),T!==null&&(T=T.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});z:{P=z;var $0=q,Z0=$,b1=X;switch($0.tag){case BO:if($0=$0.payload,typeof $0==="function"){h$=!0;var i0=$0.call(b1,I,Z0);if(P.mode&V4){s0(!0);try{$0.call(b1,I,Z0)}finally{s0(!1)}}h$=!1,I=i0;break z}I=$0;break z;case dq:P.flags=P.flags&-65537|128;case _O:if(i0=$0.payload,typeof i0==="function"){if(h$=!0,$0=i0.call(b1,I,Z0),P.mode&V4){s0(!0);try{i0.call(b1,I,Z0)}finally{s0(!1)}}h$=!1}else $0=i0;if($0===null||$0===void 0)break z;I=u0({},I,$0);break z;case UO:g8=!0}}P=q.callback,P!==null&&(z.flags|=64,f&&(z.flags|=8192),f=Z.callbacks,f===null?Z.callbacks=[P]:f.push(P))}else f={lane:P,tag:q.tag,payload:q.payload,callback:q.callback,next:null},T===null?(B=T=f,K=I):T=T.next=f,Q|=P;if(q=q.next,q===null)if(q=Z.shared.pending,q===null)break;else f=q,q=f.next,f.next=null,Z.lastBaseUpdate=f,Z.shared.pending=null}while(1);T===null&&(K=I),Z.baseState=K,Z.firstBaseUpdate=B,Z.lastBaseUpdate=T,J===null&&(Z.shared.lanes=0),c8|=Q,z.lanes=Q,z.memoizedState=I}aq=null}function Y_(z,$){if(typeof z!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+z);z.call($)}function UW(z,$){var X=z.shared.hiddenCallbacks;if(X!==null)for(z.shared.hiddenCallbacks=null,z=0;z<X.length;z++)Y_(X[z],$)}function Z_(z,$){var X=z.callbacks;if(X!==null)for(z.callbacks=null,z=0;z<X.length;z++)Y_(X[z],$)}function J_(z,$){var X=v7;J0(nZ,X,z),J0(u$,$,z),v7=X|$.baseLanes}function IQ(z){J0(nZ,v7,z),J0(u$,u$.current,z)}function kQ(z){v7=nZ.current,u(u$,z),u(nZ,z)}function M8(z){var $=z.alternate;J0(i1,i1.current&l$,z),J0(H6,z,z),P6===null&&($===null||u$.current!==null?P6=z:$.memoizedState!==null&&(P6=z))}function VQ(z){J0(i1,i1.current,z),J0(H6,z,z),P6===null&&(P6=z)}function Q_(z){z.tag===22?(J0(i1,i1.current,z),J0(H6,z,z),P6===null&&(P6=z)):w8(z)}function w8(z){J0(i1,i1.current,z),J0(H6,H6.current,z)}function X6(z){u(H6,z),P6===z&&(P6=null),u(i1,z)}function gY(z){for(var $=z;$!==null;){if($.tag===13){var X=$.memoizedState;if(X!==null&&(X=X.dehydrated,X===null||uG(X)||lG(X)))return $}else if($.tag===19&&($.memoizedProps.revealOrder==="forwards"||$.memoizedProps.revealOrder==="backwards"||$.memoizedProps.revealOrder==="unstable_legacy-backwards"||$.memoizedProps.revealOrder==="together")){if(($.flags&128)!==0)return $}else if($.child!==null){$.child.return=$,$=$.child;continue}if($===z)break;for(;$.sibling===null;){if($.return===null||$.return===z)return null;$=$.return}$.sibling.return=$.return,$=$.sibling}return null}function g0(){var z=m;v6===null?v6=[z]:v6.push(z)}function r(){var z=m;if(v6!==null&&(r7++,v6[r7]!==z)){var $=E(k0);if(!LO.has($)&&(LO.add($),v6!==null)){for(var X="",Y=0;Y<=r7;Y++){var Z=v6[Y],J=Y===r7?z:Z;for(Z=Y+1+". "+Z;30>Z.length;)Z+=" ";Z+=J+`
|
|
91
|
+
`,X+=Z}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
|
|
92
|
+
|
|
93
|
+
Previous render Next render
|
|
94
|
+
------------------------------------------------------
|
|
95
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
96
|
+
`,$,X)}}}function G$(z){z===void 0||z===null||Z4(z)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",m,typeof z)}function uY(){var z=E(k0);RO.has(z)||(RO.add(z),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",z))}function l1(){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:
|
|
97
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
|
+
2. You might be breaking the Rules of Hooks
|
|
99
|
+
3. You might have more than one copy of React in the same app
|
|
100
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function yQ(z,$){if(p5)return!1;if($===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.",m),!1;z.length!==$.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
|
+
|
|
102
|
+
Previous: %s
|
|
103
|
+
Incoming: %s`,m,"["+$.join(", ")+"]","["+z.join(", ")+"]");for(var X=0;X<$.length&&X<z.length;X++)if(!h4(z[X],$[X]))return!1;return!0}function CQ(z,$,X,Y,Z,J){if(i7=J,k0=$,v6=z!==null?z._debugHookTypes:null,r7=-1,p5=z!==null&&z.type!==$.type,Object.prototype.toString.call(X)==="[object AsyncFunction]"||Object.prototype.toString.call(X)==="[object AsyncGeneratorFunction]")J=E(k0),oq.has(J)||(oq.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+">"));$.memoizedState=null,$.updateQueue=null,$.lanes=0,h.H=z!==null&&z.memoizedState!==null?nq:v6!==null?FO:rq,Sz=J=($.mode&V4)!==T0;var Q=gq(X,Y,Z);if(Sz=!1,d$&&(Q=DQ($,X,Y,Z)),J){s0(!0);try{Q=DQ($,X,Y,Z)}finally{s0(!1)}}return G_(z,$),Q}function G_(z,$){$._debugHookTypes=v6,$.dependencies===null?o7!==null&&($.dependencies={lanes:0,firstContext:null,_debugThenableState:o7}):$.dependencies._debugThenableState=o7,h.H=j5;var X=W1!==null&&W1.next!==null;if(i7=0,v6=m=s1=W1=k0=null,r7=-1,z!==null&&(z.flags&65011712)!==($.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),sZ=!1,h5=0,o7=null,X)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");z===null||e1||(z=z.dependencies,z!==null&&yY(z)&&(e1=!0)),E5?(E5=!1,z=!0):z=!1,z&&($=E($)||"Unknown",WO.has($)||oq.has($)||(WO.add($),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 DQ(z,$,X,Y){k0=z;var Z=0;do{if(d$&&(o7=null),h5=0,d$=!1,Z>=tR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(Z+=1,p5=!1,s1=W1=null,z.updateQueue!=null){var J=z.updateQueue;J.lastEffect=null,J.events=null,J.stores=null,J.memoCache!=null&&(J.memoCache.index=0)}r7=-1,h.H=NO,J=gq($,X,Y)}while(d$);return J}function OW(){var z=h.H,$=z.useState()[0];return $=typeof $.then==="function"?lX($):$,z=z.useState()[0],(W1!==null?W1.memoizedState:null)!==z&&(k0.flags|=1024),$}function SQ(){var z=eZ!==0;return eZ=0,z}function EQ(z,$,X){$.updateQueue=z.updateQueue,$.flags=($.mode&j6)!==T0?$.flags&-402655237:$.flags&-2053,z.lanes&=~X}function fQ(z){if(sZ){for(z=z.memoizedState;z!==null;){var $=z.queue;$!==null&&($.pending=null),z=z.next}sZ=!1}i7=0,v6=s1=W1=k0=null,r7=-1,m=null,d$=!1,h5=eZ=0,o7=null}function S4(){var z={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return s1===null?k0.memoizedState=s1=z:s1=s1.next=z,s1}function K1(){if(W1===null){var z=k0.alternate;z=z!==null?z.memoizedState:null}else z=W1.next;var $=s1===null?k0.memoizedState:s1.next;if($!==null)s1=$,W1=z;else{if(z===null){if(k0.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.")}W1=z,z={memoizedState:W1.memoizedState,baseState:W1.baseState,baseQueue:W1.baseQueue,queue:W1.queue,next:null},s1===null?k0.memoizedState=s1=z:s1=s1.next=z}return s1}function lY(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lX(z){var $=h5;return h5+=1,o7===null&&(o7=iK()),z=rK(o7,z,$),$=k0,(s1===null?$.memoizedState:s1.next)===null&&($=$.alternate,h.H=$!==null&&$.memoizedState!==null?nq:rq),z}function P8(z){if(z!==null&&typeof z==="object"){if(typeof z.then==="function")return lX(z);if(z.$$typeof===L7)return C1(z)}throw Error("An unsupported type was passed to use(): "+String(z))}function Wz(z){var $=null,X=k0.updateQueue;if(X!==null&&($=X.memoCache),$==null){var Y=k0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&($={data:Y.data.map(function(Z){return Z.slice()}),index:0})))}if($==null&&($={data:[],index:0}),X===null&&(X=lY(),k0.updateQueue=X),X.memoCache=$,X=$.data[$.index],X===void 0||p5)for(X=$.data[$.index]=Array(z),Y=0;Y<z;Y++)X[Y]=V3;else X.length!==z&&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.",X.length,z);return $.index++,X}function f6(z,$){return typeof $==="function"?$(z):$}function mQ(z,$,X){var Y=S4();if(X!==void 0){var Z=X($);if(Sz){s0(!0);try{X($)}finally{s0(!1)}}}else Z=$;return Y.memoizedState=Y.baseState=Z,z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:z,lastRenderedState:Z},Y.queue=z,z=z.dispatch=NW.bind(null,k0,z),[Y.memoizedState,z]}function q$(z){var $=K1();return hQ($,W1,z)}function hQ(z,$,X){var Y=z.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=X;var Z=z.baseQueue,J=Y.pending;if(J!==null){if(Z!==null){var Q=Z.next;Z.next=J.next,J.next=Q}$.baseQueue!==Z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),$.baseQueue=Z=J,Y.pending=null}if(J=z.baseState,Z===null)z.memoizedState=J;else{$=Z.next;var q=Q=null,K=null,B=$,T=!1;do{var I=B.lane&-536870913;if(I!==B.lane?(p0&I)===I:(i7&I)===I){var P=B.revertLane;if(P===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),I===kz&&(T=!0);else if((i7&P)===P){B=B.next,P===kz&&(T=!0);continue}else I={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},K===null?(q=K=I,Q=J):K=K.next=I,k0.lanes|=P,c8|=P;I=B.action,Sz&&X(J,I),J=B.hasEagerState?B.eagerState:X(J,I)}else P={lane:I,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},K===null?(q=K=P,Q=J):K=K.next=P,k0.lanes|=I,c8|=I;B=B.next}while(B!==null&&B!==$);if(K===null?Q=J:K.next=q,!h4(J,z.memoizedState)&&(e1=!0,T&&(X=j$,X!==null)))throw X;z.memoizedState=J,z.baseState=Q,z.baseQueue=K,Y.lastRenderedState=J}return Z===null&&(Y.lanes=0),[z.memoizedState,Y.dispatch]}function cX(z){var $=K1(),X=$.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=z;var{dispatch:Y,pending:Z}=X,J=$.memoizedState;if(Z!==null){X.pending=null;var Q=Z=Z.next;do J=z(J,Q.action),Q=Q.next;while(Q!==Z);h4(J,$.memoizedState)||(e1=!0),$.memoizedState=J,$.baseQueue===null&&($.baseState=J),X.lastRenderedState=J}return[J,Y]}function pQ(z,$,X){var Y=k0,Z=S4();if(d0){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var J=X();c$||J===X()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),c$=!0)}else{if(J=$(),c$||(X=$(),h4(J,X)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c$=!0)),R1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(p0&127)!==0||q_(Y,$,J)}return Z.memoizedState=J,X={value:J,getSnapshot:$},Z.queue=X,iY(K_.bind(null,Y,X,z),[z]),Y.flags|=2048,K$(A6|x4,{destroy:void 0},H_.bind(null,Y,X,J,$),null),J}function cY(z,$,X){var Y=k0,Z=K1(),J=d0;if(J){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");X=X()}else if(X=$(),!c$){var Q=$();h4(X,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c$=!0)}if(Q=!h4((W1||Z).memoizedState,X))Z.memoizedState=X,e1=!0;Z=Z.queue;var q=K_.bind(null,Y,Z,z);if(c4(2048,x4,q,[z]),Z.getSnapshot!==$||Q||s1!==null&&s1.memoizedState.tag&A6){if(Y.flags|=2048,K$(A6|x4,{destroy:void 0},H_.bind(null,Y,Z,X,$),null),R1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");J||(i7&127)!==0||q_(Y,$,X)}return X}function q_(z,$,X){z.flags|=16384,z={getSnapshot:$,value:X},$=k0.updateQueue,$===null?($=lY(),k0.updateQueue=$,$.stores=[z]):(X=$.stores,X===null?$.stores=[z]:X.push(z))}function H_(z,$,X,Y){$.value=X,$.getSnapshot=Y,__($)&&B_(z)}function K_(z,$,X){return X(function(){__($)&&($7(2,"updateSyncExternalStore()",z),B_(z))})}function __(z){var $=z.getSnapshot;z=z.value;try{var X=$();return!h4(z,X)}catch(Y){return!0}}function B_(z){var $=I4(z,2);$!==null&&p1($,z,2)}function jQ(z){var $=S4();if(typeof z==="function"){var X=z;if(z=X(),Sz){s0(!0);try{X()}finally{s0(!1)}}}return $.memoizedState=$.baseState=z,$.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f6,lastRenderedState:z},$}function xQ(z){z=jQ(z);var $=z.queue,X=C_.bind(null,k0,$);return $.dispatch=X,[z.memoizedState,X]}function gQ(z){var $=S4();$.memoizedState=$.baseState=z;var X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return $.queue=X,$=$G.bind(null,k0,!0,X),X.dispatch=$,[z,$]}function U_(z,$){var X=K1();return O_(X,W1,z,$)}function O_(z,$,X,Y){return z.baseState=X,hQ(z,W1,typeof Y==="function"?Y:f6)}function L_(z,$){var X=K1();if(W1!==null)return O_(X,W1,z,$);return X.baseState=z,[z,X.queue.dispatch]}function LW(z,$,X,Y,Z){if(eY(z))throw Error("Cannot update form state while rendering.");if(z=$.action,z!==null){var J={payload:Z,action:z,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Q){J.listeners.push(Q)}};h.T!==null?X(!0):J.isTransition=!1,Y(J),X=$.pending,X===null?(J.next=$.pending=J,W_($,J)):(J.next=X.next,$.pending=X.next=J)}}function W_(z,$){var{action:X,payload:Y}=$,Z=z.state;if($.isTransition){var J=h.T,Q={};Q._updatedFibers=new Set,h.T=Q;try{var q=X(Z,Y),K=h.S;K!==null&&K(Q,q),R_(z,$,q)}catch(B){uQ(z,$,B)}finally{J!==null&&Q.types!==null&&(J.types!==null&&J.types!==Q.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=Q.types),h.T=J,J===null&&Q._updatedFibers&&(z=Q._updatedFibers.size,Q._updatedFibers.clear(),10<z&&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{Q=X(Z,Y),R_(z,$,Q)}catch(B){uQ(z,$,B)}}function R_(z,$,X){X!==null&&typeof X==="object"&&typeof X.then==="function"?(h.asyncTransitions++,X.then(sY,sY),X.then(function(Y){F_(z,$,Y)},function(Y){return uQ(z,$,Y)}),$.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.")):F_(z,$,X)}function F_(z,$,X){$.status="fulfilled",$.value=X,N_($),z.state=X,$=z.pending,$!==null&&(X=$.next,X===$?z.pending=null:(X=X.next,$.next=X,W_(z,X)))}function uQ(z,$,X){var Y=z.pending;if(z.pending=null,Y!==null){Y=Y.next;do $.status="rejected",$.reason=X,N_($),$=$.next;while($!==Y)}z.action=null}function N_(z){z=z.listeners;for(var $=0;$<z.length;$++)(0,z[$])()}function b_(z,$){return $}function H$(z,$){if(d0){var X=R1.formState;if(X!==null){z:{var Y=k0;if(d0){if(T1){$:{var Z=T1;for(var J=M6;Z.nodeType!==8;){if(!J){Z=null;break $}if(Z=Z6(Z.nextSibling),Z===null){Z=null;break $}}J=Z.data,Z=J===NH||J===ZL?Z:null}if(Z){T1=Z6(Z.nextSibling),Y=Z.data===NH;break z}}W8(Y)}Y=!1}Y&&($=X[0])}}return X=S4(),X.memoizedState=X.baseState=$,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b_,lastRenderedState:$},X.queue=Y,X=C_.bind(null,k0,Y),Y.dispatch=X,Y=jQ(!1),J=$G.bind(null,k0,!1,Y.queue),Y=S4(),Z={state:$,dispatch:null,action:z,pending:null},Y.queue=Z,X=LW.bind(null,k0,Z,J,X),Z.dispatch=X,Y.memoizedState=z,[$,X,!1]}function dY(z){var $=K1();return M_($,W1,z)}function M_(z,$,X){if($=hQ(z,$,b_)[0],z=q$(f6)[0],typeof $==="object"&&$!==null&&typeof $.then==="function")try{var Y=lX($)}catch(Q){if(Q===x$)throw oZ;throw Q}else Y=$;$=K1();var Z=$.queue,J=Z.dispatch;return X!==$.memoizedState&&(k0.flags|=2048,K$(A6|x4,{destroy:void 0},WW.bind(null,Z,X),null)),[Y,J,z]}function WW(z,$){z.action=$}function aY(z){var $=K1(),X=W1;if(X!==null)return M_($,X,z);K1(),$=$.memoizedState,X=K1();var Y=X.queue.dispatch;return X.memoizedState=z,[$,Y,!1]}function K$(z,$,X,Y){return z={tag:z,create:X,deps:Y,inst:$,next:null},$=k0.updateQueue,$===null&&($=lY(),k0.updateQueue=$),X=$.lastEffect,X===null?$.lastEffect=z.next=z:(Y=X.next,X.next=z,z.next=Y,$.lastEffect=z),z}function lQ(z){var $=S4();return z={current:z},$.memoizedState=z}function Rz(z,$,X,Y){var Z=S4();k0.flags|=z,Z.memoizedState=K$(A6|$,{destroy:void 0},X,Y===void 0?null:Y)}function c4(z,$,X,Y){var Z=K1();Y=Y===void 0?null:Y;var J=Z.memoizedState.inst;W1!==null&&Y!==null&&yQ(Y,W1.memoizedState.deps)?Z.memoizedState=K$($,J,X,Y):(k0.flags|=z,Z.memoizedState=K$(A6|$,J,X,Y))}function iY(z,$){(k0.mode&j6)!==T0?Rz(276826112,x4,z,$):Rz(8390656,x4,z,$)}function RW(z){k0.flags|=4;var $=k0.updateQueue;if($===null)$=lY(),k0.updateQueue=$,$.events=[z];else{var X=$.events;X===null?$.events=[z]:X.push(z)}}function cQ(z){var $=S4(),X={impl:z};return $.memoizedState=X,function(){if((n0&Q4)!==L4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function oY(z){var $=K1().memoizedState;return RW({ref:$,nextImpl:z}),function(){if((n0&Q4)!==L4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function dQ(z,$){var X=4194308;return(k0.mode&j6)!==T0&&(X|=134217728),Rz(X,K6,z,$)}function w_(z,$){if(typeof $==="function"){z=z();var X=$(z);return function(){typeof X==="function"?X():$(null)}}if($!==null&&$!==void 0)return $.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($).join(", ")+"}"),z=z(),$.current=z,function(){$.current=null}}function aQ(z,$,X){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),X=X!==null&&X!==void 0?X.concat([z]):null;var Y=4194308;(k0.mode&j6)!==T0&&(Y|=134217728),Rz(Y,K6,w_.bind(null,$,z),X)}function rY(z,$,X){typeof $!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",$!==null?typeof $:"null"),X=X!==null&&X!==void 0?X.concat([z]):null,c4(4,K6,w_.bind(null,$,z),X)}function iQ(z,$){return S4().memoizedState=[z,$===void 0?null:$],z}function nY(z,$){var X=K1();$=$===void 0?null:$;var Y=X.memoizedState;if($!==null&&yQ($,Y[1]))return Y[0];return X.memoizedState=[z,$],z}function oQ(z,$){var X=S4();$=$===void 0?null:$;var Y=z();if(Sz){s0(!0);try{z()}finally{s0(!1)}}return X.memoizedState=[Y,$],Y}function tY(z,$){var X=K1();$=$===void 0?null:$;var Y=X.memoizedState;if($!==null&&yQ($,Y[1]))return Y[0];if(Y=z(),Sz){s0(!0);try{z()}finally{s0(!1)}}return X.memoizedState=[Y,$],Y}function rQ(z,$){var X=S4();return nQ(X,z,$)}function P_(z,$){var X=K1();return v_(X,W1.memoizedState,z,$)}function A_(z,$){var X=K1();return W1===null?nQ(X,z,$):v_(X,W1.memoizedState,z,$)}function nQ(z,$,X){if(X===void 0||(i7&1073741824)!==0&&(p0&261930)===0)return z.memoizedState=$;return z.memoizedState=X,z=TB(),k0.lanes|=z,c8|=z,X}function v_(z,$,X,Y){if(h4(X,$))return X;if(u$.current!==null)return z=nQ(z,X,Y),h4(z,$)||(e1=!0),z;if((i7&42)===0||(i7&1073741824)!==0&&(p0&261930)===0)return e1=!0,z.memoizedState=X;return z=TB(),k0.lanes|=z,c8|=z,$}function sY(){h.asyncTransitions--}function T_(z,$,X,Y,Z){var J=H1.p;H1.p=J!==0&&J<p6?J:p6;var Q=h.T,q={};q._updatedFibers=new Set,h.T=q,$G(z,!1,$,X);try{var K=Z(),B=h.S;if(B!==null&&B(q,K),K!==null&&typeof K==="object"&&typeof K.then==="function"){h.asyncTransitions++,K.then(sY,sY);var T=BW(K,Y);dX(z,$,T,Y6(z))}else dX(z,$,Y,Y6(z))}catch(I){dX(z,$,{then:function(){},status:"rejected",reason:I},Y6(z))}finally{H1.p=J,Q!==null&&q.types!==null&&(Q.types!==null&&Q.types!==q.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."),Q.types=q.types),h.T=Q,Q===null&&q._updatedFibers&&(z=q._updatedFibers.size,q._updatedFibers.clear(),10<z&&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 tQ(z,$,X,Y){if(z.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var Z=I_(z).queue;KW(z),T_(z,Z,$,cz,X===null?C:function(){return k_(z),X(Y)})}function I_(z){var $=z.memoizedState;if($!==null)return $;$={memoizedState:cz,baseState:cz,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:f6,lastRenderedState:cz},next:null};var X={};return $.next={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:f6,lastRenderedState:X},next:null},z.memoizedState=$,z=z.alternate,z!==null&&(z.memoizedState=$),$}function k_(z){h.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var $=I_(z);$.next===null&&($=z.alternate.memoizedState),dX(z,$.next.queue,{},Y6(z))}function sQ(){var z=jQ(!1);return z=T_.bind(null,k0,z.queue,!0,!1),S4().memoizedState=z,[!1,z]}function V_(){var z=q$(f6)[0],$=K1().memoizedState;return[typeof z==="boolean"?z:lX(z),$]}function y_(){var z=cX(f6)[0],$=K1().memoizedState;return[typeof z==="boolean"?z:lX(z),$]}function Fz(){return C1(zY)}function eQ(){var z=S4(),$=R1.identifierPrefix;if(d0){var X=u7,Y=g7;X=(Y&~(1<<32-E4(Y)-1)).toString(32)+X,$="_"+$+"R_"+X,X=eZ++,0<X&&($+="H"+X.toString(32)),$+="_"}else X=nR++,$="_"+$+"r_"+X.toString(32)+"_";return z.memoizedState=$}function zG(){return S4().memoizedState=FW.bind(null,k0)}function FW(z,$){for(var X=z.return;X!==null;){switch(X.tag){case 24:case 3:var Y=Y6(X),Z=N8(Y),J=b8(X,Z,Y);J!==null&&($7(Y,"refresh()",z),p1(J,X,Y),xX(J,X,Y)),z=bQ(),$!==null&&$!==void 0&&J!==null&&console.error("The seed argument is not enabled outside experimental channels."),Z.payload={cache:z};return}X=X.return}}function NW(z,$,X){var Y=arguments;typeof Y[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()."),Y=Y6(z);var Z={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};eY(z)?D_($,Z):(Z=qQ(z,$,Z,Y),Z!==null&&($7(Y,"dispatch()",z),p1(Z,z,Y),S_(Z,$,Y)))}function C_(z,$,X){var Y=arguments;typeof Y[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()."),Y=Y6(z),dX(z,$,X,Y)&&$7(Y,"setState()",z)}function dX(z,$,X,Y){var Z={lane:Y,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};if(eY(z))D_($,Z);else{var J=z.alternate;if(z.lanes===0&&(J===null||J.lanes===0)&&(J=$.lastRenderedReducer,J!==null)){var Q=h.H;h.H=g6;try{var q=$.lastRenderedState,K=J(q,X);if(Z.hasEagerState=!0,Z.eagerState=K,h4(K,q))return vY(z,$,Z,0),R1===null&&AY(),!1}catch(B){}finally{h.H=Q}}if(X=qQ(z,$,Z,Y),X!==null)return p1(X,z,Y),S_(X,$,Y),!0}return!1}function $G(z,$,X,Y){if(h.T===null&&kz===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."),Y={lane:2,revertLane:CG(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},eY(z)){if($)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else $=qQ(z,X,Y,2),$!==null&&($7(2,"setOptimistic()",z),p1($,z,2))}function eY(z){var $=z.alternate;return z===k0||$!==null&&$===k0}function D_(z,$){d$=sZ=!0;var X=z.pending;X===null?$.next=$:($.next=X.next,X.next=$),z.pending=$}function S_(z,$,X){if((X&4194048)!==0){var Y=$.lanes;Y&=z.pendingLanes,X|=Y,$.lanes=X,NX(z,X)}}function XG(z){if(z!==null&&typeof z!=="function"){var $=String(z);yO.has($)||(yO.add($),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",z))}}function YG(z,$,X,Y){var Z=z.memoizedState,J=X(Y,Z);if(z.mode&V4){s0(!0);try{J=X(Y,Z)}finally{s0(!1)}}J===void 0&&($=g($)||"Component",TO.has($)||(TO.add($),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",$))),Z=J===null||J===void 0?Z:u0({},Z,J),z.memoizedState=Z,z.lanes===0&&(z.updateQueue.baseState=Z)}function E_(z,$,X,Y,Z,J,Q){var q=z.stateNode;if(typeof q.shouldComponentUpdate==="function"){if(X=q.shouldComponentUpdate(Y,J,Q),z.mode&V4){s0(!0);try{X=q.shouldComponentUpdate(Y,J,Q)}finally{s0(!1)}}return X===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",g($)||"Component"),X}return $.prototype&&$.prototype.isPureReactComponent?!SX(X,Y)||!SX(Z,J):!0}function f_(z,$,X,Y){var Z=$.state;typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps(X,Y),typeof $.UNSAFE_componentWillReceiveProps==="function"&&$.UNSAFE_componentWillReceiveProps(X,Y),$.state!==Z&&(z=E(z)||"Component",MO.has(z)||(MO.add(z),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",z)),tq.enqueueReplaceState($,$.state,null))}function Nz(z,$){var X=$;if("ref"in $){X={};for(var Y in $)Y!=="ref"&&(X[Y]=$[Y])}if(z=z.defaultProps){X===$&&(X=u0({},X));for(var Z in z)X[Z]===void 0&&(X[Z]=z[Z])}return X}function m_(z){kq(z),console.warn(`%s
|
|
104
|
+
|
|
105
|
+
%s
|
|
106
|
+
`,a$?"An error occurred in the <"+a$+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
107
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function h_(z){var $=a$?"The above error occurred in the <"+a$+"> component.":"The above error occurred in one of your React components.",X="React will try to recreate this component tree from scratch using the error boundary you provided, "+((sq||"Anonymous")+".");if(typeof z==="object"&&z!==null&&typeof z.environmentName==="string"){var Y=z.environmentName;z=[`%o
|
|
108
|
+
|
|
109
|
+
%s
|
|
110
|
+
|
|
111
|
+
%s
|
|
112
|
+
`,z,$,X].slice(0),typeof z[0]==="string"?z.splice(0,1,BL+" "+z[0],UL,AJ+Y+AJ,OL):z.splice(0,0,BL,UL,AJ+Y+AJ,OL),z.unshift(console),Y=RF.apply(console.error,z),Y()}else console.error(`%o
|
|
113
|
+
|
|
114
|
+
%s
|
|
115
|
+
|
|
116
|
+
%s
|
|
117
|
+
`,z,$,X)}function p_(z){kq(z)}function zZ(z,$){try{a$=$.source?E($.source):null,sq=null;var X=$.value;if(h.actQueue!==null)h.thrownErrors.push(X);else{var Y=z.onUncaughtError;Y(X,{componentStack:$.stack})}}catch(Z){setTimeout(function(){throw Z})}}function j_(z,$,X){try{a$=X.source?E(X.source):null,sq=E($);var Y=z.onCaughtError;Y(X.value,{componentStack:X.stack,errorBoundary:$.tag===1?$.stateNode:null})}catch(Z){setTimeout(function(){throw Z})}}function ZG(z,$,X){return X=N8(X),X.tag=dq,X.payload={element:null},X.callback=function(){o($.source,zZ,z,$)},X}function JG(z){return z=N8(z),z.tag=dq,z}function QG(z,$,X,Y){var Z=X.type.getDerivedStateFromError;if(typeof Z==="function"){var J=Y.value;z.payload=function(){return Z(J)},z.callback=function(){DK(X),o(Y.source,j_,$,X,Y)}}var Q=X.stateNode;Q!==null&&typeof Q.componentDidCatch==="function"&&(z.callback=function(){DK(X),o(Y.source,j_,$,X,Y),typeof Z!=="function"&&(a8===null?a8=new Set([this]):a8.add(this)),aR(this,Y),typeof Z==="function"||(X.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.",E(X)||"Unknown")})}function bW(z,$,X,Y,Z){if(X.flags|=32768,F7&&eX(z,Z),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if($=X.alternate,$!==null&&Q$($,X,Z,!0),d0&&(M7=!0),X=H6.current,X!==null){switch(X.tag){case 31:case 13:return P6===null?HZ():X.alternate===null&&m1===t7&&(m1=XJ),X.flags&=-257,X.flags|=65536,X.lanes=Z,Y===rZ?X.flags|=16384:($=X.updateQueue,$===null?X.updateQueue=new Set([Y]):$.add(Y),IG(z,Y,Z)),!1;case 22:return X.flags|=65536,Y===rZ?X.flags|=16384:($=X.updateQueue,$===null?($={transitions:null,markerInstances:null,retryQueue:new Set([Y])},X.updateQueue=$):(X=$.retryQueue,X===null?$.retryQueue=new Set([Y]):X.add(Y)),IG(z,Y,Z)),!1}throw Error("Unexpected Suspense handler tag ("+X.tag+"). This is a bug in React.")}return IG(z,Y,Z),HZ(),!1}if(d0)return M7=!0,$=H6.current,$!==null?(($.flags&65536)===0&&($.flags|=256),$.flags|=65536,$.lanes=Z,Y!==Eq&&fX(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),X))):(Y!==Eq&&fX(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),X)),z=z.current.alternate,z.flags|=65536,Z&=-Z,z.lanes|=Z,Y=e4(Y,X),Z=ZG(z.stateNode,Y,Z),xY(z,Z),m1!==u8&&(m1=Ez)),!1;var J=e4(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),X);if(d5===null?d5=[J]:d5.push(J),m1!==u8&&(m1=Ez),$===null)return!0;Y=e4(Y,X),X=$;do{switch(X.tag){case 3:return X.flags|=65536,z=Z&-Z,X.lanes|=z,z=ZG(X.stateNode,Y,z),xY(X,z),!1;case 1:if($=X.type,J=X.stateNode,(X.flags&128)===0&&(typeof $.getDerivedStateFromError==="function"||J!==null&&typeof J.componentDidCatch==="function"&&(a8===null||!a8.has(J))))return X.flags|=65536,Z&=-Z,X.lanes|=Z,Z=JG(Z),QG(Z,z,X,Y),xY(X,Z),!1}X=X.return}while(X!==null);return!1}function N4(z,$,X,Y){$.child=z===null?KO($,null,X,Y):Dz($,z.child,X,Y)}function x_(z,$,X,Y,Z){X=X.render;var J=$.ref;if("ref"in Y){var Q={};for(var q in Y)q!=="ref"&&(Q[q]=Y[q])}else Q=Y;if(Oz($),Y=CQ(z,$,X,Q,J,Z),q=SQ(),z!==null&&!e1)return EQ(z,$,Z),f7(z,$,Z);return d0&&q&&OQ($),$.flags|=1,N4(z,$,Y,Z),$.child}function g_(z,$,X,Y,Z){if(z===null){var J=X.type;if(typeof J==="function"&&!KQ(J)&&J.defaultProps===void 0&&X.compare===null)return X=Kz(J),$.tag=15,$.type=X,qG($,J),u_(z,$,X,Y,Z);return z=_Q(X.type,null,Y,$,$.mode,Z),z.ref=$.ref,z.return=$,$.child=z}if(J=z.child,!OG(z,Z)){var Q=J.memoizedProps;if(X=X.compare,X=X!==null?X:SX,X(Q,Y)&&z.ref===$.ref)return f7(z,$,Z)}return $.flags|=1,z=C7(J,Y),z.ref=$.ref,z.return=$,$.child=z}function u_(z,$,X,Y,Z){if(z!==null){var J=z.memoizedProps;if(SX(J,Y)&&z.ref===$.ref&&$.type===z.type)if(e1=!1,$.pendingProps=Y=J,OG(z,Z))(z.flags&131072)!==0&&(e1=!0);else return $.lanes=z.lanes,f7(z,$,Z)}return GG(z,$,X,Y,Z)}function l_(z,$,X,Y){var Z=Y.children,J=z!==null?z.memoizedState:null;if(z===null&&$.stateNode===null&&($.stateNode={_visibility:b5,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if(($.flags&128)!==0){if(J=J!==null?J.baseLanes|X:X,z!==null){Y=$.child=z.child;for(Z=0;Y!==null;)Z=Z|Y.lanes|Y.childLanes,Y=Y.sibling;Y=Z&~J}else Y=0,$.child=null;return c_(z,$,J,X,Y)}if((X&536870912)!==0)$.memoizedState={baseLanes:0,cachePool:null},z!==null&&EY($,J!==null?J.cachePool:null),J!==null?J_($,J):IQ($),Q_($);else return Y=$.lanes=536870912,c_(z,$,J!==null?J.baseLanes|X:X,X,Y)}else J!==null?(EY($,J.cachePool),J_($,J),w8($),$.memoizedState=null):(z!==null&&EY($,null),IQ($),w8($));return N4(z,$,Z,X),$.child}function aX(z,$){return z!==null&&z.tag===22||$.stateNode!==null||($.stateNode={_visibility:b5,_pendingMarkers:null,_retryCache:null,_transitions:null}),$.sibling}function c_(z,$,X,Y,Z){var J=PQ();return J=J===null?null:{parent:n1._currentValue,pool:J},$.memoizedState={baseLanes:X,cachePool:J},z!==null&&EY($,null),IQ($),Q_($),z!==null&&Q$(z,$,Y,!0),$.childLanes=Z,null}function $Z(z,$){var X=$.hidden;return X!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
118
|
+
- <Activity %s>
|
|
119
|
+
+ <Activity %s>`,X===!0?"hidden":X===!1?"hidden={false}":"hidden={...}",X?'mode="hidden"':'mode="visible"'),$=YZ({mode:$.mode,children:$.children},z.mode),$.ref=z.ref,z.child=$,$.return=z,$}function d_(z,$,X){return Dz($,z.child,null,X),z=$Z($,$.pendingProps),z.flags|=2,X6($),$.memoizedState=null,z}function MW(z,$,X){var Y=$.pendingProps,Z=($.flags&128)!==0;if($.flags&=-129,z===null){if(d0){if(Y.mode==="hidden")return z=$Z($,Y),$.lanes=536870912,aX(null,z);if(VQ($),(z=T1)?(X=WU(z,M6),X=X!==null&&X.data===xz?X:null,X!==null&&(Y={dehydrated:X,treeContext:hK(),retryLane:536870912,hydrationErrors:null},$.memoizedState=Y,Y=fK(X),Y.return=$,$.child=Y,w4=$,T1=null)):X=null,X===null)throw kY($,z),W8($);return $.lanes=536870912,null}return $Z($,Y)}var J=z.memoizedState;if(J!==null){var Q=J.dehydrated;if(VQ($),Z)if($.flags&256)$.flags&=-257,$=d_(z,$,X);else if($.memoizedState!==null)$.child=z.child,$.flags|=128,$=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(jK(),(X&536870912)!==0&&qZ($),e1||Q$(z,$,X,!1),Z=(X&z.childLanes)!==0,e1||Z){if(Y=R1,Y!==null&&(Q=q8(Y,X),Q!==0&&Q!==J.retryLane))throw J.retryLane=Q,I4(z,Q),p1(Y,z,Q),eq;HZ(),$=d_(z,$,X)}else z=J.treeContext,T1=Z6(Q.nextSibling),w4=$,d0=!0,f8=null,M7=!1,q6=null,M6=!1,z!==null&&pK($,z),$=$Z($,Y),$.flags|=4096;return $}return J=z.child,Y={mode:Y.mode,children:Y.children},(X&536870912)!==0&&(X&z.lanes)!==0&&qZ($),z=C7(J,Y),z.ref=$.ref,$.child=z,z.return=$,z}function XZ(z,$){var X=$.ref;if(X===null)z!==null&&z.ref!==null&&($.flags|=4194816);else{if(typeof X!=="function"&&typeof X!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(z===null||z.ref!==X)$.flags|=4194816}}function GG(z,$,X,Y,Z){if(X.prototype&&typeof X.prototype.render==="function"){var J=g(X)||"Unknown";CO[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),CO[J]=!0)}if($.mode&V4&&x6.recordLegacyContextWarning($,null),z===null&&(qG($,$.type),X.contextTypes&&(J=g(X)||"Unknown",SO[J]||(SO[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)))),Oz($),X=CQ(z,$,X,Y,void 0,Z),Y=SQ(),z!==null&&!e1)return EQ(z,$,Z),f7(z,$,Z);return d0&&Y&&OQ($),$.flags|=1,N4(z,$,X,Z),$.child}function a_(z,$,X,Y,Z,J){if(Oz($),r7=-1,p5=z!==null&&z.type!==$.type,$.updateQueue=null,X=DQ($,Y,X,Z),G_(z,$),Y=SQ(),z!==null&&!e1)return EQ(z,$,J),f7(z,$,J);return d0&&Y&&OQ($),$.flags|=1,N4(z,$,X,J),$.child}function i_(z,$,X,Y,Z){switch(W($)){case!1:var J=$.stateNode,Q=new $.type($.memoizedProps,J.context).state;J.updater.enqueueSetState(J,Q,null);break;case!0:$.flags|=128,$.flags|=65536,J=Error("Simulated error coming from DevTools");var q=Z&-Z;if($.lanes|=q,Q=R1,Q===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");q=JG(q),QG(q,Q,$,e4(J,$)),xY($,q)}if(Oz($),$.stateNode===null){if(Q=E8,J=X.contextType,"contextType"in X&&J!==null&&(J===void 0||J.$$typeof!==L7)&&!VO.has(X)&&(VO.add(X),q=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===zq?" 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",g(X)||"Component",q)),typeof J==="object"&&J!==null&&(Q=C1(J)),J=new X(Y,Q),$.mode&V4){s0(!0);try{J=new X(Y,Q)}finally{s0(!1)}}if(Q=$.memoizedState=J.state!==null&&J.state!==void 0?J.state:null,J.updater=tq,$.stateNode=J,J._reactInternals=$,J._reactInternalInstance=bO,typeof X.getDerivedStateFromProps==="function"&&Q===null&&(Q=g(X)||"Component",wO.has(Q)||(wO.add(Q),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.",Q,J.state===null?"null":"undefined",Q))),typeof X.getDerivedStateFromProps==="function"||typeof J.getSnapshotBeforeUpdate==="function"){var K=q=Q=null;if(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0?Q="componentWillMount":typeof J.UNSAFE_componentWillMount==="function"&&(Q="UNSAFE_componentWillMount"),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0?q="componentWillReceiveProps":typeof J.UNSAFE_componentWillReceiveProps==="function"&&(q="UNSAFE_componentWillReceiveProps"),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0?K="componentWillUpdate":typeof J.UNSAFE_componentWillUpdate==="function"&&(K="UNSAFE_componentWillUpdate"),Q!==null||q!==null||K!==null){J=g(X)||"Component";var B=typeof X.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";AO.has(J)||(AO.add(J),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
120
|
+
|
|
121
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
122
|
+
|
|
123
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
124
|
+
https://react.dev/link/unsafe-component-lifecycles`,J,B,Q!==null?`
|
|
125
|
+
`+Q:"",q!==null?`
|
|
126
|
+
`+q:"",K!==null?`
|
|
127
|
+
`+K:""))}}J=$.stateNode,Q=g(X)||"Component",J.render||(X.prototype&&typeof X.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Q):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Q)),!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?",Q),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.",Q),J.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Q),X.childContextTypes&&!kO.has(X)&&(kO.add(X),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Q)),X.contextTypes&&!IO.has(X)&&(IO.add(X),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)",Q)),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.",Q),X.prototype&&X.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.",g(X)||"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()?",Q),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().",Q),typeof J.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Q),typeof J.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Q),q=J.props!==Y,J.props!==void 0&&q&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Q),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.",Q,Q),typeof J.getSnapshotBeforeUpdate!=="function"||typeof J.componentDidUpdate==="function"||PO.has(X)||(PO.add(X),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",g(X))),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.",Q),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.",Q),typeof X.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Q),(q=J.state)&&(typeof q!=="object"||Z4(q))&&console.error("%s.state: must be set to an object or null",Q),typeof J.getChildContext==="function"&&typeof X.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Q),J=$.stateNode,J.props=Y,J.state=$.memoizedState,J.refs={},vQ($),Q=X.contextType,J.context=typeof Q==="object"&&Q!==null?C1(Q):E8,J.state===Y&&(Q=g(X)||"Component",vO.has(Q)||(vO.add(Q),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.",Q))),$.mode&V4&&x6.recordLegacyContextWarning($,J),x6.recordUnsafeLifecycleWarnings($,J),J.state=$.memoizedState,Q=X.getDerivedStateFromProps,typeof Q==="function"&&(YG($,X,Q,Y),J.state=$.memoizedState),typeof X.getDerivedStateFromProps==="function"||typeof J.getSnapshotBeforeUpdate==="function"||typeof J.UNSAFE_componentWillMount!=="function"&&typeof J.componentWillMount!=="function"||(Q=J.state,typeof J.componentWillMount==="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount==="function"&&J.UNSAFE_componentWillMount(),Q!==J.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",E($)||"Component"),tq.enqueueReplaceState(J,J.state,null)),uX($,Y,J,Z),gX(),J.state=$.memoizedState),typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&j6)!==T0&&($.flags|=134217728),J=!0}else if(z===null){J=$.stateNode;var T=$.memoizedProps;q=Nz(X,T),J.props=q;var I=J.context;K=X.contextType,Q=E8,typeof K==="object"&&K!==null&&(Q=C1(K)),B=X.getDerivedStateFromProps,K=typeof B==="function"||typeof J.getSnapshotBeforeUpdate==="function",T=$.pendingProps!==T,K||typeof J.UNSAFE_componentWillReceiveProps!=="function"&&typeof J.componentWillReceiveProps!=="function"||(T||I!==Q)&&f_($,J,Y,Q),g8=!1;var P=$.memoizedState;J.state=P,uX($,Y,J,Z),gX(),I=$.memoizedState,T||P!==I||g8?(typeof B==="function"&&(YG($,X,B,Y),I=$.memoizedState),(q=g8||E_($,X,q,Y,P,I,Q))?(K||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"&&($.flags|=4194308),($.mode&j6)!==T0&&($.flags|=134217728)):(typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&j6)!==T0&&($.flags|=134217728),$.memoizedProps=Y,$.memoizedState=I),J.props=Y,J.state=I,J.context=Q,J=q):(typeof J.componentDidMount==="function"&&($.flags|=4194308),($.mode&j6)!==T0&&($.flags|=134217728),J=!1)}else{J=$.stateNode,TQ(z,$),Q=$.memoizedProps,K=Nz(X,Q),J.props=K,B=$.pendingProps,P=J.context,I=X.contextType,q=E8,typeof I==="object"&&I!==null&&(q=C1(I)),T=X.getDerivedStateFromProps,(I=typeof T==="function"||typeof J.getSnapshotBeforeUpdate==="function")||typeof J.UNSAFE_componentWillReceiveProps!=="function"&&typeof J.componentWillReceiveProps!=="function"||(Q!==B||P!==q)&&f_($,J,Y,q),g8=!1,P=$.memoizedState,J.state=P,uX($,Y,J,Z),gX();var f=$.memoizedState;Q!==B||P!==f||g8||z!==null&&z.dependencies!==null&&yY(z.dependencies)?(typeof T==="function"&&(YG($,X,T,Y),f=$.memoizedState),(K=g8||E_($,X,K,Y,P,f,q)||z!==null&&z.dependencies!==null&&yY(z.dependencies))?(I||typeof J.UNSAFE_componentWillUpdate!=="function"&&typeof J.componentWillUpdate!=="function"||(typeof J.componentWillUpdate==="function"&&J.componentWillUpdate(Y,f,q),typeof J.UNSAFE_componentWillUpdate==="function"&&J.UNSAFE_componentWillUpdate(Y,f,q)),typeof J.componentDidUpdate==="function"&&($.flags|=4),typeof J.getSnapshotBeforeUpdate==="function"&&($.flags|=1024)):(typeof J.componentDidUpdate!=="function"||Q===z.memoizedProps&&P===z.memoizedState||($.flags|=4),typeof J.getSnapshotBeforeUpdate!=="function"||Q===z.memoizedProps&&P===z.memoizedState||($.flags|=1024),$.memoizedProps=Y,$.memoizedState=f),J.props=Y,J.state=f,J.context=q,J=K):(typeof J.componentDidUpdate!=="function"||Q===z.memoizedProps&&P===z.memoizedState||($.flags|=4),typeof J.getSnapshotBeforeUpdate!=="function"||Q===z.memoizedProps&&P===z.memoizedState||($.flags|=1024),J=!1)}if(q=J,XZ(z,$),Q=($.flags&128)!==0,q||Q){if(q=$.stateNode,a1($),Q&&typeof X.getDerivedStateFromError!=="function")X=null,p4=-1;else if(X=n9(q),$.mode&V4){s0(!0);try{n9(q)}finally{s0(!1)}}$.flags|=1,z!==null&&Q?($.child=Dz($,z.child,null,Z),$.child=Dz($,null,X,Z)):N4(z,$,X,Z),$.memoizedState=q.state,z=$.child}else z=f7(z,$,Z);return Z=$.stateNode,J&&Z.props!==Y&&(i$||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",E($)||"a component"),i$=!0),z}function o_(z,$,X,Y){return Uz(),$.flags|=256,N4(z,$,X,Y),$.child}function qG(z,$){$&&$.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
128
|
+
%s.childContextTypes = ...`,$.displayName||$.name||"Component"),typeof $.getDerivedStateFromProps==="function"&&(z=g($)||"Unknown",EO[z]||(console.error("%s: Function components do not support getDerivedStateFromProps.",z),EO[z]=!0)),typeof $.contextType==="object"&&$.contextType!==null&&($=g($)||"Unknown",DO[$]||(console.error("%s: Function components do not support contextType.",$),DO[$]=!0))}function HG(z){return{baseLanes:z,cachePool:aK()}}function KG(z,$,X){return z=z!==null?z.childLanes&~X:0,$&&(z|=r4),z}function r_(z,$,X){var Y,Z=$.pendingProps;N($)&&($.flags|=128);var J=!1,Q=($.flags&128)!==0;if((Y=Q)||(Y=z!==null&&z.memoizedState===null?!1:(i1.current&m5)!==0),Y&&(J=!0,$.flags&=-129),Y=($.flags&32)!==0,$.flags&=-33,z===null){if(d0){if(J?M8($):w8($),(z=T1)?(X=WU(z,M6),X=X!==null&&X.data!==xz?X:null,X!==null&&(Y={dehydrated:X,treeContext:hK(),retryLane:536870912,hydrationErrors:null},$.memoizedState=Y,Y=fK(X),Y.return=$,$.child=Y,w4=$,T1=null)):X=null,X===null)throw kY($,z),W8($);return lG(X)?$.lanes=32:$.lanes=536870912,null}var q=Z.children;if(Z=Z.fallback,J){w8($);var K=$.mode;return q=YZ({mode:"hidden",children:q},K),Z=_z(Z,K,X,null),q.return=$,Z.return=$,q.sibling=Z,$.child=q,Z=$.child,Z.memoizedState=HG(X),Z.childLanes=KG(z,Y,X),$.memoizedState=zH,aX(null,Z)}return M8($),_G($,q)}var B=z.memoizedState;if(B!==null){var T=B.dehydrated;if(T!==null){if(Q)$.flags&256?(M8($),$.flags&=-257,$=BG(z,$,X)):$.memoizedState!==null?(w8($),$.child=z.child,$.flags|=128,$=null):(w8($),q=Z.fallback,K=$.mode,Z=YZ({mode:"visible",children:Z.children},K),q=_z(q,K,X,null),q.flags|=2,Z.return=$,q.return=$,Z.sibling=q,$.child=Z,Dz($,z.child,null,X),Z=$.child,Z.memoizedState=HG(X),Z.childLanes=KG(z,Y,X),$.memoizedState=zH,$=aX(null,Z));else if(M8($),jK(),(X&536870912)!==0&&qZ($),lG(T)){if(Y=T.nextSibling&&T.nextSibling.dataset,Y){q=Y.dgst;var I=Y.msg;K=Y.stck;var P=Y.cstck}J=I,Y=q,Z=K,T=P,q=J,K=T,q=q?Error(q):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),q.stack=Z||"",q.digest=Y,Y=K===void 0?null:K,Z={value:q,source:null,stack:Y},typeof Y==="string"&&Sq.set(q,Z),fX(Z),$=BG(z,$,X)}else if(e1||Q$(z,$,X,!1),Y=(X&z.childLanes)!==0,e1||Y){if(Y=R1,Y!==null&&(Z=q8(Y,X),Z!==0&&Z!==B.retryLane))throw B.retryLane=Z,I4(z,Z),p1(Y,z,Z),eq;uG(T)||HZ(),$=BG(z,$,X)}else uG(T)?($.flags|=192,$.child=z.child,$=null):(z=B.treeContext,T1=Z6(T.nextSibling),w4=$,d0=!0,f8=null,M7=!1,q6=null,M6=!1,z!==null&&pK($,z),$=_G($,Z.children),$.flags|=4096);return $}}if(J)return w8($),q=Z.fallback,K=$.mode,P=z.child,T=P.sibling,Z=C7(P,{mode:"hidden",children:Z.children}),Z.subtreeFlags=P.subtreeFlags&65011712,T!==null?q=C7(T,q):(q=_z(q,K,X,null),q.flags|=2),q.return=$,Z.return=$,Z.sibling=q,$.child=Z,aX(null,Z),Z=$.child,q=z.child.memoizedState,q===null?q=HG(X):(K=q.cachePool,K!==null?(P=n1._currentValue,K=K.parent!==P?{parent:P,pool:P}:K):K=aK(),q={baseLanes:q.baseLanes|X,cachePool:K}),Z.memoizedState=q,Z.childLanes=KG(z,Y,X),$.memoizedState=zH,aX(z.child,Z);return B!==null&&(X&62914560)===X&&(X&z.lanes)!==0&&qZ($),M8($),X=z.child,z=X.sibling,X=C7(X,{mode:"visible",children:Z.children}),X.return=$,X.sibling=null,z!==null&&(Y=$.deletions,Y===null?($.deletions=[z],$.flags|=16):Y.push(z)),$.child=X,$.memoizedState=null,X}function _G(z,$){return $=YZ({mode:"visible",children:$},z.mode),$.return=z,z.child=$}function YZ(z,$){return z=b(22,z,null,$),z.lanes=0,z}function BG(z,$,X){return Dz($,z.child,null,X),z=_G($,$.pendingProps.children),z.flags|=2,$.memoizedState=null,z}function n_(z,$,X){z.lanes|=$;var Y=z.alternate;Y!==null&&(Y.lanes|=$),FQ(z.return,$,X)}function UG(z,$,X,Y,Z,J){var Q=z.memoizedState;Q===null?z.memoizedState={isBackwards:$,rendering:null,renderingStartTime:0,last:Y,tail:X,tailMode:Z,treeForkCount:J}:(Q.isBackwards=$,Q.rendering=null,Q.renderingStartTime=0,Q.last=Y,Q.tail=X,Q.tailMode=Z,Q.treeForkCount=J)}function t_(z,$,X){var Y=$.pendingProps,Z=Y.revealOrder,J=Y.tail,Q=Y.children,q=i1.current;if((Y=(q&m5)!==0)?(q=q&l$|m5,$.flags|=128):q&=l$,J0(i1,q,$),q=Z==null?"null":Z,Z!=="forwards"&&Z!=="unstable_legacy-backwards"&&Z!=="together"&&Z!=="independent"&&!fO[q])if(fO[q]=!0,Z==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(Z==="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 Z==="string")switch(Z.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.',Z,Z.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.',Z,Z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',Z);if(q=J==null?"null":J,!$J[q])if(J==null){if(Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")$J[q]=!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"?($J[q]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',J)):Z!=="forwards"&&Z!=="backwards"&&Z!=="unstable_legacy-backwards"&&($J[q]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',J));z:if((Z==="forwards"||Z==="backwards"||Z==="unstable_legacy-backwards")&&Q!==void 0&&Q!==null&&Q!==!1)if(Z4(Q)){for(q=0;q<Q.length;q++)if(!X_(Q[q],q))break z}else if(q=L0(Q),typeof q==="function"){if(q=q.call(Q))for(var K=q.next(),B=0;!K.done;K=q.next()){if(!X_(K.value,B))break z;B++}}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?',Z);if(N4(z,$,Q,X),d0?(L8(),Q=M5):Q=0,!Y&&z!==null&&(z.flags&128)!==0)z:for(z=$.child;z!==null;){if(z.tag===13)z.memoizedState!==null&&n_(z,X,$);else if(z.tag===19)n_(z,X,$);else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===$)break z;for(;z.sibling===null;){if(z.return===null||z.return===$)break z;z=z.return}z.sibling.return=z.return,z=z.sibling}switch(Z){case"forwards":X=$.child;for(Z=null;X!==null;)z=X.alternate,z!==null&&gY(z)===null&&(Z=X),X=X.sibling;X=Z,X===null?(Z=$.child,$.child=null):(Z=X.sibling,X.sibling=null),UG($,!1,Z,X,J,Q);break;case"backwards":case"unstable_legacy-backwards":X=null,Z=$.child;for($.child=null;Z!==null;){if(z=Z.alternate,z!==null&&gY(z)===null){$.child=Z;break}z=Z.sibling,Z.sibling=X,X=Z,Z=z}UG($,!0,X,null,J,Q);break;case"together":UG($,!1,null,null,void 0,Q);break;default:$.memoizedState=null}return $.child}function f7(z,$,X){if(z!==null&&($.dependencies=z.dependencies),p4=-1,c8|=$.lanes,(X&$.childLanes)===0)if(z!==null){if(Q$(z,$,X,!1),(X&$.childLanes)===0)return null}else return null;if(z!==null&&$.child!==z.child)throw Error("Resuming work not yet implemented.");if($.child!==null){z=$.child,X=C7(z,z.pendingProps),$.child=X;for(X.return=$;z.sibling!==null;)z=z.sibling,X=X.sibling=C7(z,z.pendingProps),X.return=$;X.sibling=null}return $.child}function OG(z,$){if((z.lanes&$)!==0)return!0;return z=z.dependencies,z!==null&&yY(z)?!0:!1}function wW(z,$,X){switch($.tag){case 3:t($,$.stateNode.containerInfo),R8($,n1,z.memoizedState.cache),Uz();break;case 27:case 5:V($);break;case 4:t($,$.stateNode.containerInfo);break;case 10:R8($,$.type,$.memoizedProps.value);break;case 12:(X&$.childLanes)!==0&&($.flags|=4),$.flags|=2048;var Y=$.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if($.memoizedState!==null)return $.flags|=128,VQ($),null;break;case 13:if(Y=$.memoizedState,Y!==null){if(Y.dehydrated!==null)return M8($),$.flags|=128,null;if((X&$.child.childLanes)!==0)return r_(z,$,X);return M8($),z=f7(z,$,X),z!==null?z.sibling:null}M8($);break;case 19:var Z=(z.flags&128)!==0;if(Y=(X&$.childLanes)!==0,Y||(Q$(z,$,X,!1),Y=(X&$.childLanes)!==0),Z){if(Y)return t_(z,$,X);$.flags|=128}if(Z=$.memoizedState,Z!==null&&(Z.rendering=null,Z.tail=null,Z.lastEffect=null),J0(i1,i1.current,$),Y)break;else return null;case 22:return $.lanes=0,l_(z,$,X,$.pendingProps);case 24:R8($,n1,z.memoizedState.cache)}return f7(z,$,X)}function LG(z,$,X){if($._debugNeedsRemount&&z!==null){X=_Q($.type,$.key,$.pendingProps,$._debugOwner||null,$.mode,$.lanes),X._debugStack=$._debugStack,X._debugTask=$._debugTask;var Y=$.return;if(Y===null)throw Error("Cannot swap the root fiber.");if(z.alternate=null,$.alternate=null,X.index=$.index,X.sibling=$.sibling,X.return=$.return,X.ref=$.ref,X._debugInfo=$._debugInfo,$===Y.child)Y.child=X;else{var Z=Y.child;if(Z===null)throw Error("Expected parent to have a child.");for(;Z.sibling!==$;)if(Z=Z.sibling,Z===null)throw Error("Expected to find the previous sibling.");Z.sibling=X}return $=Y.deletions,$===null?(Y.deletions=[z],Y.flags|=16):$.push(z),X.flags|=2,X}if(z!==null)if(z.memoizedProps!==$.pendingProps||$.type!==z.type)e1=!0;else{if(!OG(z,X)&&($.flags&128)===0)return e1=!1,wW(z,$,X);e1=(z.flags&131072)!==0?!0:!1}else{if(e1=!1,Y=d0)L8(),Y=($.flags&1048576)!==0;Y&&(Y=$.index,L8(),mK($,M5,Y))}switch($.lanes=0,$.tag){case 16:z:if(Y=$.pendingProps,z=F8($.elementType),$.type=z,typeof z==="function")KQ(z)?(Y=Nz(z,Y),$.tag=1,$.type=z=Kz(z),$=i_(null,$,z,Y,X)):($.tag=0,qG($,z),$.type=z=Kz(z),$=GG(null,$,z,Y,X));else{if(z!==void 0&&z!==null){if(Z=z.$$typeof,Z===q5){$.tag=11,$.type=z=HQ(z),$=x_(null,$,z,Y,X);break z}else if(Z===PZ){$.tag=14,$=g_(null,$,z,Y,X);break z}}throw $="",z!==null&&typeof z==="object"&&z.$$typeof===J6&&($=" Did you wrap a component in React.lazy() more than once?"),X=g(z)||z,Error("Element type is invalid. Received a promise that resolves to: "+X+". Lazy element type must resolve to a class or function."+$)}return $;case 0:return GG(z,$,$.type,$.pendingProps,X);case 1:return Y=$.type,Z=Nz(Y,$.pendingProps),i_(z,$,Y,Z,X);case 3:z:{if(t($,$.stateNode.containerInfo),z===null)throw Error("Should have a current fiber. This is a bug in React.");Y=$.pendingProps;var J=$.memoizedState;Z=J.element,TQ(z,$),uX($,Y,null,X);var Q=$.memoizedState;if(Y=Q.cache,R8($,n1,Y),Y!==J.cache&&NQ($,[n1],X,!0),gX(),Y=Q.element,J.isDehydrated)if(J={element:Y,isDehydrated:!1,cache:Q.cache},$.updateQueue.baseState=J,$.memoizedState=J,$.flags&256){$=o_(z,$,Y,X);break z}else if(Y!==Z){Z=e4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),$),fX(Z),$=o_(z,$,Y,X);break z}else{switch(z=$.stateNode.containerInfo,z.nodeType){case 9:z=z.body;break;default:z=z.nodeName==="HTML"?z.ownerDocument.body:z}T1=Z6(z.firstChild),w4=$,d0=!0,f8=null,M7=!1,q6=null,M6=!0,X=KO($,null,Y,X);for($.child=X;X;)X.flags=X.flags&-3|4096,X=X.sibling}else{if(Uz(),Y===Z){$=f7(z,$,X);break z}N4(z,$,Y,X)}$=$.child}return $;case 26:return XZ(z,$),z===null?(X=wU($.type,null,$.pendingProps,null))?$.memoizedState=X:d0||(X=$.type,z=$.pendingProps,Y=M0(k8.current),Y=UZ(Y).createElement(X),Y[M4]=$,Y[f4]=z,b4(Y,X,z),u1(Y),$.stateNode=Y):$.memoizedState=wU($.type,z.memoizedProps,$.pendingProps,z.memoizedState),null;case 27:return V($),z===null&&d0&&(Y=M0(k8.current),Z=H0(),Y=$.stateNode=bU($.type,$.pendingProps,Y,Z,!1),M7||(Z=qU(Y,$.type,$.pendingProps,Z),Z!==null&&(Bz($,0).serverProps=Z)),w4=$,M6=!0,Z=T1,T8($.type)?(PH=Z,T1=Z6(Y.firstChild)):T1=Z),N4(z,$,$.pendingProps.children,X),XZ(z,$),z===null&&($.flags|=4194304),$.child;case 5:return z===null&&d0&&(J=H0(),Y=$Q($.type,J.ancestorInfo),Z=T1,(Q=!Z)||(Q=K3(Z,$.type,$.pendingProps,M6),Q!==null?($.stateNode=Q,M7||(J=qU(Q,$.type,$.pendingProps,J),J!==null&&(Bz($,0).serverProps=J)),w4=$,T1=Z6(Q.firstChild),M6=!1,J=!0):J=!1,Q=!J),Q&&(Y&&kY($,Z),W8($))),V($),Z=$.type,J=$.pendingProps,Q=z!==null?z.memoizedProps:null,Y=J.children,xG(Z,J)?Y=null:Q!==null&&xG(Z,Q)&&($.flags|=32),$.memoizedState!==null&&(Z=CQ(z,$,OW,null,null,X),zY._currentValue=Z),XZ(z,$),N4(z,$,Y,X),$.child;case 6:return z===null&&d0&&(X=$.pendingProps,z=H0(),Y=z.ancestorInfo.current,X=Y!=null?FY(X,Y.tag,z.ancestorInfo.implicitRootScope):!0,z=T1,(Y=!z)||(Y=_3(z,$.pendingProps,M6),Y!==null?($.stateNode=Y,w4=$,T1=null,Y=!0):Y=!1,Y=!Y),Y&&(X&&kY($,z),W8($))),null;case 13:return r_(z,$,X);case 4:return t($,$.stateNode.containerInfo),Y=$.pendingProps,z===null?$.child=Dz($,null,Y,X):N4(z,$,Y,X),$.child;case 11:return x_(z,$,$.type,$.pendingProps,X);case 7:return N4(z,$,$.pendingProps,X),$.child;case 8:return N4(z,$,$.pendingProps.children,X),$.child;case 12:return $.flags|=4,$.flags|=2048,Y=$.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,N4(z,$,$.pendingProps.children,X),$.child;case 10:return Y=$.type,Z=$.pendingProps,J=Z.value,"value"in Z||mO||(mO=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),R8($,Y,J),N4(z,$,Z.children,X),$.child;case 9:return Z=$.type._context,Y=$.pendingProps.children,typeof Y!=="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."),Oz($),Z=C1(Z),Y=gq(Y,Z,void 0),$.flags|=1,N4(z,$,Y,X),$.child;case 14:return g_(z,$,$.type,$.pendingProps,X);case 15:return u_(z,$,$.type,$.pendingProps,X);case 19:return t_(z,$,X);case 31:return MW(z,$,X);case 22:return l_(z,$,X,$.pendingProps);case 24:return Oz($),Y=C1(n1),z===null?(Z=PQ(),Z===null&&(Z=R1,J=bQ(),Z.pooledCache=J,Lz(J),J!==null&&(Z.pooledCacheLanes|=X),Z=J),$.memoizedState={parent:Y,cache:Z},vQ($),R8($,n1,Z)):((z.lanes&X)!==0&&(TQ(z,$),uX($,null,null,X),gX()),Z=z.memoizedState,J=$.memoizedState,Z.parent!==Y?(Z={parent:Y,cache:Y},$.memoizedState=Z,$.lanes===0&&($.memoizedState=$.updateQueue.baseState=Z),R8($,n1,Y)):(Y=J.cache,R8($,n1,Y),Y!==Z.cache&&NQ($,[n1],X,!0))),N4(z,$,$.pendingProps.children,X),$.child;case 29:throw $.pendingProps}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function m7(z){z.flags|=4}function WG(z,$,X,Y,Z){if($=(z.mode&uR)!==T0)$=!1;if($){if(z.flags|=16777216,(Z&335544128)===Z)if(z.stateNode.complete)z.flags|=8192;else if(yB())z.flags|=8192;else throw Cz=rZ,lq}else z.flags&=-16777217}function s_(z,$){if($.type!=="stylesheet"||($.state.loading&T6)!==lz)z.flags&=-16777217;else if(z.flags|=16777216,!IU($))if(yB())z.flags|=8192;else throw Cz=rZ,lq}function ZZ(z,$){$!==null&&(z.flags|=4),z.flags&16384&&($=z.tag!==22?r6():536870912,z.lanes|=$,hz|=$)}function iX(z,$){if(!d0)switch(z.tailMode){case"hidden":$=z.tail;for(var X=null;$!==null;)$.alternate!==null&&(X=$),$=$.sibling;X===null?z.tail=null:X.sibling=null;break;case"collapsed":X=z.tail;for(var Y=null;X!==null;)X.alternate!==null&&(Y=X),X=X.sibling;Y===null?$||z.tail===null?z.tail=null:z.tail.sibling=null:Y.sibling=null}}function N1(z){var $=z.alternate!==null&&z.alternate.child===z.child,X=0,Y=0;if($)if((z.mode&m0)!==T0){for(var{selfBaseDuration:Z,child:J}=z;J!==null;)X|=J.lanes|J.childLanes,Y|=J.subtreeFlags&65011712,Y|=J.flags&65011712,Z+=J.treeBaseDuration,J=J.sibling;z.treeBaseDuration=Z}else for(Z=z.child;Z!==null;)X|=Z.lanes|Z.childLanes,Y|=Z.subtreeFlags&65011712,Y|=Z.flags&65011712,Z.return=z,Z=Z.sibling;else if((z.mode&m0)!==T0){Z=z.actualDuration,J=z.selfBaseDuration;for(var Q=z.child;Q!==null;)X|=Q.lanes|Q.childLanes,Y|=Q.subtreeFlags,Y|=Q.flags,Z+=Q.actualDuration,J+=Q.treeBaseDuration,Q=Q.sibling;z.actualDuration=Z,z.treeBaseDuration=J}else for(Z=z.child;Z!==null;)X|=Z.lanes|Z.childLanes,Y|=Z.subtreeFlags,Y|=Z.flags,Z.return=z,Z=Z.sibling;return z.subtreeFlags|=Y,z.childLanes=X,$}function PW(z,$,X){var Y=$.pendingProps;switch(LQ($),$.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return N1($),null;case 1:return N1($),null;case 3:if(X=$.stateNode,Y=null,z!==null&&(Y=z.memoizedState.cache),$.memoizedState.cache!==Y&&($.flags|=2048),S7(n1,$),G0($),X.pendingContext&&(X.context=X.pendingContext,X.pendingContext=null),z===null||z.child===null)J$($)?(RQ(),m7($)):z===null||z.memoizedState.isDehydrated&&($.flags&256)===0||($.flags|=1024,WQ());return N1($),null;case 26:var{type:Z,memoizedState:J}=$;return z===null?(m7($),J!==null?(N1($),s_($,J)):(N1($),WG($,Z,null,Y,X))):J?J!==z.memoizedState?(m7($),N1($),s_($,J)):(N1($),$.flags&=-16777217):(z=z.memoizedProps,z!==Y&&m7($),N1($),WG($,Z,z,Y,X)),null;case 27:if(i($),X=M0(k8.current),Z=$.type,z!==null&&$.stateNode!=null)z.memoizedProps!==Y&&m7($);else{if(!Y){if($.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 N1($),null}z=H0(),J$($)?xK($,z):(z=bU(Z,Y,X,z,!0),$.stateNode=z,m7($))}return N1($),null;case 5:if(i($),Z=$.type,z!==null&&$.stateNode!=null)z.memoizedProps!==Y&&m7($);else{if(!Y){if($.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 N1($),null}var Q=H0();if(J$($))xK($,Q);else{switch(J=M0(k8.current),$Q(Z,Q.ancestorInfo),Q=Q.context,J=UZ(J),Q){case $X:J=J.createElementNS(v$,Z);break;case MJ:J=J.createElementNS(yZ,Z);break;default:switch(Z){case"svg":J=J.createElementNS(v$,Z);break;case"math":J=J.createElementNS(yZ,Z);break;case"script":J=J.createElement("div"),J.innerHTML="<script></script>",J=J.removeChild(J.firstChild);break;case"select":J=typeof Y.is==="string"?J.createElement("select",{is:Y.is}):J.createElement("select"),Y.multiple?J.multiple=!0:Y.size&&(J.size=Y.size);break;default:J=typeof Y.is==="string"?J.createElement(Z,{is:Y.is}):J.createElement(Z),Z.indexOf("-")===-1&&(Z!==Z.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",Z),Object.prototype.toString.call(J)!=="[object HTMLUnknownElement]"||h6.call(QL,Z)||(QL[Z]=!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.",Z)))}}J[M4]=$,J[f4]=Y;z:for(Q=$.child;Q!==null;){if(Q.tag===5||Q.tag===6)J.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.tag!==27&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===$)break z;for(;Q.sibling===null;){if(Q.return===null||Q.return===$)break z;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}$.stateNode=J;z:switch(b4(J,Z,Y),Z){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break z;case"img":Y=!0;break z;default:Y=!1}Y&&m7($)}}return N1($),WG($,$.type,z===null?null:z.memoizedProps,$.pendingProps,X),null;case 6:if(z&&$.stateNode!=null)z.memoizedProps!==Y&&m7($);else{if(typeof Y!=="string"&&$.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(z=M0(k8.current),X=H0(),J$($)){if(z=$.stateNode,X=$.memoizedProps,Z=!M7,Y=null,J=w4,J!==null)switch(J.tag){case 3:Z&&(Z=FU(z,X,Y),Z!==null&&(Bz($,0).serverProps=Z));break;case 27:case 5:Y=J.memoizedProps,Z&&(Z=FU(z,X,Y),Z!==null&&(Bz($,0).serverProps=Z))}z[M4]=$,z=z.nodeValue===X||Y!==null&&Y.suppressHydrationWarning===!0||YU(z.nodeValue,X)?!0:!1,z||W8($,!0)}else Z=X.ancestorInfo.current,Z!=null&&FY(Y,Z.tag,X.ancestorInfo.implicitRootScope),z=UZ(z).createTextNode(Y),z[M4]=$,$.stateNode=z}return N1($),null;case 31:if(X=$.memoizedState,z===null||z.memoizedState!==null){if(Y=J$($),X!==null){if(z===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(z=$.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");z[M4]=$,N1($),($.mode&m0)!==T0&&X!==null&&(z=$.child,z!==null&&($.treeBaseDuration-=z.treeBaseDuration))}else RQ(),Uz(),($.flags&128)===0&&(X=$.memoizedState=null),$.flags|=4,N1($),($.mode&m0)!==T0&&X!==null&&(z=$.child,z!==null&&($.treeBaseDuration-=z.treeBaseDuration));z=!1}else X=WQ(),z!==null&&z.memoizedState!==null&&(z.memoizedState.hydrationErrors=X),z=!0;if(!z){if($.flags&256)return X6($),$;return X6($),null}if(($.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return N1($),null;case 13:if(Y=$.memoizedState,z===null||z.memoizedState!==null&&z.memoizedState.dehydrated!==null){if(Z=Y,J=J$($),Z!==null&&Z.dehydrated!==null){if(z===null){if(!J)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(J=$.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[M4]=$,N1($),($.mode&m0)!==T0&&Z!==null&&(Z=$.child,Z!==null&&($.treeBaseDuration-=Z.treeBaseDuration))}else RQ(),Uz(),($.flags&128)===0&&(Z=$.memoizedState=null),$.flags|=4,N1($),($.mode&m0)!==T0&&Z!==null&&(Z=$.child,Z!==null&&($.treeBaseDuration-=Z.treeBaseDuration));Z=!1}else Z=WQ(),z!==null&&z.memoizedState!==null&&(z.memoizedState.hydrationErrors=Z),Z=!0;if(!Z){if($.flags&256)return X6($),$;return X6($),null}}if(X6($),($.flags&128)!==0)return $.lanes=X,($.mode&m0)!==T0&&pX($),$;return X=Y!==null,z=z!==null&&z.memoizedState!==null,X&&(Y=$.child,Z=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(Z=Y.alternate.memoizedState.cachePool.pool),J=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(J=Y.memoizedState.cachePool.pool),J!==Z&&(Y.flags|=2048)),X!==z&&X&&($.child.flags|=8192),ZZ($,$.updateQueue),N1($),($.mode&m0)!==T0&&X&&(z=$.child,z!==null&&($.treeBaseDuration-=z.treeBaseDuration)),null;case 4:return G0($),z===null&&SG($.stateNode.containerInfo),N1($),null;case 10:return S7($.type,$),N1($),null;case 19:if(u(i1,$),Y=$.memoizedState,Y===null)return N1($),null;if(Z=($.flags&128)!==0,J=Y.rendering,J===null)if(Z)iX(Y,!1);else{if(m1!==t7||z!==null&&(z.flags&128)!==0)for(z=$.child;z!==null;){if(J=gY(z),J!==null){$.flags|=128,iX(Y,!1),z=J.updateQueue,$.updateQueue=z,ZZ($,z),$.subtreeFlags=0,z=X;for(X=$.child;X!==null;)EK(X,z),X=X.sibling;return J0(i1,i1.current&l$|m5,$),d0&&D7($,Y.treeForkCount),$.child}z=z.sibling}Y.tail!==null&&B4()>qJ&&($.flags|=128,Z=!0,iX(Y,!1),$.lanes=4194304)}else{if(!Z)if(z=gY(J),z!==null){if($.flags|=128,Z=!0,z=z.updateQueue,$.updateQueue=z,ZZ($,z),iX(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!J.alternate&&!d0)return N1($),null}else 2*B4()-Y.renderingStartTime>qJ&&X!==536870912&&($.flags|=128,Z=!0,iX(Y,!1),$.lanes=4194304);Y.isBackwards?(J.sibling=$.child,$.child=J):(z=Y.last,z!==null?z.sibling=J:$.child=J,Y.last=J)}if(Y.tail!==null)return z=Y.tail,Y.rendering=z,Y.tail=z.sibling,Y.renderingStartTime=B4(),z.sibling=null,X=i1.current,X=Z?X&l$|m5:X&l$,J0(i1,X,$),d0&&D7($,Y.treeForkCount),z;return N1($),null;case 22:case 23:return X6($),kQ($),Y=$.memoizedState!==null,z!==null?z.memoizedState!==null!==Y&&($.flags|=8192):Y&&($.flags|=8192),Y?(X&536870912)!==0&&($.flags&128)===0&&(N1($),$.subtreeFlags&6&&($.flags|=8192)):N1($),X=$.updateQueue,X!==null&&ZZ($,X.retryQueue),X=null,z!==null&&z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(X=z.memoizedState.cachePool.pool),Y=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Y=$.memoizedState.cachePool.pool),Y!==X&&($.flags|=2048),z!==null&&u(Vz,$),null;case 24:return X=null,z!==null&&(X=z.memoizedState.cache),$.memoizedState.cache!==X&&($.flags|=2048),S7(n1,$),N1($),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+$.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function AW(z,$){switch(LQ($),$.tag){case 1:return z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&m0)!==T0&&pX($),$):null;case 3:return S7(n1,$),G0($),z=$.flags,(z&65536)!==0&&(z&128)===0?($.flags=z&-65537|128,$):null;case 26:case 27:case 5:return i($),null;case 31:if($.memoizedState!==null){if(X6($),$.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Uz()}return z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&m0)!==T0&&pX($),$):null;case 13:if(X6($),z=$.memoizedState,z!==null&&z.dehydrated!==null){if($.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Uz()}return z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&m0)!==T0&&pX($),$):null;case 19:return u(i1,$),null;case 4:return G0($),null;case 10:return S7($.type,$),null;case 22:case 23:return X6($),kQ($),z!==null&&u(Vz,$),z=$.flags,z&65536?($.flags=z&-65537|128,($.mode&m0)!==T0&&pX($),$):null;case 24:return S7(n1,$),null;case 25:return null;default:return null}}function e_(z,$){switch(LQ($),$.tag){case 3:S7(n1,$),G0($);break;case 26:case 27:case 5:i($);break;case 4:G0($);break;case 31:$.memoizedState!==null&&X6($);break;case 13:X6($);break;case 19:u(i1,$);break;case 10:S7($.type,$);break;case 22:case 23:X6($),kQ($),z!==null&&u(Vz,$);break;case 24:S7(n1,$)}}function q7(z){return(z.mode&m0)!==T0}function zB(z,$){q7(z)?(G7(),oX($,z),Q7()):oX($,z)}function RG(z,$,X){q7(z)?(G7(),_$(X,z,$),Q7()):_$(X,z,$)}function oX(z,$){try{var X=$.updateQueue,Y=X!==null?X.lastEffect:null;if(Y!==null){var Z=Y.next;X=Z;do{if((X.tag&z)===z&&(Y=void 0,(z&j4)!==tZ&&(s$=!0),Y=o($,iR,X),(z&j4)!==tZ&&(s$=!1),Y!==void 0&&typeof Y!=="function")){var J=void 0;J=(X.tag&K6)!==0?"useLayoutEffect":(X.tag&j4)!==0?"useInsertionEffect":"useEffect";var Q=void 0;Q=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
129
|
+
|
|
130
|
+
It looks like you wrote `+J+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
131
|
+
|
|
132
|
+
`+J+`(() => {
|
|
133
|
+
async function fetchData() {
|
|
134
|
+
// You can await here
|
|
135
|
+
const response = await MyAPI.getData(someId);
|
|
136
|
+
// ...
|
|
137
|
+
}
|
|
138
|
+
fetchData();
|
|
139
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
140
|
+
|
|
141
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,o($,function(q,K){console.error("%s must not return anything besides a function, which is used for clean-up.%s",q,K)},J,Q)}X=X.next}while(X!==Z)}}catch(q){q1($,$.return,q)}}function _$(z,$,X){try{var Y=$.updateQueue,Z=Y!==null?Y.lastEffect:null;if(Z!==null){var J=Z.next;Y=J;do{if((Y.tag&z)===z){var Q=Y.inst,q=Q.destroy;q!==void 0&&(Q.destroy=void 0,(z&j4)!==tZ&&(s$=!0),Z=$,o(Z,oR,Z,X,q),(z&j4)!==tZ&&(s$=!1))}Y=Y.next}while(Y!==J)}}catch(K){q1($,$.return,K)}}function $B(z,$){q7(z)?(G7(),oX($,z),Q7()):oX($,z)}function FG(z,$,X){q7(z)?(G7(),_$(X,z,$),Q7()):_$(X,z,$)}function XB(z){var $=z.updateQueue;if($!==null){var X=z.stateNode;z.type.defaultProps||"ref"in z.memoizedProps||i$||(X.props!==z.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.",E(z)||"instance"),X.state!==z.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.",E(z)||"instance"));try{o(z,Z_,$,X)}catch(Y){q1(z,z.return,Y)}}}function vW(z,$,X){return z.getSnapshotBeforeUpdate($,X)}function TW(z,$){var{memoizedProps:X,memoizedState:Y}=$;$=z.stateNode,z.type.defaultProps||"ref"in z.memoizedProps||i$||($.props!==z.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.",E(z)||"instance"),$.state!==z.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.",E(z)||"instance"));try{var Z=Nz(z.type,X),J=o(z,vW,$,Z,Y);X=hO,J!==void 0||X.has(z.type)||(X.add(z.type),o(z,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",E(z))})),$.__reactInternalSnapshotBeforeUpdate=J}catch(Q){q1(z,z.return,Q)}}function YB(z,$,X){X.props=Nz(z.type,z.memoizedProps),X.state=z.memoizedState,q7(z)?(G7(),o(z,XO,z,$,X),Q7()):o(z,XO,z,$,X)}function IW(z){var $=z.ref;if($!==null){switch(z.tag){case 26:case 27:case 5:var X=z.stateNode;break;case 30:X=z.stateNode;break;default:X=z.stateNode}if(typeof $==="function")if(q7(z))try{G7(),z.refCleanup=$(X)}finally{Q7()}else z.refCleanup=$(X);else typeof $==="string"?console.error("String refs are no longer supported."):$.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",E(z)),$.current=X}}function rX(z,$){try{o(z,IW,z)}catch(X){q1(z,$,X)}}function H7(z,$){var{ref:X,refCleanup:Y}=z;if(X!==null)if(typeof Y==="function")try{if(q7(z))try{G7(),o(z,Y)}finally{Q7(z)}else o(z,Y)}catch(Z){q1(z,$,Z)}finally{z.refCleanup=null,z=z.alternate,z!=null&&(z.refCleanup=null)}else if(typeof X==="function")try{if(q7(z))try{G7(),o(z,X,null)}finally{Q7(z)}else o(z,X,null)}catch(Z){q1(z,$,Z)}else X.current=null}function ZB(z,$,X,Y){var Z=z.memoizedProps,J=Z.id,Q=Z.onCommit;Z=Z.onRender,$=$===null?"mount":"update",dZ&&($="nested-update"),typeof Z==="function"&&Z(J,$,z.actualDuration,z.treeBaseDuration,z.actualStartTime,X),typeof Q==="function"&&Q(J,$,Y,X)}function kW(z,$,X,Y){var Z=z.memoizedProps;z=Z.id,Z=Z.onPostCommit,$=$===null?"mount":"update",dZ&&($="nested-update"),typeof Z==="function"&&Z(z,$,Y,X)}function JB(z){var{type:$,memoizedProps:X,stateNode:Y}=z;try{o(z,sW,Y,$,X,z)}catch(Z){q1(z,z.return,Z)}}function NG(z,$,X){try{o(z,z3,z.stateNode,z.type,X,$,z)}catch(Y){q1(z,z.return,Y)}}function QB(z){return z.tag===5||z.tag===3||z.tag===26||z.tag===27&&T8(z.type)||z.tag===4}function bG(z){z:for(;;){for(;z.sibling===null;){if(z.return===null||QB(z.return))return null;z=z.return}z.sibling.return=z.return;for(z=z.sibling;z.tag!==5&&z.tag!==6&&z.tag!==18;){if(z.tag===27&&T8(z.type))continue z;if(z.flags&2)continue z;if(z.child===null||z.tag===4)continue z;else z.child.return=z,z=z.child}if(!(z.flags&2))return z.stateNode}}function MG(z,$,X){var Y=z.tag;if(Y===5||Y===6)z=z.stateNode,$?(UU(X),(X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X).insertBefore(z,$)):(UU(X),$=X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X,$.appendChild(z),X=X._reactRootContainer,X!==null&&X!==void 0||$.onclick!==null||($.onclick=y7));else if(Y!==4&&(Y===27&&T8(z.type)&&(X=z.stateNode,$=null),z=z.child,z!==null))for(MG(z,$,X),z=z.sibling;z!==null;)MG(z,$,X),z=z.sibling}function JZ(z,$,X){var Y=z.tag;if(Y===5||Y===6)z=z.stateNode,$?X.insertBefore(z,$):X.appendChild(z);else if(Y!==4&&(Y===27&&T8(z.type)&&(X=z.stateNode),z=z.child,z!==null))for(JZ(z,$,X),z=z.sibling;z!==null;)JZ(z,$,X),z=z.sibling}function VW(z){for(var $,X=z.return;X!==null;){if(QB(X)){$=X;break}X=X.return}if($==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch($.tag){case 27:$=$.stateNode,X=bG(z),JZ(z,X,$);break;case 5:X=$.stateNode,$.flags&32&&(BU(X),$.flags&=-33),$=bG(z),JZ(z,$,X);break;case 3:case 4:$=$.stateNode.containerInfo,X=bG(z),MG(z,X,$);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function GB(z){var{stateNode:$,memoizedProps:X}=z;try{o(z,W3,z.type,X,$,z)}catch(Y){q1(z,z.return,Y)}}function qB(z,$){return $.tag===31?($=$.memoizedState,z.memoizedState!==null&&$===null):$.tag===13?(z=z.memoizedState,$=$.memoizedState,z!==null&&z.dehydrated!==null&&($===null||$.dehydrated===null)):$.tag===3?z.memoizedState.isDehydrated&&($.flags&256)===0:!1}function yW(z,$){if(z=z.containerInfo,bH=vJ,z=AK(z),ZQ(z)){if("selectionStart"in z)var X={start:z.selectionStart,end:z.selectionEnd};else z:{X=(X=z.ownerDocument)&&X.defaultView||window;var Y=X.getSelection&&X.getSelection();if(Y&&Y.rangeCount!==0){X=Y.anchorNode;var{anchorOffset:Z,focusNode:J}=Y;Y=Y.focusOffset;try{X.nodeType,J.nodeType}catch($0){X=null;break z}var Q=0,q=-1,K=-1,B=0,T=0,I=z,P=null;$:for(;;){for(var f;;){if(I!==X||Z!==0&&I.nodeType!==3||(q=Q+Z),I!==J||Y!==0&&I.nodeType!==3||(K=Q+Y),I.nodeType===3&&(Q+=I.nodeValue.length),(f=I.firstChild)===null)break;P=I,I=f}for(;;){if(I===z)break $;if(P===X&&++B===Z&&(q=Q),P===J&&++T===Y&&(K=Q),(f=I.nextSibling)!==null)break;I=P,P=I.parentNode}I=f}X=q===-1||K===-1?null:{start:q,end:K}}else X=null}X=X||{start:0,end:0}}else X=null;MH={focusedElem:z,selectionRange:X},vJ=!1;for(O4=$;O4!==null;)if($=O4,z=$.child,($.subtreeFlags&1028)!==0&&z!==null)z.return=$,O4=z;else for(;O4!==null;){switch(z=$=O4,X=z.alternate,Z=z.flags,z.tag){case 0:if((Z&4)!==0&&(z=z.updateQueue,z=z!==null?z.events:null,z!==null))for(X=0;X<z.length;X++)Z=z[X],Z.ref.impl=Z.nextImpl;break;case 11:case 15:break;case 1:(Z&1024)!==0&&X!==null&&TW(z,X);break;case 3:if((Z&1024)!==0){if(z=z.stateNode.containerInfo,X=z.nodeType,X===9)gG(z);else if(X===1)switch(z.nodeName){case"HEAD":case"HTML":case"BODY":gG(z);break;default:z.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((Z&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(z=$.sibling,z!==null){z.return=$.return,O4=z;break}O4=$.return}}function HB(z,$,X){var Y=z6(),Z=X7(),J=Z7(),Q=J7(),q=X.flags;switch(X.tag){case 0:case 11:case 15:K7(z,X),q&4&&zB(X,K6|A6);break;case 1:if(K7(z,X),q&4)if(z=X.stateNode,$===null)X.type.defaultProps||"ref"in X.memoizedProps||i$||(z.props!==X.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.",E(X)||"instance"),z.state!==X.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.",E(X)||"instance")),q7(X)?(G7(),o(X,uq,X,z),Q7()):o(X,uq,X,z);else{var K=Nz(X.type,$.memoizedProps);$=$.memoizedState,X.type.defaultProps||"ref"in X.memoizedProps||i$||(z.props!==X.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.",E(X)||"instance"),z.state!==X.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.",E(X)||"instance")),q7(X)?(G7(),o(X,e9,X,z,K,$,z.__reactInternalSnapshotBeforeUpdate),Q7()):o(X,e9,X,z,K,$,z.__reactInternalSnapshotBeforeUpdate)}q&64&&XB(X),q&512&&rX(X,X.return);break;case 3:if($=E7(),K7(z,X),q&64&&(q=X.updateQueue,q!==null)){if(K=null,X.child!==null)switch(X.child.tag){case 27:case 5:K=X.child.stateNode;break;case 1:K=X.child.stateNode}try{o(X,Z_,q,K)}catch(T){q1(X,X.return,T)}}z.effectDuration+=DY($);break;case 27:$===null&&q&4&&GB(X);case 26:case 5:if(K7(z,X),$===null){if(q&4)JB(X);else if(q&64){z=X.type,$=X.memoizedProps,K=X.stateNode;try{o(X,eW,K,z,$,X)}catch(T){q1(X,X.return,T)}}}q&512&&rX(X,X.return);break;case 12:if(q&4){q=E7(),K7(z,X),z=X.stateNode,z.effectDuration+=hX(q);try{o(X,ZB,X,$,m8,z.effectDuration)}catch(T){q1(X,X.return,T)}}else K7(z,X);break;case 31:K7(z,X),q&4&&BB(z,X);break;case 13:K7(z,X),q&4&&UB(z,X),q&64&&(z=X.memoizedState,z!==null&&(z=z.dehydrated,z!==null&&(q=jW.bind(null,X),B3(z,q))));break;case 22:if(q=X.memoizedState!==null||n7,!q){$=$!==null&&$.memoizedState!==null||z4,K=n7;var B=z4;n7=q,(z4=$)&&!B?(_7(z,X,(X.subtreeFlags&8772)!==0),(X.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&wY(X,N0,A0)):K7(z,X),n7=K,z4=B}break;case 30:break;default:K7(z,X)}(X.mode&m0)!==T0&&0<=N0&&0<=A0&&((j1||0.05<f1)&&z7(X,N0,A0,f1,D1),X.alternate===null&&X.return!==null&&X.return.alternate!==null&&0.05<A0-N0&&(qB(X.return.alternate,X.return)||e6(X,N0,A0,"Mount"))),$6(Y),Y7(Z),D1=J,j1=Q}function KB(z){var $=z.alternate;$!==null&&(z.alternate=null,KB($)),z.child=null,z.deletions=null,z.sibling=null,z.tag===5&&($=z.stateNode,$!==null&&WY($)),z.stateNode=null,z._debugOwner=null,z.return=null,z.dependencies=null,z.memoizedProps=null,z.memoizedState=null,z.pendingProps=null,z.stateNode=null,z.updateQueue=null}function h7(z,$,X){for(X=X.child;X!==null;)_B(z,$,X),X=X.sibling}function _B(z,$,X){if(k4&&typeof k4.onCommitFiberUnmount==="function")try{k4.onCommitFiberUnmount(P$,X)}catch(B){R7||(R7=!0,console.error("React instrumentation encountered an error: %o",B))}var Y=z6(),Z=X7(),J=Z7(),Q=J7();switch(X.tag){case 26:z4||H7(X,$),h7(z,$,X),X.memoizedState?X.memoizedState.count--:X.stateNode&&(z=X.stateNode,z.parentNode.removeChild(z));break;case 27:z4||H7(X,$);var q=$4,K=i4;T8(X.type)&&($4=X.stateNode,i4=!1),h7(z,$,X),o(X,Z5,X.stateNode),$4=q,i4=K;break;case 5:z4||H7(X,$);case 6:if(q=$4,K=i4,$4=null,h7(z,$,X),$4=q,i4=K,$4!==null)if(i4)try{o(X,Y3,$4,X.stateNode)}catch(B){q1(X,$,B)}else try{o(X,X3,$4,X.stateNode)}catch(B){q1(X,$,B)}break;case 18:$4!==null&&(i4?(z=$4,OU(z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z,X.stateNode),N$(z)):OU($4,X.stateNode));break;case 4:q=$4,K=i4,$4=X.stateNode.containerInfo,i4=!0,h7(z,$,X),$4=q,i4=K;break;case 0:case 11:case 14:case 15:_$(j4,X,$),z4||RG(X,$,K6),h7(z,$,X);break;case 1:z4||(H7(X,$),q=X.stateNode,typeof q.componentWillUnmount==="function"&&YB(X,$,q)),h7(z,$,X);break;case 21:h7(z,$,X);break;case 22:z4=(q=z4)||X.memoizedState!==null,h7(z,$,X),z4=q;break;default:h7(z,$,X)}(X.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7(X,N0,A0,f1,D1),$6(Y),Y7(Z),D1=J,j1=Q}function BB(z,$){if($.memoizedState===null&&(z=$.alternate,z!==null&&(z=z.memoizedState,z!==null))){z=z.dehydrated;try{o($,O3,z)}catch(X){q1($,$.return,X)}}}function UB(z,$){if($.memoizedState===null&&(z=$.alternate,z!==null&&(z=z.memoizedState,z!==null&&(z=z.dehydrated,z!==null))))try{o($,L3,z)}catch(X){q1($,$.return,X)}}function CW(z){switch(z.tag){case 31:case 13:case 19:var $=z.stateNode;return $===null&&($=z.stateNode=new pO),$;case 22:return z=z.stateNode,$=z._retryCache,$===null&&($=z._retryCache=new pO),$;default:throw Error("Unexpected Suspense handler tag ("+z.tag+"). This is a bug in React.")}}function QZ(z,$){var X=CW(z);$.forEach(function(Y){if(!X.has(Y)){if(X.add(Y),F7)if(o$!==null&&r$!==null)eX(r$,o$);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var Z=xW.bind(null,z,Y);Y.then(Z,Z)}})}function d4(z,$){var X=$.deletions;if(X!==null)for(var Y=0;Y<X.length;Y++){var Z=z,J=$,Q=X[Y],q=z6(),K=J;z:for(;K!==null;){switch(K.tag){case 27:if(T8(K.type)){$4=K.stateNode,i4=!1;break z}break;case 5:$4=K.stateNode,i4=!1;break z;case 3:case 4:$4=K.stateNode.containerInfo,i4=!0;break z}K=K.return}if($4===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_B(Z,J,Q),$4=null,i4=!1,(Q.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&e6(Q,N0,A0,"Unmount"),$6(q),Z=Q,J=Z.alternate,J!==null&&(J.return=null),Z.return=null}if($.subtreeFlags&13886)for($=$.child;$!==null;)OB($,z),$=$.sibling}function OB(z,$){var X=z6(),Y=X7(),Z=Z7(),J=J7(),Q=z.alternate,q=z.flags;switch(z.tag){case 0:case 11:case 14:case 15:d4($,z),a4(z),q&4&&(_$(j4|A6,z,z.return),oX(j4|A6,z),RG(z,z.return,K6|A6));break;case 1:if(d4($,z),a4(z),q&512&&(z4||Q===null||H7(Q,Q.return)),q&64&&n7&&(q=z.updateQueue,q!==null&&(Q=q.callbacks,Q!==null))){var K=q.shared.hiddenCallbacks;q.shared.hiddenCallbacks=K===null?Q:K.concat(Q)}break;case 26:if(K=u6,d4($,z),a4(z),q&512&&(z4||Q===null||H7(Q,Q.return)),q&4){var B=Q!==null?Q.memoizedState:null;if(q=z.memoizedState,Q===null)if(q===null)if(z.stateNode===null){z:{q=z.type,Q=z.memoizedProps,K=K.ownerDocument||K;$:switch(q){case"title":if(B=K.getElementsByTagName("title")[0],!B||B[_5]||B[M4]||B.namespaceURI===v$||B.hasAttribute("itemprop"))B=K.createElement(q),K.head.insertBefore(B,K.querySelector("head > title"));b4(B,q,Q),B[M4]=z,u1(B),q=B;break z;case"link":var T=vU("link","href",K).get(q+(Q.href||""));if(T){for(var I=0;I<T.length;I++)if(B=T[I],B.getAttribute("href")===(Q.href==null||Q.href===""?null:Q.href)&&B.getAttribute("rel")===(Q.rel==null?null:Q.rel)&&B.getAttribute("title")===(Q.title==null?null:Q.title)&&B.getAttribute("crossorigin")===(Q.crossOrigin==null?null:Q.crossOrigin)){T.splice(I,1);break $}}B=K.createElement(q),b4(B,q,Q),K.head.appendChild(B);break;case"meta":if(T=vU("meta","content",K).get(q+(Q.content||""))){for(I=0;I<T.length;I++)if(B=T[I],E0(Q.content,"content"),B.getAttribute("content")===(Q.content==null?null:""+Q.content)&&B.getAttribute("name")===(Q.name==null?null:Q.name)&&B.getAttribute("property")===(Q.property==null?null:Q.property)&&B.getAttribute("http-equiv")===(Q.httpEquiv==null?null:Q.httpEquiv)&&B.getAttribute("charset")===(Q.charSet==null?null:Q.charSet)){T.splice(I,1);break $}}B=K.createElement(q),b4(B,q,Q),K.head.appendChild(B);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+q+'". This is a bug in React.')}B[M4]=z,u1(B),q=B}z.stateNode=q}else TU(K,z.type,z.stateNode);else z.stateNode=AU(K,q,z.memoizedProps);else B!==q?(B===null?Q.stateNode!==null&&(Q=Q.stateNode,Q.parentNode.removeChild(Q)):B.count--,q===null?TU(K,z.type,z.stateNode):AU(K,q,z.memoizedProps)):q===null&&z.stateNode!==null&&NG(z,z.memoizedProps,Q.memoizedProps)}break;case 27:d4($,z),a4(z),q&512&&(z4||Q===null||H7(Q,Q.return)),Q!==null&&q&4&&NG(z,z.memoizedProps,Q.memoizedProps);break;case 5:if(d4($,z),a4(z),q&512&&(z4||Q===null||H7(Q,Q.return)),z.flags&32){K=z.stateNode;try{o(z,BU,K)}catch(Z0){q1(z,z.return,Z0)}}q&4&&z.stateNode!=null&&(K=z.memoizedProps,NG(z,K,Q!==null?Q.memoizedProps:K)),q&1024&&($H=!0,z.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(d4($,z),a4(z),q&4){if(z.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.");q=z.memoizedProps,Q=Q!==null?Q.memoizedProps:q,K=z.stateNode;try{o(z,$3,K,Q,q)}catch(Z0){q1(z,z.return,Z0)}}break;case 3:if(K=E7(),wJ=null,B=u6,u6=OZ($.containerInfo),d4($,z),u6=B,a4(z),q&4&&Q!==null&&Q.memoizedState.isDehydrated)try{o(z,U3,$.containerInfo)}catch(Z0){q1(z,z.return,Z0)}$H&&($H=!1,LB(z)),$.effectDuration+=DY(K);break;case 4:q=u6,u6=OZ(z.stateNode.containerInfo),d4($,z),a4(z),u6=q;break;case 12:q=E7(),d4($,z),a4(z),z.stateNode.effectDuration+=hX(q);break;case 31:d4($,z),a4(z),q&4&&(q=z.updateQueue,q!==null&&(z.updateQueue=null,QZ(z,q)));break;case 13:d4($,z),a4(z),z.child.flags&8192&&z.memoizedState!==null!==(Q!==null&&Q.memoizedState!==null)&&(GJ=B4()),q&4&&(q=z.updateQueue,q!==null&&(z.updateQueue=null,QZ(z,q)));break;case 22:K=z.memoizedState!==null;var P=Q!==null&&Q.memoizedState!==null,f=n7,$0=z4;if(n7=f||K,z4=$0||P,d4($,z),z4=$0,n7=f,P&&!K&&!f&&!$0&&(z.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&wY(z,N0,A0),a4(z),q&8192)z:for($=z.stateNode,$._visibility=K?$._visibility&~b5:$._visibility|b5,!K||Q===null||P||n7||z4||(bz(z),(z.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&e6(z,N0,A0,"Disconnect")),Q=null,$=z;;){if($.tag===5||$.tag===26){if(Q===null){P=Q=$;try{B=P.stateNode,K?o(P,J3,B):o(P,q3,P.stateNode,P.memoizedProps)}catch(Z0){q1(P,P.return,Z0)}}}else if($.tag===6){if(Q===null){P=$;try{T=P.stateNode,K?o(P,Q3,T):o(P,H3,T,P.memoizedProps)}catch(Z0){q1(P,P.return,Z0)}}}else if($.tag===18){if(Q===null){P=$;try{I=P.stateNode,K?o(P,Z3,I):o(P,G3,P.stateNode)}catch(Z0){q1(P,P.return,Z0)}}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===z)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===z)break z;for(;$.sibling===null;){if($.return===null||$.return===z)break z;Q===$&&(Q=null),$=$.return}Q===$&&(Q=null),$.sibling.return=$.return,$=$.sibling}q&4&&(q=z.updateQueue,q!==null&&(Q=q.retryQueue,Q!==null&&(q.retryQueue=null,QZ(z,Q))));break;case 19:d4($,z),a4(z),q&4&&(q=z.updateQueue,q!==null&&(z.updateQueue=null,QZ(z,q)));break;case 30:break;case 21:break;default:d4($,z),a4(z)}(z.mode&m0)!==T0&&0<=N0&&0<=A0&&((j1||0.05<f1)&&z7(z,N0,A0,f1,D1),z.alternate===null&&z.return!==null&&z.return.alternate!==null&&0.05<A0-N0&&(qB(z.return.alternate,z.return)||e6(z,N0,A0,"Mount"))),$6(X),Y7(Y),D1=Z,j1=J}function a4(z){var $=z.flags;if($&2){try{o(z,VW,z)}catch(X){q1(z,z.return,X)}z.flags&=-3}$&4096&&(z.flags&=-4097)}function LB(z){if(z.subtreeFlags&1024)for(z=z.child;z!==null;){var $=z;LB($),$.tag===5&&$.flags&1024&&$.stateNode.reset(),z=z.sibling}}function K7(z,$){if($.subtreeFlags&8772)for($=$.child;$!==null;)HB(z,$.alternate,$),$=$.sibling}function WB(z){var $=z6(),X=X7(),Y=Z7(),Z=J7();switch(z.tag){case 0:case 11:case 14:case 15:RG(z,z.return,K6),bz(z);break;case 1:H7(z,z.return);var J=z.stateNode;typeof J.componentWillUnmount==="function"&&YB(z,z.return,J),bz(z);break;case 27:o(z,Z5,z.stateNode);case 26:case 5:H7(z,z.return),bz(z);break;case 22:z.memoizedState===null&&bz(z);break;case 30:bz(z);break;default:bz(z)}(z.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7(z,N0,A0,f1,D1),$6($),Y7(X),D1=Y,j1=Z}function bz(z){for(z=z.child;z!==null;)WB(z),z=z.sibling}function RB(z,$,X,Y){var Z=z6(),J=X7(),Q=Z7(),q=J7(),K=X.flags;switch(X.tag){case 0:case 11:case 15:_7(z,X,Y),zB(X,K6);break;case 1:if(_7(z,X,Y),$=X.stateNode,typeof $.componentDidMount==="function"&&o(X,uq,X,$),$=X.updateQueue,$!==null){z=X.stateNode;try{o(X,UW,$,z)}catch(B){q1(X,X.return,B)}}Y&&K&64&&XB(X),rX(X,X.return);break;case 27:GB(X);case 26:case 5:_7(z,X,Y),Y&&$===null&&K&4&&JB(X),rX(X,X.return);break;case 12:if(Y&&K&4){K=E7(),_7(z,X,Y),Y=X.stateNode,Y.effectDuration+=hX(K);try{o(X,ZB,X,$,m8,Y.effectDuration)}catch(B){q1(X,X.return,B)}}else _7(z,X,Y);break;case 31:_7(z,X,Y),Y&&K&4&&BB(z,X);break;case 13:_7(z,X,Y),Y&&K&4&&UB(z,X);break;case 22:X.memoizedState===null&&_7(z,X,Y),rX(X,X.return);break;case 30:break;default:_7(z,X,Y)}(X.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7(X,N0,A0,f1,D1),$6(Z),Y7(J),D1=Q,j1=q}function _7(z,$,X){X=X&&($.subtreeFlags&8772)!==0;for($=$.child;$!==null;)RB(z,$.alternate,$,X),$=$.sibling}function wG(z,$){var X=null;z!==null&&z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(X=z.memoizedState.cachePool.pool),z=null,$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(z=$.memoizedState.cachePool.pool),z!==X&&(z!=null&&Lz(z),X!=null&&mX(X))}function PG(z,$){z=null,$.alternate!==null&&(z=$.alternate.memoizedState.cache),$=$.memoizedState.cache,$!==z&&(Lz($),z!=null&&mX(z))}function m6(z,$,X,Y,Z){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for($=$.child;$!==null;){var J=$.sibling;FB(z,$,X,Y,J!==null?J.actualStartTime:Z),$=J}}function FB(z,$,X,Y,Z){var J=z6(),Q=X7(),q=Z7(),K=J7(),B=D8,T=$.flags;switch($.tag){case 0:case 11:case 15:($.mode&m0)!==T0&&0<$.actualStartTime&&($.flags&1)!==0&&PY($,$.actualStartTime,Z,J4,X),m6(z,$,X,Y,Z),T&2048&&$B($,x4|A6);break;case 1:($.mode&m0)!==T0&&0<$.actualStartTime&&(($.flags&128)!==0?QQ($,$.actualStartTime,Z,[]):($.flags&1)!==0&&PY($,$.actualStartTime,Z,J4,X)),m6(z,$,X,Y,Z);break;case 3:var I=E7(),P=J4;J4=$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)===0,m6(z,$,X,Y,Z),J4=P,T&2048&&(X=null,$.alternate!==null&&(X=$.alternate.memoizedState.cache),Y=$.memoizedState.cache,Y!==X&&(Lz(Y),X!=null&&mX(X))),z.passiveEffectDuration+=DY(I);break;case 12:if(T&2048){T=E7(),m6(z,$,X,Y,Z),z=$.stateNode,z.passiveEffectDuration+=hX(T);try{o($,kW,$,$.alternate,m8,z.passiveEffectDuration)}catch(f){q1($,$.return,f)}}else m6(z,$,X,Y,Z);break;case 31:T=J4,I=$.alternate!==null?$.alternate.memoizedState:null,P=$.memoizedState,I!==null&&P===null?(P=$.deletions,P!==null&&0<P.length&&P[0].tag===18?(J4=!1,I=I.hydrationErrors,I!==null&&QQ($,$.actualStartTime,Z,I)):J4=!0):J4=!1,m6(z,$,X,Y,Z),J4=T;break;case 13:T=J4,I=$.alternate!==null?$.alternate.memoizedState:null,P=$.memoizedState,I===null||I.dehydrated===null||P!==null&&P.dehydrated!==null?J4=!1:(P=$.deletions,P!==null&&0<P.length&&P[0].tag===18?(J4=!1,I=I.hydrationErrors,I!==null&&QQ($,$.actualStartTime,Z,I)):J4=!0),m6(z,$,X,Y,Z),J4=T;break;case 23:break;case 22:P=$.stateNode,I=$.alternate,$.memoizedState!==null?P._visibility&x7?m6(z,$,X,Y,Z):nX(z,$,X,Y,Z):P._visibility&x7?m6(z,$,X,Y,Z):(P._visibility|=x7,B$(z,$,X,Y,($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child),Z),($.mode&m0)===T0||J4||(z=$.actualStartTime,0<=z&&0.05<Z-z&&wY($,z,Z),0<=N0&&0<=A0&&0.05<A0-N0&&wY($,N0,A0))),T&2048&&wG(I,$);break;case 24:m6(z,$,X,Y,Z),T&2048&&PG($.alternate,$);break;default:m6(z,$,X,Y,Z)}if(($.mode&m0)!==T0){if(z=!J4&&$.alternate===null&&$.return!==null&&$.return.alternate!==null)X=$.actualStartTime,0<=X&&0.05<Z-X&&e6($,X,Z,"Mount");0<=N0&&0<=A0&&((j1||0.05<f1)&&z7($,N0,A0,f1,D1),z&&0.05<A0-N0&&e6($,N0,A0,"Mount"))}$6(J),Y7(Q),D1=q,j1=K,D8=B}function B$(z,$,X,Y,Z,J){Z=Z&&(($.subtreeFlags&10256)!==0||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child));for($=$.child;$!==null;){var Q=$.sibling;NB(z,$,X,Y,Z,Q!==null?Q.actualStartTime:J),$=Q}}function NB(z,$,X,Y,Z,J){var Q=z6(),q=X7(),K=Z7(),B=J7(),T=D8;Z&&($.mode&m0)!==T0&&0<$.actualStartTime&&($.flags&1)!==0&&PY($,$.actualStartTime,J,J4,X);var I=$.flags;switch($.tag){case 0:case 11:case 15:B$(z,$,X,Y,Z,J),$B($,x4);break;case 23:break;case 22:var P=$.stateNode;$.memoizedState!==null?P._visibility&x7?B$(z,$,X,Y,Z,J):nX(z,$,X,Y,J):(P._visibility|=x7,B$(z,$,X,Y,Z,J)),Z&&I&2048&&wG($.alternate,$);break;case 24:B$(z,$,X,Y,Z,J),Z&&I&2048&&PG($.alternate,$);break;default:B$(z,$,X,Y,Z,J)}($.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7($,N0,A0,f1,D1),$6(Q),Y7(q),D1=K,j1=B,D8=T}function nX(z,$,X,Y,Z){if($.subtreeFlags&10256||$.actualDuration!==0&&($.alternate===null||$.alternate.child!==$.child))for(var J=$.child;J!==null;){$=J.sibling;var Q=z,q=X,K=Y,B=$!==null?$.actualStartTime:Z,T=D8;(J.mode&m0)!==T0&&0<J.actualStartTime&&(J.flags&1)!==0&&PY(J,J.actualStartTime,B,J4,q);var I=J.flags;switch(J.tag){case 22:nX(Q,J,q,K,B),I&2048&&wG(J.alternate,J);break;case 24:nX(Q,J,q,K,B),I&2048&&PG(J.alternate,J);break;default:nX(Q,J,q,K,B)}D8=T,J=$}}function U$(z,$,X){if(z.subtreeFlags&x5)for(z=z.child;z!==null;)bB(z,$,X),z=z.sibling}function bB(z,$,X){switch(z.tag){case 26:U$(z,$,X),z.flags&x5&&z.memoizedState!==null&&N3(X,u6,z.memoizedState,z.memoizedProps);break;case 5:U$(z,$,X);break;case 3:case 4:var Y=u6;u6=OZ(z.stateNode.containerInfo),U$(z,$,X),u6=Y;break;case 22:z.memoizedState===null&&(Y=z.alternate,Y!==null&&Y.memoizedState!==null?(Y=x5,x5=16777216,U$(z,$,X),x5=Y):U$(z,$,X));break;default:U$(z,$,X)}}function MB(z){var $=z.alternate;if($!==null&&(z=$.child,z!==null)){$.child=null;do $=z.sibling,z.sibling=null,z=$;while(z!==null)}}function tX(z){var $=z.deletions;if((z.flags&16)!==0){if($!==null)for(var X=0;X<$.length;X++){var Y=$[X],Z=z6();O4=Y,AB(Y,z),(Y.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&e6(Y,N0,A0,"Unmount"),$6(Z)}MB(z)}if(z.subtreeFlags&10256)for(z=z.child;z!==null;)wB(z),z=z.sibling}function wB(z){var $=z6(),X=X7(),Y=Z7(),Z=J7();switch(z.tag){case 0:case 11:case 15:tX(z),z.flags&2048&&FG(z,z.return,x4|A6);break;case 3:var J=E7();tX(z),z.stateNode.passiveEffectDuration+=DY(J);break;case 12:J=E7(),tX(z),z.stateNode.passiveEffectDuration+=hX(J);break;case 22:J=z.stateNode,z.memoizedState!==null&&J._visibility&x7&&(z.return===null||z.return.tag!==13)?(J._visibility&=~x7,GZ(z),(z.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&e6(z,N0,A0,"Disconnect")):tX(z);break;default:tX(z)}(z.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7(z,N0,A0,f1,D1),$6($),Y7(X),j1=Z,D1=Y}function GZ(z){var $=z.deletions;if((z.flags&16)!==0){if($!==null)for(var X=0;X<$.length;X++){var Y=$[X],Z=z6();O4=Y,AB(Y,z),(Y.mode&m0)!==T0&&0<=N0&&0<=A0&&0.05<A0-N0&&e6(Y,N0,A0,"Unmount"),$6(Z)}MB(z)}for(z=z.child;z!==null;)PB(z),z=z.sibling}function PB(z){var $=z6(),X=X7(),Y=Z7(),Z=J7();switch(z.tag){case 0:case 11:case 15:FG(z,z.return,x4),GZ(z);break;case 22:var J=z.stateNode;J._visibility&x7&&(J._visibility&=~x7,GZ(z));break;default:GZ(z)}(z.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7(z,N0,A0,f1,D1),$6($),Y7(X),j1=Z,D1=Y}function AB(z,$){for(;O4!==null;){var X=O4,Y=X,Z=$,J=z6(),Q=X7(),q=Z7(),K=J7();switch(Y.tag){case 0:case 11:case 15:FG(Y,Z,x4);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(Z=Y.memoizedState.cachePool.pool,Z!=null&&Lz(Z));break;case 24:mX(Y.memoizedState.cache)}if((Y.mode&m0)!==T0&&0<=N0&&0<=A0&&(j1||0.05<f1)&&z7(Y,N0,A0,f1,D1),$6(J),Y7(Q),j1=K,D1=q,Y=X.child,Y!==null)Y.return=X,O4=Y;else z:for(X=z;O4!==null;){if(Y=O4,J=Y.sibling,Q=Y.return,KB(Y),Y===X){O4=null;break z}if(J!==null){J.return=Q,O4=J;break z}O4=Q}}}function DW(){eR.forEach(function(z){return z()})}function vB(){var z=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return z||h.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),z}function Y6(z){if((n0&Q4)!==L4&&p0!==0)return p0&-p0;var $=h.T;return $!==null?($._updatedFibers||($._updatedFibers=new Set),$._updatedFibers.add(z),CG()):wX()}function TB(){if(r4===0)if((p0&536870912)===0||d0){var z=TZ;TZ<<=1,(TZ&3932160)===0&&(TZ=262144),r4=z}else r4=536870912;return z=H6.current,z!==null&&(z.flags|=32),r4}function p1(z,$,X){if(s$&&console.error("useInsertionEffect must not schedule updates."),BH&&(_J=!0),z===R1&&(_1===fz||_1===mz)||z.cancelPendingCommit!==null)L$(z,0),A8(z,p0,r4,!1);if(C6(z,X),(n0&Q4)!==L4&&z===R1){if(W7)switch($.tag){case 0:case 11:case 15:z=j0&&E(j0)||"Unknown",eO.has(z)||(eO.add(z),$=E($)||"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",$,z,z));break;case 1:sO||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),sO=!0)}}else F7&&H8(z,$,X),uW($),z===R1&&((n0&Q4)===L4&&(d8|=X),m1===u8&&A8(z,p0,r4,!1)),B7(z)}function IB(z,$,X){if((n0&(Q4|_6))!==L4)throw Error("Should not already be working.");if(p0!==0&&j0!==null){var Y=j0,Z=B4();switch(d9){case l5:case fz:var J=T5;v1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",J,Z,W6,void 0,"primary-light")):console.timeStamp("Suspended",J,Z,W6,void 0,"primary-light"));break;case mz:J=T5,v1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",J,Z,W6,void 0,"primary-light")):console.timeStamp("Action",J,Z,W6,void 0,"primary-light"));break;default:v1&&(Y=Z-T5,3>Y||console.timeStamp("Blocked",T5,Z,W6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}J=(X=!X&&($&127)===0&&($&z.expiredLanes)===0||y6(z,$))?EW(z,$):vG(z,$,!0);var Q=X;do{if(J===t7){n$&&!X&&A8(z,$,0,!1),$=_1,T5=t1(),d9=$;break}else{if(Y=B4(),Z=z.current.alternate,Q&&!SW(Z)){s4($),Z=U4,J=Y,!v1||J<=Z||(c1?c1.run(console.timeStamp.bind(console,"Teared Render",Z,J,c0,l0,"error")):console.timeStamp("Teared Render",Z,J,c0,l0,"error")),Mz($,Y),J=vG(z,$,!1),Q=!1;continue}if(J===Ez){if(Q=$,z.errorRecoveryDisabledLanes&Q)var q=0;else q=z.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){s4($),GQ(U4,Y,$,c1),Mz($,Y),$=q;z:{Y=z,J=Q,Q=d5;var K=Y.current.memoizedState.isDehydrated;if(K&&(L$(Y,q).flags|=256),q=vG(Y,q,!1),q!==Ez){if(ZH&&!K){Y.errorRecoveryDisabledLanes|=J,d8|=J,J=u8;break z}Y=g4,g4=Q,Y!==null&&(g4===null?g4=Y:g4.push.apply(g4,Y))}J=q}if(Q=!1,J!==Ez)continue;else Y=B4()}}if(J===u5){s4($),GQ(U4,Y,$,c1),Mz($,Y),L$(z,0),A8(z,$,0,!0);break}z:{switch(X=z,J){case t7:case u5:throw Error("Root did not complete. This is a bug in React.");case u8:if(($&4194048)!==$)break;case YJ:s4($),IK(U4,Y,$,c1),Mz($,Y),Z=$,(Z&127)!==0?uZ=Y:(Z&4194048)!==0&&(lZ=Y),A8(X,$,r4,!l8);break z;case Ez:g4=null;break;case XJ:case jO:break;default:throw Error("Unknown root exit status.")}if(h.actQueue!==null)TG(X,Z,$,g4,a5,QJ,r4,d8,hz,J,null,null,U4,Y);else{if(($&62914560)===$&&(Q=GJ+uO-B4(),10<Q)){if(A8(X,$,r4,!l8),$$(X,0,!0)!==0)break z;l6=$,X.timeoutHandle=GL(kB.bind(null,X,Z,g4,a5,QJ,$,r4,d8,hz,l8,J,"Throttled",U4,Y),Q);break z}kB(X,Z,g4,a5,QJ,$,r4,d8,hz,l8,J,null,U4,Y)}}}break}while(1);B7(z)}function kB(z,$,X,Y,Z,J,Q,q,K,B,T,I,P,f){z.timeoutHandle=uz;var $0=$.subtreeFlags,Z0=null;if($0&8192||($0&16785408)===16785408){if(Z0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:y7},bB($,J,Z0),$0=(J&62914560)===J?GJ-B4():(J&4194048)===J?gO-B4():0,$0=b3(Z0,$0),$0!==null){l6=J,z.cancelPendingCommit=$0(TG.bind(null,z,$,J,X,Y,Z,Q,q,K,T,Z0,Z0.waitingForViewTransition?"Waiting for the previous Animation":0<Z0.count?0<Z0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Z0.imgCount===1?"Suspended on an Image":0<Z0.imgCount?"Suspended on Images":null,P,f)),A8(z,J,Q,!B);return}}TG(z,$,J,X,Y,Z,Q,q,K,T,Z0,I,P,f)}function SW(z){for(var $=z;;){var X=$.tag;if((X===0||X===11||X===15)&&$.flags&16384&&(X=$.updateQueue,X!==null&&(X=X.stores,X!==null)))for(var Y=0;Y<X.length;Y++){var Z=X[Y],J=Z.getSnapshot;Z=Z.value;try{if(!h4(J(),Z))return!1}catch(Q){return!1}}if(X=$.child,$.subtreeFlags&16384&&X!==null)X.return=$,$=X;else{if($===z)break;for(;$.sibling===null;){if($.return===null||$.return===z)return!0;$=$.return}$.sibling.return=$.return,$=$.sibling}}return!0}function A8(z,$,X,Y){$&=~JH,$&=~d8,z.suspendedLanes|=$,z.pingedLanes&=~$,Y&&(z.warmLanes|=$),Y=z.expirationTimes;for(var Z=$;0<Z;){var J=31-E4(Z),Q=1<<J;Y[J]=-1,Z&=~Q}X!==0&&n6(z,X,$)}function O$(){return(n0&(Q4|_6))===L4?(z5(0,!1),!1):!0}function AG(){if(j0!==null){if(_1===o4)var z=j0.return;else z=j0,VY(),fQ(z),g$=null,f5=0,z=j0;for(;z!==null;)e_(z.alternate,z),z=z.return;j0=null}}function Mz(z,$){(z&127)!==0&&(h8=$),(z&4194048)!==0&&(P7=$),(z&62914560)!==0&&(l9=$),(z&2080374784)!==0&&(c9=$)}function L$(z,$){v1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",l0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",l0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",l0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",l0,"primary-light"));var X=U4;if(U4=t1(),p0!==0&&0<X){if(s4(p0),m1===XJ||m1===u8)IK(X,U4,$,c1);else{var Y=U4,Z=c1;if(v1&&!(Y<=X)){var J=($&738197653)===$?"tertiary-dark":"primary-dark",Q=($&536870912)===$?"Prewarm":($&201326741)===$?"Interrupted Hydration":"Interrupted Render";Z?Z.run(console.timeStamp.bind(console,Q,X,Y,c0,l0,J)):console.timeStamp(Q,X,Y,c0,l0,J)}}Mz(p0,U4)}if(X=c1,c1=null,($&127)!==0){c1=P5,Z=0<=w7&&w7<h8?h8:w7,Y=0<=Tz&&Tz<h8?h8:Tz,J=0<=Y?Y:0<=Z?Z:U4,0<=uZ?(s4(2),kK(uZ,J,$,X)):(cZ&127)!==0&&(s4(2),EX(h8,J,a7)),X=Z;var q=Y,K=A5,B=0<p$,T=p8===w5,I=p8===gZ;if(Z=U4,Y=P5,J=hq,Q=pq,v1){if(c0="Blocking",0<X?X>Z&&(X=Z):X=Z,0<q?q>X&&(q=X):q=X,K!==null&&X>q){var P=B?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,B?"Consecutive":"Event: "+K,q,X,c0,l0,P)):console.timeStamp(B?"Consecutive":"Event: "+K,q,X,c0,l0,P)}Z>X&&(q=T?"error":($&738197653)===$?"tertiary-light":"primary-light",T=I?"Promise Resolved":T?"Cascading Update":5<Z-X?"Update Blocked":"Update",I=[],Q!=null&&I.push(["Component name",Q]),J!=null&&I.push(["Method name",J]),X={start:X,end:Z,detail:{devtools:{properties:I,track:c0,trackGroup:l0,color:q}}},Y?Y.run(performance.measure.bind(performance,T,X)):performance.measure(T,X))}w7=-1.1,p8=0,pq=hq=null,uZ=-1.1,p$=Tz,Tz=-1.1,h8=t1()}if(($&4194048)!==0&&(c1=v5,Z=0<=d7&&d7<P7?P7:d7,X=0<=w6&&w6<P7?P7:w6,Y=0<=j8&&j8<P7?P7:j8,J=0<=Y?Y:0<=X?X:U4,0<=lZ?(s4(256),kK(lZ,J,$,c1)):(cZ&4194048)!==0&&(s4(256),EX(P7,J,a7)),I=Y,q=Iz,K=0<x8,B=jq===gZ,J=U4,Y=v5,Q=g9,T=u9,v1&&(c0="Transition",0<X?X>J&&(X=J):X=J,0<Z?Z>X&&(Z=X):Z=X,0<I?I>Z&&(I=Z):I=Z,Z>I&&q!==null&&(P=K?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,K?"Consecutive":"Event: "+q,I,Z,c0,l0,P)):console.timeStamp(K?"Consecutive":"Event: "+q,I,Z,c0,l0,P)),X>Z&&(Y?Y.run(console.timeStamp.bind(console,"Action",Z,X,c0,l0,"primary-dark")):console.timeStamp("Action",Z,X,c0,l0,"primary-dark")),J>X&&(Z=B?"Promise Resolved":5<J-X?"Update Blocked":"Update",I=[],T!=null&&I.push(["Component name",T]),Q!=null&&I.push(["Method name",Q]),X={start:X,end:J,detail:{devtools:{properties:I,track:c0,trackGroup:l0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,Z,X)):performance.measure(Z,X))),w6=d7=-1.1,jq=0,lZ=-1.1,x8=j8,j8=-1.1,P7=t1()),($&62914560)!==0&&(cZ&62914560)!==0&&(s4(4194304),EX(l9,U4,a7)),($&2080374784)!==0&&(cZ&2080374784)!==0&&(s4(268435456),EX(c9,U4,a7)),X=z.timeoutHandle,X!==uz&&(z.timeoutHandle=uz,BF(X)),X=z.cancelPendingCommit,X!==null&&(z.cancelPendingCommit=null,X()),l6=0,AG(),R1=z,j0=X=C7(z.current,null),p0=$,_1=o4,B6=null,l8=!1,n$=y6(z,$),ZH=!1,m1=t7,hz=r4=JH=d8=c8=0,g4=d5=null,QJ=!1,($&8)!==0&&($|=$&32),Y=z.entangledLanes,Y!==0)for(z=z.entanglements,Y&=$;0<Y;)Z=31-E4(Y),J=1<<Z,$|=z[Z],Y&=~J;return v7=$,AY(),z=f9(),1000<z-E9&&(h.recentlyCreatedOwnerStacks=0,E9=z),x6.discardPendingWarnings(),X}function VB(z,$){k0=null,h.H=j5,h.getCurrentStack=null,W7=!1,Q6=null,$===x$||$===oZ?($=nK(),_1=l5):$===lq?($=nK(),_1=xO):_1=$===eq?YH:$!==null&&typeof $==="object"&&typeof $.then==="function"?c5:ZJ,B6=$;var X=j0;X===null?(m1=u5,zZ(z,e4($,z.current))):X.mode&m0&&wQ(X)}function yB(){var z=H6.current;return z===null?!0:(p0&4194048)===p0?P6===null?!0:!1:(p0&62914560)===p0||(p0&536870912)!==0?z===P6:!1}function CB(){var z=h.H;return h.H=j5,z===null?j5:z}function DB(){var z=h.A;return h.A=sR,z}function qZ(z){c1===null&&(c1=z._debugTask==null?null:z._debugTask)}function HZ(){m1=u8,l8||(p0&4194048)!==p0&&H6.current!==null||(n$=!0),(c8&134217727)===0&&(d8&134217727)===0||R1===null||A8(R1,p0,r4,!1)}function vG(z,$,X){var Y=n0;n0|=Q4;var Z=CB(),J=DB();if(R1!==z||p0!==$){if(F7){var Q=z.memoizedUpdaters;0<Q.size&&(eX(z,p0),Q.clear()),OY(z,$)}a5=null,L$(z,$)}$=!1,Q=m1;z:do try{if(_1!==o4&&j0!==null){var q=j0,K=B6;switch(_1){case YH:AG(),Q=YJ;break z;case l5:case fz:case mz:case c5:H6.current===null&&($=!0);var B=_1;if(_1=o4,B6=null,W$(z,q,K,B),X&&n$){Q=t7;break z}break;default:B=_1,_1=o4,B6=null,W$(z,q,K,B)}}SB(),Q=m1;break}catch(T){VB(z,T)}while(1);return $&&z.shellSuspendCounter++,VY(),n0=Y,h.H=Z,h.A=J,j0===null&&(R1=null,p0=0,AY()),Q}function SB(){for(;j0!==null;)EB(j0)}function EW(z,$){var X=n0;n0|=Q4;var Y=CB(),Z=DB();if(R1!==z||p0!==$){if(F7){var J=z.memoizedUpdaters;0<J.size&&(eX(z,p0),J.clear()),OY(z,$)}a5=null,qJ=B4()+lO,L$(z,$)}else n$=y6(z,$);z:do try{if(_1!==o4&&j0!==null)$:switch($=j0,J=B6,_1){case ZJ:_1=o4,B6=null,W$(z,$,J,ZJ);break;case fz:case mz:if(oK(J)){_1=o4,B6=null,fB($);break}$=function(){_1!==fz&&_1!==mz||R1!==z||(_1=JJ),B7(z)},J.then($,$);break z;case l5:_1=JJ;break z;case xO:_1=XH;break z;case JJ:oK(J)?(_1=o4,B6=null,fB($)):(_1=o4,B6=null,W$(z,$,J,JJ));break;case XH:var Q=null;switch(j0.tag){case 26:Q=j0.memoizedState;case 5:case 27:var q=j0;if(Q?IU(Q):q.stateNode.complete){_1=o4,B6=null;var K=q.sibling;if(K!==null)j0=K;else{var B=q.return;B!==null?(j0=B,KZ(B)):j0=null}break $}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}_1=o4,B6=null,W$(z,$,J,XH);break;case c5:_1=o4,B6=null,W$(z,$,J,c5);break;case YH:AG(),m1=YJ;break z;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}h.actQueue!==null?SB():fW();break}catch(T){VB(z,T)}while(1);if(VY(),h.H=Y,h.A=Z,n0=X,j0!==null)return t7;return R1=null,p0=0,AY(),m1}function fW(){for(;j0!==null&&!S3();)EB(j0)}function EB(z){var $=z.alternate;(z.mode&m0)!==T0?(MQ(z),$=o(z,LG,$,z,v7),wQ(z)):$=o(z,LG,$,z,v7),z.memoizedProps=z.pendingProps,$===null?KZ(z):j0=$}function fB(z){var $=o(z,mW,z);z.memoizedProps=z.pendingProps,$===null?KZ(z):j0=$}function mW(z){var $=z.alternate,X=(z.mode&m0)!==T0;switch(X&&MQ(z),z.tag){case 15:case 0:$=a_($,z,z.pendingProps,z.type,void 0,p0);break;case 11:$=a_($,z,z.pendingProps,z.type.render,z.ref,p0);break;case 5:fQ(z);default:e_($,z),z=j0=EK(z,v7),$=LG($,z,v7)}return X&&wQ(z),$}function W$(z,$,X,Y){VY(),fQ($),g$=null,f5=0;var Z=$.return;try{if(bW(z,Z,$,X,p0)){m1=u5,zZ(z,e4(X,z.current)),j0=null;return}}catch(J){if(Z!==null)throw j0=Z,J;m1=u5,zZ(z,e4(X,z.current)),j0=null;return}if($.flags&32768){if(d0||Y===ZJ)z=!0;else if(n$||(p0&536870912)!==0)z=!1;else if(l8=z=!0,Y===fz||Y===mz||Y===l5||Y===c5)Y=H6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);mB($,z)}else KZ($)}function KZ(z){var $=z;do{if(($.flags&32768)!==0){mB($,l8);return}var X=$.alternate;if(z=$.return,MQ($),X=o($,PW,X,$,v7),($.mode&m0)!==T0&&lK($),X!==null){j0=X;return}if($=$.sibling,$!==null){j0=$;return}j0=$=z}while($!==null);m1===t7&&(m1=jO)}function mB(z,$){do{var X=AW(z.alternate,z);if(X!==null){X.flags&=32767,j0=X;return}if((z.mode&m0)!==T0){lK(z),X=z.actualDuration;for(var Y=z.child;Y!==null;)X+=Y.actualDuration,Y=Y.sibling;z.actualDuration=X}if(X=z.return,X!==null&&(X.flags|=32768,X.subtreeFlags=0,X.deletions=null),!$&&(z=z.sibling,z!==null)){j0=z;return}j0=z=X}while(z!==null);m1=YJ,j0=null}function TG(z,$,X,Y,Z,J,Q,q,K,B,T,I,P,f){z.cancelPendingCommit=null;do sX();while(X4!==i8);if(x6.flushLegacyContextWarning(),x6.flushPendingUnsafeLifecycleWarnings(),(n0&(Q4|_6))!==L4)throw Error("Should not already be working.");if(s4(X),B===Ez?GQ(P,f,X,c1):Y!==null?GW(P,f,X,Y,$!==null&&$.alternate!==null&&$.alternate.memoizedState.isDehydrated&&($.flags&256)!==0,c1):QW(P,f,X,c1),$!==null){if(X===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),$===z.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=$.lanes|$.childLanes,J|=Dq,UY(z,X,J,Q,q,K),z===R1&&(j0=R1=null,p0=0),t$=$,o8=z,l6=X,qH=J,KH=Z,rO=Y,HH=f,nO=I,c6=HJ,tO=null,$.actualDuration!==0||($.subtreeFlags&10256)!==0||($.flags&10256)!==0?(z.callbackNode=null,z.callbackPriority=0,gW(w$,function(){return s5=window.event,c6===HJ&&(c6=GH),gB(),null})):(z.callbackNode=null,z.callbackPriority=0),c7=null,m8=t1(),I!==null&&qW(f,m8,I,c1),Y=($.flags&13878)!==0,($.subtreeFlags&13878)!==0||Y){Y=h.T,h.T=null,Z=H1.p,H1.p=G6,Q=n0,n0|=_6;try{yW(z,$,X)}finally{n0=Q,H1.p=Z,h.T=Y}}X4=dO,hB(),pB(),jB()}}function hB(){if(X4===dO){X4=i8;var z=o8,$=t$,X=l6,Y=($.flags&13878)!==0;if(($.subtreeFlags&13878)!==0||Y){Y=h.T,h.T=null;var Z=H1.p;H1.p=G6;var J=n0;n0|=_6;try{o$=X,r$=z,SY(),OB($,z),r$=o$=null,X=MH;var Q=AK(z.containerInfo),q=X.focusedElem,K=X.selectionRange;if(Q!==q&&q&&q.ownerDocument&&PK(q.ownerDocument.documentElement,q)){if(K!==null&&ZQ(q)){var{start:B,end:T}=K;if(T===void 0&&(T=B),"selectionStart"in q)q.selectionStart=B,q.selectionEnd=Math.min(T,q.value.length);else{var I=q.ownerDocument||document,P=I&&I.defaultView||window;if(P.getSelection){var f=P.getSelection(),$0=q.textContent.length,Z0=Math.min(K.start,$0),b1=K.end===void 0?Z0:Math.min(K.end,$0);!f.extend&&Z0>b1&&(Q=b1,b1=Z0,Z0=Q);var i0=wK(q,Z0),w=wK(q,b1);if(i0&&w&&(f.rangeCount!==1||f.anchorNode!==i0.node||f.anchorOffset!==i0.offset||f.focusNode!==w.node||f.focusOffset!==w.offset)){var A=I.createRange();A.setStart(i0.node,i0.offset),f.removeAllRanges(),Z0>b1?(f.addRange(A),f.extend(w.node,w.offset)):(A.setEnd(w.node,w.offset),f.addRange(A))}}}}I=[];for(f=q;f=f.parentNode;)f.nodeType===1&&I.push({element:f,left:f.scrollLeft,top:f.scrollTop});typeof q.focus==="function"&&q.focus();for(q=0;q<I.length;q++){var v=I[q];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}vJ=!!bH,MH=bH=null}finally{n0=J,H1.p=Z,h.T=Y}}z.current=$,X4=aO}}function pB(){if(X4===aO){X4=i8;var z=tO;if(z!==null){m8=t1();var $=l7,X=m8;!v1||X<=$||(a7?a7.run(console.timeStamp.bind(console,z,$,X,c0,l0,"secondary-light")):console.timeStamp(z,$,X,c0,l0,"secondary-light"))}z=o8,$=t$,X=l6;var Y=($.flags&8772)!==0;if(($.subtreeFlags&8772)!==0||Y){Y=h.T,h.T=null;var Z=H1.p;H1.p=G6;var J=n0;n0|=_6;try{o$=X,r$=z,SY(),HB(z,$.alternate,$),r$=o$=null}finally{n0=J,H1.p=Z,h.T=Y}}z=HH,$=nO,l7=t1(),z=$===null?z:m8,$=l7,X=c6===QH,Y=c1,c7!==null?VK(z,$,c7,!1,Y):!v1||$<=z||(Y?Y.run(console.timeStamp.bind(console,X?"Commit Interrupted View Transition":"Commit",z,$,c0,l0,X?"error":"secondary-dark")):console.timeStamp(X?"Commit Interrupted View Transition":"Commit",z,$,c0,l0,X?"error":"secondary-dark")),X4=iO}}function jB(){if(X4===oO||X4===iO){if(X4===oO){var z=l7;l7=t1();var $=l7,X=c6===QH;!v1||$<=z||(a7?a7.run(console.timeStamp.bind(console,X?"Interrupted View Transition":"Starting Animation",z,$,c0,l0,X?"error":"secondary-light")):console.timeStamp(X?"Interrupted View Transition":"Starting Animation",z,$,c0,l0,X?" error":"secondary-light")),c6!==QH&&(c6=cO)}X4=i8,E3(),z=o8;var Y=t$;$=l6,X=rO;var Z=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;Z?X4=KJ:(X4=i8,t$=o8=null,xB(z,z.pendingLanes),pz=0,o5=null);var J=z.pendingLanes;if(J===0&&(a8=null),Z||dB(z),J=MX($),Y=Y.stateNode,k4&&typeof k4.onCommitFiberRoot==="function")try{var Q=(Y.current.flags&128)===128;switch(J){case G6:var q=Kq;break;case p6:q=_q;break;case N7:q=w$;break;case kZ:q=Bq;break;default:q=w$}k4.onCommitFiberRoot(P$,Y,q,Q)}catch(I){R7||(R7=!0,console.error("React instrumentation encountered an error: %o",I))}if(F7&&z.memoizedUpdaters.clear(),DW(),X!==null){Q=h.T,q=H1.p,H1.p=G6,h.T=null;try{var K=z.onRecoverableError;for(Y=0;Y<X.length;Y++){var B=X[Y],T=hW(B.stack);o(B.source,K,B.value,T)}}finally{h.T=Q,H1.p=q}}(l6&3)!==0&&sX(),B7(z),J=z.pendingLanes,($&261930)!==0&&(J&42)!==0?(aZ=!0,z===_H?i5++:(i5=0,_H=z)):i5=0,Z||Mz($,l7),z5(0,!1)}}function hW(z){return z={componentStack:z},Object.defineProperty(z,"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.')}}),z}function xB(z,$){(z.pooledCacheLanes&=$)===0&&($=z.pooledCache,$!=null&&(z.pooledCache=null,mX($)))}function sX(){return hB(),pB(),jB(),gB()}function gB(){if(X4!==KJ)return!1;var z=o8,$=qH;qH=0;var X=MX(l6),Y=N7===0||N7>X?N7:X;X=h.T;var Z=H1.p;try{H1.p=Y,h.T=null;var J=KH;KH=null,Y=o8;var Q=l6;if(X4=i8,t$=o8=null,l6=0,(n0&(Q4|_6))!==L4)throw Error("Cannot flush passive effects while already rendering.");s4(Q),BH=!0,_J=!1;var q=0;if(c7=null,q=B4(),c6===cO)EX(l7,q,a7);else{var K=l7,B=q,T=c6===GH;!v1||B<=K||(c1?c1.run(console.timeStamp.bind(console,T?"Waiting for Paint":"Waiting",K,B,c0,l0,"secondary-light")):console.timeStamp(T?"Waiting for Paint":"Waiting",K,B,c0,l0,"secondary-light"))}K=n0,n0|=_6;var I=Y.current;SY(),wB(I);var P=Y.current;I=HH,SY(),FB(Y,P,Q,J,I),dB(Y),n0=K;var f=B4();if(P=q,I=c1,c7!==null?VK(P,f,c7,!0,I):!v1||f<=P||(I?I.run(console.timeStamp.bind(console,"Remaining Effects",P,f,c0,l0,"secondary-dark")):console.timeStamp("Remaining Effects",P,f,c0,l0,"secondary-dark")),Mz(Q,f),z5(0,!1),_J?Y===o5?pz++:(pz=0,o5=Y):pz=0,_J=BH=!1,k4&&typeof k4.onPostCommitFiberRoot==="function")try{k4.onPostCommitFiberRoot(P$,Y)}catch(Z0){R7||(R7=!0,console.error("React instrumentation encountered an error: %o",Z0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{H1.p=Z,h.T=X,xB(z,$)}}function uB(z,$,X){$=e4(X,$),cK($),$=ZG(z.stateNode,$,2),z=b8(z,$,2),z!==null&&(C6(z,2),B7(z))}function q1(z,$,X){if(s$=!1,z.tag===3)uB(z,z,X);else{for(;$!==null;){if($.tag===3){uB($,z,X);return}if($.tag===1){var Y=$.stateNode;if(typeof $.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(a8===null||!a8.has(Y))){z=e4(X,z),cK(z),X=JG(2),Y=b8($,X,2),Y!==null&&(QG(X,Y,$,z),C6(Y,2),B7(Y));return}}$=$.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.
|
|
142
|
+
|
|
143
|
+
Error message:
|
|
144
|
+
|
|
145
|
+
%s`,X)}}function IG(z,$,X){var Y=z.pingCache;if(Y===null){Y=z.pingCache=new zF;var Z=new Set;Y.set($,Z)}else Z=Y.get($),Z===void 0&&(Z=new Set,Y.set($,Z));Z.has(X)||(ZH=!0,Z.add(X),Y=pW.bind(null,z,$,X),F7&&eX(z,X),$.then(Y,Y))}function pW(z,$,X){var Y=z.pingCache;Y!==null&&Y.delete($),z.pingedLanes|=z.suspendedLanes&X,z.warmLanes&=~X,(X&127)!==0?0>w7&&(h8=w7=t1(),P5=xZ("Promise Resolved"),p8=gZ):(X&4194048)!==0&&0>w6&&(P7=w6=t1(),v5=xZ("Promise Resolved"),jq=gZ),vB()&&h.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
146
|
+
|
|
147
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
148
|
+
|
|
149
|
+
act(() => {
|
|
150
|
+
/* finish loading suspended data */
|
|
151
|
+
});
|
|
152
|
+
/* assert on the output */
|
|
153
|
+
|
|
154
|
+
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`),R1===z&&(p0&X)===X&&(m1===u8||m1===XJ&&(p0&62914560)===p0&&B4()-GJ<uO?(n0&Q4)===L4&&L$(z,0):JH|=X,hz===p0&&(hz=0)),B7(z)}function lB(z,$){$===0&&($=r6()),z=I4(z,$),z!==null&&(C6(z,$),B7(z))}function jW(z){var $=z.memoizedState,X=0;$!==null&&(X=$.retryLane),lB(z,X)}function xW(z,$){var X=0;switch(z.tag){case 31:case 13:var{stateNode:Y,memoizedState:Z}=z;Z!==null&&(X=Z.retryLane);break;case 19:Y=z.stateNode;break;case 22:Y=z.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete($),lB(z,X)}function kG(z,$,X){if(($.subtreeFlags&67117056)!==0)for($=$.child;$!==null;){var Y=z,Z=$,J=Z.type===wZ;J=X||J,Z.tag!==22?Z.flags&67108864?J&&o(Z,cB,Y,Z):kG(Y,Z,J):Z.memoizedState===null&&(J&&Z.flags&8192?o(Z,cB,Y,Z):Z.subtreeFlags&67108864&&o(Z,kG,Y,Z,J)),$=$.sibling}}function cB(z,$){s0(!0);try{WB($),PB($),RB(z,$.alternate,$,!1),NB(z,$,0,null,!1,0)}finally{s0(!1)}}function dB(z){var $=!0;z.current.mode&(V4|j6)||($=!1),kG(z,z.current,$)}function aB(z){if((n0&Q4)===L4){var $=z.tag;if($===3||$===1||$===0||$===11||$===14||$===15){if($=E(z)||"ReactComponent",BJ!==null){if(BJ.has($))return;BJ.add($)}else BJ=new Set([$]);o(z,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 eX(z,$){F7&&z.memoizedUpdaters.forEach(function(X){H8(z,X,$)})}function gW(z,$){var X=h.actQueue;return X!==null?(X.push($),YF):Hq(z,$)}function uW(z){vB()&&h.actQueue===null&&o(z,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
155
|
+
|
|
156
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
157
|
+
|
|
158
|
+
act(() => {
|
|
159
|
+
/* fire events that update state */
|
|
160
|
+
});
|
|
161
|
+
/* assert on the output */
|
|
162
|
+
|
|
163
|
+
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`,E(z))})}function B7(z){z!==e$&&z.next===null&&(e$===null?UJ=e$=z:e$=e$.next=z),OJ=!0,h.actQueue!==null?OH||(OH=!0,nB()):UH||(UH=!0,nB())}function z5(z,$){if(!LH&&OJ){LH=!0;do{var X=!1;for(var Y=UJ;Y!==null;){if(!$)if(z!==0){var Z=Y.pendingLanes;if(Z===0)var J=0;else{var{suspendedLanes:Q,pingedLanes:q}=Y;J=(1<<31-E4(42|z)+1)-1,J&=Z&~(Q&~q),J=J&201326741?J&201326741|1:J?J|2:0}J!==0&&(X=!0,rB(Y,J))}else J=p0,J=$$(Y,Y===R1?J:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==uz),(J&3)===0||y6(Y,J)||(X=!0,rB(Y,J));Y=Y.next}}while(X);LH=!1}}function lW(){s5=window.event,VG()}function VG(){OJ=OH=UH=!1;var z=0;r8!==0&&nW()&&(z=r8);for(var $=B4(),X=null,Y=UJ;Y!==null;){var Z=Y.next,J=iB(Y,$);if(J===0)Y.next=null,X===null?UJ=Z:X.next=Z,Z===null&&(e$=X);else if(X=Y,z!==0||(J&3)!==0)OJ=!0;Y=Z}X4!==i8&&X4!==KJ||z5(z,!1),r8!==0&&(r8=0)}function iB(z,$){for(var{suspendedLanes:X,pingedLanes:Y,expirationTimes:Z}=z,J=z.pendingLanes&-62914561;0<J;){var Q=31-E4(J),q=1<<Q,K=Z[Q];if(K===-1){if((q&X)===0||(q&Y)!==0)Z[Q]=nJ(q,$)}else K<=$&&(z.expiredLanes|=q);J&=~q}if($=R1,X=p0,X=$$(z,z===$?X:0,z.cancelPendingCommit!==null||z.timeoutHandle!==uz),Y=z.callbackNode,X===0||z===$&&(_1===fz||_1===mz)||z.cancelPendingCommit!==null)return Y!==null&&yG(Y),z.callbackNode=null,z.callbackPriority=0;if((X&3)===0||y6(z,X)){if($=X&-X,$!==z.callbackPriority||h.actQueue!==null&&Y!==WH)yG(Y);else return $;switch(MX(X)){case G6:case p6:X=_q;break;case N7:X=w$;break;case kZ:X=Bq;break;default:X=w$}return Y=oB.bind(null,z),h.actQueue!==null?(h.actQueue.push(Y),X=WH):X=Hq(X,Y),z.callbackPriority=$,z.callbackNode=X,$}return Y!==null&&yG(Y),z.callbackPriority=2,z.callbackNode=null,2}function oB(z,$){if(aZ=dZ=!1,s5=window.event,X4!==i8&&X4!==KJ)return z.callbackNode=null,z.callbackPriority=0,null;var X=z.callbackNode;if(c6===HJ&&(c6=GH),sX()&&z.callbackNode!==X)return null;var Y=p0;if(Y=$$(z,z===R1?Y:0,z.cancelPendingCommit!==null||z.timeoutHandle!==uz),Y===0)return null;return IB(z,Y,$),iB(z,B4()),z.callbackNode!=null&&z.callbackNode===X?oB.bind(null,z):null}function rB(z,$){if(sX())return null;dZ=aZ,aZ=!1,IB(z,$,!0)}function yG(z){z!==WH&&z!==null&&D3(z)}function nB(){h.actQueue!==null&&h.actQueue.push(function(){return VG(),null}),UF(function(){(n0&(Q4|_6))!==L4?Hq(Kq,lW):VG()})}function CG(){if(r8===0){var z=kz;z===0&&(z=vZ,vZ<<=1,(vZ&261888)===0&&(vZ=256)),r8=z}return r8}function tB(z){if(z==null||typeof z==="symbol"||typeof z==="boolean")return null;if(typeof z==="function")return z;return E0(z,"action"),CX(""+z)}function sB(z,$){var X=$.ownerDocument.createElement("input");return X.name=$.name,X.value=$.value,z.id&&X.setAttribute("form",z.id),$.parentNode.insertBefore(X,$),z=new FormData(z),X.parentNode.removeChild(X),z}function cW(z,$,X,Y,Z){if($==="submit"&&X&&X.stateNode===Z){var J=tB((Z[f4]||null).action),Q=Y.submitter;Q&&($=($=Q[f4]||null)?tB($.formAction):Q.getAttribute("formAction"),$!==null&&(J=$,Q=null));var q=new SZ("action","action",null,Y,Z);z.push({event:q,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(r8!==0){var K=Q?sB(Z,Q):new FormData(Z),B={pending:!0,data:K,method:Z.method,action:J};Object.freeze(B),tQ(X,B,null,K)}}else typeof J==="function"&&(q.preventDefault(),K=Q?sB(Z,Q):new FormData(Z),B={pending:!0,data:K,method:Z.method,action:J},Object.freeze(B),tQ(X,B,J,K))},currentTarget:Z}]})}}function _Z(z,$,X){z.currentTarget=X;try{$(z)}catch(Y){kq(Y)}z.currentTarget=null}function eB(z,$){$=($&4)!==0;for(var X=0;X<z.length;X++){var Y=z[X];z:{var Z=void 0,J=Y.event;if(Y=Y.listeners,$)for(var Q=Y.length-1;0<=Q;Q--){var q=Y[Q],K=q.instance,B=q.currentTarget;if(q=q.listener,K!==Z&&J.isPropagationStopped())break z;K!==null?o(K,_Z,J,q,B):_Z(J,q,B),Z=K}else for(Q=0;Q<Y.length;Q++){if(q=Y[Q],K=q.instance,B=q.currentTarget,q=q.listener,K!==Z&&J.isPropagationStopped())break z;K!==null?o(K,_Z,J,q,B):_Z(J,q,B),Z=K}}}}function a0(z,$){RH.has(z)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',z);var X=$[Uq];X===void 0&&(X=$[Uq]=new Set);var Y=z+"__bubble";X.has(Y)||(zU($,z,2,!1),X.add(Y))}function DG(z,$,X){RH.has(z)&&!$&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',z);var Y=0;$&&(Y|=4),zU(X,z,Y,$)}function SG(z){if(!z[LJ]){z[LJ]=!0,nU.forEach(function(X){X!=="selectionchange"&&(RH.has(X)||DG(X,!1,z),DG(X,!0,z))});var $=z.nodeType===9?z:z.ownerDocument;$===null||$[LJ]||($[LJ]=!0,DG("selectionchange",!1,$))}}function zU(z,$,X,Y){switch(SU($)){case G6:var Z=A3;break;case p6:Z=v3;break;default:Z=rG}X=Z.bind(null,$,X,z),Z=void 0,!Fq||$!=="touchstart"&&$!=="touchmove"&&$!=="wheel"||(Z=!0),Y?Z!==void 0?z.addEventListener($,X,{capture:!0,passive:Z}):z.addEventListener($,X,!0):Z!==void 0?z.addEventListener($,X,{passive:Z}):z.addEventListener($,X,!1)}function EG(z,$,X,Y,Z){var J=Y;if(($&1)===0&&($&2)===0&&Y!==null)z:for(;;){if(Y===null)return;var Q=Y.tag;if(Q===3||Q===4){var q=Y.stateNode.containerInfo;if(q===Z)break;if(Q===4)for(Q=Y.return;Q!==null;){var K=Q.tag;if((K===3||K===4)&&Q.stateNode.containerInfo===Z)return;Q=Q.return}for(;q!==null;){if(Q=O6(q),Q===null)return;if(K=Q.tag,K===5||K===6||K===26||K===27){Y=J=Q;continue z}q=q.parentNode}}Y=Y.return}_K(function(){var B=J,T=XQ(X),I=[];z:{var P=S9.get(z);if(P!==void 0){var f=SZ,$0=z;switch(z){case"keypress":if(NY(X)===0)break z;case"keydown":case"keyup":f=NR;break;case"focusin":$0="focus",f=wq;break;case"focusout":$0="blur",f=wq;break;case"beforeblur":case"afterblur":f=wq;break;case"click":if(X.button===2)break z;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=N9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=GR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=wR;break;case V9:case y9:case C9:f=KR;break;case D9:f=AR;break;case"scroll":case"scrollend":f=JR;break;case"wheel":f=TR;break;case"copy":case"cut":case"paste":f=BR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=M9;break;case"toggle":case"beforetoggle":f=kR}var Z0=($&4)!==0,b1=!Z0&&(z==="scroll"||z==="scrollend"),i0=Z0?P!==null?P+"Capture":null:P;Z0=[];for(var w=B,A;w!==null;){var v=w;if(A=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||A===null||i0===null||(v=DX(w,i0),v!=null&&Z0.push($5(w,v,A))),b1)break;w=w.return}0<Z0.length&&(P=new f(P,$0,null,X,T),I.push({event:P,listeners:Z0}))}}if(($&7)===0){z:{if(P=z==="mouseover"||z==="pointerover",f=z==="mouseout"||z==="pointerout",P&&X!==B5&&($0=X.relatedTarget||X.fromElement)&&(O6($0)||$0[y8]))break z;if(f||P){if(P=T.window===T?T:(P=T.ownerDocument)?P.defaultView||P.parentWindow:window,f){if($0=X.relatedTarget||X.toElement,f=B,$0=$0?O6($0):null,$0!==null&&(b1=d($0),Z0=$0.tag,$0!==b1||Z0!==5&&Z0!==27&&Z0!==6))$0=null}else f=null,$0=B;if(f!==$0){if(Z0=N9,v="onMouseLeave",i0="onMouseEnter",w="mouse",z==="pointerout"||z==="pointerover")Z0=M9,v="onPointerLeave",i0="onPointerEnter",w="pointer";if(b1=f==null?P:K8(f),A=$0==null?P:K8($0),P=new Z0(v,w+"leave",f,X,T),P.target=b1,P.relatedTarget=A,v=null,O6(T)===B&&(Z0=new Z0(i0,w+"enter",$0,X,T),Z0.target=A,Z0.relatedTarget=b1,v=Z0),b1=v,f&&$0)$:{Z0=dW,i0=f,w=$0,A=0;for(v=i0;v;v=Z0(v))A++;v=0;for(var x=w;x;x=Z0(x))v++;for(;0<A-v;)i0=Z0(i0),A--;for(;0<v-A;)w=Z0(w),v--;for(;A--;){if(i0===w||w!==null&&i0===w.alternate){Z0=i0;break $}i0=Z0(i0),w=Z0(w)}Z0=null}else Z0=null;f!==null&&$U(I,P,f,Z0,!1),$0!==null&&b1!==null&&$U(I,b1,$0,Z0,!0)}}}z:{if(P=B?K8(B):window,f=P.nodeName&&P.nodeName.toLowerCase(),f==="select"||f==="input"&&P.type==="file")var Y0=FK;else if(WK(P))if(I9)Y0=YW;else{Y0=$W;var V0=zW}else f=P.nodeName,!f||f.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?B&&yX(B.elementType)&&(Y0=FK):Y0=XW;if(Y0&&(Y0=Y0(z,B))){RK(I,Y0,X,T);break z}V0&&V0(z,P,B),z==="focusout"&&B&&P.type==="number"&&B.memoizedProps.value!=null&&TX(P,"number",P.value)}switch(V0=B?K8(B):window,z){case"focusin":if(WK(V0)||V0.contentEditable==="true")y$=V0,Aq=B,N5=null;break;case"focusout":N5=Aq=y$=null;break;case"mousedown":vq=!0;break;case"contextmenu":case"mouseup":case"dragend":vq=!1,vK(I,X,T);break;case"selectionchange":if(DR)break;case"keydown":case"keyup":vK(I,X,T)}var F0;if(Pq)z:{switch(z){case"compositionstart":var B0="onCompositionStart";break z;case"compositionend":B0="onCompositionEnd";break z;case"compositionupdate":B0="onCompositionUpdate";break z}B0=void 0}else V$?OK(z,X)&&(B0="onCompositionEnd"):z==="keydown"&&X.keyCode===w9&&(B0="onCompositionStart");if(B0&&(P9&&X.locale!=="ko"&&(V$||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&V$&&(F0=BK()):(C8=T,Nq=("value"in C8)?C8.value:C8.textContent,V$=!0)),V0=BZ(B,B0),0<V0.length&&(B0=new b9(B0,z,null,X,T),I.push({event:B0,listeners:V0}),F0?B0.data=F0:(F0=LK(X),F0!==null&&(B0.data=F0)))),F0=yR?n2(z,X):t2(z,X))B0=BZ(B,"onBeforeInput"),0<B0.length&&(V0=new OR("onBeforeInput","beforeinput",null,X,T),I.push({event:V0,listeners:B0}),V0.data=F0);cW(I,z,B,X,T)}eB(I,$)})}function $5(z,$,X){return{instance:z,listener:$,currentTarget:X}}function BZ(z,$){for(var X=$+"Capture",Y=[];z!==null;){var Z=z,J=Z.stateNode;if(Z=Z.tag,Z!==5&&Z!==26&&Z!==27||J===null||(Z=DX(z,X),Z!=null&&Y.unshift($5(z,Z,J)),Z=DX(z,$),Z!=null&&Y.push($5(z,Z,J))),z.tag===3)return Y;z=z.return}return[]}function dW(z){if(z===null)return null;do z=z.return;while(z&&z.tag!==5&&z.tag!==27);return z?z:null}function $U(z,$,X,Y,Z){for(var J=$._reactName,Q=[];X!==null&&X!==Y;){var q=X,K=q.alternate,B=q.stateNode;if(q=q.tag,K!==null&&K===Y)break;q!==5&&q!==26&&q!==27||B===null||(K=B,Z?(B=DX(X,J),B!=null&&Q.unshift($5(X,B,K))):Z||(B=DX(X,J),B!=null&&Q.push($5(X,B,K)))),X=X.return}Q.length!==0&&z.push({event:$,listeners:Q})}function fG(z,$){a2(z,$),z!=="input"&&z!=="textarea"&&z!=="select"||$==null||$.value!==null||R9||(R9=!0,z==="select"&&$.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.",z):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",z));var X={registrationNameDependencies:wz,possibleRegistrationNames:Oq};yX(z)||typeof $.is==="string"||o2(z,$,X),$.contentEditable&&!$.suppressContentEditableWarning&&$.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 _4(z,$,X,Y){$!==X&&(X=v8(X),v8($)!==X&&(Y[z]=$))}function aW(z,$,X){$.forEach(function(Y){X[ZU(Y)]=Y==="style"?hG(z):z.getAttribute(Y)})}function U7(z,$){$===!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.",z,z,z):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",z,typeof $)}function XU(z,$){return z=z.namespaceURI===yZ||z.namespaceURI===v$?z.ownerDocument.createElementNS(z.namespaceURI,z.tagName):z.ownerDocument.createElement(z.tagName),z.innerHTML=$,z.innerHTML}function v8(z){return K4(z)&&(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.",g1(z)),k7(z)),(typeof z==="string"?z:""+z).replace(ZF,`
|
|
164
|
+
`).replace(JF,"")}function YU(z,$){return $=v8($),v8(z)===$?!0:!1}function L1(z,$,X,Y,Z,J){switch(X){case"children":if(typeof Y==="string")FY(Y,$,!1),$==="body"||$==="textarea"&&Y===""||VX(z,Y);else if(typeof Y==="number"||typeof Y==="bigint")FY(""+Y,$,!1),$!=="body"&&VX(z,""+Y);break;case"className":Z1(z,"class",Y);break;case"tabIndex":Z1(z,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":Z1(z,X,Y);break;case"style":qK(z,Y,J);break;case"data":if($!=="object"){Z1(z,"data",Y);break}case"src":case"href":if(Y===""&&($!=="a"||X!=="href")){X==="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.',X,X):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.',X,X),z.removeAttribute(X);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){z.removeAttribute(X);break}E0(Y,X),Y=CX(""+Y),z.setAttribute(X,Y);break;case"action":case"formAction":if(Y!=null&&($==="form"?X==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(Z.encType==null&&Z.method==null||FJ||(FJ=!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.")),Z.target==null||RJ||(RJ=!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."))):$==="input"||$==="button"?X==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):$!=="input"||Z.type==="submit"||Z.type==="image"||WJ?$!=="button"||Z.type==null||Z.type==="submit"||WJ?typeof Y==="function"&&(Z.name==null||XL||(XL=!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.')),Z.formEncType==null&&Z.formMethod==null||FJ||(FJ=!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.")),Z.formTarget==null||RJ||(RJ=!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."))):(WJ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(WJ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):X==="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 Y==="function"){z.setAttribute(X,"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"&&(X==="formAction"?($!=="input"&&L1(z,$,"name",Z.name,Z,null),L1(z,$,"formEncType",Z.formEncType,Z,null),L1(z,$,"formMethod",Z.formMethod,Z,null),L1(z,$,"formTarget",Z.formTarget,Z,null)):(L1(z,$,"encType",Z.encType,Z,null),L1(z,$,"method",Z.method,Z,null),L1(z,$,"target",Z.target,Z,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){z.removeAttribute(X);break}E0(Y,X),Y=CX(""+Y),z.setAttribute(X,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&U7(X,Y),z.onclick=y7);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&U7(X,Y),a0("scroll",z));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&U7(X,Y),a0("scrollend",z));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");z.innerHTML=X}}break;case"multiple":z.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":z.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){z.removeAttribute("xlink:href");break}E0(Y,X),X=CX(""+Y),z.setAttributeNS(jz,"xlink:href",X);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(E0(Y,X),z.setAttribute(X,""+Y)):z.removeAttribute(X);break;case"inert":Y!==""||NJ[X]||(NJ[X]=!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.",X));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":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?z.setAttribute(X,""):z.removeAttribute(X);break;case"capture":case"download":Y===!0?z.setAttribute(X,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(E0(Y,X),z.setAttribute(X,Y)):z.removeAttribute(X);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(E0(Y,X),z.setAttribute(X,Y)):z.removeAttribute(X);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?z.removeAttribute(X):(E0(Y,X),z.setAttribute(X,Y));break;case"popover":a0("beforetoggle",z),a0("toggle",z),vX(z,"popover",Y);break;case"xlinkActuate":P1(z,jz,"xlink:actuate",Y);break;case"xlinkArcrole":P1(z,jz,"xlink:arcrole",Y);break;case"xlinkRole":P1(z,jz,"xlink:role",Y);break;case"xlinkShow":P1(z,jz,"xlink:show",Y);break;case"xlinkTitle":P1(z,jz,"xlink:title",Y);break;case"xlinkType":P1(z,jz,"xlink:type",Y);break;case"xmlBase":P1(z,FH,"xml:base",Y);break;case"xmlLang":P1(z,FH,"xml:lang",Y);break;case"xmlSpace":P1(z,FH,"xml:space",Y);break;case"is":J!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),vX(z,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":YL||Y==null||typeof Y!=="object"||(YL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"?(X=HK(X),vX(z,X,Y)):wz.hasOwnProperty(X)&&Y!=null&&typeof Y!=="function"&&U7(X,Y)}}function mG(z,$,X,Y,Z,J){switch(X){case"style":qK(z,Y,J);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=Y.__html,X!=null){if(Z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");z.innerHTML=X}}break;case"children":typeof Y==="string"?VX(z,Y):(typeof Y==="number"||typeof Y==="bigint")&&VX(z,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&U7(X,Y),a0("scroll",z));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&U7(X,Y),a0("scrollend",z));break;case"onClick":Y!=null&&(typeof Y!=="function"&&U7(X,Y),z.onclick=y7);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(wz.hasOwnProperty(X))Y!=null&&typeof Y!=="function"&&U7(X,Y);else z:{if(X[0]==="o"&&X[1]==="n"&&(Z=X.endsWith("Capture"),$=X.slice(2,Z?X.length-7:void 0),J=z[f4]||null,J=J!=null?J[X]:null,typeof J==="function"&&z.removeEventListener($,J,Z),typeof Y==="function")){typeof J!=="function"&&J!==null&&(X in z?z[X]=null:z.hasAttribute(X)&&z.removeAttribute(X)),z.addEventListener($,Y,Z);break z}X in z?z[X]=Y:Y===!0?z.setAttribute(X,""):vX(z,X,Y)}}}function b4(z,$,X){switch(fG($,X),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":a0("error",z),a0("load",z);var Y=!1,Z=!1,J;for(J in X)if(X.hasOwnProperty(J)){var Q=X[J];if(Q!=null)switch(J){case"src":Y=!0;break;case"srcSet":Z=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:L1(z,$,J,Q,X,null)}}Z&&L1(z,$,"srcSet",X.srcSet,X,null),Y&&L1(z,$,"src",X.src,X,null);return;case"input":U8("input",X),a0("invalid",z);var q=J=Q=Z=null,K=null,B=null;for(Y in X)if(X.hasOwnProperty(Y)){var T=X[Y];if(T!=null)switch(Y){case"name":Z=T;break;case"type":Q=T;break;case"checked":K=T;break;case"defaultChecked":B=T;break;case"value":J=T;break;case"defaultValue":q=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:L1(z,$,Y,T,X,null)}}D6(z,X),X$(z,J,q,K,B,Q,Z,!1);return;case"select":U8("select",X),a0("invalid",z),Y=Q=J=null;for(Z in X)if(X.hasOwnProperty(Z)&&(q=X[Z],q!=null))switch(Z){case"value":J=q;break;case"defaultValue":Q=q;break;case"multiple":Y=q;default:L1(z,$,Z,q,X,null)}G1(z,X),$=J,X=Q,z.multiple=!!Y,$!=null?W0(z,!!Y,$,!1):X!=null&&W0(z,!!Y,X,!0);return;case"textarea":U8("textarea",X),a0("invalid",z),J=Z=Y=null;for(Q in X)if(X.hasOwnProperty(Q)&&(q=X[Q],q!=null))switch(Q){case"value":Y=q;break;case"defaultValue":Z=q;break;case"children":J=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:L1(z,$,Q,q,X,null)}O8(z,X),eH(z,Y,Z,J);return;case"option":S6(z,X);for(K in X)if(X.hasOwnProperty(K)&&(Y=X[K],Y!=null))switch(K){case"selected":z.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:L1(z,$,K,Y,X,null)}return;case"dialog":a0("beforetoggle",z),a0("toggle",z),a0("cancel",z),a0("close",z);break;case"iframe":case"object":a0("load",z);break;case"video":case"audio":for(Y=0;Y<r5.length;Y++)a0(r5[Y],z);break;case"image":a0("error",z),a0("load",z);break;case"details":a0("toggle",z);break;case"embed":case"source":case"link":a0("error",z),a0("load",z);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in X)if(X.hasOwnProperty(B)&&(Y=X[B],Y!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:L1(z,$,B,Y,X,null)}return;default:if(yX($)){for(T in X)X.hasOwnProperty(T)&&(Y=X[T],Y!==void 0&&mG(z,$,T,Y,X,void 0));return}}for(q in X)X.hasOwnProperty(q)&&(Y=X[q],Y!=null&&L1(z,$,q,Y,X,null))}function iW(z,$,X,Y){switch(fG($,Y),$){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var Z=null,J=null,Q=null,q=null,K=null,B=null,T=null;for(f in X){var I=X[f];if(X.hasOwnProperty(f)&&I!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":K=I;default:Y.hasOwnProperty(f)||L1(z,$,f,null,Y,I)}}for(var P in Y){var f=Y[P];if(I=X[P],Y.hasOwnProperty(P)&&(f!=null||I!=null))switch(P){case"type":J=f;break;case"name":Z=f;break;case"checked":B=f;break;case"defaultChecked":T=f;break;case"value":Q=f;break;case"defaultValue":q=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:f!==I&&L1(z,$,P,f,Y,I)}}$=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,$||!Y||$L||(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"),$L=!0),!$||Y||zL||(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"),zL=!0),V7(z,Q,q,K,B,T,J,Z);return;case"select":f=Q=q=P=null;for(J in X)if(K=X[J],X.hasOwnProperty(J)&&K!=null)switch(J){case"value":break;case"multiple":f=K;default:Y.hasOwnProperty(J)||L1(z,$,J,null,Y,K)}for(Z in Y)if(J=Y[Z],K=X[Z],Y.hasOwnProperty(Z)&&(J!=null||K!=null))switch(Z){case"value":P=J;break;case"defaultValue":q=J;break;case"multiple":Q=J;default:J!==K&&L1(z,$,Z,J,Y,K)}Y=q,$=Q,X=f,P!=null?W0(z,!!$,P,!1):!!X!==!!$&&(Y!=null?W0(z,!!$,Y,!0):W0(z,!!$,$?[]:"",!1));return;case"textarea":f=P=null;for(q in X)if(Z=X[q],X.hasOwnProperty(q)&&Z!=null&&!Y.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:L1(z,$,q,null,Y,Z)}for(Q in Y)if(Z=Y[Q],J=X[Q],Y.hasOwnProperty(Q)&&(Z!=null||J!=null))switch(Q){case"value":P=Z;break;case"defaultValue":f=Z;break;case"children":break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Z!==J&&L1(z,$,Q,Z,Y,J)}sH(z,P,f);return;case"option":for(var $0 in X)if(P=X[$0],X.hasOwnProperty($0)&&P!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":z.selected=!1;break;default:L1(z,$,$0,null,Y,P)}for(K in Y)if(P=Y[K],f=X[K],Y.hasOwnProperty(K)&&P!==f&&(P!=null||f!=null))switch(K){case"selected":z.selected=P&&typeof P!=="function"&&typeof P!=="symbol";break;default:L1(z,$,K,P,Y,f)}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 Z0 in X)P=X[Z0],X.hasOwnProperty(Z0)&&P!=null&&!Y.hasOwnProperty(Z0)&&L1(z,$,Z0,null,Y,P);for(B in Y)if(P=Y[B],f=X[B],Y.hasOwnProperty(B)&&P!==f&&(P!=null||f!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error($+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:L1(z,$,B,P,Y,f)}return;default:if(yX($)){for(var b1 in X)P=X[b1],X.hasOwnProperty(b1)&&P!==void 0&&!Y.hasOwnProperty(b1)&&mG(z,$,b1,void 0,Y,P);for(T in Y)P=Y[T],f=X[T],!Y.hasOwnProperty(T)||P===f||P===void 0&&f===void 0||mG(z,$,T,P,Y,f);return}}for(var i0 in X)P=X[i0],X.hasOwnProperty(i0)&&P!=null&&!Y.hasOwnProperty(i0)&&L1(z,$,i0,null,Y,P);for(I in Y)P=Y[I],f=X[I],!Y.hasOwnProperty(I)||P===f||P==null&&f==null||L1(z,$,I,P,Y,f)}function ZU(z){switch(z){case"class":return"className";case"for":return"htmlFor";default:return z}}function hG(z){var $={};z=z.style;for(var X=0;X<z.length;X++){var Y=z[X];$[Y]=z.getPropertyValue(Y)}return $}function JU(z,$,X){if($!=null&&typeof $!=="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 Y,Z=Y="",J;for(J in $)if($.hasOwnProperty(J)){var Q=$[J];Q!=null&&typeof Q!=="boolean"&&Q!==""&&(J.indexOf("--")===0?(z$(Q,J),Y+=Z+J+":"+(""+Q).trim()):typeof Q!=="number"||Q===0||L9.has(J)?(z$(Q,J),Y+=Z+J.replace(K9,"-$1").toLowerCase().replace(_9,"-ms-")+":"+(""+Q).trim()):Y+=Z+J.replace(K9,"-$1").toLowerCase().replace(_9,"-ms-")+":"+Q+"px",Z=";")}Y=Y||null,$=z.getAttribute("style"),$!==Y&&(Y=v8(Y),v8($)!==Y&&(X.style=hG(z)))}}function L6(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(E0(Y,$),z===""+Y)return}_4($,z,Y,J)}function QU(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}_4($,z,Y,J)}function pG(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(E0(Y,X),z===""+Y)return}_4($,z,Y,J)}function GU(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(E0(Y,$),z===""+Y))return}_4($,z,Y,J)}function jG(z,$,X,Y,Z,J){if(Z.delete(X),z=z.getAttribute(X),z===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(E0(Y,$),X=CX(""+Y),z===X)return}_4($,z,Y,J)}function qU(z,$,X,Y){for(var Z={},J=new Set,Q=z.attributes,q=0;q<Q.length;q++)switch(Q[q].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:J.add(Q[q].name)}if(yX($)){for(var K in X)if(X.hasOwnProperty(K)){var B=X[K];if(B!=null){if(wz.hasOwnProperty(K))typeof B!=="function"&&U7(K,B);else if(X.suppressHydrationWarning!==!0)switch(K){case"children":typeof B!=="string"&&typeof B!=="number"||_4("children",z.textContent,B,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":Q=z.innerHTML,B=B?B.__html:void 0,B!=null&&(B=XU(z,B),_4(K,Q,B,Z));continue;case"style":J.delete(K),JU(z,B,Z);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":J.delete(K.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",K);continue;case"className":J.delete("class"),Q=AX(z,"class",B),_4("className",Q,B,Z);continue;default:Y.context===s7&&$!=="svg"&&$!=="math"?J.delete(K.toLowerCase()):J.delete(K),Q=AX(z,K,B),_4(K,Q,B,Z)}}}}else for(B in X)if(X.hasOwnProperty(B)&&(K=X[B],K!=null)){if(wz.hasOwnProperty(B))typeof K!=="function"&&U7(B,K);else if(X.suppressHydrationWarning!==!0)switch(B){case"children":typeof K!=="string"&&typeof K!=="number"||_4("children",z.textContent,K,Z);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":Q=z.innerHTML,K=K?K.__html:void 0,K!=null&&(K=XU(z,K),Q!==K&&(Z[B]={__html:Q}));continue;case"className":L6(z,B,"class",K,J,Z);continue;case"tabIndex":L6(z,B,"tabindex",K,J,Z);continue;case"style":J.delete(B),JU(z,K,Z);continue;case"multiple":J.delete(B),_4(B,z.multiple,K,Z);continue;case"muted":J.delete(B),_4(B,z.muted,K,Z);continue;case"autoFocus":J.delete("autofocus"),_4(B,z.autofocus,K,Z);continue;case"data":if($!=="object"){J.delete(B),Q=z.getAttribute("data"),_4(B,Q,K,Z);continue}case"src":case"href":if(!(K!==""||$==="a"&&B==="href"||$==="object"&&B==="data")){B==="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.',B,B):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.',B,B);continue}jG(z,B,B,K,J,Z);continue;case"action":case"formAction":if(Q=z.getAttribute(B),typeof K==="function"){J.delete(B.toLowerCase()),B==="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(Q===QF){J.delete(B.toLowerCase()),_4(B,"function",K,Z);continue}jG(z,B,B.toLowerCase(),K,J,Z);continue;case"xlinkHref":jG(z,B,"xlink:href",K,J,Z);continue;case"contentEditable":pG(z,B,"contenteditable",K,J,Z);continue;case"spellCheck":pG(z,B,"spellcheck",K,J,Z);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":pG(z,B,B,K,J,Z);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":QU(z,B,B.toLowerCase(),K,J,Z);continue;case"capture":case"download":z:{q=z;var T=Q=B,I=Z;if(J.delete(T),q=q.getAttribute(T),q===null)switch(typeof K){case"undefined":case"function":case"symbol":break z;default:if(K===!1)break z}else if(K!=null)switch(typeof K){case"function":case"symbol":break;case"boolean":if(K===!0&&q==="")break z;break;default:if(E0(K,Q),q===""+K)break z}_4(Q,q,K,I)}continue;case"cols":case"rows":case"size":case"span":z:{if(q=z,T=Q=B,I=Z,J.delete(T),q=q.getAttribute(T),q===null)switch(typeof K){case"undefined":case"function":case"symbol":case"boolean":break z;default:if(isNaN(K)||1>K)break z}else if(K!=null)switch(typeof K){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(K)||1>K)&&(E0(K,Q),q===""+K))break z}_4(Q,q,K,I)}continue;case"rowSpan":GU(z,B,"rowspan",K,J,Z);continue;case"start":GU(z,B,B,K,J,Z);continue;case"xHeight":L6(z,B,"x-height",K,J,Z);continue;case"xlinkActuate":L6(z,B,"xlink:actuate",K,J,Z);continue;case"xlinkArcrole":L6(z,B,"xlink:arcrole",K,J,Z);continue;case"xlinkRole":L6(z,B,"xlink:role",K,J,Z);continue;case"xlinkShow":L6(z,B,"xlink:show",K,J,Z);continue;case"xlinkTitle":L6(z,B,"xlink:title",K,J,Z);continue;case"xlinkType":L6(z,B,"xlink:type",K,J,Z);continue;case"xmlBase":L6(z,B,"xml:base",K,J,Z);continue;case"xmlLang":L6(z,B,"xml:lang",K,J,Z);continue;case"xmlSpace":L6(z,B,"xml:space",K,J,Z);continue;case"inert":K!==""||NJ[B]||(NJ[B]=!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.",B)),QU(z,B,B,K,J,Z);continue;default:if(!(2<B.length)||B[0]!=="o"&&B[0]!=="O"||B[1]!=="n"&&B[1]!=="N"){q=HK(B),Q=!1,Y.context===s7&&$!=="svg"&&$!=="math"?J.delete(q.toLowerCase()):(T=B.toLowerCase(),T=CZ.hasOwnProperty(T)?CZ[T]||null:null,T!==null&&T!==B&&(Q=!0,J.delete(T)),J.delete(q));z:if(T=z,I=q,q=K,PX(I))if(T.hasAttribute(I))T=T.getAttribute(I),E0(q,I),q=T===""+q?q:T;else{switch(typeof q){case"function":case"symbol":break z;case"boolean":if(T=I.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")break z}q=q===void 0?void 0:null}else q=void 0;Q||_4(B,q,K,Z)}}}return 0<J.size&&X.suppressHydrationWarning!==!0&&aW(z,J,Z),Object.keys(Z).length===0?null:Z}function oW(z,$){switch(z.length){case 0:return"";case 1:return z[0];case 2:return z[0]+" "+$+" "+z[1];default:return z.slice(0,-1).join(", ")+", "+$+" "+z[z.length-1]}}function HU(z){switch(z){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rW(){if(typeof performance.getEntriesByType==="function"){for(var z=0,$=0,X=performance.getEntriesByType("resource"),Y=0;Y<X.length;Y++){var Z=X[Y],J=Z.transferSize,Q=Z.initiatorType,q=Z.duration;if(J&&q&&HU(Q)){Q=0,q=Z.responseEnd;for(Y+=1;Y<X.length;Y++){var K=X[Y],B=K.startTime;if(B>q)break;var{transferSize:T,initiatorType:I}=K;T&&HU(I)&&(K=K.responseEnd,Q+=T*(K<q?1:(q-B)/(K-B)))}if(--Y,$+=8*(J+Q)/(Z.duration/1000),z++,10<z)break}}if(0<z)return $/z/1e6}return navigator.connection&&(z=navigator.connection.downlink,typeof z==="number")?z:5}function UZ(z){return z.nodeType===9?z:z.ownerDocument}function KU(z){switch(z){case v$:return $X;case yZ:return MJ;default:return s7}}function _U(z,$){if(z===s7)switch($){case"svg":return $X;case"math":return MJ;default:return s7}return z===$X&&$==="foreignObject"?s7:z}function xG(z,$){return z==="textarea"||z==="noscript"||typeof $.children==="string"||typeof $.children==="number"||typeof $.children==="bigint"||typeof $.dangerouslySetInnerHTML==="object"&&$.dangerouslySetInnerHTML!==null&&$.dangerouslySetInnerHTML.__html!=null}function nW(){var z=window.event;if(z&&z.type==="popstate"){if(z===wH)return!1;return wH=z,!0}return wH=null,!1}function X5(){var z=window.event;return z&&z!==s5?z.type:null}function Y5(){var z=window.event;return z&&z!==s5?z.timeStamp:-1.1}function tW(z){setTimeout(function(){throw z})}function sW(z,$,X){switch($){case"button":case"input":case"select":case"textarea":X.autoFocus&&z.focus();break;case"img":X.src?z.src=X.src:X.srcSet&&(z.srcset=X.srcSet)}}function eW(){}function z3(z,$,X,Y){iW(z,$,X,Y),z[f4]=Y}function BU(z){VX(z,"")}function $3(z,$,X){z.nodeValue=X}function UU(z){if(!z.__reactWarnedAboutChildrenConflict){var $=z[f4]||null;if($!==null){var X=D4(z);X!==null&&(typeof $.children==="string"||typeof $.children==="number"?(z.__reactWarnedAboutChildrenConflict=!0,o(X,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.')})):$.dangerouslySetInnerHTML!=null&&(z.__reactWarnedAboutChildrenConflict=!0,o(X,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 T8(z){return z==="head"}function X3(z,$){z.removeChild($)}function Y3(z,$){(z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z).removeChild($)}function OU(z,$){var X=$,Y=0;do{var Z=X.nextSibling;if(z.removeChild(X),Z&&Z.nodeType===8)if(X=Z.data,X===t5||X===bJ){if(Y===0){z.removeChild(Z),N$($);return}Y--}else if(X===n5||X===n8||X===gz||X===zX||X===xz)Y++;else if(X===qF)Z5(z.ownerDocument.documentElement);else if(X===KF){X=z.ownerDocument.head,Z5(X);for(var J=X.firstChild;J;){var{nextSibling:Q,nodeName:q}=J;J[_5]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&J.rel.toLowerCase()==="stylesheet"||X.removeChild(J),J=Q}}else X===HF&&Z5(z.ownerDocument.body);X=Z}while(X);N$($)}function LU(z,$){var X=z;z=0;do{var Y=X.nextSibling;if(X.nodeType===1?$?(X._stashedDisplay=X.style.display,X.style.display="none"):(X.style.display=X._stashedDisplay||"",X.getAttribute("style")===""&&X.removeAttribute("style")):X.nodeType===3&&($?(X._stashedText=X.nodeValue,X.nodeValue=""):X.nodeValue=X._stashedText||""),Y&&Y.nodeType===8)if(X=Y.data,X===t5)if(z===0)break;else z--;else X!==n5&&X!==n8&&X!==gz&&X!==zX||z++;X=Y}while(X)}function Z3(z){LU(z,!0)}function J3(z){z=z.style,typeof z.setProperty==="function"?z.setProperty("display","none","important"):z.display="none"}function Q3(z){z.nodeValue=""}function G3(z){LU(z,!1)}function q3(z,$){$=$[_F],$=$!==void 0&&$!==null&&$.hasOwnProperty("display")?$.display:null,z.style.display=$==null||typeof $==="boolean"?"":(""+$).trim()}function H3(z,$){z.nodeValue=$}function gG(z){var $=z.firstChild;$&&$.nodeType===10&&($=$.nextSibling);for(;$;){var X=$;switch($=$.nextSibling,X.nodeName){case"HTML":case"HEAD":case"BODY":gG(X),WY(X);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(X.rel.toLowerCase()==="stylesheet")continue}z.removeChild(X)}}function K3(z,$,X,Y){for(;z.nodeType===1;){var Z=X;if(z.nodeName.toLowerCase()!==$.toLowerCase()){if(!Y&&(z.nodeName!=="INPUT"||z.type!=="hidden"))break}else if(!Y)if($==="input"&&z.type==="hidden"){E0(Z.name,"name");var J=Z.name==null?null:""+Z.name;if(Z.type==="hidden"&&z.getAttribute("name")===J)return z}else return z;else if(!z[_5])switch($){case"meta":if(!z.hasAttribute("itemprop"))break;return z;case"link":if(J=z.getAttribute("rel"),J==="stylesheet"&&z.hasAttribute("data-precedence"))break;else if(J!==Z.rel||z.getAttribute("href")!==(Z.href==null||Z.href===""?null:Z.href)||z.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin)||z.getAttribute("title")!==(Z.title==null?null:Z.title))break;return z;case"style":if(z.hasAttribute("data-precedence"))break;return z;case"script":if(J=z.getAttribute("src"),(J!==(Z.src==null?null:Z.src)||z.getAttribute("type")!==(Z.type==null?null:Z.type)||z.getAttribute("crossorigin")!==(Z.crossOrigin==null?null:Z.crossOrigin))&&J&&z.hasAttribute("async")&&!z.hasAttribute("itemprop"))break;return z;default:return z}if(z=Z6(z.nextSibling),z===null)break}return null}function _3(z,$,X){if($==="")return null;for(;z.nodeType!==3;){if((z.nodeType!==1||z.nodeName!=="INPUT"||z.type!=="hidden")&&!X)return null;if(z=Z6(z.nextSibling),z===null)return null}return z}function WU(z,$){for(;z.nodeType!==8;){if((z.nodeType!==1||z.nodeName!=="INPUT"||z.type!=="hidden")&&!$)return null;if(z=Z6(z.nextSibling),z===null)return null}return z}function uG(z){return z.data===n8||z.data===gz}function lG(z){return z.data===zX||z.data===n8&&z.ownerDocument.readyState!==JL}function B3(z,$){var X=z.ownerDocument;if(z.data===gz)z._reactRetry=$;else if(z.data!==n8||X.readyState!==JL)$();else{var Y=function(){$(),X.removeEventListener("DOMContentLoaded",Y)};X.addEventListener("DOMContentLoaded",Y),z._reactRetry=Y}}function Z6(z){for(;z!=null;z=z.nextSibling){var $=z.nodeType;if($===1||$===3)break;if($===8){if($=z.data,$===n5||$===zX||$===n8||$===gz||$===xz||$===NH||$===ZL)break;if($===t5||$===bJ)return null}}return z}function RU(z){if(z.nodeType===1){for(var $=z.nodeName.toLowerCase(),X={},Y=z.attributes,Z=0;Z<Y.length;Z++){var J=Y[Z];X[ZU(J.name)]=J.name.toLowerCase()==="style"?hG(z):J.value}return{type:$,props:X}}return z.nodeType===8?z.data===xz?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:z.nodeValue}function FU(z,$,X){return X===null||X[GF]!==!0?(z.nodeValue===$?z=null:($=v8($),z=v8(z.nodeValue)===$?null:z.nodeValue),z):null}function cG(z){z=z.nextSibling;for(var $=0;z;){if(z.nodeType===8){var X=z.data;if(X===t5||X===bJ){if($===0)return Z6(z.nextSibling);$--}else X!==n5&&X!==zX&&X!==n8&&X!==gz&&X!==xz||$++}z=z.nextSibling}return null}function NU(z){z=z.previousSibling;for(var $=0;z;){if(z.nodeType===8){var X=z.data;if(X===n5||X===zX||X===n8||X===gz||X===xz){if($===0)return z;$--}else X!==t5&&X!==bJ||$++}z=z.previousSibling}return null}function U3(z){N$(z)}function O3(z){N$(z)}function L3(z){N$(z)}function bU(z,$,X,Y,Z){switch(Z&&$Q(z,Y.ancestorInfo),$=UZ(X),z){case"html":if(z=$.documentElement,!z)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 z;case"head":if(z=$.head,!z)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 z;case"body":if(z=$.body,!z)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 z;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function W3(z,$,X,Y){if(!X[y8]&&D4(X)){var Z=X.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.",Z,Z,Z)}switch(z){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(Z=X.attributes;Z.length;)X.removeAttributeNode(Z[0]);b4(X,z,$),X[M4]=Y,X[f4]=$}function Z5(z){for(var $=z.attributes;$.length;)z.removeAttributeNode($[0]);WY(z)}function OZ(z){return typeof z.getRootNode==="function"?z.getRootNode():z.nodeType===9?z:z.ownerDocument}function MU(z,$,X){var Y=XX;if(Y&&typeof $==="string"&&$){var Z=C0($);Z='link[rel="'+z+'"][href="'+Z+'"]',typeof X==="string"&&(Z+='[crossorigin="'+X+'"]'),_L.has(Z)||(_L.add(Z),z={rel:z,crossOrigin:X,href:$},Y.querySelector(Z)===null&&($=Y.createElement("link"),b4($,"link",z),u1($),Y.head.appendChild($)))}}function wU(z,$,X,Y){var Z=(Z=k8.current)?OZ(Z):null;if(!Z)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(z){case"meta":case"title":return null;case"style":return typeof X.precedence==="string"&&typeof X.href==="string"?(X=R$(X.href),$=_8(Z).hoistableStyles,Y=$.get(X),Y||(Y={type:"style",instance:null,count:0,state:null},$.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(X.rel==="stylesheet"&&typeof X.href==="string"&&typeof X.precedence==="string"){z=R$(X.href);var J=_8(Z).hoistableStyles,Q=J.get(z);if(!Q&&(Z=Z.ownerDocument||Z,Q={type:"stylesheet",instance:null,count:0,state:{loading:lz,preload:null}},J.set(z,Q),(J=Z.querySelector(J5(z)))&&!J._p&&(Q.instance=J,Q.state.loading=e5|T6),!I6.has(z))){var q={rel:"preload",as:"style",href:X.href,crossOrigin:X.crossOrigin,integrity:X.integrity,media:X.media,hrefLang:X.hrefLang,referrerPolicy:X.referrerPolicy};I6.set(z,q),J||R3(Z,z,q,Q.state)}if($&&Y===null)throw X=`
|
|
165
|
+
|
|
166
|
+
- `+LZ($)+`
|
|
167
|
+
+ `+LZ(X),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."+X);return Q}if($&&Y!==null)throw X=`
|
|
168
|
+
|
|
169
|
+
- `+LZ($)+`
|
|
170
|
+
+ `+LZ(X),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."+X);return null;case"script":return $=X.async,X=X.src,typeof X==="string"&&$&&typeof $!=="function"&&typeof $!=="symbol"?(X=F$(X),$=_8(Z).hoistableScripts,Y=$.get(X),Y||(Y={type:"script",instance:null,count:0,state:null},$.set(X,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+z+'". this is a bug in React.')}}function LZ(z){var $=0,X="<link";return typeof z.rel==="string"?($++,X+=' rel="'+z.rel+'"'):h6.call(z,"rel")&&($++,X+=' rel="'+(z.rel===null?"null":"invalid type "+typeof z.rel)+'"'),typeof z.href==="string"?($++,X+=' href="'+z.href+'"'):h6.call(z,"href")&&($++,X+=' href="'+(z.href===null?"null":"invalid type "+typeof z.href)+'"'),typeof z.precedence==="string"?($++,X+=' precedence="'+z.precedence+'"'):h6.call(z,"precedence")&&($++,X+=" precedence={"+(z.precedence===null?"null":"invalid type "+typeof z.precedence)+"}"),Object.getOwnPropertyNames(z).length>$&&(X+=" ..."),X+" />"}function R$(z){return'href="'+C0(z)+'"'}function J5(z){return'link[rel="stylesheet"]['+z+"]"}function PU(z){return u0({},z,{"data-precedence":z.precedence,precedence:null})}function R3(z,$,X,Y){z.querySelector('link[rel="preload"][as="style"]['+$+"]")?Y.loading=e5:($=z.createElement("link"),Y.preload=$,$.addEventListener("load",function(){return Y.loading|=e5}),$.addEventListener("error",function(){return Y.loading|=HL}),b4($,"link",X),u1($),z.head.appendChild($))}function F$(z){return'[src="'+C0(z)+'"]'}function Q5(z){return"script[async]"+z}function AU(z,$,X){if($.count++,$.instance===null)switch($.type){case"style":var Y=z.querySelector('style[data-href~="'+C0(X.href)+'"]');if(Y)return $.instance=Y,u1(Y),Y;var Z=u0({},X,{"data-href":X.href,"data-precedence":X.precedence,href:null,precedence:null});return Y=(z.ownerDocument||z).createElement("style"),u1(Y),b4(Y,"style",Z),WZ(Y,X.precedence,z),$.instance=Y;case"stylesheet":Z=R$(X.href);var J=z.querySelector(J5(Z));if(J)return $.state.loading|=T6,$.instance=J,u1(J),J;Y=PU(X),(Z=I6.get(Z))&&dG(Y,Z),J=(z.ownerDocument||z).createElement("link"),u1(J);var Q=J;return Q._p=new Promise(function(q,K){Q.onload=q,Q.onerror=K}),b4(J,"link",Y),$.state.loading|=T6,WZ(J,X.precedence,z),$.instance=J;case"script":if(J=F$(X.src),Z=z.querySelector(Q5(J)))return $.instance=Z,u1(Z),Z;if(Y=X,Z=I6.get(J))Y=u0({},X),aG(Y,Z);return z=z.ownerDocument||z,Z=z.createElement("script"),u1(Z),b4(Z,"link",Y),z.head.appendChild(Z),$.instance=Z;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+$.type+'". this is a bug in React.')}else $.type==="stylesheet"&&($.state.loading&T6)===lz&&(Y=$.instance,$.state.loading|=T6,WZ(Y,X.precedence,z));return $.instance}function WZ(z,$,X){for(var Y=X.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Z=Y.length?Y[Y.length-1]:null,J=Z,Q=0;Q<Y.length;Q++){var q=Y[Q];if(q.dataset.precedence===$)J=q;else if(J!==Z)break}J?J.parentNode.insertBefore(z,J.nextSibling):($=X.nodeType===9?X.head:X,$.insertBefore(z,$.firstChild))}function dG(z,$){z.crossOrigin==null&&(z.crossOrigin=$.crossOrigin),z.referrerPolicy==null&&(z.referrerPolicy=$.referrerPolicy),z.title==null&&(z.title=$.title)}function aG(z,$){z.crossOrigin==null&&(z.crossOrigin=$.crossOrigin),z.referrerPolicy==null&&(z.referrerPolicy=$.referrerPolicy),z.integrity==null&&(z.integrity=$.integrity)}function vU(z,$,X){if(wJ===null){var Y=new Map,Z=wJ=new Map;Z.set(X,Y)}else Z=wJ,Y=Z.get(X),Y||(Y=new Map,Z.set(X,Y));if(Y.has(z))return Y;Y.set(z,null),X=X.getElementsByTagName(z);for(Z=0;Z<X.length;Z++){var J=X[Z];if(!(J[_5]||J[M4]||z==="link"&&J.getAttribute("rel")==="stylesheet")&&J.namespaceURI!==v$){var Q=J.getAttribute($)||"";Q=z+Q;var q=Y.get(Q);q?q.push(J):Y.set(Q,[J])}}return Y}function TU(z,$,X){z=z.ownerDocument||z,z.head.insertBefore(X,$==="title"?z.querySelector("head > title"):null)}function F3(z,$,X){var Y=!X.ancestorInfo.containerTagInScope;if(X.context===$X||$.itemProp!=null)return!Y||$.itemProp==null||z!=="meta"&&z!=="title"&&z!=="style"&&z!=="link"&&z!=="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.",z,z),!1;switch(z){case"meta":case"title":return!0;case"style":if(typeof $.precedence!=="string"||typeof $.href!=="string"||$.href===""){Y&&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 $.rel!=="string"||typeof $.href!=="string"||$.href===""||$.onLoad||$.onError){if($.rel==="stylesheet"&&typeof $.precedence==="string"){z=$.href;var{onError:Z,disabled:J}=$;X=[],$.onLoad&&X.push("`onLoad`"),Z&&X.push("`onError`"),J!=null&&X.push("`disabled`"),Z=oW(X,"and"),Z+=X.length===1?" prop":" props",J=X.length===1?"an "+Z:"the "+Z,X.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.',z,J,Z)}Y&&(typeof $.rel!=="string"||typeof $.href!=="string"||$.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"):($.onError||$.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($.rel){case"stylesheet":return z=$.precedence,$=$.disabled,typeof z!=="string"&&Y&&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 z==="string"&&$==null;default:return!0}case"script":if(z=$.async&&typeof $.async!=="function"&&typeof $.async!=="symbol",!z||$.onLoad||$.onError||!$.src||typeof $.src!=="string"){Y&&(z?$.onLoad||$.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":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",z)}return!1}function IU(z){return z.type==="stylesheet"&&(z.state.loading&KL)===lz?!1:!0}function N3(z,$,X,Y){if(X.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(X.state.loading&T6)===lz){if(X.instance===null){var Z=R$(Y.href),J=$.querySelector(J5(Z));if(J){$=J._p,$!==null&&typeof $==="object"&&typeof $.then==="function"&&(z.count++,z=RZ.bind(z),$.then(z,z)),X.state.loading|=T6,X.instance=J,u1(J);return}J=$.ownerDocument||$,Y=PU(Y),(Z=I6.get(Z))&&dG(Y,Z),J=J.createElement("link"),u1(J);var Q=J;Q._p=new Promise(function(q,K){Q.onload=q,Q.onerror=K}),b4(J,"link",Y),X.instance=J}z.stylesheets===null&&(z.stylesheets=new Map),z.stylesheets.set(X,$),($=X.state.preload)&&(X.state.loading&KL)===lz&&(z.count++,X=RZ.bind(z),$.addEventListener("load",X),$.addEventListener("error",X))}}function b3(z,$){return z.stylesheets&&z.count===0&&FZ(z,z.stylesheets),0<z.count||0<z.imgCount?function(X){var Y=setTimeout(function(){if(z.stylesheets&&FZ(z,z.stylesheets),z.unsuspend){var J=z.unsuspend;z.unsuspend=null,J()}},OF+$);0<z.imgBytes&&AH===0&&(AH=125*rW()*WF);var Z=setTimeout(function(){if(z.waitingForImages=!1,z.count===0&&(z.stylesheets&&FZ(z,z.stylesheets),z.unsuspend)){var J=z.unsuspend;z.unsuspend=null,J()}},(z.imgBytes>AH?50:LF)+$);return z.unsuspend=X,function(){z.unsuspend=null,clearTimeout(Y),clearTimeout(Z)}}:null}function RZ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)FZ(this,this.stylesheets);else if(this.unsuspend){var z=this.unsuspend;this.unsuspend=null,z()}}}function FZ(z,$){z.stylesheets=null,z.unsuspend!==null&&(z.count++,PJ=new Map,$.forEach(M3,z),PJ=null,RZ.call(z))}function M3(z,$){if(!($.state.loading&T6)){var X=PJ.get(z);if(X)var Y=X.get(vH);else{X=new Map,PJ.set(z,X);for(var Z=z.querySelectorAll("link[data-precedence],style[data-precedence]"),J=0;J<Z.length;J++){var Q=Z[J];if(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")X.set(Q.dataset.precedence,Q),Y=Q}Y&&X.set(vH,Y)}Z=$.instance,Q=Z.getAttribute("data-precedence"),J=X.get(Q)||Y,J===Y&&X.set(vH,Z),X.set(Q,Z),this.count++,Y=RZ.bind(this),Z.addEventListener("load",Y),Z.addEventListener("error",Y),J?J.parentNode.insertBefore(Z,J.nextSibling):(z=z.nodeType===9?z.head:z,z.insertBefore(Z,z.firstChild)),$.state.loading|=T6}}function w3(z,$,X,Y,Z,J,Q,q,K){this.tag=1,this.containerInfo=z,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=uz,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=FX(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=FX(0),this.hiddenUpdates=FX(null),this.identifierPrefix=Y,this.onUncaughtError=Z,this.onCaughtError=J,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,z=this.pendingUpdatersLaneMap=[];for($=0;31>$;$++)z.push(new Set);this._debugRootType=X?"hydrateRoot()":"createRoot()"}function kU(z,$,X,Y,Z,J,Q,q,K,B,T,I){return z=new w3(z,$,X,Q,K,B,T,I,q),$=gR,J===!0&&($|=V4|j6),$|=m0,J=b(3,null,null,$),z.current=J,J.stateNode=z,$=bQ(),Lz($),z.pooledCache=$,Lz($),J.memoizedState={element:Y,isDehydrated:X,cache:$},vQ(J),z}function VU(z){if(!z)return E8;return z=E8,z}function iG(z,$,X,Y,Z,J){if(k4&&typeof k4.onScheduleFiberRoot==="function")try{k4.onScheduleFiberRoot(P$,Y,X)}catch(Q){R7||(R7=!0,console.error("React instrumentation encountered an error: %o",Q))}Z=VU(Z),Y.context===null?Y.context=Z:Y.pendingContext=Z,W7&&Q6!==null&&!LL&&(LL=!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.
|
|
171
|
+
|
|
172
|
+
Check the render method of %s.`,E(Q6)||"Unknown")),Y=N8($),Y.payload={element:X},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),Y.callback=J),X=b8(z,Y,$),X!==null&&($7($,"root.render()",null),p1(X,z,$),xX(X,z,$))}function yU(z,$){if(z=z.memoizedState,z!==null&&z.dehydrated!==null){var X=z.retryLane;z.retryLane=X!==0&&X<$?X:$}}function oG(z,$){yU(z,$),(z=z.alternate)&&yU(z,$)}function CU(z){if(z.tag===13||z.tag===31){var $=I4(z,67108864);$!==null&&p1($,z,67108864),oG(z,67108864)}}function DU(z){if(z.tag===13||z.tag===31){var $=Y6(z);$=bX($);var X=I4(z,$);X!==null&&p1(X,z,$),oG(z,$)}}function P3(){return Q6}function A3(z,$,X,Y){var Z=h.T;h.T=null;var J=H1.p;try{H1.p=G6,rG(z,$,X,Y)}finally{H1.p=J,h.T=Z}}function v3(z,$,X,Y){var Z=h.T;h.T=null;var J=H1.p;try{H1.p=p6,rG(z,$,X,Y)}finally{H1.p=J,h.T=Z}}function rG(z,$,X,Y){if(vJ){var Z=nG(Y);if(Z===null)EG(z,$,Y,TJ,X),EU(z,Y);else if(T3(Z,z,$,X,Y))Y.stopPropagation();else if(EU(z,Y),$&4&&-1<FF.indexOf(z)){for(;Z!==null;){var J=D4(Z);if(J!==null)switch(J.tag){case 3:if(J=J.stateNode,J.current.memoizedState.isDehydrated){var Q=R4(J.pendingLanes);if(Q!==0){var q=J;q.pendingLanes|=2;for(q.entangledLanes|=2;Q;){var K=1<<31-E4(Q);q.entanglements[1]|=K,Q&=~K}B7(J),(n0&(Q4|_6))===L4&&(qJ=B4()+lO,z5(0,!1))}}break;case 31:case 13:q=I4(J,2),q!==null&&p1(q,J,2),O$(),oG(J,2)}if(J=nG(Y),J===null&&EG(z,$,Y,TJ,X),J===Z)break;Z=J}Z!==null&&Y.stopPropagation()}else EG(z,$,Y,null,X)}}function nG(z){return z=XQ(z),tG(z)}function tG(z){if(TJ=null,z=O6(z),z!==null){var $=d(z);if($===null)z=null;else{var X=$.tag;if(X===13){if(z=e($),z!==null)return z;z=null}else if(X===31){if(z=s($),z!==null)return z;z=null}else if(X===3){if($.stateNode.current.memoizedState.isDehydrated)return $.tag===3?$.stateNode.containerInfo:null;z=null}else $!==z&&(z=null)}}return TJ=z,null}function SU(z){switch(z){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 G6;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 p6;case"message":switch(f3()){case Kq:return G6;case _q:return p6;case w$:case m3:return N7;case Bq:return kZ;default:return N7}default:return N7}}function EU(z,$){switch(z){case"focusin":case"focusout":t8=null;break;case"dragenter":case"dragleave":s8=null;break;case"mouseover":case"mouseout":e8=null;break;case"pointerover":case"pointerout":$Y.delete($.pointerId);break;case"gotpointercapture":case"lostpointercapture":XY.delete($.pointerId)}}function G5(z,$,X,Y,Z,J){if(z===null||z.nativeEvent!==J)return z={blockedOn:$,domEventName:X,eventSystemFlags:Y,nativeEvent:J,targetContainers:[Z]},$!==null&&($=D4($),$!==null&&CU($)),z;return z.eventSystemFlags|=Y,$=z.targetContainers,Z!==null&&$.indexOf(Z)===-1&&$.push(Z),z}function T3(z,$,X,Y,Z){switch($){case"focusin":return t8=G5(t8,z,$,X,Y,Z),!0;case"dragenter":return s8=G5(s8,z,$,X,Y,Z),!0;case"mouseover":return e8=G5(e8,z,$,X,Y,Z),!0;case"pointerover":var J=Z.pointerId;return $Y.set(J,G5($Y.get(J)||null,z,$,X,Y,Z)),!0;case"gotpointercapture":return J=Z.pointerId,XY.set(J,G5(XY.get(J)||null,z,$,X,Y,Z)),!0}return!1}function fU(z){var $=O6(z.target);if($!==null){var X=d($);if(X!==null){if($=X.tag,$===13){if($=e(X),$!==null){z.blockedOn=$,LY(z.priority,function(){DU(X)});return}}else if($===31){if($=s(X),$!==null){z.blockedOn=$,LY(z.priority,function(){DU(X)});return}}else if($===3&&X.stateNode.current.memoizedState.isDehydrated){z.blockedOn=X.tag===3?X.stateNode.containerInfo:null;return}}}z.blockedOn=null}function NZ(z){if(z.blockedOn!==null)return!1;for(var $=z.targetContainers;0<$.length;){var X=nG(z.nativeEvent);if(X===null){X=z.nativeEvent;var Y=new X.constructor(X.type,X),Z=Y;B5!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),B5=Z,X.target.dispatchEvent(Y),B5===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."),B5=null}else return $=D4(X),$!==null&&CU($),z.blockedOn=X,!1;$.shift()}return!0}function mU(z,$,X){NZ(z)&&X.delete($)}function I3(){TH=!1,t8!==null&&NZ(t8)&&(t8=null),s8!==null&&NZ(s8)&&(s8=null),e8!==null&&NZ(e8)&&(e8=null),$Y.forEach(mU),XY.forEach(mU)}function bZ(z,$){z.blockedOn===$&&(z.blockedOn=null,TH||(TH=!0,z1.unstable_scheduleCallback(z1.unstable_NormalPriority,I3)))}function hU(z){IJ!==z&&(IJ=z,z1.unstable_scheduleCallback(z1.unstable_NormalPriority,function(){IJ===z&&(IJ=null);for(var $=0;$<z.length;$+=3){var X=z[$],Y=z[$+1],Z=z[$+2];if(typeof Y!=="function")if(tG(Y||X)===null)continue;else break;var J=D4(X);J!==null&&(z.splice($,3),$-=3,X={pending:!0,data:Z,method:X.method,action:Y},Object.freeze(X),tQ(J,X,Y,Z))}}))}function N$(z){function $(K){return bZ(K,z)}t8!==null&&bZ(t8,z),s8!==null&&bZ(s8,z),e8!==null&&bZ(e8,z),$Y.forEach($),XY.forEach($);for(var X=0;X<zz.length;X++){var Y=zz[X];Y.blockedOn===z&&(Y.blockedOn=null)}for(;0<zz.length&&(X=zz[0],X.blockedOn===null);)fU(X),X.blockedOn===null&&zz.shift();if(X=(z.ownerDocument||z).$$reactFormReplay,X!=null)for(Y=0;Y<X.length;Y+=3){var Z=X[Y],J=X[Y+1],Q=Z[f4]||null;if(typeof J==="function")Q||hU(X);else if(Q){var q=null;if(J&&J.hasAttribute("formAction")){if(Z=J,Q=J[f4]||null)q=Q.formAction;else if(tG(Z)!==null)continue}else q=Q.action;typeof q==="function"?X[Y+1]=q:(X.splice(Y,3),Y-=3),hU(X)}}}function pU(){function z(J){J.canIntercept&&J.info==="react-transition"&&J.intercept({handler:function(){return new Promise(function(Q){return Z=Q})},focusReset:"manual",scroll:"manual"})}function $(){Z!==null&&(Z(),Z=null),Y||setTimeout(X,20)}function X(){if(!Y&&!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 Y=!1,Z=null;return navigation.addEventListener("navigate",z),navigation.addEventListener("navigatesuccess",$),navigation.addEventListener("navigateerror",$),setTimeout(X,100),function(){Y=!0,navigation.removeEventListener("navigate",z),navigation.removeEventListener("navigatesuccess",$),navigation.removeEventListener("navigateerror",$),Z!==null&&(Z(),Z=null)}}}function sG(z){this._internalRoot=z}function MZ(z){this._internalRoot=z}function jU(z){z[y8]&&(z._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 u0=Object.assign,k3=Symbol.for("react.element"),O7=Symbol.for("react.transitional.element"),b$=Symbol.for("react.portal"),M$=Symbol.for("react.fragment"),wZ=Symbol.for("react.strict_mode"),eG=Symbol.for("react.profiler"),zq=Symbol.for("react.consumer"),L7=Symbol.for("react.context"),q5=Symbol.for("react.forward_ref"),$q=Symbol.for("react.suspense"),Xq=Symbol.for("react.suspense_list"),PZ=Symbol.for("react.memo"),J6=Symbol.for("react.lazy"),Yq=Symbol.for("react.activity"),V3=Symbol.for("react.memo_cache_sentinel"),xU=Symbol.iterator,y3=Symbol.for("react.client.reference"),Z4=Array.isArray,h=ZX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H1=kH.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C3=Object.freeze({pending:!1,data:null,method:null,action:null}),Zq=[],Jq=[],p7=-1,I8=c(null),H5=c(null),k8=c(null),AZ=c(null),K5=0,gU,uU,lU,cU,dU,aU,iU;D.__reactDisabledLog=!0;var Qq,oU,Gq=!1,qq=new(typeof WeakMap==="function"?WeakMap:Map),Q6=null,W7=!1,h6=Object.prototype.hasOwnProperty,Hq=z1.unstable_scheduleCallback,D3=z1.unstable_cancelCallback,S3=z1.unstable_shouldYield,E3=z1.unstable_requestPaint,B4=z1.unstable_now,f3=z1.unstable_getCurrentPriorityLevel,Kq=z1.unstable_ImmediatePriority,_q=z1.unstable_UserBlockingPriority,w$=z1.unstable_NormalPriority,m3=z1.unstable_LowPriority,Bq=z1.unstable_IdlePriority,h3=z1.log,p3=z1.unstable_setDisableYieldValue,P$=null,k4=null,R7=!1,F7=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",E4=Math.clz32?Math.clz32:tH,j3=Math.log,x3=Math.LN2,vZ=256,TZ=262144,IZ=4194304,G6=2,p6=8,N7=32,kZ=268435456,V8=Math.random().toString(36).slice(2),M4="__reactFiber$"+V8,f4="__reactProps$"+V8,y8="__reactContainer$"+V8,Uq="__reactEvents$"+V8,g3="__reactListeners$"+V8,u3="__reactHandles$"+V8,rU="__reactResources$"+V8,_5="__reactMarker$"+V8,nU=new Set,wz={},Oq={},l3={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},c3=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]*$"),tU={},sU={},d3=/[\n"\\]/g,eU=!1,z9=!1,$9=!1,X9=!1,Y9=!1,Z9=!1,J9=["value","defaultValue"],Q9=!1,G9=/["'&<>\n\t]|^\s|\s$/,a3="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(" "),q9="applet caption html table td th marquee object template foreignObject desc title".split(" "),i3=q9.concat(["button"]),o3="dd dt li option optgroup p rp rt".split(" "),H9={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},VZ={},Lq={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"]},K9=/([A-Z])/g,_9=/^ms-/,r3=/^(?:webkit|moz|o)[A-Z]/,n3=/^-ms-/,t3=/-(.)/g,B9=/;\s*$/,A$={},Wq={},U9=!1,O9=!1,L9=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(" ")),yZ="http://www.w3.org/1998/Math/MathML",v$="http://www.w3.org/2000/svg",s3=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"]]),CZ={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"},W9={"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},T$={},e3=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]*$"),zR=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]*$"),R9=!1,m4={},F9=/^on./,$R=/^on[^A-Z]/,XR=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]*$"),YR=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]*$"),ZR=/^[\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,B5=null,I$=null,k$=null,Rq=!1,b7=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fq=!1;if(b7)try{var U5={};Object.defineProperty(U5,"passive",{get:function(){Fq=!0}}),window.addEventListener("test",U5,U5),window.removeEventListener("test",U5,U5)}catch(z){Fq=!1}var C8=null,Nq=null,DZ=null,Pz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(z){return z.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},SZ=l4(Pz),O5=u0({},Pz,{view:0,detail:0}),JR=l4(O5),bq,Mq,L5,EZ=u0({},O5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:YQ,button:0,buttons:0,relatedTarget:function(z){return z.relatedTarget===void 0?z.fromElement===z.srcElement?z.toElement:z.fromElement:z.relatedTarget},movementX:function(z){if("movementX"in z)return z.movementX;return z!==L5&&(L5&&z.type==="mousemove"?(bq=z.screenX-L5.screenX,Mq=z.screenY-L5.screenY):Mq=bq=0,L5=z),bq},movementY:function(z){return"movementY"in z?z.movementY:Mq}}),N9=l4(EZ),QR=u0({},EZ,{dataTransfer:0}),GR=l4(QR),qR=u0({},O5,{relatedTarget:0}),wq=l4(qR),HR=u0({},Pz,{animationName:0,elapsedTime:0,pseudoElement:0}),KR=l4(HR),_R=u0({},Pz,{clipboardData:function(z){return"clipboardData"in z?z.clipboardData:window.clipboardData}}),BR=l4(_R),UR=u0({},Pz,{data:0}),b9=l4(UR),OR=b9,LR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WR={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"},RR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},FR=u0({},O5,{key:function(z){if(z.key){var $=LR[z.key]||z.key;if($!=="Unidentified")return $}return z.type==="keypress"?(z=NY(z),z===13?"Enter":String.fromCharCode(z)):z.type==="keydown"||z.type==="keyup"?WR[z.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:YQ,charCode:function(z){return z.type==="keypress"?NY(z):0},keyCode:function(z){return z.type==="keydown"||z.type==="keyup"?z.keyCode:0},which:function(z){return z.type==="keypress"?NY(z):z.type==="keydown"||z.type==="keyup"?z.keyCode:0}}),NR=l4(FR),bR=u0({},EZ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),M9=l4(bR),MR=u0({},O5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:YQ}),wR=l4(MR),PR=u0({},Pz,{propertyName:0,elapsedTime:0,pseudoElement:0}),AR=l4(PR),vR=u0({},EZ,{deltaX:function(z){return"deltaX"in z?z.deltaX:("wheelDeltaX"in z)?-z.wheelDeltaX:0},deltaY:function(z){return"deltaY"in z?z.deltaY:("wheelDeltaY"in z)?-z.wheelDeltaY:("wheelDelta"in z)?-z.wheelDelta:0},deltaZ:0,deltaMode:0}),TR=l4(vR),IR=u0({},Pz,{newState:0,oldState:0}),kR=l4(IR),VR=[9,13,27,32],w9=229,Pq=b7&&"CompositionEvent"in window,W5=null;b7&&"documentMode"in document&&(W5=document.documentMode);var yR=b7&&"TextEvent"in window&&!W5,P9=b7&&(!Pq||W5&&8<W5&&11>=W5),A9=32,v9=String.fromCharCode(A9),T9=!1,V$=!1,CR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},R5=null,F5=null,I9=!1;b7&&(I9=s2("input")&&(!document.documentMode||9<document.documentMode));var h4=typeof Object.is==="function"?Object.is:ZW,DR=b7&&"documentMode"in document&&11>=document.documentMode,y$=null,Aq=null,N5=null,vq=!1,C$={animationend:qz("Animation","AnimationEnd"),animationiteration:qz("Animation","AnimationIteration"),animationstart:qz("Animation","AnimationStart"),transitionrun:qz("Transition","TransitionRun"),transitionstart:qz("Transition","TransitionStart"),transitioncancel:qz("Transition","TransitionCancel"),transitionend:qz("Transition","TransitionEnd")},Tq={},k9={};b7&&(k9=document.createElement("div").style,("AnimationEvent"in window)||(delete C$.animationend.animation,delete C$.animationiteration.animation,delete C$.animationstart.animation),("TransitionEvent"in window)||delete C$.transitionend.transition);var V9=Hz("animationend"),y9=Hz("animationiteration"),C9=Hz("animationstart"),SR=Hz("transitionrun"),ER=Hz("transitionstart"),fR=Hz("transitioncancel"),D9=Hz("transitionend"),S9=new Map,Iq="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(" ");Iq.push("scrollEnd");var E9=0;if(typeof performance==="object"&&typeof performance.now==="function")var mR=performance,f9=function(){return mR.now()};else{var hR=Date;f9=function(){return hR.now()}}var kq=typeof reportError==="function"?reportError:function(z){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent($))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",z);return}console.error(z)},pR="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.",fZ=0,Vq=1,yq=2,Cq=3,mZ="– ",hZ="+ ",m9=" ",v1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",W6="Components ⚛",l0="Scheduler ⚛",c0="Blocking",D8=!1,j7={color:"primary",properties:null,tooltipText:"",track:W6},S8={start:-0,end:-0,detail:{devtools:j7}},jR=["Changed Props",""],h9="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",xR=["Changed Props",h9],b5=1,x7=2,R6=[],D$=0,Dq=0,E8={};Object.freeze(E8);var F6=null,S$=null,T0=0,gR=1,m0=2,V4=8,j6=16,uR=32,p9=!1;try{var j9=Object.preventExtensions({})}catch(z){p9=!0}var Sq=new WeakMap,E$=[],f$=0,pZ=null,M5=0,N6=[],b6=0,Az=null,g7=1,u7="",w4=null,T1=null,d0=!1,M7=!1,q6=null,f8=null,M6=!1,Eq=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."),fq=c(null),mq=c(null),x9={},jZ=null,m$=null,h$=!1,lR=typeof AbortController<"u"?AbortController:function(){var z=[],$=this.signal={aborted:!1,addEventListener:function(X,Y){z.push(Y)}};this.abort=function(){$.aborted=!0,z.forEach(function(X){return X()})}},cR=z1.unstable_scheduleCallback,dR=z1.unstable_NormalPriority,n1={$$typeof:L7,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},t1=z1.unstable_now,xZ=console.createTask?console.createTask:function(){return null},w5=1,gZ=2,U4=-0,m8=-0,l7=-0,c7=null,p4=-1.1,vz=-0,f1=-0,N0=-1.1,A0=-1.1,D1=null,j1=!1,h8=-0,w7=-1.1,P5=null,p8=0,hq=null,pq=null,Tz=-1.1,A5=null,p$=-1.1,uZ=-1.1,P7=-0,d7=-1.1,w6=-1.1,jq=0,v5=null,g9=null,u9=null,j8=-1.1,Iz=null,x8=-1.1,lZ=-1.1,l9=-0,c9=-0,cZ=0,a7=null,d9=0,T5=-1.1,dZ=!1,aZ=!1,I5=null,xq=0,kz=0,j$=null,a9=h.S;h.S=function(z,$){if(gO=B4(),typeof $==="object"&&$!==null&&typeof $.then==="function"){if(0>d7&&0>w6){d7=t1();var X=Y5(),Y=X5();if(X!==x8||Y!==Iz)x8=-1.1;j8=X,Iz=Y}_W(z,$)}a9!==null&&a9(z,$)};var Vz=c(null),x6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},k5=[],V5=[],y5=[],C5=[],D5=[],S5=[],yz=new Set;x6.recordUnsafeLifecycleWarnings=function(z,$){yz.has(z.type)||(typeof $.componentWillMount==="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0&&k5.push(z),z.mode&V4&&typeof $.UNSAFE_componentWillMount==="function"&&V5.push(z),typeof $.componentWillReceiveProps==="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&y5.push(z),z.mode&V4&&typeof $.UNSAFE_componentWillReceiveProps==="function"&&C5.push(z),typeof $.componentWillUpdate==="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0&&D5.push(z),z.mode&V4&&typeof $.UNSAFE_componentWillUpdate==="function"&&S5.push(z))},x6.flushPendingUnsafeLifecycleWarnings=function(){var z=new Set;0<k5.length&&(k5.forEach(function(q){z.add(E(q)||"Component"),yz.add(q.type)}),k5=[]);var $=new Set;0<V5.length&&(V5.forEach(function(q){$.add(E(q)||"Component"),yz.add(q.type)}),V5=[]);var X=new Set;0<y5.length&&(y5.forEach(function(q){X.add(E(q)||"Component"),yz.add(q.type)}),y5=[]);var Y=new Set;0<C5.length&&(C5.forEach(function(q){Y.add(E(q)||"Component"),yz.add(q.type)}),C5=[]);var Z=new Set;0<D5.length&&(D5.forEach(function(q){Z.add(E(q)||"Component"),yz.add(q.type)}),D5=[]);var J=new Set;if(0<S5.length&&(S5.forEach(function(q){J.add(E(q)||"Component"),yz.add(q.type)}),S5=[]),0<$.size){var Q=R($);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.
|
|
173
|
+
|
|
174
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
175
|
+
|
|
176
|
+
Please update the following components: %s`,Q)}0<Y.size&&(Q=R(Y),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.
|
|
177
|
+
|
|
178
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
179
|
+
* 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
|
|
180
|
+
|
|
181
|
+
Please update the following components: %s`,Q)),0<J.size&&(Q=R(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.
|
|
182
|
+
|
|
183
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
184
|
+
|
|
185
|
+
Please update the following components: %s`,Q)),0<z.size&&(Q=R(z),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
186
|
+
|
|
187
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
188
|
+
* 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.
|
|
189
|
+
|
|
190
|
+
Please update the following components: %s`,Q)),0<X.size&&(Q=R(X),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
191
|
+
|
|
192
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
193
|
+
* 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
|
|
194
|
+
* 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.
|
|
195
|
+
|
|
196
|
+
Please update the following components: %s`,Q)),0<Z.size&&(Q=R(Z),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
197
|
+
|
|
198
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
199
|
+
* 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.
|
|
200
|
+
|
|
201
|
+
Please update the following components: %s`,Q))};var iZ=new Map,i9=new Set;x6.recordLegacyContextWarning=function(z,$){var X=null;for(var Y=z;Y!==null;)Y.mode&V4&&(X=Y),Y=Y.return;X===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."):!i9.has(z.type)&&(Y=iZ.get(X),z.type.contextTypes!=null||z.type.childContextTypes!=null||$!==null&&typeof $.getChildContext==="function")&&(Y===void 0&&(Y=[],iZ.set(X,Y)),Y.push(z))},x6.flushLegacyContextWarning=function(){iZ.forEach(function(z){if(z.length!==0){var $=z[0],X=new Set;z.forEach(function(Z){X.add(E(Z)||"Component"),i9.add(Z.type)});var Y=R(X);o($,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
202
|
+
|
|
203
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
204
|
+
|
|
205
|
+
Please update the following components: %s
|
|
206
|
+
|
|
207
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},x6.discardPendingWarnings=function(){k5=[],V5=[],y5=[],C5=[],D5=[],S5=[],iZ=new Map};var o9={react_stack_bottom_frame:function(z,$,X){var Y=W7;W7=!0;try{return z($,X)}finally{W7=Y}}},gq=o9.react_stack_bottom_frame.bind(o9),r9={react_stack_bottom_frame:function(z){var $=W7;W7=!0;try{return z.render()}finally{W7=$}}},n9=r9.react_stack_bottom_frame.bind(r9),t9={react_stack_bottom_frame:function(z,$){try{$.componentDidMount()}catch(X){q1(z,z.return,X)}}},uq=t9.react_stack_bottom_frame.bind(t9),s9={react_stack_bottom_frame:function(z,$,X,Y,Z){try{$.componentDidUpdate(X,Y,Z)}catch(J){q1(z,z.return,J)}}},e9=s9.react_stack_bottom_frame.bind(s9),zO={react_stack_bottom_frame:function(z,$){var X=$.stack;z.componentDidCatch($.value,{componentStack:X!==null?X:""})}},aR=zO.react_stack_bottom_frame.bind(zO),$O={react_stack_bottom_frame:function(z,$,X){try{X.componentWillUnmount()}catch(Y){q1(z,$,Y)}}},XO=$O.react_stack_bottom_frame.bind($O),YO={react_stack_bottom_frame:function(z){var $=z.create;return z=z.inst,$=$(),z.destroy=$}},iR=YO.react_stack_bottom_frame.bind(YO),ZO={react_stack_bottom_frame:function(z,$,X){try{X()}catch(Y){q1(z,$,Y)}}},oR=ZO.react_stack_bottom_frame.bind(ZO),JO={react_stack_bottom_frame:function(z){var $=z._init;return $(z._payload)}},rR=JO.react_stack_bottom_frame.bind(JO),x$=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`."),lq=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."),oZ=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."),rZ={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.')}},Cz=null,E5=!1,g$=null,f5=0,h0=null,cq,QO=cq=!1,GO={},qO={},HO={};F=function(z,$,X){if(X!==null&&typeof X==="object"&&X._store&&(!X._store.validated&&X.key==null||X._store.validated===2)){if(typeof X._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.");X._store.validated=1;var Y=E(z),Z=Y||"null";if(!GO[Z]){GO[Z]=!0,X=X._owner,z=z._debugOwner;var J="";z&&typeof z.tag==="number"&&(Z=E(z))&&(J=`
|
|
208
|
+
|
|
209
|
+
Check the render method of \``+Z+"`."),J||Y&&(J=`
|
|
210
|
+
|
|
211
|
+
Check the top-level render call using <`+Y+">.");var Q="";X!=null&&z!==X&&(Y=null,typeof X.tag==="number"?Y=E(X):typeof X.name==="string"&&(Y=X.name),Y&&(Q=" It was passed a child from "+Y+".")),o($,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',J,Q)})}}};var Dz=$_(!0),KO=$_(!1),_O=0,BO=1,UO=2,dq=3,g8=!1,OO=!1,aq=null,iq=!1,u$=c(null),nZ=c(0),H6=c(null),P6=null,l$=1,m5=2,i1=c(0),tZ=0,A6=1,j4=2,K6=4,x4=8,c$,LO=new Set,WO=new Set,oq=new Set,RO=new Set,i7=0,k0=null,W1=null,s1=null,sZ=!1,d$=!1,Sz=!1,eZ=0,h5=0,o7=null,nR=0,tR=25,m=null,v6=null,r7=-1,p5=!1,j5={readContext:C1,use:P8,useCallback:l1,useContext:l1,useEffect:l1,useImperativeHandle:l1,useLayoutEffect:l1,useInsertionEffect:l1,useMemo:l1,useReducer:l1,useRef:l1,useState:l1,useDebugValue:l1,useDeferredValue:l1,useTransition:l1,useSyncExternalStore:l1,useId:l1,useHostTransitionStatus:l1,useFormState:l1,useActionState:l1,useOptimistic:l1,useMemoCache:l1,useCacheRefresh:l1};j5.useEffectEvent=l1;var rq=null,FO=null,nq=null,NO=null,A7=null,g6=null,zJ=null;rq={readContext:function(z){return C1(z)},use:P8,useCallback:function(z,$){return m="useCallback",g0(),G$($),iQ(z,$)},useContext:function(z){return m="useContext",g0(),C1(z)},useEffect:function(z,$){return m="useEffect",g0(),G$($),iY(z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",g0(),G$(X),aQ(z,$,X)},useInsertionEffect:function(z,$){m="useInsertionEffect",g0(),G$($),Rz(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",g0(),G$($),dQ(z,$)},useMemo:function(z,$){m="useMemo",g0(),G$($);var X=h.H;h.H=A7;try{return oQ(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",g0();var Y=h.H;h.H=A7;try{return mQ(z,$,X)}finally{h.H=Y}},useRef:function(z){return m="useRef",g0(),lQ(z)},useState:function(z){m="useState",g0();var $=h.H;h.H=A7;try{return xQ(z)}finally{h.H=$}},useDebugValue:function(){m="useDebugValue",g0()},useDeferredValue:function(z,$){return m="useDeferredValue",g0(),rQ(z,$)},useTransition:function(){return m="useTransition",g0(),sQ()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",g0(),pQ(z,$,X)},useId:function(){return m="useId",g0(),eQ()},useFormState:function(z,$){return m="useFormState",g0(),uY(),H$(z,$)},useActionState:function(z,$){return m="useActionState",g0(),H$(z,$)},useOptimistic:function(z){return m="useOptimistic",g0(),gQ(z)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return m="useCacheRefresh",g0(),zG()},useEffectEvent:function(z){return m="useEffectEvent",g0(),cQ(z)}},FO={readContext:function(z){return C1(z)},use:P8,useCallback:function(z,$){return m="useCallback",r(),iQ(z,$)},useContext:function(z){return m="useContext",r(),C1(z)},useEffect:function(z,$){return m="useEffect",r(),iY(z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",r(),aQ(z,$,X)},useInsertionEffect:function(z,$){m="useInsertionEffect",r(),Rz(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",r(),dQ(z,$)},useMemo:function(z,$){m="useMemo",r();var X=h.H;h.H=A7;try{return oQ(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",r();var Y=h.H;h.H=A7;try{return mQ(z,$,X)}finally{h.H=Y}},useRef:function(z){return m="useRef",r(),lQ(z)},useState:function(z){m="useState",r();var $=h.H;h.H=A7;try{return xQ(z)}finally{h.H=$}},useDebugValue:function(){m="useDebugValue",r()},useDeferredValue:function(z,$){return m="useDeferredValue",r(),rQ(z,$)},useTransition:function(){return m="useTransition",r(),sQ()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",r(),pQ(z,$,X)},useId:function(){return m="useId",r(),eQ()},useActionState:function(z,$){return m="useActionState",r(),H$(z,$)},useFormState:function(z,$){return m="useFormState",r(),uY(),H$(z,$)},useOptimistic:function(z){return m="useOptimistic",r(),gQ(z)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return m="useCacheRefresh",r(),zG()},useEffectEvent:function(z){return m="useEffectEvent",r(),cQ(z)}},nq={readContext:function(z){return C1(z)},use:P8,useCallback:function(z,$){return m="useCallback",r(),nY(z,$)},useContext:function(z){return m="useContext",r(),C1(z)},useEffect:function(z,$){m="useEffect",r(),c4(2048,x4,z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",r(),rY(z,$,X)},useInsertionEffect:function(z,$){return m="useInsertionEffect",r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",r(),c4(4,K6,z,$)},useMemo:function(z,$){m="useMemo",r();var X=h.H;h.H=g6;try{return tY(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",r();var Y=h.H;h.H=g6;try{return q$(z,$,X)}finally{h.H=Y}},useRef:function(){return m="useRef",r(),K1().memoizedState},useState:function(){m="useState",r();var z=h.H;h.H=g6;try{return q$(f6)}finally{h.H=z}},useDebugValue:function(){m="useDebugValue",r()},useDeferredValue:function(z,$){return m="useDeferredValue",r(),P_(z,$)},useTransition:function(){return m="useTransition",r(),V_()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",r(),cY(z,$,X)},useId:function(){return m="useId",r(),K1().memoizedState},useFormState:function(z){return m="useFormState",r(),uY(),dY(z)},useActionState:function(z){return m="useActionState",r(),dY(z)},useOptimistic:function(z,$){return m="useOptimistic",r(),U_(z,$)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return m="useCacheRefresh",r(),K1().memoizedState},useEffectEvent:function(z){return m="useEffectEvent",r(),oY(z)}},NO={readContext:function(z){return C1(z)},use:P8,useCallback:function(z,$){return m="useCallback",r(),nY(z,$)},useContext:function(z){return m="useContext",r(),C1(z)},useEffect:function(z,$){m="useEffect",r(),c4(2048,x4,z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",r(),rY(z,$,X)},useInsertionEffect:function(z,$){return m="useInsertionEffect",r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",r(),c4(4,K6,z,$)},useMemo:function(z,$){m="useMemo",r();var X=h.H;h.H=zJ;try{return tY(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",r();var Y=h.H;h.H=zJ;try{return cX(z,$,X)}finally{h.H=Y}},useRef:function(){return m="useRef",r(),K1().memoizedState},useState:function(){m="useState",r();var z=h.H;h.H=zJ;try{return cX(f6)}finally{h.H=z}},useDebugValue:function(){m="useDebugValue",r()},useDeferredValue:function(z,$){return m="useDeferredValue",r(),A_(z,$)},useTransition:function(){return m="useTransition",r(),y_()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",r(),cY(z,$,X)},useId:function(){return m="useId",r(),K1().memoizedState},useFormState:function(z){return m="useFormState",r(),uY(),aY(z)},useActionState:function(z){return m="useActionState",r(),aY(z)},useOptimistic:function(z,$){return m="useOptimistic",r(),L_(z,$)},useHostTransitionStatus:Fz,useMemoCache:Wz,useCacheRefresh:function(){return m="useCacheRefresh",r(),K1().memoizedState},useEffectEvent:function(z){return m="useEffectEvent",r(),oY(z)}},A7={readContext:function(z){return y(),C1(z)},use:function(z){return U(),P8(z)},useCallback:function(z,$){return m="useCallback",U(),g0(),iQ(z,$)},useContext:function(z){return m="useContext",U(),g0(),C1(z)},useEffect:function(z,$){return m="useEffect",U(),g0(),iY(z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",U(),g0(),aQ(z,$,X)},useInsertionEffect:function(z,$){m="useInsertionEffect",U(),g0(),Rz(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",U(),g0(),dQ(z,$)},useMemo:function(z,$){m="useMemo",U(),g0();var X=h.H;h.H=A7;try{return oQ(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",U(),g0();var Y=h.H;h.H=A7;try{return mQ(z,$,X)}finally{h.H=Y}},useRef:function(z){return m="useRef",U(),g0(),lQ(z)},useState:function(z){m="useState",U(),g0();var $=h.H;h.H=A7;try{return xQ(z)}finally{h.H=$}},useDebugValue:function(){m="useDebugValue",U(),g0()},useDeferredValue:function(z,$){return m="useDeferredValue",U(),g0(),rQ(z,$)},useTransition:function(){return m="useTransition",U(),g0(),sQ()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",U(),g0(),pQ(z,$,X)},useId:function(){return m="useId",U(),g0(),eQ()},useFormState:function(z,$){return m="useFormState",U(),g0(),H$(z,$)},useActionState:function(z,$){return m="useActionState",U(),g0(),H$(z,$)},useOptimistic:function(z){return m="useOptimistic",U(),g0(),gQ(z)},useMemoCache:function(z){return U(),Wz(z)},useHostTransitionStatus:Fz,useCacheRefresh:function(){return m="useCacheRefresh",g0(),zG()},useEffectEvent:function(z){return m="useEffectEvent",U(),g0(),cQ(z)}},g6={readContext:function(z){return y(),C1(z)},use:function(z){return U(),P8(z)},useCallback:function(z,$){return m="useCallback",U(),r(),nY(z,$)},useContext:function(z){return m="useContext",U(),r(),C1(z)},useEffect:function(z,$){m="useEffect",U(),r(),c4(2048,x4,z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",U(),r(),rY(z,$,X)},useInsertionEffect:function(z,$){return m="useInsertionEffect",U(),r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",U(),r(),c4(4,K6,z,$)},useMemo:function(z,$){m="useMemo",U(),r();var X=h.H;h.H=g6;try{return tY(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",U(),r();var Y=h.H;h.H=g6;try{return q$(z,$,X)}finally{h.H=Y}},useRef:function(){return m="useRef",U(),r(),K1().memoizedState},useState:function(){m="useState",U(),r();var z=h.H;h.H=g6;try{return q$(f6)}finally{h.H=z}},useDebugValue:function(){m="useDebugValue",U(),r()},useDeferredValue:function(z,$){return m="useDeferredValue",U(),r(),P_(z,$)},useTransition:function(){return m="useTransition",U(),r(),V_()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",U(),r(),cY(z,$,X)},useId:function(){return m="useId",U(),r(),K1().memoizedState},useFormState:function(z){return m="useFormState",U(),r(),dY(z)},useActionState:function(z){return m="useActionState",U(),r(),dY(z)},useOptimistic:function(z,$){return m="useOptimistic",U(),r(),U_(z,$)},useMemoCache:function(z){return U(),Wz(z)},useHostTransitionStatus:Fz,useCacheRefresh:function(){return m="useCacheRefresh",r(),K1().memoizedState},useEffectEvent:function(z){return m="useEffectEvent",U(),r(),oY(z)}},zJ={readContext:function(z){return y(),C1(z)},use:function(z){return U(),P8(z)},useCallback:function(z,$){return m="useCallback",U(),r(),nY(z,$)},useContext:function(z){return m="useContext",U(),r(),C1(z)},useEffect:function(z,$){m="useEffect",U(),r(),c4(2048,x4,z,$)},useImperativeHandle:function(z,$,X){return m="useImperativeHandle",U(),r(),rY(z,$,X)},useInsertionEffect:function(z,$){return m="useInsertionEffect",U(),r(),c4(4,j4,z,$)},useLayoutEffect:function(z,$){return m="useLayoutEffect",U(),r(),c4(4,K6,z,$)},useMemo:function(z,$){m="useMemo",U(),r();var X=h.H;h.H=g6;try{return tY(z,$)}finally{h.H=X}},useReducer:function(z,$,X){m="useReducer",U(),r();var Y=h.H;h.H=g6;try{return cX(z,$,X)}finally{h.H=Y}},useRef:function(){return m="useRef",U(),r(),K1().memoizedState},useState:function(){m="useState",U(),r();var z=h.H;h.H=g6;try{return cX(f6)}finally{h.H=z}},useDebugValue:function(){m="useDebugValue",U(),r()},useDeferredValue:function(z,$){return m="useDeferredValue",U(),r(),A_(z,$)},useTransition:function(){return m="useTransition",U(),r(),y_()},useSyncExternalStore:function(z,$,X){return m="useSyncExternalStore",U(),r(),cY(z,$,X)},useId:function(){return m="useId",U(),r(),K1().memoizedState},useFormState:function(z){return m="useFormState",U(),r(),aY(z)},useActionState:function(z){return m="useActionState",U(),r(),aY(z)},useOptimistic:function(z,$){return m="useOptimistic",U(),r(),L_(z,$)},useMemoCache:function(z){return U(),Wz(z)},useHostTransitionStatus:Fz,useCacheRefresh:function(){return m="useCacheRefresh",r(),K1().memoizedState},useEffectEvent:function(z){return m="useEffectEvent",U(),r(),oY(z)}};var bO={},MO=new Set,wO=new Set,PO=new Set,AO=new Set,vO=new Set,TO=new Set,IO=new Set,kO=new Set,VO=new Set,yO=new Set;Object.freeze(bO);var tq={enqueueSetState:function(z,$,X){z=z._reactInternals;var Y=Y6(z),Z=N8(Y);Z.payload=$,X!==void 0&&X!==null&&(XG(X),Z.callback=X),$=b8(z,Z,Y),$!==null&&($7(Y,"this.setState()",z),p1($,z,Y),xX($,z,Y))},enqueueReplaceState:function(z,$,X){z=z._reactInternals;var Y=Y6(z),Z=N8(Y);Z.tag=BO,Z.payload=$,X!==void 0&&X!==null&&(XG(X),Z.callback=X),$=b8(z,Z,Y),$!==null&&($7(Y,"this.replaceState()",z),p1($,z,Y),xX($,z,Y))},enqueueForceUpdate:function(z,$){z=z._reactInternals;var X=Y6(z),Y=N8(X);Y.tag=UO,$!==void 0&&$!==null&&(XG($),Y.callback=$),$=b8(z,Y,X),$!==null&&($7(X,"this.forceUpdate()",z),p1($,z,X),xX($,z,X))}},a$=null,sq=null,eq=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."),e1=!1,CO={},DO={},SO={},EO={},i$=!1,fO={},$J={},zH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},mO=!1,hO=null;hO=new Set;var n7=!1,z4=!1,$H=!1,pO=typeof WeakSet==="function"?WeakSet:Set,O4=null,o$=null,r$=null,$4=null,i4=!1,u6=null,J4=!1,x5=8192,sR={getCacheForType:function(z){var $=C1(n1),X=$.data.get(z);return X===void 0&&(X=z(),$.data.set(z,X)),X},cacheSignal:function(){return C1(n1).controller.signal},getOwner:function(){return Q6}};if(typeof Symbol==="function"&&Symbol.for){var g5=Symbol.for;g5("selector.component"),g5("selector.has_pseudo_class"),g5("selector.role"),g5("selector.test_id"),g5("selector.text")}var eR=[],zF=typeof WeakMap==="function"?WeakMap:Map,L4=0,Q4=2,_6=4,t7=0,u5=1,Ez=2,XJ=3,u8=4,YJ=6,jO=5,n0=L4,R1=null,j0=null,p0=0,o4=0,ZJ=1,fz=2,l5=3,xO=4,XH=5,c5=6,JJ=7,YH=8,mz=9,_1=o4,B6=null,l8=!1,n$=!1,ZH=!1,v7=0,m1=t7,c8=0,d8=0,JH=0,r4=0,hz=0,d5=null,g4=null,QJ=!1,GJ=0,gO=0,uO=300,qJ=1/0,lO=500,a5=null,c1=null,a8=null,HJ=0,QH=1,GH=2,cO=3,i8=0,dO=1,aO=2,iO=3,oO=4,KJ=5,X4=0,o8=null,t$=null,l6=0,qH=0,HH=-0,KH=null,rO=null,nO=null,c6=HJ,tO=null,$F=50,i5=0,_H=null,BH=!1,_J=!1,XF=50,pz=0,o5=null,s$=!1,BJ=null,sO=!1,eO=new Set,YF={},UJ=null,e$=null,UH=!1,OH=!1,OJ=!1,LH=!1,r8=0,WH={};(function(){for(var z=0;z<Iq.length;z++){var $=Iq[z],X=$.toLowerCase();$=$[0].toUpperCase()+$.slice(1),E6(X,"on"+$)}E6(V9,"onAnimationEnd"),E6(y9,"onAnimationIteration"),E6(C9,"onAnimationStart"),E6("dblclick","onDoubleClick"),E6("focusin","onFocus"),E6("focusout","onBlur"),E6(SR,"onTransitionRun"),E6(ER,"onTransitionStart"),E6(fR,"onTransitionCancel"),E6(D9,"onTransitionEnd")})(),B8("onMouseEnter",["mouseout","mouseover"]),B8("onMouseLeave",["mouseout","mouseover"]),B8("onPointerEnter",["pointerout","pointerover"]),B8("onPointerLeave",["pointerout","pointerover"]),t6("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),t6("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),t6("onBeforeInput",["compositionend","keypress","textInput","paste"]),t6("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),t6("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),t6("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var r5="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(" "),RH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(r5)),LJ="_reactListening"+Math.random().toString(36).slice(2),zL=!1,$L=!1,WJ=!1,XL=!1,RJ=!1,FJ=!1,YL=!1,NJ={},ZF=/\r\n?/g,JF=/\u0000|\uFFFD/g,jz="http://www.w3.org/1999/xlink",FH="http://www.w3.org/XML/1998/namespace",QF="javascript:throw new Error('React form unexpectedly submitted.')",GF="suppressHydrationWarning",xz="&",bJ="/&",n5="$",t5="/$",n8="$?",gz="$~",zX="$!",qF="html",HF="body",KF="head",NH="F!",ZL="F",JL="loading",_F="style",s7=0,$X=1,MJ=2,bH=null,MH=null,QL={dialog:!0,webview:!0},wH=null,s5=void 0,GL=typeof setTimeout==="function"?setTimeout:void 0,BF=typeof clearTimeout==="function"?clearTimeout:void 0,uz=-1,qL=typeof Promise==="function"?Promise:void 0,UF=typeof queueMicrotask==="function"?queueMicrotask:typeof qL<"u"?function(z){return qL.resolve(null).then(z).catch(tW)}:GL,PH=null,lz=0,e5=1,HL=2,KL=3,T6=4,I6=new Map,_L=new Set,e7=H1.d;H1.d={f:function(){var z=e7.f(),$=O$();return z||$},r:function(z){var $=D4(z);$!==null&&$.tag===5&&$.type==="form"?k_($):e7.r(z)},D:function(z){e7.D(z),MU("dns-prefetch",z,null)},C:function(z,$){e7.C(z,$),MU("preconnect",z,$)},L:function(z,$,X){e7.L(z,$,X);var Y=XX;if(Y&&z&&$){var Z='link[rel="preload"][as="'+C0($)+'"]';$==="image"?X&&X.imageSrcSet?(Z+='[imagesrcset="'+C0(X.imageSrcSet)+'"]',typeof X.imageSizes==="string"&&(Z+='[imagesizes="'+C0(X.imageSizes)+'"]')):Z+='[href="'+C0(z)+'"]':Z+='[href="'+C0(z)+'"]';var J=Z;switch($){case"style":J=R$(z);break;case"script":J=F$(z)}I6.has(J)||(z=u0({rel:"preload",href:$==="image"&&X&&X.imageSrcSet?void 0:z,as:$},X),I6.set(J,z),Y.querySelector(Z)!==null||$==="style"&&Y.querySelector(J5(J))||$==="script"&&Y.querySelector(Q5(J))||($=Y.createElement("link"),b4($,"link",z),u1($),Y.head.appendChild($)))}},m:function(z,$){e7.m(z,$);var X=XX;if(X&&z){var Y=$&&typeof $.as==="string"?$.as:"script",Z='link[rel="modulepreload"][as="'+C0(Y)+'"][href="'+C0(z)+'"]',J=Z;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":J=F$(z)}if(!I6.has(J)&&(z=u0({rel:"modulepreload",href:z},$),I6.set(J,z),X.querySelector(Z)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(X.querySelector(Q5(J)))return}Y=X.createElement("link"),b4(Y,"link",z),u1(Y),X.head.appendChild(Y)}}},X:function(z,$){e7.X(z,$);var X=XX;if(X&&z){var Y=_8(X).hoistableScripts,Z=F$(z),J=Y.get(Z);J||(J=X.querySelector(Q5(Z)),J||(z=u0({src:z,async:!0},$),($=I6.get(Z))&&aG(z,$),J=X.createElement("script"),u1(J),b4(J,"link",z),X.head.appendChild(J)),J={type:"script",instance:J,count:1,state:null},Y.set(Z,J))}},S:function(z,$,X){e7.S(z,$,X);var Y=XX;if(Y&&z){var Z=_8(Y).hoistableStyles,J=R$(z);$=$||"default";var Q=Z.get(J);if(!Q){var q={loading:lz,preload:null};if(Q=Y.querySelector(J5(J)))q.loading=e5|T6;else{z=u0({rel:"stylesheet",href:z,"data-precedence":$},X),(X=I6.get(J))&&dG(z,X);var K=Q=Y.createElement("link");u1(K),b4(K,"link",z),K._p=new Promise(function(B,T){K.onload=B,K.onerror=T}),K.addEventListener("load",function(){q.loading|=e5}),K.addEventListener("error",function(){q.loading|=HL}),q.loading|=T6,WZ(Q,$,Y)}Q={type:"stylesheet",instance:Q,count:1,state:q},Z.set(J,Q)}}},M:function(z,$){e7.M(z,$);var X=XX;if(X&&z){var Y=_8(X).hoistableScripts,Z=F$(z),J=Y.get(Z);J||(J=X.querySelector(Q5(Z)),J||(z=u0({src:z,async:!0,type:"module"},$),($=I6.get(Z))&&aG(z,$),J=X.createElement("script"),u1(J),b4(J,"link",z),X.head.appendChild(J)),J={type:"script",instance:J,count:1,state:null},Y.set(Z,J))}}};var XX=typeof document>"u"?null:document,wJ=null,OF=60000,LF=800,WF=500,AH=0,vH=null,PJ=null,cz=C3,zY={$$typeof:L7,Provider:null,Consumer:null,_currentValue:cz,_currentValue2:cz,_threadCount:0},BL="%c%s%c",UL="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",OL="",AJ=" ",RF=Function.prototype.bind,LL=!1,WL=null,RL=null,FL=null,NL=null,bL=null,ML=null,wL=null,PL=null,AL=null,vL=null;WL=function(z,$,X,Y){$=G(z,$),$!==null&&(X=H($.memoizedState,X,0,Y),$.memoizedState=X,$.baseState=X,z.memoizedProps=u0({},z.memoizedProps),X=I4(z,2),X!==null&&p1(X,z,2))},RL=function(z,$,X){$=G(z,$),$!==null&&(X=L($.memoizedState,X,0),$.memoizedState=X,$.baseState=X,z.memoizedProps=u0({},z.memoizedProps),X=I4(z,2),X!==null&&p1(X,z,2))},FL=function(z,$,X,Y){$=G(z,$),$!==null&&(X=_($.memoizedState,X,Y),$.memoizedState=X,$.baseState=X,z.memoizedProps=u0({},z.memoizedProps),X=I4(z,2),X!==null&&p1(X,z,2))},NL=function(z,$,X){z.pendingProps=H(z.memoizedProps,$,0,X),z.alternate&&(z.alternate.pendingProps=z.pendingProps),$=I4(z,2),$!==null&&p1($,z,2)},bL=function(z,$){z.pendingProps=L(z.memoizedProps,$,0),z.alternate&&(z.alternate.pendingProps=z.pendingProps),$=I4(z,2),$!==null&&p1($,z,2)},ML=function(z,$,X){z.pendingProps=_(z.memoizedProps,$,X),z.alternate&&(z.alternate.pendingProps=z.pendingProps),$=I4(z,2),$!==null&&p1($,z,2)},wL=function(z){var $=I4(z,2);$!==null&&p1($,z,2)},PL=function(z){var $=r6(),X=I4(z,$);X!==null&&p1(X,z,$)},AL=function(z){W=z},vL=function(z){N=z};var vJ=!0,TJ=null,TH=!1,t8=null,s8=null,e8=null,$Y=new Map,XY=new Map,zz=[],FF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),IJ=null;if(MZ.prototype.render=sG.prototype.render=function(z){var $=this._internalRoot;if($===null)throw Error("Cannot update an unmounted root.");var X=arguments;typeof X[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()."):j(X[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 X[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),X=z;var Y=$.current,Z=Y6(Y);iG(Y,Z,X,$,null,null)},MZ.prototype.unmount=sG.prototype.unmount=function(){var z=arguments;if(typeof z[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()."),z=this._internalRoot,z!==null){this._internalRoot=null;var $=z.containerInfo;(n0&(Q4|_6))!==L4&&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."),iG(z.current,2,null,z,null,null),O$(),$[y8]=null}},MZ.prototype.unstable_scheduleHydration=function(z){if(z){var $=wX();z={blockedOn:null,target:z,priority:$};for(var X=0;X<zz.length&&$!==0&&$<zz[X].priority;X++);zz.splice(X,0,z),X===0&&fU(z)}},function(){var z=ZX.version;if(z!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
212
|
+
- react: `+(z+`
|
|
213
|
+
- react-dom: 19.2.4
|
|
214
|
+
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"),H1.findDOMNode=function(z){var $=z._reactInternals;if($===void 0){if(typeof z.render==="function")throw Error("Unable to find node on an unmounted component.");throw z=Object.keys(z).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+z)}return z=_0($),z=z!==null?l(z):null,z=z===null?null:z.stateNode,z},!function(){var z={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:h,reconcilerVersion:"19.2.4"};return z.overrideHookState=WL,z.overrideHookStateDeletePath=RL,z.overrideHookStateRenamePath=FL,z.overrideProps=NL,z.overridePropsDeletePath=bL,z.overridePropsRenamePath=ML,z.scheduleUpdate=wL,z.scheduleRetry=PL,z.setErrorHandler=AL,z.setSuspenseHandler=vL,z.scheduleRefresh=S,z.scheduleRoot=k,z.setRefreshHandler=p,z.getCurrentFiber=P3,rJ(z)}()&&b7&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var TL=window.location.protocol;/^(https?|file):$/.test(TL)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(TL==="file:"?`
|
|
215
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}PF.createRoot=function(z,$){if(!j(z))throw Error("Target container is not a DOM element.");jU(z);var X=!1,Y="",Z=m_,J=h_,Q=p_;return $!==null&&$!==void 0&&($.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof $==="object"&&$!==null&&$.$$typeof===O7&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
216
|
+
|
|
217
|
+
let root = createRoot(domContainer);
|
|
218
|
+
root.render(<App />);`),$.unstable_strictMode===!0&&(X=!0),$.identifierPrefix!==void 0&&(Y=$.identifierPrefix),$.onUncaughtError!==void 0&&(Z=$.onUncaughtError),$.onCaughtError!==void 0&&(J=$.onCaughtError),$.onRecoverableError!==void 0&&(Q=$.onRecoverableError)),$=kU(z,1,!1,null,null,X,Y,null,Z,J,Q,pU),z[y8]=$.current,SG(z),new sG($)},PF.hydrateRoot=function(z,$,X){if(!j(z))throw Error("Target container is not a DOM element.");jU(z),$===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,Z="",J=m_,Q=h_,q=p_,K=null;return X!==null&&X!==void 0&&(X.unstable_strictMode===!0&&(Y=!0),X.identifierPrefix!==void 0&&(Z=X.identifierPrefix),X.onUncaughtError!==void 0&&(J=X.onUncaughtError),X.onCaughtError!==void 0&&(Q=X.onCaughtError),X.onRecoverableError!==void 0&&(q=X.onRecoverableError),X.formState!==void 0&&(K=X.formState)),$=kU(z,1,!0,$,X!=null?X:null,Y,Z,K,J,Q,q,pU),$.context=VU(null),X=$.current,Y=Y6(X),Y=bX(Y),Z=N8(Y),Z.callback=null,b8(X,Z,Y),$7(Y,"hydrateRoot()",null),X=Y,$.current.lanes=X,C6($,X),B7($),z[y8]=$.current,SG(z),new MZ($)},PF.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var SL=YX((bM,DL)=>{var AF=n(CL());DL.exports=AF});var $1=YX((XN)=>{var rz=n(e0());(function(){function G(D){if(D==null)return null;if(typeof D==="function")return D.$$typeof===E?null:D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case p:return"Fragment";case d:return"Profiler";case j:return"StrictMode";case _0:return"Suspense";case l:return"SuspenseList";case I0:return"Activity"}if(typeof D==="object")switch(typeof D.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case S:return"Portal";case s:return D.displayName||"Context";case e:return(D._context.displayName||"Context")+".Consumer";case a:var z0=D.render;return D=D.displayName,D||(D=z0.displayName||z0.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case L0:return z0=D.displayName||null,z0!==null?z0:G(D.type)||"Memo";case g:z0=D._payload,D=D._init;try{return G(D(z0))}catch(P0){}}return null}function H(D){return""+D}function _(D){try{H(D);var z0=!1}catch(r0){z0=!0}if(z0){z0=console;var P0=z0.error,D0=typeof Symbol==="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return P0.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D0),H(D)}}function O(D){if(D===p)return"<>";if(typeof D==="object"&&D!==null&&D.$$typeof===g)return"<...>";try{var z0=G(D);return z0?"<"+z0+">":"<...>"}catch(P0){return"<...>"}}function L(){var D=c.A;return D===null?null:D.getOwner()}function N(){return Error("react-stack-top-frame")}function W(D){if(u.call(D,"key")){var z0=Object.getOwnPropertyDescriptor(D,"key").get;if(z0&&z0.isReactWarning)return!1}return D.key!==void 0}function U(D,z0){function P0(){t||(t=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",z0))}P0.isReactWarning=!0,Object.defineProperty(D,"key",{get:P0,configurable:!0})}function y(){var D=G(this.type);return G0[D]||(G0[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function C(D,z0,P0,D0,r0,v4){var t0=P0.ref;return D={$$typeof:k,type:D,key:z0,props:P0,_owner:D0},(t0!==void 0?t0:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:y}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:r0}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:v4}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function F(D,z0,P0,D0,r0,v4){var t0=z0.children;if(t0!==void 0)if(D0)if(J0(t0)){for(D0=0;D0<t0.length;D0++)R(t0[D0]);Object.freeze&&Object.freeze(t0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(t0);if(u.call(z0,"key")){t0=G(D);var T4=Object.keys(z0).filter(function(r1){return r1!=="key"});D0=0<T4.length?"{key: someKey, "+T4.join(": ..., ")+": ...}":"{key: someKey}",i[t0+D0]||(T4=0<T4.length?"{"+T4.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
219
|
+
let props = %s;
|
|
220
|
+
<%s {...props} />
|
|
221
|
+
React keys must be passed directly to JSX without using spread:
|
|
222
|
+
let props = %s;
|
|
223
|
+
<%s key={someKey} {...props} />`,D0,t0,T4,t0),i[t0+D0]=!0)}if(t0=null,P0!==void 0&&(_(P0),t0=""+P0),W(z0)&&(_(z0.key),t0=""+z0.key),"key"in z0){P0={};for(var C4 in z0)C4!=="key"&&(P0[C4]=z0[C4])}else P0=z0;return t0&&U(P0,typeof D==="function"?D.displayName||D.name||"Unknown":D),C(D,t0,P0,L(),r0,v4)}function R(D){b(D)?D._store&&(D._store.validated=1):typeof D==="object"&&D!==null&&D.$$typeof===g&&(D._payload.status==="fulfilled"?b(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function b(D){return typeof D==="object"&&D!==null&&D.$$typeof===k}var k=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),e=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),_0=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),L0=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),I0=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),c=rz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,u=Object.prototype.hasOwnProperty,J0=Array.isArray,M0=console.createTask?console.createTask:function(){return null};rz={react_stack_bottom_frame:function(D){return D()}};var t,G0={},H0=rz.react_stack_bottom_frame.bind(rz,N)(),V=M0(O(N)),i={};XN.Fragment=p,XN.jsx=function(D,z0,P0){var D0=1e4>c.recentlyCreatedOwnerStacks++;return F(D,z0,P0,!1,D0?Error("react-stack-top-frame"):H0,D0?M0(O(D)):V)},XN.jsxs=function(D,z0,P0){var D0=1e4>c.recentlyCreatedOwnerStacks++;return F(D,z0,P0,!0,D0?Error("react-stack-top-frame"):H0,D0?M0(O(D)):V)}})()});var V1=n(e0(),1),x2=n(SL(),1);var VH={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function az(G,H){let _=G.agents;if(typeof _==="boolean")return{enabled:_,mode:"worker",group:H||void 0};return{..._,group:_.group||H||void 0}}var $z=n(e0(),1);function yH(G){let{accessToken:H}=G4(),[_,O]=$z.useState([]),[L,N]=$z.useState(!0),W=$z.useCallback(()=>{let S={"Content-Type":"application/json"};if(H)S.Authorization=`Bearer ${H}`;return S},[H]),U=$z.useCallback(async()=>{let p=await(await fetch("/api/agents",{headers:W()})).json();O(p.agents||[]),N(!1)},[W]),y=kJ();$z.useEffect(()=>{if(G)U()},[G,y,U]);let C=async(S)=>{await fetch("/api/agents",{method:"POST",headers:W(),body:JSON.stringify(S)}),await U()},F=async(S)=>{await fetch(`/api/agents/${S}`,{method:"DELETE",headers:W()}),await U()},R=async(S,p)=>{let j=await fetch(`/api/agents/${S}`,{method:"PUT",headers:W(),body:JSON.stringify(p)}),d=await j.json();if(await U(),!j.ok&&d.error)return{error:d.error};return{}},b=async(S)=>{let p=S.status==="running"?"stop":"start";O((d)=>d.map((e)=>e.id===S.id?{...e,status:p==="start"?"starting":"stopping"}:e));let j=await fetch(`/api/agents/${S.id}/${p}`,{method:"POST",headers:W()});if(!j.ok){let d=await j.json();return O((e)=>e.map((s)=>s.id===S.id?{...s,status:S.status}:s)),{error:d.error}}return{}},k=_.filter((S)=>S.status==="running").length;return{agents:_,loading:L,runningCount:k,fetchAgents:U,createAgent:C,updateAgent:R,deleteAgent:F,toggleAgent:b}}var iz=n(e0(),1);function CH(G){let{accessToken:H}=G4(),[_,O]=iz.useState([]),L=iz.useCallback(()=>{let C={"Content-Type":"application/json"};if(H)C.Authorization=`Bearer ${H}`;return C},[H]),N=iz.useCallback(async()=>{let F=await(await fetch("/api/providers",{headers:L()})).json();O(F.providers||[])},[L]);iz.useEffect(()=>{if(G)N()},[G,N]);let W=_.filter((C)=>C.hasKey);return{providers:_,configuredProviders:W,fetchProviders:N,saveKey:async(C,F)=>{let b=await(await fetch(`/api/keys/${C}/test`,{method:"POST",headers:L(),body:JSON.stringify({key:F})})).json();if(!b.valid)return{success:!1,error:b.error||"API key is invalid"};let k=await fetch(`/api/keys/${C}`,{method:"POST",headers:L(),body:JSON.stringify({key:F})});if(!k.ok)return{success:!1,error:(await k.json()).error||"Failed to save key"};return await N(),{success:!0}},deleteKey:async(C)=>{await fetch(`/api/keys/${C}`,{method:"DELETE",headers:L()}),await N()}}}var oz=n(e0(),1);function DH(){let{accessToken:G,isAuthenticated:H}=G4(),[_,O]=oz.useState(null),L=oz.useCallback(()=>{let W={};if(G)W.Authorization=`Bearer ${G}`;return W},[G]);oz.useEffect(()=>{if(!H){O(null);return}fetch("/api/onboarding/status",{headers:L()}).then((W)=>W.json()).then((W)=>{O(W.completed||W.has_any_keys)}).catch(()=>O(!0))},[H,L]);let N=oz.useCallback(async()=>{await fetch("/api/onboarding/complete",{method:"POST",headers:L()}),O(!0)},[L]);return{isComplete:_,setIsComplete:O,complete:N}}var W4=n(e0(),1);var U6=n(e0(),1);var Q1=n(e0(),1),qX=n(e0(),1),tz=n(e0(),1);function EL(G){var H,_,O="";if(typeof G=="string"||typeof G=="number")O+=G;else if(typeof G=="object")if(Array.isArray(G)){var L=G.length;for(H=0;H<L;H++)G[H]&&(_=EL(G[H]))&&(O&&(O+=" "),O+=_)}else for(_ in G)G[_]&&(O&&(O+=" "),O+=_);return O}function fL(){for(var G,H,_=0,O="",L=arguments.length;_<L;_++)(G=arguments[_])&&(H=EL(G))&&(O&&(O+=" "),O+=H);return O}var vF=(G)=>{let H=IF(G),{conflictingClassGroups:_,conflictingClassGroupModifiers:O}=G;return{getClassGroupId:(W)=>{let U=W.split("-");if(U[0]===""&&U.length!==1)U.shift();return pL(U,H)||TF(W)},getConflictingClassGroupIds:(W,U)=>{let y=_[W]||[];if(U&&O[W])return[...y,...O[W]];return y}}},pL=(G,H)=>{if(G.length===0)return H.classGroupId;let _=G[0],O=H.nextPart.get(_),L=O?pL(G.slice(1),O):void 0;if(L)return L;if(H.validators.length===0)return;let N=G.join("-");return H.validators.find(({validator:W})=>W(N))?.classGroupId},mL=/^\[(.+)\]$/,TF=(G)=>{if(mL.test(G)){let H=mL.exec(G)[1],_=H?.substring(0,H.indexOf(":"));if(_)return"arbitrary.."+_}},IF=(G)=>{let{theme:H,prefix:_}=G,O={nextPart:new Map,validators:[]};return VF(Object.entries(G.classGroups),_).forEach(([N,W])=>{EH(W,O,N,H)}),O},EH=(G,H,_,O)=>{G.forEach((L)=>{if(typeof L==="string"){let N=L===""?H:hL(H,L);N.classGroupId=_;return}if(typeof L==="function"){if(kF(L)){EH(L(O),H,_,O);return}H.validators.push({validator:L,classGroupId:_});return}Object.entries(L).forEach(([N,W])=>{EH(W,hL(H,N),_,O)})})},hL=(G,H)=>{let _=G;return H.split("-").forEach((O)=>{if(!_.nextPart.has(O))_.nextPart.set(O,{nextPart:new Map,validators:[]});_=_.nextPart.get(O)}),_},kF=(G)=>G.isThemeGetter,VF=(G,H)=>{if(!H)return G;return G.map(([_,O])=>{let L=O.map((N)=>{if(typeof N==="string")return H+N;if(typeof N==="object")return Object.fromEntries(Object.entries(N).map(([W,U])=>[H+W,U]));return N});return[_,L]})},yF=(G)=>{if(G<1)return{get:()=>{return},set:()=>{}};let H=0,_=new Map,O=new Map,L=(N,W)=>{if(_.set(N,W),H++,H>G)H=0,O=_,_=new Map};return{get(N){let W=_.get(N);if(W!==void 0)return W;if((W=O.get(N))!==void 0)return L(N,W),W},set(N,W){if(_.has(N))_.set(N,W);else L(N,W)}}};var CF=(G)=>{let{separator:H,experimentalParseClassName:_}=G,O=H.length===1,L=H[0],N=H.length,W=(U)=>{let y=[],C=0,F=0,R;for(let j=0;j<U.length;j++){let d=U[j];if(C===0){if(d===L&&(O||U.slice(j,j+N)===H)){y.push(U.slice(F,j)),F=j+N;continue}if(d==="/"){R=j;continue}}if(d==="[")C++;else if(d==="]")C--}let b=y.length===0?U:U.substring(F),k=b.startsWith("!"),S=k?b.substring(1):b,p=R&&R>F?R-F:void 0;return{modifiers:y,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:p}};if(_)return(U)=>_({className:U,parseClassName:W});return W},DF=(G)=>{if(G.length<=1)return G;let H=[],_=[];return G.forEach((O)=>{if(O[0]==="[")H.push(..._.sort(),O),_=[];else _.push(O)}),H.push(..._.sort()),H},SF=(G)=>({cache:yF(G.cacheSize),parseClassName:CF(G),...vF(G)}),EF=/\s+/,fF=(G,H)=>{let{parseClassName:_,getClassGroupId:O,getConflictingClassGroupIds:L}=H,N=[],W=G.trim().split(EF),U="";for(let y=W.length-1;y>=0;y-=1){let C=W[y],{modifiers:F,hasImportantModifier:R,baseClassName:b,maybePostfixModifierPosition:k}=_(C),S=Boolean(k),p=O(S?b.substring(0,k):b);if(!p){if(!S){U=C+(U.length>0?" "+U:U);continue}if(p=O(b),!p){U=C+(U.length>0?" "+U:U);continue}S=!1}let j=DF(F).join(":"),d=R?j+"!":j,e=d+p;if(N.includes(e))continue;N.push(e);let s=L(p,S);for(let a=0;a<s.length;++a){let _0=s[a];N.push(d+_0)}U=C+(U.length>0?" "+U:U)}return U};function mF(){let G=0,H,_,O="";while(G<arguments.length)if(H=arguments[G++]){if(_=jL(H))O&&(O+=" "),O+=_}return O}var jL=(G)=>{if(typeof G==="string")return G;let H,_="";for(let O=0;O<G.length;O++)if(G[O]){if(H=jL(G[O]))_&&(_+=" "),_+=H}return _};function hF(G,...H){let _,O,L,N=W;function W(y){let C=H.reduce((F,R)=>R(F),G());return _=SF(C),O=_.cache.get,L=_.cache.set,N=U,U(y)}function U(y){let C=O(y);if(C)return C;let F=fF(y,_);return L(y,F),F}return function(){return N(mF.apply(null,arguments))}}var S1=(G)=>{let H=(_)=>_[G]||[];return H.isThemeGetter=!0,H},xL=/^\[(?:([a-z-]+):)?(.+)\]$/i,pF=/^\d+\/\d+$/,jF=new Set(["px","full","screen"]),xF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$8=(G)=>JX(G)||jF.has(G)||pF.test(G),Xz=(G)=>QX(G,"length",sF),JX=(G)=>Boolean(G)&&!Number.isNaN(Number(G)),SH=(G)=>QX(G,"number",JX),YY=(G)=>Boolean(G)&&Number.isInteger(Number(G)),dF=(G)=>G.endsWith("%")&&JX(G.slice(0,-1)),x0=(G)=>xL.test(G),Yz=(G)=>xF.test(G),aF=new Set(["length","size","percentage"]),iF=(G)=>QX(G,aF,gL),oF=(G)=>QX(G,"position",gL),rF=new Set(["image","url"]),nF=(G)=>QX(G,rF,zN),tF=(G)=>QX(G,"",eF),ZY=()=>!0,QX=(G,H,_)=>{let O=xL.exec(G);if(O){if(O[1])return typeof H==="string"?O[1]===H:H.has(O[1]);return _(O[2])}return!1},sF=(G)=>gF.test(G)&&!uF.test(G),gL=()=>!1,eF=(G)=>lF.test(G),zN=(G)=>cF.test(G);var $N=()=>{let G=S1("colors"),H=S1("spacing"),_=S1("blur"),O=S1("brightness"),L=S1("borderColor"),N=S1("borderRadius"),W=S1("borderSpacing"),U=S1("borderWidth"),y=S1("contrast"),C=S1("grayscale"),F=S1("hueRotate"),R=S1("invert"),b=S1("gap"),k=S1("gradientColorStops"),S=S1("gradientColorStopPositions"),p=S1("inset"),j=S1("margin"),d=S1("opacity"),e=S1("padding"),s=S1("saturate"),a=S1("scale"),_0=S1("sepia"),l=S1("skew"),L0=S1("space"),g=S1("translate"),I0=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],c=()=>["auto",x0,H],u=()=>[x0,H],J0=()=>["",$8,Xz],M0=()=>["auto",JX,x0],t=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G0=()=>["solid","dashed","dotted","double","none"],H0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],i=()=>["","0",x0],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z0=()=>[JX,x0];return{cacheSize:500,separator:":",theme:{colors:[ZY],spacing:[$8,Xz],blur:["none","",Yz,x0],brightness:z0(),borderColor:[G],borderRadius:["none","","full",Yz,x0],borderSpacing:u(),borderWidth:J0(),contrast:z0(),grayscale:i(),hueRotate:z0(),invert:i(),gap:u(),gradientColorStops:[G],gradientColorStopPositions:[dF,Xz],inset:c(),margin:c(),opacity:z0(),padding:u(),saturate:z0(),scale:z0(),sepia:i(),skew:z0(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",x0]}],container:["container"],columns:[{columns:[Yz]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...t(),x0]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:I0()}],"overscroll-x":[{"overscroll-x":I0()}],"overscroll-y":[{"overscroll-y":I0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",YY,x0]}],basis:[{basis:c()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x0]}],grow:[{grow:i()}],shrink:[{shrink:i()}],order:[{order:["first","last","none",YY,x0]}],"grid-cols":[{"grid-cols":[ZY]}],"col-start-end":[{col:["auto",{span:["full",YY,x0]},x0]}],"col-start":[{"col-start":M0()}],"col-end":[{"col-end":M0()}],"grid-rows":[{"grid-rows":[ZY]}],"row-start-end":[{row:["auto",{span:[YY,x0]},x0]}],"row-start":[{"row-start":M0()}],"row-end":[{"row-end":M0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x0]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x0]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[e]}],px:[{px:[e]}],py:[{py:[e]}],ps:[{ps:[e]}],pe:[{pe:[e]}],pt:[{pt:[e]}],pr:[{pr:[e]}],pb:[{pb:[e]}],pl:[{pl:[e]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[L0]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L0]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x0,H]}],"min-w":[{"min-w":[x0,H,"min","max","fit"]}],"max-w":[{"max-w":[x0,H,"none","full","min","max","fit","prose",{screen:[Yz]},Yz]}],h:[{h:[x0,H,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[x0,H,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[x0,H,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x0,H,"auto","min","max","fit"]}],"font-size":[{text:["base",Yz,Xz]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",SH]}],"font-family":[{font:[ZY]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",x0]}],"line-clamp":[{"line-clamp":["none",JX,SH]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$8,x0]}],"list-image":[{"list-image":["none",x0]}],"list-style-type":[{list:["none","disc","decimal",x0]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[G]}],"placeholder-opacity":[{"placeholder-opacity":[d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[G]}],"text-opacity":[{"text-opacity":[d]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$8,Xz]}],"underline-offset":[{"underline-offset":["auto",$8,x0]}],"text-decoration-color":[{decoration:[G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[d]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...t(),oF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nF]}],"bg-color":[{bg:[G]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[N]}],"rounded-s":[{"rounded-s":[N]}],"rounded-e":[{"rounded-e":[N]}],"rounded-t":[{"rounded-t":[N]}],"rounded-r":[{"rounded-r":[N]}],"rounded-b":[{"rounded-b":[N]}],"rounded-l":[{"rounded-l":[N]}],"rounded-ss":[{"rounded-ss":[N]}],"rounded-se":[{"rounded-se":[N]}],"rounded-ee":[{"rounded-ee":[N]}],"rounded-es":[{"rounded-es":[N]}],"rounded-tl":[{"rounded-tl":[N]}],"rounded-tr":[{"rounded-tr":[N]}],"rounded-br":[{"rounded-br":[N]}],"rounded-bl":[{"rounded-bl":[N]}],"border-w":[{border:[U]}],"border-w-x":[{"border-x":[U]}],"border-w-y":[{"border-y":[U]}],"border-w-s":[{"border-s":[U]}],"border-w-e":[{"border-e":[U]}],"border-w-t":[{"border-t":[U]}],"border-w-r":[{"border-r":[U]}],"border-w-b":[{"border-b":[U]}],"border-w-l":[{"border-l":[U]}],"border-opacity":[{"border-opacity":[d]}],"border-style":[{border:[...G0(),"hidden"]}],"divide-x":[{"divide-x":[U]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[U]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[d]}],"divide-style":[{divide:G0()}],"border-color":[{border:[L]}],"border-color-x":[{"border-x":[L]}],"border-color-y":[{"border-y":[L]}],"border-color-s":[{"border-s":[L]}],"border-color-e":[{"border-e":[L]}],"border-color-t":[{"border-t":[L]}],"border-color-r":[{"border-r":[L]}],"border-color-b":[{"border-b":[L]}],"border-color-l":[{"border-l":[L]}],"divide-color":[{divide:[L]}],"outline-style":[{outline:["",...G0()]}],"outline-offset":[{"outline-offset":[$8,x0]}],"outline-w":[{outline:[$8,Xz]}],"outline-color":[{outline:[G]}],"ring-w":[{ring:J0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[G]}],"ring-opacity":[{"ring-opacity":[d]}],"ring-offset-w":[{"ring-offset":[$8,Xz]}],"ring-offset-color":[{"ring-offset":[G]}],shadow:[{shadow:["","inner","none",Yz,tF]}],"shadow-color":[{shadow:[ZY]}],opacity:[{opacity:[d]}],"mix-blend":[{"mix-blend":[...H0(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H0()}],filter:[{filter:["","none"]}],blur:[{blur:[_]}],brightness:[{brightness:[O]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",Yz,x0]}],grayscale:[{grayscale:[C]}],"hue-rotate":[{"hue-rotate":[F]}],invert:[{invert:[R]}],saturate:[{saturate:[s]}],sepia:[{sepia:[_0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[_]}],"backdrop-brightness":[{"backdrop-brightness":[O]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[d]}],"backdrop-saturate":[{"backdrop-saturate":[s]}],"backdrop-sepia":[{"backdrop-sepia":[_0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[W]}],"border-spacing-x":[{"border-spacing-x":[W]}],"border-spacing-y":[{"border-spacing-y":[W]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x0]}],duration:[{duration:z0()}],ease:[{ease:["linear","in","out","in-out",x0]}],delay:[{delay:z0()}],animate:[{animate:["none","spin","ping","pulse","bounce",x0]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[a]}],"scale-x":[{"scale-x":[a]}],"scale-y":[{"scale-y":[a]}],rotate:[{rotate:[YY,x0]}],"translate-x":[{"translate-x":[g]}],"translate-y":[{"translate-y":[g]}],"skew-x":[{"skew-x":[l]}],"skew-y":[{"skew-y":[l]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x0]}],accent:[{accent:["auto",G]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x0]}],"caret-color":[{caret:[G]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x0]}],fill:[{fill:[G,"none"]}],"stroke-w":[{stroke:[$8,Xz,SH]}],stroke:[{stroke:[G,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var uL=hF($N);var tL=n(e0(),1),a6=n($1(),1),HX=n(e0(),1),A4=n($1(),1),sL=n($1(),1),jH=n($1(),1),KX=n(e0(),1),d1=n($1(),1),eL=n(e0(),1),q4=n($1(),1),QY=n($1(),1),X0=n($1(),1),k6=n($1(),1),n4=n($1(),1),CJ=n($1(),1),P4=n($1(),1),gH=n($1(),1),R0=n($1(),1),h1=n($1(),1),X1=n($1(),1),Q0=n($1(),1),y0=n($1(),1),JY=n($1(),1),T7=n(e0(),1),v0=n($1(),1),Y8=n(e0(),1),K0=n($1(),1),H4=n($1(),1),aN=n(e0(),1),z2=n($1(),1),uH=n(e0(),1),lH=n($1(),1),iN=n(e0(),1),$2=n($1(),1),X2=n(e0(),1),Y2=n($1(),1),oN=n(e0(),1),Z2=n($1(),1),J2=n($1(),1),Q2=n($1(),1),SJ=n(e0(),1),rN=n(e0(),1),cH=n($1(),1),G2=n($1(),1),q2=n($1(),1),H2=n($1(),1),K2=n(e0(),1),_2=n(e0(),1),YN=Object.defineProperty,ZN=(G,H,_)=>(H in G)?YN(G,H,{enumerable:!0,configurable:!0,writable:!0,value:_}):G[H]=_,JN=(G,H,_)=>ZN(G,typeof H!=="symbol"?H+"":H,_);function F1(...G){return uL(fL(G))}var cM=[{id:"msg-1",role:"assistant",content:"Hello! I'm your AI assistant. How can I help you today?",timestamp:new Date(Date.now()-3600000)},{id:"msg-2",role:"user",content:"I want to plan a trip to Europe",timestamp:new Date(Date.now()-3500000)},{id:"msg-3",role:"assistant",content:"Great choice! Europe has amazing destinations. What's your budget and how many days do you have?",timestamp:new Date(Date.now()-3400000)},{id:"msg-4",role:"user",content:"Around $2000 for 5 days",timestamp:new Date(Date.now()-3300000)},{id:"msg-5",role:"assistant",content:"Perfect! I found some great destinations that fit your budget:",widgets:[{type:"list",id:"destinations-1",props:{items:[{id:"paris",title:"Paris, France",subtitle:"5 days • $1,850",description:"The City of Light with iconic landmarks",metadata:{city:"Paris",country:"France",lat:48.8566,lng:2.3522,price:1850,days:5}},{id:"rome",title:"Rome, Italy",subtitle:"5 days • $1,650",description:"Ancient history meets modern culture",metadata:{city:"Rome",country:"Italy",lat:41.9028,lng:12.4964,price:1650,days:5}},{id:"barcelona",title:"Barcelona, Spain",subtitle:"5 days • $1,450",description:"Beautiful beaches and Gaudí architecture",metadata:{city:"Barcelona",country:"Spain",lat:41.3851,lng:2.1734,price:1450,days:5}}]},actions:[{type:"select_destination",label:"Select",handler:"client",payload:{}},{type:"view_details",label:"Details",handler:"server",payload:{}}]}],timestamp:new Date(Date.now()-3200000)}],dM=[{id:"thread-1",title:"Trip to Europe",preview:"Planning a 5-day trip...",createdAt:new Date(Date.now()-86400000),updatedAt:new Date(Date.now()-3600000),messageCount:12},{id:"thread-2",title:"Restaurant Recommendations",preview:"Looking for good places...",createdAt:new Date(Date.now()-172800000),updatedAt:new Date(Date.now()-86400000),messageCount:8},{id:"thread-3",title:"Budget Planning",preview:"Help with monthly budget",createdAt:new Date(Date.now()-259200000),updatedAt:new Date(Date.now()-172800000),messageCount:15}];function QN(G=1000){return new Promise((H)=>{setTimeout(()=>{H({id:`msg-${Date.now()}`,role:"assistant",content:"This is a mock response. In production, this would come from your AI agent API.",timestamp:new Date})},G)})}function GN(G){let H=G.toLowerCase();if(H.includes("analyze")||H.includes("analysis"))return`Analysis complete for "${G}". Found 247 records with an average value of $1,234. The data shows a 23% increase compared to last quarter. Key insights: Revenue is up, customer satisfaction improved by 15%, and operational costs decreased by 8%.`;if(H.includes("sales")||H.includes("revenue"))return"Sales data processed: Q4 2024 revenue reached $2.4M, representing 18% growth year-over-year. Top performing products: Enterprise Plan (+45%), Pro Plan (+32%), Basic Plan (+12%). Regional breakdown: North America (52%), Europe (31%), APAC (17%).";if(H.includes("report")||H.includes("summary"))return"Report generated successfully. Executive Summary: Overall performance exceeded targets by 12%. Marketing ROI improved to 3.2x, customer acquisition cost reduced by 18%, and lifetime value increased by 24%. Detailed breakdown available in attached widgets.";if(H.includes("data")||H.includes("metrics"))return"Data metrics retrieved: 1,847 active users, 12,394 sessions this month, 94.2% uptime, average response time 127ms. Performance is within acceptable parameters. No critical issues detected.";if(H.includes("customer")||H.includes("user"))return"Customer analysis complete: 523 new customers this month, 89% retention rate, average satisfaction score 4.6/5. Top feedback themes: excellent support (87%), easy to use (72%), good value (68%). 3 support tickets pending review.";return"This is a mock response showing how your agent would process and respond to commands. The actual response would be generated by your AI agent based on real data and context."}function qN(G){let H=GN(G),_=G.toLowerCase(),O=[],L;if(_.includes("sales")||_.includes("revenue")||_.includes("analyze"))O.push({type:"card",id:`widget-${Date.now()}-1`,props:{title:"Q4 2024 Performance",description:"Revenue: $2.4M (+18% YoY)",footer:"Updated: "+new Date().toLocaleDateString()},actions:[{type:"view_details",label:"View Details",handler:"client",payload:{reportId:"q4-2024"}}]});if(_.includes("customer")||_.includes("user"))O.push({type:"list",id:`widget-${Date.now()}-2`,props:{items:[{id:"metric-1",title:"Active Users",subtitle:"1,847 users",description:"+12% from last month"},{id:"metric-2",title:"Retention Rate",subtitle:"89%",description:"Above industry average"},{id:"metric-3",title:"Satisfaction Score",subtitle:"4.6/5",description:"Based on 234 reviews"}]}});if(_.includes("task")||_.includes("todo")||_.includes("work")||_.includes("completed"))O.push({type:"list",id:`widget-${Date.now()}-tasks`,props:{items:[{id:"task-1",title:"Implement user authentication",subtitle:"Created just now",description:"Added OAuth 2.0 support with Google and GitHub providers",backgroundColor:"rgba(59, 130, 246, 0.15)",metadata:{status:"created",priority:"high",tags:["backend","security"]}},{id:"task-2",title:"Update API documentation",subtitle:"Modified 2 minutes ago",description:"Changed endpoint descriptions and added new examples",backgroundColor:"rgba(234, 179, 8, 0.15)",metadata:{status:"modified",priority:"medium",tags:["docs"]}},{id:"task-3",title:"Fix login redirect bug",subtitle:"Completed 5 minutes ago",description:"Users now properly redirected after successful login",backgroundColor:"rgba(34, 197, 94, 0.15)",metadata:{status:"completed",priority:"urgent",tags:["bugfix","auth"]}}]},actions:[{type:"view_task",label:"View",handler:"client",payload:{}},{type:"undo",label:"Undo",handler:"server",payload:{}}]}),L={type:"update_database",payload:{table:"tasks",operation:"mark_as_viewed",taskIds:["task-1","task-2","task-3"],timestamp:new Date().toISOString()}};if(_.includes("analyze")||_.includes("analysis"))L={type:"send_notification",payload:{recipient:"team@company.com",subject:"Analysis Complete",message:"Your requested analysis has been completed and is ready for review."}};return{message:H,widgets:O,action:L}}function HN(G,H,_,O,L=30){let{message:N,widgets:W}=qN(G),U=N.split(" "),y=0,C=setInterval(()=>{try{if(y<U.length)H({type:"token",content:U[y]+" "}),y++;else{clearInterval(C),W.forEach((R)=>{H({type:"widget",widget:R})});let F=`mock_thread_${Date.now()}`;H({type:"complete"}),_(F)}}catch(F){clearInterval(C),O(F instanceof Error?F:Error("Mock streaming error"))}},L)}function KN(G){return new Promise((H,_)=>{let O=new FileReader;O.onload=()=>{let N=O.result.split(",")[1];H(N)},O.onerror=()=>_(Error("Failed to read file")),O.readAsDataURL(G)})}function _N(G){if(G.startsWith("image/"))return"image";return"document"}function BN(G){return["image/jpeg","image/png","image/gif","image/webp","application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(G.type)}async function UN(G){let H=await KN(G);return{type:_N(G.type),source:{type:"base64",media_type:G.type,data:H}}}async function ON(G){let H=Array.from(G);return await Promise.all(H.map((O)=>UN(O)))}async function lL(G,H){if(!H||H.length===0)return G;let _=[];if(G.trim())_.push({type:"text",text:G.trim()});let O=await ON(H);return _.push(...O),_}function DJ(G){if(G<1024)return`${G} B`;if(G<1048576)return`${(G/1024).toFixed(1)} KB`;return`${(G/1048576).toFixed(1)} MB`}var cL=10485760;function iL(G){if(!BN(G))return{valid:!1,error:`Unsupported file type: ${G.type}`};if(G.size>cL)return{valid:!1,error:`File too large: ${DJ(G.size)} (max ${DJ(cL)})`};return{valid:!0}}var LN=["list","table"];function WN(G){let H=[],_=!1,O=G.match(/"items"\s*:\s*\[/);if(!O)return{items:H,isStreaming:!1};let L=G.indexOf("[",O.index);if(L===-1)return{items:H,isStreaming:!0};let N=0,W=!1,U=!1,y=-1;for(let R=L+1;R<G.length;R++){let b=G[R];if(U){U=!1;continue}if(b==="\\"&&W){U=!0;continue}if(b==='"'){W=!W;continue}if(W)continue;if(b==="{"){if(N===0)y=R;N++}else if(b==="}"){if(N--,N===0&&y!==-1){let k=G.slice(y,R+1);try{let S=JSON.parse(k);if(!S.id)S.id=`item-${H.length}-${hH(k)}`;H.push(S)}catch(S){}y=-1}}else if(b==="]"&&N===0){_=!1;break}}if(N>0||y!==-1)_=!0;let C=G.slice(L);if(pH(C,0)===-1)_=!0;return{items:H,isStreaming:_}}function hH(G){let H=0;for(let _=0;_<G.length;_++){let O=G.charCodeAt(_);H=(H<<5)-H+O,H=H&H}return Math.abs(H).toString(36)}function pH(G,H){let _=0,O=!1,L=!1;for(let N=H;N<G.length;N++){let W=G[N];if(L){L=!1;continue}if(W==="\\"&&O){L=!0;continue}if(W==='"'){O=!O;continue}if(O)continue;if(W==="["||W==="{")_++;else if(W==="]"||W==="}"){if(_--,_===0)return N}}return-1}function VJ(G){let H=[],_=!1,O=!1,L=0,N=null,W=G,U=G.lastIndexOf("@ui:");if(U!==-1){let F=G.slice(U),R=F.match(/^@ui:(\w+)/);if(R){let b=R[1],k=F.indexOf("[");if(k===-1)W=G.slice(0,U),N=b,O=!0;else{let S=U+k;if(pH(G,S)===-1)if(LN.includes(b)){let j=G.slice(S+1),{items:d,isStreaming:e}=WN(j);if(d.length>0){W=G.slice(0,U);let s=`widget-${b}-streaming-${hH(j)}`,a=W.replace(/[\s:;\-–—\.]+$/g,"").trim();if(a)H.push({type:"text",content:a});H.push({type:"widget",widget:{type:b,id:s,props:b==="table"?{rows:d,columns:[]}:{items:d},isStreaming:e}}),_=!0,O=!1,W=""}else W=G.slice(0,U),N=b,O=!0}else W=G.slice(0,U),N=b,O=!0}}}if(O)W=W.replace(/[\s:;\-–—\.]+$/g,"");let y=/@ui:(\w+)\[/g,C;while((C=y.exec(W))!==null){let F=C[1],R=C.index+C[0].length-1,b=pH(W,R);if(b===-1)continue;let k=W.slice(R+1,b);if(C.index>L){let S=W.slice(L,C.index).trim();if(S)H.push({type:"text",content:S})}try{let S=k.trim(),p=JSON.parse(S),j=`widget-${F}-${hH(S)}`,{metadata:d,actions:e,...s}=p;H.push({type:"widget",widget:{type:F,id:j,props:s,...e&&{actions:e},...d&&{metadata:d}}}),_=!0}catch(S){}L=b+1,y.lastIndex=L}if(L<W.length){let F=W.slice(L).trim();if(F)H.push({type:"text",content:F})}if(H.length===0&&W.trim())H.push({type:"text",content:W.trim()});if(N)H.push({type:"widget_pending",pendingType:N});return{segments:H,hasWidgets:_,hasPendingWidget:O}}var oL={card:{schema:"title, description?, image?, footer?, actions?: [{type, label}]",example:'@ui:card[{"title": "Summary", "description": "Details here"}]'},list:{schema:"items: [{id, title, subtitle?, description?, image?, metadata?: {any extra data}}], actions?: [{type, label}] - metadata is sent as action payload when clicked",example:'@ui:list[{"items": [{"id": "1", "title": "Item", "subtitle": "Info", "metadata": {"key": "value"}}]}]'},button_group:{schema:"buttons: [{id, label, variant?}] - Use for standalone buttons only, NOT for form submits",example:'@ui:button_group[{"buttons": [{"id": "ok", "label": "OK"}]}]'},form:{schema:"title?, fields: [{name, type: text|password|number|select|checkbox|textarea|date, label, required?, placeholder?, options?}], actions: [{type, label}] - Button is built-in via actions, do NOT add separate button",example:'@ui:form[{"title": "Settings", "fields": [{"name": "apiKey", "type": "password", "label": "API Key", "required": true}], "actions": [{"type": "save", "label": "Save"}]}]'},table:{schema:"columns: [{key, label}], rows: [...], striped?, compact?",example:'@ui:table[{"columns": [{"key": "name", "label": "Name"}], "rows": [{"name": "A"}]}]'},image:{schema:"src, alt, caption?",example:'@ui:image[{"src": "url", "alt": "desc"}]'},chart:{schema:"chartType: line|bar|pie, data: {labels, datasets}",example:'@ui:chart[{"chartType": "bar", "data": {"labels": ["A"], "datasets": [{"label": "X", "data": [10]}]}}]'},flow:{schema:"title, subtitle?, icon?: research|schedule|analyze|deploy|recurring|automation|data, steps: [{id, label, type?, color?: blue|purple|cyan|amber|emerald|rose|indigo|orange, status?: pending|active|completed|error|skipped}] - Horizontal pipeline. Use @label for agents. Types auto-detected from label.",example:'@ui:flow[{"title": "Deploy Pipeline", "icon": "deploy", "steps": [{"id": "1", "label": "Test", "color": "cyan"}, {"id": "2", "label": "Build", "color": "amber"}, {"id": "3", "label": "Deploy", "color": "rose"}]}]'}},RN=Object.keys(oL),FN=["flow"],rL=RN.filter((G)=>!FN.includes(G));function NN(G){let H=G||rL,_=`
|
|
224
|
+
## UI Widgets
|
|
225
|
+
SYNTAX: @ui:type[{json}] - MUST use SQUARE BRACKETS [] around the JSON object.
|
|
226
|
+
CORRECT: @ui:list[{"items": [...]}]
|
|
227
|
+
WRONG: @ui:list{"items": [...]} (missing square brackets)
|
|
228
|
+
|
|
229
|
+
`;for(let O of H){let L=oL[O];if(!L)continue;_+=`${O}: ${L.schema} | ${L.example}
|
|
230
|
+
`}return _+=`
|
|
231
|
+
Per-item "metadata" is sent as payload on action click.
|
|
232
|
+
`,_}function bN(G){return`
|
|
233
|
+
Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${(G||rL).join(", ")}. Per-item "metadata" is sent as action payload.
|
|
234
|
+
`}function nL(G){let H=[],_=null;for(let O=0;O<G.length;O++){let L=G[O],N=L.created_at||L.timestamp?new Date(L.created_at||L.timestamp):new Date;if(typeof L.content==="string"){let W={id:L.id||`thread-msg-${O}`,role:L.role,content:L.content,timestamp:N};H.push(W),_=null}else if(Array.isArray(L.content)){if(L.role==="assistant"){let W=[],U="";for(let C of L.content)if(C.type==="text"&&C.text)W.push({type:"text",content:C.text}),U+=C.text;else if(C.type==="tool_use")W.push({type:"tool",id:C.id||`tool-${O}-${W.length}`,name:C.name||"unknown",status:"completed"});let y={id:L.id||`thread-msg-${O}`,role:"assistant",content:U,timestamp:N,metadata:W.length>0?{content_segments:W}:void 0};H.push(y),_=W}else if(L.role==="user")if(L.content.some((U)=>U.type==="tool_result")&&_){for(let U of L.content)if(U.type==="tool_result"&&U.tool_use_id){let y=_.find((C)=>C.type==="tool"&&C.id===U.tool_use_id);if(y&&y.type==="tool")y.result=typeof U.content==="string"?U.content:Array.isArray(U.content)?U.content.map((C)=>C.text||"").join(""):void 0,y.status=U.is_error?"error":"completed"}}else{let U=L.content.filter((y)=>y.type==="text").map((y)=>y.text||"").join("");if(U)H.push({id:L.id||`thread-msg-${O}`,role:"user",content:U,timestamp:N});_=null}}}return H}function MN({widget:G,onAction:H}){let{title:_,description:O,image:L,footer:N}=G.props;return a6.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[L&&a6.jsx("img",{src:L,alt:_,className:"w-full h-48 object-cover"}),a6.jsxs("div",{className:"p-4",children:[a6.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:_}),O&&a6.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:O})]}),(N||G.actions&&G.actions.length>0)&&a6.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[N&&a6.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:N}),G.actions&&G.actions.length>0&&a6.jsx("div",{className:"flex gap-2",children:G.actions.map((W,U)=>a6.jsx("button",{onClick:()=>H?.({type:W.type,payload:W.payload,widgetId:G.id,timestamp:new Date}),className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:W.label},U))})]})]})}function wN({widget:G,onAction:H}){let{items:_}=G.props,O=G.isStreaming??!1,L=HX.useRef(new Set),[N,W]=HX.useState(new Set);return HX.useEffect(()=>{let U=new Set(_.map((C)=>C.id)),y=new Set;if(_.forEach((C)=>{if(!L.current.has(C.id))y.add(C.id)}),_.forEach((C)=>L.current.add(C.id)),y.size>0){W(y);let C=setTimeout(()=>{W(new Set)},500);return()=>clearTimeout(C)}},[_]),A4.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[_.map((U,y)=>{let C=N.has(U.id),F=y===_.length-1;return A4.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!F||O?"border-b border-neutral-200 dark:border-neutral-700":""} ${!U.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${C?"apteva-list-item-new":""}`,style:U.backgroundColor?{backgroundColor:U.backgroundColor}:void 0,children:[U.image&&A4.jsx("img",{src:U.image,alt:U.title,className:"w-16 h-16 rounded object-cover"}),A4.jsxs("div",{className:`flex-1 ${U.image?"ml-4":""}`,children:[A4.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:U.title}),U.subtitle&&A4.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:U.subtitle}),U.description&&A4.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:U.description})]}),G.actions&&G.actions.length>0&&A4.jsx("div",{className:"flex gap-2",children:G.actions.map((R,b)=>A4.jsx("button",{onClick:()=>H?.({type:R.type,payload:U.metadata||U,widgetId:G.id,timestamp:new Date}),className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:R.label},b))})]},U.id)}),O&&A4.jsxs("div",{className:"apteva-list-streaming flex items-center gap-3 p-4 text-neutral-500 dark:text-neutral-400",children:[A4.jsxs("div",{className:"apteva-streaming-dots flex gap-1",children:[A4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),A4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),A4.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),A4.jsx("span",{className:"text-sm",children:"Loading more..."})]})]})}function PN({widget:G,onAction:H}){let{label:_,variant:O="primary",disabled:L=!1}=G.props;return sL.jsx("button",{onClick:()=>G.actions?.[0]&&H?.({type:G.actions[0].type,payload:G.actions[0].payload,widgetId:G.id,timestamp:new Date}),disabled:L,className:F1("px-4 py-2 rounded-lg font-medium transition-colors",{primary:"bg-blue-500 !text-white hover:bg-blue-600",secondary:"bg-neutral-500 !text-white hover:bg-neutral-600",outline:"border-2 border-blue-500 !text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900",ghost:"!text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900"}[O],{"opacity-50 cursor-not-allowed":L}),children:_})}function AN({widget:G,onAction:H}){let{layout:_="horizontal",buttons:O}=G.props,L={primary:"bg-blue-500 !text-white hover:bg-blue-600",secondary:"bg-neutral-200 dark:bg-neutral-700 !text-neutral-800 dark:!text-neutral-200 hover:bg-neutral-300 dark:hover:bg-neutral-600",outline:"border border-neutral-300 dark:border-neutral-600 !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800"},N=(W)=>{return G.actions?.find((U)=>U.payload?.buttonId===W)||G.actions?.[0]};return jH.jsx("div",{className:F1("flex gap-2",_==="vertical"?"flex-col":"flex-row flex-wrap"),children:O.map((W)=>{let U=N(W.id);return jH.jsx("button",{onClick:()=>{if(U)H?.({type:U.type,payload:{...U.payload,buttonId:W.id},widgetId:G.id,timestamp:new Date})},className:F1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",L[W.variant||"secondary"]),children:W.label},W.id)})})}function vN({widget:G,onAction:H}){let{columns:_,rows:O,caption:L,compact:N=!1,striped:W=!1}=G.props,U=G.isStreaming??!1,y=KX.useRef(new Set),[C,F]=KX.useState(new Set);KX.useEffect(()=>{let b=new Set;if(O.forEach((k,S)=>{let p=k.id||`row-${S}`;if(!y.current.has(p))b.add(p)}),O.forEach((k,S)=>{let p=k.id||`row-${S}`;y.current.add(p)}),b.size>0){F(b);let k=setTimeout(()=>{F(new Set)},500);return()=>clearTimeout(k)}},[O]);let R=(b)=>{switch(b){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return d1.jsx("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:d1.jsx("div",{className:"overflow-x-auto",children:d1.jsxs("table",{className:"w-full",children:[L&&d1.jsx("caption",{className:"px-4 py-2 text-sm text-neutral-600 dark:text-neutral-400 text-left bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:L}),d1.jsx("thead",{children:d1.jsx("tr",{className:"bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:_.map((b)=>d1.jsx("th",{className:F1("font-semibold text-neutral-900 dark:text-white",N?"px-3 py-2 text-xs":"px-4 py-3 text-sm",R(b.align)),style:b.width?{width:b.width}:void 0,children:b.label},b.key))})}),d1.jsxs("tbody",{children:[O.map((b,k)=>{let S=b.id||`row-${k}`,p=C.has(S);return d1.jsx("tr",{className:F1("apteva-table-row border-b border-neutral-200 dark:border-neutral-700 last:border-b-0","transition-colors hover:bg-neutral-50 dark:hover:bg-neutral-800",W&&k%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",p&&"apteva-table-row-new"),onClick:()=>{if(G.actions&&G.actions.length>0)H?.({type:G.actions[0].type,payload:b,widgetId:G.id,timestamp:new Date})},style:{cursor:G.actions?.length?"pointer":"default"},children:_.map((j)=>d1.jsx("td",{className:F1("text-neutral-700 dark:text-neutral-300",N?"px-3 py-2 text-xs":"px-4 py-3 text-sm",R(j.align)),children:b[j.key]??"—"},j.key))},S)}),O.length===0&&!U&&d1.jsx("tr",{children:d1.jsx("td",{colSpan:_.length||1,className:"px-4 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:"No data available"})}),U&&d1.jsx("tr",{className:"apteva-table-streaming",children:d1.jsx("td",{colSpan:_.length||1,className:"px-4 py-3 text-center",children:d1.jsxs("div",{className:"flex items-center justify-center gap-3 text-neutral-500 dark:text-neutral-400",children:[d1.jsxs("div",{className:"flex gap-1",children:[d1.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),d1.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),d1.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),d1.jsx("span",{className:"text-sm",children:"Loading more..."})]})})})]})]})})})}function TN({widget:G,onAction:H}){let{title:_,fields:O}=G.props,[L,N]=eL.useState(()=>{let F={};return O.forEach((R)=>{F[R.name]=R.defaultValue??(R.type==="checkbox"?!1:"")}),F}),W=(F,R)=>{N((b)=>({...b,[F]:R}))},U=(F)=>{if(F.preventDefault(),G.actions?.[0]&&H)H({type:G.actions[0].type,payload:{...G.actions[0].payload,formData:L},widgetId:G.id,timestamp:new Date})},y=(F)=>{switch(F.type){case"text":case"password":case"number":case"date":return q4.jsx("input",{type:F.type,name:F.name,value:L[F.name]||"",onChange:(b)=>W(F.name,F.type==="number"?Number(b.target.value):b.target.value),placeholder:F.placeholder,required:F.required,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"});case"textarea":return q4.jsx("textarea",{name:F.name,value:L[F.name]||"",onChange:(b)=>W(F.name,b.target.value),placeholder:F.placeholder,required:F.required,rows:3,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"});case"select":return q4.jsxs("select",{name:F.name,value:L[F.name]||"",onChange:(b)=>W(F.name,b.target.value),required:F.required,className:"w-full px-3 py-2 rounded-lg border transition-colors border-neutral-200 dark:border-neutral-600 bg-neutral-50 dark:bg-neutral-800 !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[q4.jsx("option",{value:"",children:F.placeholder||"Select..."}),F.options?.map((b)=>q4.jsx("option",{value:b.value,children:b.label},b.value))]});case"checkbox":return q4.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[q4.jsx("input",{type:"checkbox",name:F.name,checked:L[F.name]||!1,onChange:(b)=>W(F.name,b.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),q4.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:F.label})]});default:return null}},C=G.actions?.find((F)=>F.type==="submit")||G.actions?.[0];return q4.jsxs("form",{onSubmit:U,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[q4.jsxs("div",{className:"p-4",children:[_&&q4.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:_}),q4.jsx("div",{className:"space-y-3",children:O.map((F)=>q4.jsxs("div",{className:F.type==="checkbox"?"":"space-y-1",children:[F.type!=="checkbox"&&q4.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[F.label,F.required&&q4.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),y(F)]},F.name))})]}),C&&q4.jsx("div",{className:"px-4 pb-4",children:q4.jsx("button",{type:"submit",className:"px-3 py-1.5 !text-sm rounded-lg font-medium transition-colors bg-blue-500 !text-white hover:bg-blue-600",children:C.label||"Submit"})})]})}function IN({widget:G}){let{src:H,alt:_,caption:O}=G.props;return QY.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[QY.jsx("img",{src:H,alt:_,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),O&&QY.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:O})]})}function kN({type:G,status:H}){if(H==="completed")return X0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(H==="error")return X0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(H==="active")return X0.jsx("div",{className:"w-3.5 h-3.5 rounded-full bg-current animate-pulse"});let _="w-4 h-4";if(G==="time"||G==="schedule"||G==="clock")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})});if(G==="recurring"||G==="repeat")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})});if(G==="agent"||G?.startsWith("@"))return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})});if(G==="email"||G==="mail")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})});if(G==="slack"||G==="message"||G==="chat")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("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"})});if(G==="webhook"||G==="api")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})});if(G==="build"||G==="compile"||G==="package")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"})});if(G==="test"||G==="check"||G==="verify")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})});if(G==="deploy"||G==="rocket"||G==="launch")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if(G==="push"||G==="upload"||G==="cloud")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})});if(G==="generate"||G==="create"||G==="document"||G==="file")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})});if(G==="review"||G==="inspect"||G==="eye")return X0.jsxs("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]});if(G==="analyze"||G==="research"||G==="chart")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})});if(G==="scrape"||G==="crawl"||G==="spider")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("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"})});if(G==="data"||G==="database"||G==="storage")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"})});if(G==="notification"||G==="bell"||G==="alert")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})});if(G==="transform"||G==="process"||G==="convert")return X0.jsx("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return X0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function VN({icon:G}){if(G==="research"||G==="multi-agent"||G==="agents")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(G==="schedule"||G==="report"||G==="calendar")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})});if(G==="recurring"||G==="repeat"||G==="sync")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})});if(G==="analyze"||G==="analysis"||G==="chart")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})});if(G==="deploy"||G==="rocket"||G==="launch")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if(G==="automation"||G==="workflow"||G==="process")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"})})});if(G==="data"||G==="pipeline"||G==="etl")return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"})})});return X0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:X0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})})}function yN(){return X0.jsx("svg",{className:"w-4 h-4 text-neutral-400 dark:text-neutral-500 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var d6={blue:"bg-blue-100 dark:bg-blue-900/40 !text-blue-700 dark:!text-blue-300 border-blue-300 dark:border-blue-500",purple:"bg-purple-100 dark:bg-purple-900/40 !text-purple-700 dark:!text-purple-300 border-purple-300 dark:border-purple-500",cyan:"bg-cyan-100 dark:bg-cyan-900/40 !text-cyan-700 dark:!text-cyan-300 border-cyan-300 dark:border-cyan-500",amber:"bg-amber-100 dark:bg-amber-900/40 !text-amber-700 dark:!text-amber-300 border-amber-300 dark:border-amber-500",emerald:"bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-300 dark:border-emerald-500",rose:"bg-rose-100 dark:bg-rose-900/40 !text-rose-700 dark:!text-rose-300 border-rose-300 dark:border-rose-500",indigo:"bg-indigo-100 dark:bg-indigo-900/40 !text-indigo-700 dark:!text-indigo-300 border-indigo-300 dark:border-indigo-500",orange:"bg-orange-100 dark:bg-orange-900/40 !text-orange-700 dark:!text-orange-300 border-orange-300 dark:border-orange-500",neutral:"bg-neutral-100 dark:bg-neutral-800 !text-neutral-600 dark:!text-neutral-300 border-neutral-300 dark:border-neutral-600"};function CN(G,H){if(G.color&&d6[G.color])return d6[G.color];if(H==="time"||H==="schedule"||H==="clock")return d6.blue;if(H==="agent"||H?.startsWith("@"))return d6.purple;if(H==="email"||H==="slack"||H==="message"||H==="notification")return d6.cyan;if(H==="generate"||H==="document"||H==="create")return d6.amber;if(H==="deploy"||H==="rocket"||H==="launch")return d6.rose;if(H==="build"||H==="compile"||H==="package")return d6.indigo;if(H==="test"||H==="check"||H==="verify")return d6.emerald;if(H==="data"||H==="database"||H==="storage")return d6.orange;return d6.blue}function DN({widget:G}){let{title:H,subtitle:_,icon:O,steps:L}=G.props;return X0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[X0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[X0.jsx(VN,{icon:O}),X0.jsxs("div",{className:"flex-1 min-w-0",children:[X0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:H}),_&&X0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:_})]})]}),X0.jsx("div",{className:"px-4 pb-4",children:X0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:L.map((N,W)=>{let U=W===L.length-1,y=N.status==="active",C=N.status==="completed",F=N.status==="error",R=N.status==="skipped",b=N.label,k=N.type;if(!k)if(b.startsWith("@"))k="agent";else if(/^\d+[ap]m$/i.test(b)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(b))k="time";else{let j=b.toLowerCase();k={test:"test",build:"build",push:"push",deploy:"deploy",email:"email",slack:"slack",generate:"generate",review:"review",analyze:"analyze",scrape:"scrape",transform:"transform",notify:"notification",alert:"notification",webhook:"webhook",api:"api",data:"data",process:"process"}[j]}let S,p="";if(y)S="bg-blue-100 dark:bg-blue-900/40 !text-blue-700 dark:!text-blue-300 border-blue-400 dark:border-blue-400 ring-2 ring-blue-400";else if(C)S="bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-400 dark:border-emerald-400";else if(F)S="bg-red-100 dark:bg-red-900/40 !text-red-700 dark:!text-red-300 border-red-400 dark:border-red-400";else if(R)S="bg-neutral-100 dark:bg-neutral-800 !text-neutral-400 dark:!text-neutral-500 border-neutral-300 dark:border-neutral-600",p="line-through";else S=CN(N,k);return X0.jsxs("div",{className:"flex items-center gap-2",children:[X0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${S} ${p}`,children:[X0.jsx(kN,{type:k,status:N.status}),b]}),!U&&X0.jsx(yN,{})]},N.id)})})})]})}var SN={up:{symbol:"↑",color:"text-emerald-500"},down:{symbol:"↓",color:"text-red-500"},flat:{symbol:"→",color:"text-neutral-400"}};function EN({widget:G,onAction:H}){let{label:_="",value:O="",change:L,trend:N}=G.props||{},W=N?SN[N]:null;return k6.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 p-5",children:[k6.jsx("div",{className:"!text-sm font-medium !text-neutral-500 dark:!text-neutral-400 mb-1",children:_}),k6.jsxs("div",{className:"flex items-end gap-2",children:[k6.jsx("div",{className:"!text-2xl font-bold !text-neutral-900 dark:!text-white",children:O}),L&&W&&k6.jsxs("div",{className:`flex items-center gap-0.5 !text-sm font-medium ${W.color} mb-0.5`,children:[k6.jsx("span",{children:W.symbol}),k6.jsx("span",{children:L})]}),L&&!W&&k6.jsx("div",{className:"!text-sm font-medium !text-neutral-400 mb-0.5",children:L})]}),G.actions&&G.actions.length>0&&k6.jsx("div",{className:"flex gap-2 mt-3 pt-3 border-t border-neutral-200 dark:border-neutral-700",children:G.actions.map((U,y)=>k6.jsx("button",{onClick:()=>H?.({type:U.type,payload:U.payload,widgetId:G.id,timestamp:new Date}),className:"px-2 py-1 !text-xs rounded font-medium transition-colors bg-neutral-100 dark:bg-neutral-800 !text-neutral-600 dark:!text-neutral-300 hover:bg-neutral-200 dark:hover:bg-neutral-700",children:U.label},y))})]})}function fN({widget:G}){let{content:H="",variant:_="body"}=G.props||{},O={heading:"!text-xl font-bold !text-neutral-900 dark:!text-white",body:"!text-sm !text-neutral-700 dark:!text-neutral-300 leading-relaxed",caption:"!text-xs !text-neutral-500 dark:!text-neutral-400"},L=(W)=>{let U=W.split(`
|
|
235
|
+
`),y=[],C=0;while(C<U.length){let F=U[C];if(F.startsWith("### "))y.push(n4.jsx("h3",{className:"!text-base font-semibold !text-neutral-900 dark:!text-white mt-3 mb-1",children:N(F.slice(4))},C));else if(F.startsWith("## "))y.push(n4.jsx("h2",{className:"!text-lg font-bold !text-neutral-900 dark:!text-white mt-4 mb-1",children:N(F.slice(3))},C));else if(/^[-*+]\s/.test(F)){let R=[];while(C<U.length&&/^[-*+]\s/.test(U[C]))R.push(n4.jsx("li",{className:"ml-4 list-disc",children:N(U[C].slice(2))},C)),C++;y.push(n4.jsx("ul",{className:"my-1 space-y-0.5",children:R},`list-${C}`));continue}else if(F.trim()==="")y.push(n4.jsx("div",{className:"h-2"},C));else y.push(n4.jsx("p",{className:"my-0.5",children:N(F)},C));C++}return y},N=(W)=>{let U=[],y=W,C=0;while(y.length>0){let F=y.match(/\*\*(.+?)\*\*/),R=y.match(/`(.+?)`/),b=y.match(/\[(.+?)\]\((.+?)\)/),k=[F?{type:"bold",index:F.index,match:F}:null,R?{type:"code",index:R.index,match:R}:null,b?{type:"link",index:b.index,match:b}:null].filter(Boolean).sort((p,j)=>p.index-j.index);if(k.length===0){U.push(y);break}let S=k[0];if(S.index>0)U.push(y.slice(0,S.index));if(S.type==="bold")U.push(n4.jsx("strong",{className:"font-semibold",children:S.match[1]},C++)),y=y.slice(S.index+S.match[0].length);else if(S.type==="code")U.push(n4.jsx("code",{className:"px-1 py-0.5 bg-neutral-100 dark:bg-neutral-800 rounded text-xs font-mono",children:S.match[1]},C++)),y=y.slice(S.index+S.match[0].length);else if(S.type==="link")U.push(n4.jsx("a",{href:S.match[2],className:"text-blue-500 hover:underline",target:"_blank",rel:"noopener noreferrer",children:S.match[1]},C++)),y=y.slice(S.index+S.match[0].length)}return U.length===1?U[0]:n4.jsx(n4.Fragment,{children:U})};return n4.jsx("div",{className:O[_]||O.body,children:L(H)})}var yJ={sm:"h-2",md:"h-4",lg:"h-8"};function mN({widget:G}){let{height:H="md",variant:_="space"}=G.props||{};if(_==="line")return CJ.jsx("div",{className:yJ[H]||yJ.md+" flex items-center",children:CJ.jsx("hr",{className:"w-full border-neutral-200 dark:border-neutral-700"})});return CJ.jsx("div",{className:yJ[H]||yJ.md})}function xH({widget:G,onAction:H}){return P4.jsx("div",{className:"apteva-widget",children:(()=>{switch(G.type){case"card":return P4.jsx(MN,{widget:G,onAction:H});case"list":return P4.jsx(wN,{widget:G,onAction:H});case"button":return P4.jsx(PN,{widget:G,onAction:H});case"button_group":return P4.jsx(AN,{widget:G,onAction:H});case"table":return P4.jsx(vN,{widget:G,onAction:H});case"form":return P4.jsx(TN,{widget:G,onAction:H});case"image":return P4.jsx(IN,{widget:G});case"flow":return P4.jsx(DN,{widget:G});case"kpi":return P4.jsx(EN,{widget:G,onAction:H});case"text_block":return P4.jsx(fN,{widget:G});case"spacer":return P4.jsx(mN,{widget:G});default:return P4.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[P4.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",G.type]}),P4.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify(G,null,2)})]})}})()})}function fH({widgets:G,onAction:H,onWidgetMount:_,layout:O="stack",spacing:L="normal",columns:N=3,className:W}){tL.useEffect(()=>{G.forEach((C)=>{_?.(C.id)})},[G,_]);let U={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${N}`,masonry:"columns-1 md:columns-2 lg:columns-3"},y={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return gH.jsx("div",{className:F1(U[O],y[L],W),children:G.map((C)=>gH.jsx(xH,{widget:C,onAction:H},C.id))})}function dL({type:G,className:H}){switch(G){case"card":return R0.jsx("div",{className:F1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",H),children:R0.jsxs("div",{className:"p-4 space-y-3",children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"}),R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"}),R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-5/6"})]})});case"list":return R0.jsx("div",{className:F1("apteva-widget-skeleton animate-pulse space-y-2",H),children:[1,2,3].map((_)=>R0.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-neutral-200 dark:border-neutral-800",children:[R0.jsx("div",{className:"w-10 h-10 bg-neutral-200 dark:bg-neutral-700 rounded-full flex-shrink-0"}),R0.jsxs("div",{className:"flex-1 space-y-2",children:[R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2"}),R0.jsx("div",{className:"h-2 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"})]})]},_))});case"button_group":return R0.jsxs("div",{className:F1("apteva-widget-skeleton animate-pulse flex gap-2",H),children:[R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"})]});case"form":return R0.jsxs("div",{className:F1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",H),children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/3"}),R0.jsxs("div",{className:"space-y-3",children:[R0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"}),R0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"})]}),R0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})]});case"chart":return R0.jsxs("div",{className:F1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",H),children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/4 mb-4"}),R0.jsxs("div",{className:"flex items-end gap-2 h-32",children:[R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/2"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-3/4"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/3"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-full"}),R0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-2/3"})]})]});case"image":return R0.jsx("div",{className:F1("apteva-widget-skeleton animate-pulse",H),children:R0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return R0.jsx("div",{className:F1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",H),children:[1,2,3].map((_)=>R0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},_))});case"map":return R0.jsx("div",{className:F1("apteva-widget-skeleton animate-pulse",H),children:R0.jsx("div",{className:"h-48 bg-neutral-200 dark:bg-neutral-700 rounded-lg flex items-center justify-center",children:R0.jsxs("svg",{className:"w-8 h-8 text-neutral-400 dark:text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[R0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),R0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})})});case"table":return R0.jsxs("div",{className:F1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",H),children:[R0.jsxs("div",{className:"flex bg-neutral-100 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:[R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-16"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-20"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-14"})})]}),[1,2,3].map((_)=>R0.jsxs("div",{className:"flex border-b border-neutral-200 dark:border-neutral-800 last:border-b-0",children:[R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-16"})}),R0.jsx("div",{className:"flex-1 px-4 py-3",children:R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-20"})})]},_))]});default:return R0.jsxs("div",{className:F1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",H),children:[R0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2 mb-2"}),R0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"})]})}}function hN(G){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(G)}function nz(G,H=""){let _=[],O=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,L=0,N,W=0;while((N=O.exec(G))!==null){if(N.index>L)_.push(G.slice(L,N.index));if(N[1]!==void 0||N[2]!==void 0){let U=N[1]||"",y=N[2];_.push(h1.jsx("img",{src:y,alt:U,className:"apteva-md-img"},`${H}img${W++}`))}else if(N[3]!==void 0||N[4]!==void 0){let U=N[3],y=N[4];if(hN(y))_.push(h1.jsx("img",{src:y,alt:U,className:"apteva-md-img"},`${H}img${W++}`));else _.push(h1.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:U},`${H}a${W++}`))}else if(N[5]!==void 0)_.push(h1.jsx("strong",{children:N[6]},`${H}b${W++}`));else if(N[7]!==void 0)_.push(h1.jsx("code",{className:"apteva-md-inline-code",children:N[7]},`${H}code${W++}`));L=N.index+N[0].length}if(L<G.length)_.push(G.slice(L));return _.length>0?_:[G]}function pN(G){let H=G.split(`
|
|
236
|
+
`),_=[],O=0,L=0;while(L<H.length){let N=H[L],W=N.match(/^##\s+(.*)$/);if(W){_.push(h1.jsx("h2",{className:"apteva-md-h2",children:nz(W[1],`${O}`)},`h2${O++}`)),L++;continue}let U=N.match(/^###\s+(.*)$/);if(U){_.push(h1.jsx("h3",{className:"apteva-md-h3",children:nz(U[1],`${O}`)},`h3${O++}`)),L++;continue}let y=N.match(/^(\s*)([-*+])\s+(.*)$/);if(y){let R=[],b=y[1].length;while(L<H.length){let k=H[L].match(/^(\s*)([-*+])\s+(.*)$/);if(k&&k[1].length===b)R.push(h1.jsx("li",{className:"apteva-md-li",children:nz(k[3],`${O}`)},`li${O++}`)),L++;else break}_.push(h1.jsx("ul",{className:"apteva-md-ul",children:R},`ul${O++}`));continue}let C=N.match(/^(\s*)(\d+)\.\s+(.*)$/);if(C){let R=[],b=C[1].length;while(L<H.length){let k=H[L].match(/^(\s*)(\d+)\.\s+(.*)$/);if(k&&k[1].length===b)R.push(h1.jsx("li",{className:"apteva-md-li",children:nz(k[3],`${O}`)},`li${O++}`)),L++;else break}_.push(h1.jsx("ol",{className:"apteva-md-ol",children:R},`ol${O++}`));continue}if(N.match(/^\|(.+)\|$/)&&L+1<H.length){if(H[L+1].match(/^\|([\s:-]+\|)+$/)){let k=N.split("|").filter((p)=>p.trim()!=="").map((p)=>p.trim());L+=2;let S=[];while(L<H.length)if(H[L].match(/^\|(.+)\|$/)){let j=H[L].split("|").filter((d)=>d.trim()!=="").map((d)=>d.trim());S.push(j),L++}else break;_.push(h1.jsx("div",{className:"apteva-md-table-wrapper",children:h1.jsxs("table",{className:"apteva-md-table",children:[h1.jsx("thead",{children:h1.jsx("tr",{children:k.map((p,j)=>h1.jsx("th",{className:"apteva-md-th",children:nz(p,`th${O}${j}`)},`th${j}`))})}),h1.jsx("tbody",{children:S.map((p,j)=>h1.jsx("tr",{children:p.map((d,e)=>h1.jsx("td",{className:"apteva-md-td",children:nz(d,`td${O}${j}${e}`)},`td${e}`))},`tr${j}`))})]})},`table-wrapper${O++}`));continue}}if(N==="")_.push(h1.jsx("br",{},`br${O++}`));else _.push(h1.jsxs("span",{children:[nz(N,`${O}`),L<H.length-1?`
|
|
237
|
+
`:""]},`p${O++}`));L++}return _}function X8({content:G,className:H=""}){return h1.jsx("div",{className:`apteva-md ${H}`,children:pN(G)})}function jN({name:G,status:H,isReceiving:_=!1,inputLength:O=0,streamOutput:L}){if(H==="preparing")return X1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-preparing",children:[X1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[X1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),X1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),X1.jsxs("span",{className:"apteva-tool-label",children:[X1.jsx("strong",{children:G}),X1.jsx("span",{className:"apteva-tool-status-text",children:" preparing..."})]})]});if(H==="running")return X1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-running",children:[X1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[X1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),X1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),X1.jsxs("span",{className:"apteva-tool-label",children:[X1.jsx("strong",{children:G}),L?X1.jsx("span",{className:"apteva-tool-stream-separator",children:" · "}):null,L?X1.jsx("span",{className:"apteva-tool-stream-output",children:L}):X1.jsxs(X1.Fragment,{children:[X1.jsx("span",{className:"apteva-tool-status-text",children:" running"}),X1.jsxs("span",{className:"apteva-tool-dots",children:[X1.jsx("span",{children:"."}),X1.jsx("span",{children:"."}),X1.jsx("span",{children:"."})]})]})]})]});if(H==="completed")return X1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-completed",children:[X1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),X1.jsx("span",{className:"apteva-tool-label",children:G})]});return X1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-error",children:[X1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:X1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),X1.jsxs("span",{className:"apteva-tool-label",children:[G," failed"]})]})}function xN({message:G,onAction:H,enableWidgets:_,onWidgetRender:O}){let L=G.role==="user",N=G.metadata?.content_segments,W=G.metadata?.isStreaming===!0,U=G.content||N&&N.length>0,y=tz.useRef(new Set),C=tz.useMemo(()=>{if(!_||L||!G.content)return[];return VJ(G.content).segments.filter((a)=>a.type==="widget"&&!!a.widget).map((a)=>a.widget)},[_,L,G.content]);tz.useEffect(()=>{if(O&&G.widgets){for(let s of G.widgets)if(!y.current.has(s.id))y.current.add(s.id),O(s)}},[G.widgets,O]),tz.useEffect(()=>{if(O&&C.length>0){for(let s of C)if(!y.current.has(s.id))y.current.add(s.id),O(s)}},[C,O]);let F=(s)=>{if(!_||L)return Q0.jsx(X8,{content:s});let _0=VJ(s).segments.filter((l)=>l.type==="text"&&l.content).map((l)=>l.content).join("");if(!_0.trim())return null;return Q0.jsx(X8,{content:_0})},R=()=>{if(!_||L||!G.content)return null;let s=VJ(G.content),a=[],_0="";if(s.segments.forEach((l,L0)=>{if(l.type==="text"&&l.content)_0+=l.content;else if(l.type==="widget"&&l.widget){if(_0.trim())a.push(Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:_0})})},`text-${L0}`)),_0="";a.push(Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(xH,{widget:l.widget,onAction:H})},`widget-${L0}`))}else if(l.type==="widget_pending"&&l.pendingType){if(_0.trim())a.push(Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:_0})})},`text-${L0}`)),_0="";a.push(Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(dL,{type:l.pendingType})},`pending-${L0}`))}}),_0.trim())a.push(Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:_0})})},"text-final"));return a.length>0?a:null},b=G.metadata?.attachments||[],k=b.length>0,S=()=>{if(!k)return null;return Q0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:b.map((s,a)=>{let _0=s.type.startsWith("image/"),l=s.type==="application/pdf";if(_0&&s.preview)return Q0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:Q0.jsx("img",{src:s.preview,alt:s.name,className:"max-w-[150px] max-h-[150px] object-cover"})},a);return Q0.jsxs("div",{className:"apteva-attachment-doc flex items-center gap-3 px-4 py-3 bg-neutral-100 dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-xl shadow-sm",children:[Q0.jsx("div",{className:"w-10 h-10 flex items-center justify-center bg-red-100 dark:bg-red-900/30 rounded-lg text-red-600 dark:text-red-400",children:l?Q0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}):Q0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),Q0.jsxs("div",{className:"flex flex-col min-w-0",children:[Q0.jsx("span",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate max-w-[180px]",children:s.name}),Q0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[l?"PDF":"Document"," · ",DJ(s.size)]})]})]},a)})})},p=()=>{if(L)return Q0.jsx("div",{className:"apteva-message-text",children:G.content});if(W&&!U)return Q0.jsxs("div",{className:"apteva-typing-indicator",children:[Q0.jsx("span",{}),Q0.jsx("span",{}),Q0.jsx("span",{})]});if(N&&N.length>0)return null;return F(G.content)},j=(s,a)=>{if(!_)return Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:s})})},a);let _0=VJ(s),l=[],L0="";if(_0.segments.forEach((g,I0)=>{if(g.type==="text"&&g.content)L0+=g.content;else if(g.type==="widget"&&g.widget){if(L0.trim())l.push(Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:L0})})},`${a}-text-${I0}`)),L0="";l.push(Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(xH,{widget:g.widget,onAction:H})},`${a}-widget-${I0}`))}else if(g.type==="widget_pending"&&g.pendingType){if(L0.trim())l.push(Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:L0})})},`${a}-text-${I0}`)),L0="";l.push(Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(dL,{type:g.pendingType})},`${a}-pending-${I0}`))}}),L0.trim())l.push(Q0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:Q0.jsx("div",{className:"apteva-message-content-assistant",children:Q0.jsx(X8,{content:L0})})},`${a}-text-final`));return l},d=()=>{if(!N||N.length===0)return null;let s=[];return N.forEach((a,_0)=>{if(a.type==="text"&&a.content){let l=j(a.content,`seg-${_0}`);if(Array.isArray(l))s.push(...l);else s.push(l)}else if(a.type==="tool")s.push(Q0.jsx("div",{className:"apteva-tool-call-standalone",children:Q0.jsx(jN,{name:a.name,status:a.status||(a.result!==void 0?"completed":"running"),isReceiving:a.isReceiving,inputLength:a.inputLength,streamOutput:a.streamOutput})},a.id))}),s};if(!L&&(N&&N.length>0))return Q0.jsxs("div",{className:"apteva-message-segmented",children:[d(),G.widgets&&G.widgets.length>0&&Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(fH,{widgets:G.widgets,onAction:H,layout:"stack"})}),Q0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let e=R();if(!L&&_&&e)return Q0.jsxs("div",{className:"apteva-message-segmented",children:[e,G.widgets&&G.widgets.length>0&&Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(fH,{widgets:G.widgets,onAction:H,layout:"stack"})}),Q0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if(L&&k)return Q0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[S(),G.content&&Q0.jsx("div",{className:"apteva-message-bubble apteva-message-user",children:Q0.jsx("div",{className:"apteva-message-content-user",children:Q0.jsx("div",{className:"apteva-message-text",children:G.content})})}),Q0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return Q0.jsxs("div",{className:F1("apteva-message-bubble",L?"apteva-message-user":"apteva-message-assistant"),children:[Q0.jsx("div",{className:L?"apteva-message-content-user":"apteva-message-content-assistant",children:p()}),G.widgets&&G.widgets.length>0&&Q0.jsx("div",{className:"apteva-widget-standalone",children:Q0.jsx(fH,{widgets:G.widgets,onAction:H,layout:"stack"})}),Q0.jsx("div",{className:F1("apteva-message-timestamp",L?"apteva-message-timestamp-user":"apteva-message-timestamp-assistant"),suppressHydrationWarning:!0,children:G.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})}var aL=()=>y0.jsx("svg",{className:"w-12 h-12 sm:w-16 sm:h-16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,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"})}),mH=()=>y0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})});function gN({title:G,subtitle:H,icon:_,prompts:O,variant:L="centered",chatVariant:N="default",onPromptClick:W}){let U=(O||[]).map((F)=>typeof F==="string"?{text:F}:F),y=U.length>0,C=G||H||_;if(!C&&!y)return y0.jsx("div",{className:"flex items-center justify-center h-full !text-neutral-500 dark:!text-neutral-400",children:y0.jsxs("div",{className:"text-center space-y-2",children:[y0.jsx("div",{className:"flex justify-center",children:y0.jsx(aL,{})}),y0.jsx("p",{className:"text-sm",children:"No messages yet. Start a conversation!"})]})});if(L==="minimal")return y0.jsxs("div",{className:"flex flex-col h-full px-4 py-4",children:[C&&y0.jsxs("div",{className:"mb-4",children:[G&&y0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:G}),H&&y0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:H})]}),y&&y0.jsx("div",{className:"flex-1 space-y-2",children:U.map((F,R)=>y0.jsx("button",{onClick:()=>W(F.text),className:F1("w-full text-left px-4 py-3 rounded-xl","bg-neutral-50 dark:bg-neutral-800/50","border border-neutral-200 dark:border-neutral-700","hover:bg-neutral-100 dark:hover:bg-neutral-800","hover:border-neutral-300 dark:hover:border-neutral-600","transition-all duration-200","group"),children:y0.jsxs("div",{className:"flex items-center gap-3",children:[y0.jsx("div",{className:"flex-shrink-0 !text-neutral-400 dark:!text-neutral-500 group-hover:!text-blue-500 dark:group-hover:!text-blue-400 transition-colors",children:F.icon||y0.jsx(mH,{})}),y0.jsxs("div",{className:"flex-1 min-w-0",children:[y0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white truncate",children:F.text}),F.description&&y0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:F.description})]})]})},R))})]});return y0.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 py-6 sm:py-8",children:[y0.jsxs("div",{className:"text-center mb-6 sm:mb-8 max-w-md",children:[y0.jsx("div",{className:"mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center",children:_||y0.jsx(aL,{})}),G&&y0.jsx("h1",{className:"text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2",children:G}),H&&y0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:H})]}),y&&y0.jsxs("div",{className:"w-full max-w-2xl",children:[y0.jsx("div",{className:"sm:hidden space-y-2",children:U.map((F,R)=>y0.jsx("button",{onClick:()=>W(F.text),className:F1("w-full text-left px-4 py-3 rounded-xl","bg-white dark:bg-neutral-800","border border-neutral-200 dark:border-neutral-700","hover:bg-neutral-50 dark:hover:bg-neutral-700","hover:border-blue-300 dark:hover:border-blue-600","active:scale-[0.98]","transition-all duration-200","shadow-sm hover:shadow","group"),children:y0.jsxs("div",{className:"flex items-center gap-3",children:[y0.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center !text-neutral-500 dark:!text-neutral-400 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 group-hover:!text-blue-600 dark:group-hover:!text-blue-400 transition-colors",children:F.icon||y0.jsx(mH,{})}),y0.jsxs("div",{className:"flex-1 min-w-0",children:[y0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white",children:F.text}),F.description&&y0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:F.description})]}),y0.jsx("svg",{className:"w-4 h-4 !text-neutral-400 group-hover:!text-blue-500 transition-colors flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},R))}),y0.jsx("div",{className:"hidden sm:grid sm:grid-cols-2 gap-3",children:U.map((F,R)=>y0.jsx("button",{onClick:()=>W(F.text),className:F1("text-left p-4 rounded-xl","bg-white dark:bg-neutral-800","border border-neutral-200 dark:border-neutral-700","hover:bg-neutral-50 dark:hover:bg-neutral-700","hover:border-blue-300 dark:hover:border-blue-600","hover:shadow-md","active:scale-[0.98]","transition-all duration-200","group"),children:y0.jsxs("div",{className:"flex items-start gap-3",children:[y0.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center !text-neutral-500 dark:!text-neutral-400 group-hover:bg-blue-100 dark:group-hover:bg-blue-900/30 group-hover:!text-blue-600 dark:group-hover:!text-blue-400 transition-colors",children:F.icon||y0.jsx(mH,{})}),y0.jsxs("div",{className:"flex-1 min-w-0",children:[y0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white leading-snug",children:F.text}),F.description&&y0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:F.description})]})]})},R))})]})]})}function uN({messages:G,onAction:H,welcomeTitle:_,welcomeSubtitle:O,welcomeIcon:L,suggestedPrompts:N,welcomeVariant:W,chatVariant:U,onPromptClick:y,enableWidgets:C,onWidgetRender:F}){let R=qX.useRef(null),b=qX.useRef(!0),k=qX.useRef(0),S=()=>{if(R.current){let{scrollTop:p,scrollHeight:j,clientHeight:d}=R.current;b.current=j-p-d<100}};return qX.useEffect(()=>{if(R.current&&b.current){let p=R.current.scrollHeight;if(p!==k.current)R.current.scrollTop=p,k.current=p}},[G]),JY.jsx("div",{ref:R,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:S,children:G.length===0?JY.jsx(gN,{title:_,subtitle:O,icon:L,prompts:N,variant:W,chatVariant:U,onPromptClick:y||(()=>{})}):G.map((p)=>JY.jsx("div",{className:p.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:JY.jsx(xN,{message:p,onAction:H,enableWidgets:C,onWidgetRender:F})},p.id))})}function lN({onSendMessage:G,placeholder:H="Type a message...",disabled:_=!1,isLoading:O=!1,onStop:L,onFileUpload:N,onSwitchMode:W}){let[U,y]=T7.useState(""),[C,F]=T7.useState(!1),[R,b]=T7.useState([]),[k,S]=T7.useState(null),[p,j]=T7.useState(!1),d=T7.useRef(null),e=T7.useRef(null),s=T7.useRef(null),a=(E)=>{if(E.key==="Enter"&&!E.shiftKey)E.preventDefault(),_0()},_0=()=>{let E=U.trim(),c=R.length>0;if((E||c)&&!_){let u=R.map((J0)=>J0.file);if(G(U.trim(),u.length>0?u:void 0),y(""),b([]),S(null),j(!1),d.current)d.current.style.height="auto"}},l=(E)=>{y(E.target.value),E.target.style.height="auto";let c=E.target.scrollHeight;E.target.style.height=`${c}px`;let u=E.target.value.includes(`
|
|
238
|
+
`),M0=c>36;if(!p&&(u||M0))j(!0);else if(p&&!u&&!M0&&E.target.value.length<20)j(!1)},L0=(E)=>{if(E.target.files&&E.target.files.length>0){let c=Array.from(E.target.files),u=[],J0=[];if(c.forEach((M0)=>{let t=iL(M0);if(t.valid){let G0={file:M0};if(M0.type.startsWith("image/"))G0.preview=URL.createObjectURL(M0);u.push(G0)}else J0.push(t.error||"Invalid file")}),u.length>0)b((M0)=>[...M0,...u]);if(J0.length>0)S(J0.join(", ")),setTimeout(()=>S(null),5000);N?.(E.target.files),F(!1),E.target.value=""}},g=(E)=>{b((c)=>{let u=c[E];if(u.preview)URL.revokeObjectURL(u.preview);return c.filter((J0,M0)=>M0!==E)})},I0=(E)=>{if(E.startsWith("image/"))return v0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})});if(E==="application/pdf")return v0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})});return v0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})};return v0.jsxs("div",{className:"px-4 py-3 relative",children:[k&&v0.jsx("div",{className:"apteva-file-error",children:v0.jsxs("div",{className:"apteva-file-error-content",children:[v0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v0.jsx("span",{children:k})]})}),R.length>0&&v0.jsx("div",{className:"apteva-file-preview",children:R.map((E,c)=>v0.jsxs("div",{className:"apteva-file-item",children:[E.preview?v0.jsx("img",{src:E.preview,alt:E.file.name,className:"apteva-file-thumb"}):v0.jsx("div",{className:"apteva-file-icon",children:I0(E.file.type)}),v0.jsxs("div",{className:"apteva-file-info",children:[v0.jsx("span",{className:"apteva-file-name",children:E.file.name}),v0.jsx("span",{className:"apteva-file-size",children:DJ(E.file.size)})]}),v0.jsx("button",{onClick:()=>g(c),className:"apteva-file-remove",title:"Remove file",children:v0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},c))}),v0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:p?'"textarea textarea textarea" "plus . send"':'"plus textarea send"',alignItems:"end"},children:[v0.jsxs("div",{className:"relative flex-shrink-0 self-end",style:{gridArea:"plus"},children:[v0.jsx("button",{ref:s,onClick:()=>F(!C),className:"apteva-composer-menu-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800",title:"More options",children:v0.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),C&&v0.jsxs(v0.Fragment,{children:[v0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>F(!1)}),v0.jsxs("div",{className:"apteva-composer-menu fixed bg-neutral-800 dark:bg-neutral-800 rounded-xl shadow-lg overflow-hidden z-[9999] min-w-[200px]",style:{left:s.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(s.current?.getBoundingClientRect().top??0)+8},children:[v0.jsxs("button",{onClick:()=>{e.current?.click(),F(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left",children:[v0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v0.jsx("path",{d:"M10.5 3.5L5.5 8.5C4.67157 9.32843 4.67157 10.6716 5.5 11.5C6.32843 12.3284 7.67157 12.3284 8.5 11.5L14.5 5.5C15.8807 4.11929 15.8807 1.88071 14.5 0.5C13.1193 -0.880711 10.8807 -0.880711 9.5 0.5L3.5 6.5C1.56846 8.43154 1.56846 11.5685 3.5 13.5C5.43154 15.4315 8.56846 15.4315 10.5 13.5L15.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(2, 3)"})}),v0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),W&&v0.jsxs("button",{onClick:()=>{W(),F(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left border-t border-neutral-700 dark:border-neutral-700",children:[v0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),v0.jsx("span",{className:"!text-sm font-medium",children:"Switch to command mode"})]})]})]})]}),v0.jsx("textarea",{ref:d,value:U,onChange:l,onKeyDown:a,placeholder:H,disabled:_,className:"apteva-composer-textarea resize-none bg-transparent border-none focus:outline-none !text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500 py-1 disabled:opacity-50 disabled:cursor-not-allowed overflow-y-auto max-h-[200px]",style:{gridArea:"textarea"},rows:1}),v0.jsx("div",{className:"self-end",style:{gridArea:"send"},children:O&&L?v0.jsx("button",{onClick:L,className:"apteva-composer-stop-btn",title:"Stop generation",children:v0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}):v0.jsx("button",{onClick:_0,disabled:!U.trim()&&R.length===0||_,className:"apteva-composer-send-btn w-8 h-8 rounded-lg flex items-center justify-center font-bold transition-all flex-shrink-0 border border-neutral-300 dark:border-neutral-600 bg-white dark:bg-neutral-800 !text-neutral-700 dark:!text-neutral-300 hover:bg-neutral-50 dark:hover:bg-neutral-700 disabled:opacity-30 disabled:cursor-not-allowed !text-lg",title:"Send message",children:v0.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v0.jsx("path",{d:"M8 3L8 13M8 3L4 7M8 3L12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),v0.jsx("input",{ref:e,type:"file",multiple:!0,onChange:L0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function cN({onExecute:G,state:H,response:_,error:O,plan:L,streamedContent:N,toolName:W,onApprove:U,onReject:y,onReset:C,onStop:F,onExpand:R,placeholder:b="Enter your command...",disabled:k=!1}){let[S,p]=Y8.useState(""),[j,d]=Y8.useState([]),[e,s]=Y8.useState(null),[a,_0]=Y8.useState(!1),l=Y8.useRef(null),L0=Y8.useRef(null),g=Y8.useRef(null),I0=()=>{let D=S.trim(),z0=j.length>0;if((D||z0)&&!k&&H==="idle"){let P0=j.map((D0)=>D0.file);G(S.trim(),P0.length>0?P0:void 0),p(""),d([])}},E=(D)=>{if(D.key==="Enter"&&!D.shiftKey)D.preventDefault(),I0()},c=()=>{C?.(),l.current?.focus()},u=(D)=>{if(p(D),l.current)l.current.style.height="auto",l.current.style.height=`${Math.min(l.current.scrollHeight,120)}px`},J0=(D)=>{if(D.target.files&&D.target.files.length>0){let z0=Array.from(D.target.files),P0=[],D0=[];if(z0.forEach((r0)=>{let v4=iL(r0);if(v4.valid){let t0={file:r0};if(r0.type.startsWith("image/"))t0.preview=URL.createObjectURL(r0);P0.push(t0)}else D0.push(v4.error||"Invalid file")}),P0.length>0)d((r0)=>[...r0,...P0]);if(D0.length>0)s(D0.join(", ")),setTimeout(()=>s(null),5000);_0(!1),D.target.value=""}},M0=(D)=>{d((z0)=>{let P0=z0[D];if(P0.preview)URL.revokeObjectURL(P0.preview);return z0.filter((D0,r0)=>r0!==D)})},t=(D)=>{if(D.startsWith("image/"))return K0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})});if(D==="application/pdf")return K0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})});return K0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})},G0=()=>{if(H==="loading"){if(W)return{text:W,isToolCall:!0};if(N)return{text:N,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(H==="success"&&_)return{text:_,isToolCall:!1};if(H==="error"&&O)return{text:O,isToolCall:!1};if(H==="plan-pending"&&L)return{text:L,isToolCall:!1};return{text:"",isToolCall:!1}},H0=H!=="idle",{text:V,isToolCall:i}=G0();return K0.jsxs("div",{className:"w-full relative",children:[e&&K0.jsx("div",{className:"apteva-file-error",style:{top:"-3rem",bottom:"auto"},children:K0.jsxs("div",{className:"apteva-file-error-content",children:[K0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),K0.jsx("span",{children:e})]})}),K0.jsxs("div",{className:F1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",H==="idle"&&"border-neutral-200 dark:border-neutral-700",H==="loading"&&"border-blue-400 dark:border-blue-500",H==="plan-pending"&&"border-amber-400 dark:border-amber-500",H==="success"&&"border-green-400 dark:border-green-500",H==="error"&&"border-red-400 dark:border-red-500"),children:[K0.jsxs("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:[H==="idle"&&K0.jsxs("div",{className:"relative",children:[K0.jsx("button",{ref:g,onClick:()=>_0(!a),className:"apteva-composer-menu-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all !text-neutral-500 dark:!text-neutral-400 hover:!text-neutral-700 dark:hover:!text-neutral-200 hover:bg-neutral-100 dark:hover:bg-neutral-800",title:"More options",children:K0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:K0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a&&K0.jsxs(K0.Fragment,{children:[K0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>_0(!1)}),K0.jsxs("div",{className:"apteva-composer-menu fixed bg-neutral-800 dark:bg-neutral-800 rounded-xl shadow-lg overflow-hidden z-[9999] min-w-[200px]",style:{left:g.current?.getBoundingClientRect().left??0,top:(g.current?.getBoundingClientRect().bottom??0)+8},children:[K0.jsxs("button",{onClick:()=>{L0.current?.click(),_0(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left",children:[K0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:K0.jsx("path",{d:"M10.5 3.5L5.5 8.5C4.67157 9.32843 4.67157 10.6716 5.5 11.5C6.32843 12.3284 7.67157 12.3284 8.5 11.5L14.5 5.5C15.8807 4.11929 15.8807 1.88071 14.5 0.5C13.1193 -0.880711 10.8807 -0.880711 9.5 0.5L3.5 6.5C1.56846 8.43154 1.56846 11.5685 3.5 13.5C5.43154 15.4315 8.56846 15.4315 10.5 13.5L15.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(2, 3)"})}),K0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),R&&K0.jsxs("button",{onClick:()=>{R(),_0(!1)},className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-neutral-700 dark:hover:bg-neutral-700 transition-colors !text-white text-left border-t border-neutral-700 dark:border-neutral-700",children:[K0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("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"})}),K0.jsx("span",{className:"!text-sm font-medium",children:"Expand to chat"})]})]})]})]}),H==="loading"&&!W&&K0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),H==="loading"&&W&&K0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),j.length>0&&H==="idle"&&K0.jsx("div",{className:"apteva-file-badges",children:j.map((D,z0)=>K0.jsxs("div",{className:"apteva-file-badge",title:D.file.name,children:[D.preview?K0.jsx("img",{src:D.preview,alt:D.file.name,className:"apteva-file-badge-img"}):K0.jsx("span",{className:"apteva-file-badge-icon",children:t(D.file.type)}),K0.jsx("button",{onClick:()=>M0(z0),className:"apteva-file-badge-remove",title:"Remove",children:K0.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},z0))}),H==="idle"?K0.jsx("textarea",{ref:l,value:S,onChange:(D)=>u(D.target.value),onKeyDown:E,placeholder:j.length>0?"Add a message...":b,disabled:k,rows:1,className:F1("flex-1 resize-none bg-transparent border-none focus:outline-none","!text-neutral-900 dark:!text-neutral-100 placeholder-neutral-400 dark:placeholder-neutral-500","text-sm leading-relaxed py-1","disabled:opacity-50"),style:{minHeight:"24px",maxHeight:"120px"}}):K0.jsx("div",{className:F1("flex-1 text-sm py-1 truncate flex items-center gap-2",H==="loading"&&!i&&"!text-neutral-600 dark:!text-neutral-400",H==="loading"&&i&&"!text-blue-600 dark:!text-blue-400",H==="success"&&"!text-neutral-900 dark:!text-neutral-100",H==="error"&&"!text-red-600 dark:!text-red-400",H==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:i?K0.jsxs(K0.Fragment,{children:[K0.jsx("span",{className:"font-mono",children:V}),K0.jsx("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Running..."})]}):V}),K0.jsx("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:H==="plan-pending"?K0.jsxs("div",{className:"flex items-center gap-1",children:[K0.jsx("button",{onClick:U,className:"px-2 py-1 bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors text-xs font-medium",children:"Approve"}),K0.jsx("button",{onClick:y,className:"px-2 py-1 bg-neutral-200 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300 rounded-lg hover:bg-neutral-300 dark:hover:bg-neutral-600 transition-colors text-xs font-medium",children:"Modify"})]}):K0.jsxs(K0.Fragment,{children:[H==="loading"&&F&&K0.jsx("button",{onClick:F,className:"apteva-composer-stop-btn",title:"Stop generation",children:K0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:K0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}),(H==="success"||H==="error")&&K0.jsx("button",{onClick:c,className:"w-8 h-8 rounded-lg flex items-center justify-center !text-neutral-400 hover:!text-neutral-600 dark:hover:!text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors",title:"New command",children:K0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),H==="idle"&&K0.jsx("button",{onClick:I0,disabled:!S.trim()&&j.length===0||k,className:F1("apteva-composer-send-btn w-8 h-8 rounded-lg flex items-center justify-center transition-all","border border-neutral-200 dark:border-neutral-700","disabled:opacity-30 disabled:cursor-not-allowed",S.trim()||j.length>0?"bg-neutral-900 dark:bg-white !text-white dark:!text-neutral-900 border-neutral-900 dark:border-white":"bg-white dark:bg-neutral-800 !text-neutral-400"),title:"Execute command",children:K0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:K0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M12 5l7 7-7 7"})})})]})})]}),K0.jsx("input",{ref:L0,type:"file",multiple:!0,onChange:J0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var dN=class{constructor(G){JN(this,"config"),this.config={apiUrl:G?.apiUrl??"",apiKey:G?.apiKey??""}}configure(G){if(G.apiUrl!==void 0)this.config.apiUrl=G.apiUrl;if(G.apiKey!==void 0)this.config.apiKey=G.apiKey}getConfig(){return{...this.config}}async chat(G){try{console.log("[AptevaClient] Chat request:",{agent_id:G.agent_id,message:typeof G.message==="string"?G.message.substring(0,100)+"...":"[multi-part message]",system:G.system,stream:G.stream});let H=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify(G)});if(!H.ok){let O=await H.json().catch(()=>({error:"Request failed"}));throw Error(O.error||`Request failed with status ${H.status}`)}let _=await H.json();return{message:_.response||_.message||"",thread_id:_.thread_id,widgets:_.widgets}}catch(H){throw console.error("Chat API error:",H),H}}async chatStream(G,H,_,O){try{console.log("[AptevaClient] Chat stream request:",{agent_id:G.agent_id,message:typeof G.message==="string"?G.message.substring(0,100)+"...":"[multi-part message]",system:G.system,stream:G.stream});let L=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey,Accept:"text/event-stream"},body:JSON.stringify({...G,stream:!0})});if(!L.ok){let C=await L.json().catch(()=>({error:"Request failed"}));throw Error(C.error||`Request failed with status ${L.status}`)}let N=L.body?.getReader();if(!N)throw Error("Response body is not readable");let W=new TextDecoder,U="",y="";while(!0){let{done:C,value:F}=await N.read();if(C)break;U+=W.decode(F,{stream:!0});let R=U.split(`
|
|
239
|
+
`);U=R.pop()||"";for(let b of R){if(!b.trim()||b.startsWith(":"))continue;if(b.startsWith("data: ")){let k=b.slice(6);if(k==="[DONE]"){_?.(y);return}try{let S=JSON.parse(k);if(S.thread_id)y=S.thread_id;H(S)}catch(S){console.warn("[AptevaClient] Failed to parse SSE data:",k)}}}}_?.(y)}catch(L){let N=L instanceof Error?L:Error("Unknown error");throw O?.(N),N}}async createThread(G,H){let _=await fetch(`${this.config.apiUrl}/agents/${G}/threads`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify({metadata:H})});if(!_.ok){let L=await _.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${_.status}`)}return(await _.json()).thread_id}async getThreadMessages(G){let H=await fetch(`${this.config.apiUrl}/threads/${G}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!H.ok){let O=await H.json().catch(()=>({error:"Request failed"}));throw Error(O.error||`Request failed with status ${H.status}`)}return(await H.json()).messages}async cancelRequest(G,H){try{let _=await fetch(`${this.config.apiUrl}/agents/${G}/requests/${H}/cancel`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey}});if(!_.ok){let O=await _.json().catch(()=>({error:"Cancel request failed"}));throw Error(O.error||`Cancel request failed with status ${_.status}`)}}catch(_){throw console.error("[AptevaClient] Cancel request error:",_),_}}},GX=new dN,GY=Q1.forwardRef(function({agentId:H,threadId:_,initialMessages:O=[],context:L,apiUrl:N,apiKey:W,useMock:U=!1,initialMode:y="chat",showModeToggle:C=!1,onModeChange:F,commandVariant:R="default",planMode:b=!1,onPlanModeChange:k,enableStreaming:S=!0,showProgress:p=!0,loadingText:j="Processing...",welcomeTitle:d,welcomeSubtitle:e,welcomeIcon:s,suggestedPrompts:a,welcomeVariant:_0,onThreadChange:l,onMessageSent:L0,onAction:g,onFileUpload:I0,onComplete:E,onError:c,onToolCall:u,onToolResult:J0,variant:M0="default",placeholder:t,showHeader:G0=!0,headerTitle:H0="Chat",onHeaderBack:V,enableWidgets:i=!1,availableWidgets:D,compactWidgetContext:z0=!1,onWidgetRender:P0,className:D0},r0){let[v4,t0]=Q1.useState(O),[T4,C4]=Q1.useState(!1),[r1,G8]=Q1.useState(_||null),[o,a1]=Q1.useState(y),[g1,K4]=Q1.useState(null),[k7,E0]=Q1.useState("idle"),[z$,o6]=Q1.useState(null),[rJ,s0]=Q1.useState(null),[tH,R4]=Q1.useState(0),[$$,y6]=Q1.useState(""),[nJ,r6]=Q1.useState(""),[FX,C6]=Q1.useState(null),[UY,n6]=Q1.useState(null),[NX,q8]=Q1.useState(""),[bX,H8]=Q1.useState(""),[OY,MX]=Q1.useState(b),[wX,LY]=Q1.useState(!1),WY=Q1.useRef(null),O6=Q1.useRef(null);Q1.useImperativeHandle(r0,()=>({sendMessage:async(Z1)=>{if(O6.current)await O6.current(Z1)},sendSystemMessage:async(Z1)=>{if(O6.current)await O6.current(Z1,void 0,!0)},getMessages:()=>v4,clearMessages:()=>t0([])}),[v4]);let D4=Q1.useMemo(()=>{if(!i)return L;let Z1=z0?bN(D):NN(D);return L?`${L}
|
|
240
|
+
${Z1}`:Z1},[L,i,D,z0]);Q1.useEffect(()=>{if(N||W)GX.configure({...N&&{apiUrl:N},...W&&{apiKey:W}})},[N,W]),Q1.useEffect(()=>{if(_)l?.(_)},[_,l]),Q1.useEffect(()=>{MX(b)},[b]),Q1.useEffect(()=>{let Z1=(P1)=>{let A1=P1.target;if(wX&&!A1.closest(".settings-menu-container"))LY(!1)};return document.addEventListener("mousedown",Z1),()=>document.removeEventListener("mousedown",Z1)},[wX]);let K8=(Z1)=>{if(a1(Z1),F?.(Z1),Z1==="command")E0("idle"),o6(null),s0(null)},_8=o==="chat"?"Type a message...":"Enter your command...",u1=async(Z1,P1,A1)=>{let E1=P1&&P1.length>0,y1=E1?P1.map((B1)=>({name:B1.name,type:B1.type,size:B1.size,preview:B1.type.startsWith("image/")?URL.createObjectURL(B1):void 0})):[];if(!A1){let B1={id:`msg-${Date.now()}`,role:"user",content:Z1,timestamp:new Date,metadata:E1?{attachments:y1}:void 0};t0((J1)=>[...J1,B1]),L0?.(B1)}C4(!0);try{let B1=await lL(Z1,P1);if(U){let J1=await QN(1000);t0((O1)=>[...O1,J1])}else{let J1=[],O1="",C0=[],D6=r1,V7={},X$={},TX=`msg-${Date.now()}-res`,S6=()=>{let w0=[...J1];if(O1){let W0=w0[w0.length-1];if(W0&&W0.type==="text")W0.content=O1;else w0.push({type:"text",content:O1})}t0((W0)=>{let G1=W0[W0.length-1];if(G1&&G1.role==="assistant")return[...W0.slice(0,-1),{...G1,content:O1,widgets:C0.length>0?C0:void 0,metadata:{...G1.metadata,content_segments:w0,isStreaming:!0}}];else return[...W0,{id:TX,role:"assistant",content:O1,widgets:C0.length>0?C0:void 0,timestamp:new Date,metadata:{content_segments:w0,isStreaming:!0}}]})};await GX.chatStream({agent_id:H,message:B1,stream:!0,...r1&&{thread_id:r1},...D4&&{system:D4}},(w0)=>{switch(w0.type){case"thread_id":if(w0.thread_id){if(D6=w0.thread_id,!r1)G8(w0.thread_id),l?.(w0.thread_id)}break;case"request_id":if(w0.request_id)n6(w0.request_id);break;case"content":case"token":if(w0.content)O1+=w0.content,S6();break;case"tool_call":if(w0.tool_id&&w0.tool_name){let W0=w0.tool_display_name||w0.tool_name;if(O1)J1.push({type:"text",content:O1}),O1="";J1.push({type:"tool",id:w0.tool_id,name:W0,status:"preparing"}),V7[w0.tool_id]="",K4(W0),u?.(w0.tool_name,w0.tool_id),S6()}break;case"tool_input_delta":if(w0.tool_id&&w0.content){let W0=w0.tool_id;if(V7[W0]===void 0)V7[W0]="";V7[W0]+=w0.content;let G1=J1.find((O8)=>O8.type==="tool"&&O8.id===W0);if(G1){if(G1.isReceiving=!0,G1.inputLength=V7[W0].length,S6(),X$[W0])clearTimeout(X$[W0]);X$[W0]=setTimeout(()=>{if(G1.status==="preparing")G1.isReceiving=!1,S6()},150)}}break;case"tool_use":if(w0.tool_id){let W0=J1.find((G1)=>G1.type==="tool"&&G1.id===w0.tool_id);if(W0&&W0.status==="preparing")W0.status="running",W0.isReceiving=!1,S6()}break;case"tool_stream":if(w0.tool_id){let W0=J1.find((G1)=>G1.type==="tool"&&G1.id===w0.tool_id);if(W0){if(w0.event==="chunk"&&w0.content){if(W0.pendingReset)W0.streamOutput="",W0.pendingReset=!1;W0.streamOutput=(W0.streamOutput||"")+w0.content,S6()}else if(w0.event==="log"||w0.event==="progress")W0.pendingReset=!0}}break;case"tool_result":if(w0.tool_id){let W0=J1.find((G1)=>G1.type==="tool"&&G1.id===w0.tool_id);if(W0)W0.result=w0.content,W0.status="completed",W0.isReceiving=!1,J0?.(W0.name,w0.content);K4(null),S6()}break;case"widget":if(w0.widget)C0.push(w0.widget),S6();break;case"error":throw Error(w0.message||"Stream error")}},(w0)=>{if(O1){let W0=J1[J1.length-1];if(W0&&W0.type==="text")W0.content=O1;else J1.push({type:"text",content:O1})}if(t0((W0)=>{let G1=W0[W0.length-1];if(G1&&G1.role==="assistant")return[...W0.slice(0,-1),{...G1,content:O1||"Response received",widgets:C0.length>0?C0:void 0,metadata:{thread_id:w0,content_segments:J1,isStreaming:!1}}];return W0}),w0&&w0!==r1)G8(w0),l?.(w0);C4(!1),n6(null),K4(null)},(w0)=>{let W0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${w0.message}`,timestamp:new Date,metadata:{error:!0}};t0((G1)=>{let O8=G1[G1.length-1];if(O8&&O8.id.includes("streaming"))return[...G1.slice(0,-1),W0];return[...G1,W0]}),C4(!1),n6(null),K4(null),c?.(w0)})}}catch(B1){let J1={id:`msg-${Date.now()}-error`,role:"assistant",content:B1 instanceof Error?`Error: ${B1.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};t0((O1)=>[...O1,J1]),c?.(B1 instanceof Error?B1:Error("Unknown error"))}finally{C4(!1)}};O6.current=u1;let t6=async(Z1,P1)=>{let A1=Z1||$$;if(!A1.trim()&&(!P1||P1.length===0)){s0(Error("Please enter a command")),E0("error");return}if(OY&&k7!=="plan-pending"){if(E0("loading"),s0(null),y6(""),U)setTimeout(()=>{let E1=`1. Analyze the request: "${A1}"
|
|
241
|
+
2. Process the data
|
|
242
|
+
3. Generate response
|
|
243
|
+
4. Return results`;q8(E1),H8(A1),E0("plan-pending")},800);else try{let y1=D4?`${D4}
|
|
244
|
+
|
|
245
|
+
CRITICAL PLANNING MODE: You are ONLY creating a plan. Write a numbered list of steps describing what WOULD be done. DO NOT execute anything.`:"CRITICAL PLANNING MODE: You are ONLY creating a plan. Write a numbered list of steps describing what WOULD be done. DO NOT execute anything.",B1=await GX.chat({agent_id:H,message:A1,stream:!1,system:y1});q8(B1.message),H8(A1),E0("plan-pending")}catch(E1){let y1=E1 instanceof Error?E1:Error("Failed to generate plan");s0(y1),E0("error"),c?.(y1)}return}E0("loading"),s0(null),R4(0),r6(""),y6("");try{if(U)if(S){let E1="";HN(A1,(y1)=>{if(y1.type==="token"&&y1.content){E1+=y1.content,r6(E1);let B1=Math.min(Math.round(E1.length/10),90);R4(B1)}},(y1)=>{let B1={success:!0,data:{summary:E1,thread_id:y1},message:E1||"Command executed successfully"};o6(B1),E0("success"),R4(100),E?.(B1)},(y1)=>{s0(y1),E0("error"),c?.(y1)})}else{await new Promise((y1)=>setTimeout(y1,1500));let E1={success:!0,data:{summary:`Executed: ${A1}`},message:"Command executed successfully"};o6(E1),E0("success"),R4(100),E?.(E1)}else{let y1=D4?`${D4}
|
|
246
|
+
|
|
247
|
+
CRITICAL COMMAND MODE: Maximum 10 words per response. Execute the command immediately. Make reasonable assumptions based on context. Use sensible defaults for missing details. DO NOT ask questions unless something is truly impossible without user input (e.g., missing required password). State what you're doing or the result. Examples: "Analyzing customer data from last quarter..." or "Created 5 new database entries successfully" or "Search complete: found 12 matching results". NO greetings, NO filler words, NO clarification requests. Action/result only.`:`CRITICAL COMMAND MODE: Maximum 10 words per response. Execute the command immediately. Make reasonable assumptions based on context. Use sensible defaults for missing details. DO NOT ask questions unless something is truly impossible without user input (e.g., missing required password). State what you're doing or the result. Examples: "Analyzing customer data from last quarter..." or "Created 5 new database entries successfully" or "Search complete: found 12 matching results". NO greetings, NO filler words, NO clarification requests. Action/result only.`,B1=P1&&P1.length>0?await lL(A1,P1):A1;if(S){let J1="",O1="";await GX.chatStream({agent_id:H,message:B1,stream:!0,...r1&&{thread_id:r1},system:y1},(C0)=>{if((C0.type==="token"||C0.type==="content")&&C0.content){J1+=C0.content,r6(J1),C6(null);let D6=Math.min(Math.round(J1.length/10),90);R4(D6)}else if(C0.type==="tool_call"&&C0.tool_name){let D6=C0.tool_display_name||C0.tool_name;O1=C0.tool_name,C6(D6),u?.(C0.tool_name,C0.tool_id||""),J1="",r6("")}else if(C0.type==="tool_result")J0?.(O1,C0.content),C6(null);else if(C0.type==="thread_id"&&C0.thread_id){if(!r1)G8(C0.thread_id),l?.(C0.thread_id)}else if(C0.type==="request_id"&&C0.request_id)n6(C0.request_id)},(C0)=>{let D6={success:!0,data:{summary:J1,thread_id:C0},message:J1||"Command executed successfully"};o6(D6),E0("success"),R4(100),n6(null),E?.(D6)},(C0)=>{s0(C0),E0("error"),n6(null),c?.(C0)})}else{let J1=await GX.chat({agent_id:H,message:B1,stream:!1,...r1&&{thread_id:r1},system:y1}),O1={success:!0,data:{summary:J1.message,thread_id:J1.thread_id},widgets:J1.widgets,message:J1.message};o6(O1),E0("success"),R4(100),E?.(O1)}}}catch(E1){let y1=E1 instanceof Error?E1:Error("Unknown error");s0(y1),E0("error"),c?.(y1)}},B8=()=>{E0("idle"),o6(null),s0(null),R4(0),y6(""),q8(""),H8(""),r6(""),C6(null)},U8=()=>{let Z1=NX;q8(""),H8("");let P1=`Execute this plan now:
|
|
248
|
+
|
|
249
|
+
${Z1}`;t6(P1)},PX=()=>{y6(bX),q8(""),H8(""),E0("idle")},AX=async()=>{if(UY&&H)try{await GX.cancelRequest(H,UY)}catch(Z1){console.error("Failed to cancel request:",Z1)}if(C4(!1),k7==="loading")E0("idle"),r6(""),C6(null),R4(0);n6(null)},vX=R==="compact";return H4.jsxs("div",{className:F1("apteva-chat flex flex-col h-full",M0!=="default"&&`apteva-chat-${M0}`,D0),children:[G0&&o==="chat"&&H4.jsx("div",{className:"apteva-chat-header px-4 py-3",children:H4.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[V&&H4.jsx("button",{onClick:V,className:"apteva-chat-back",style:{flexShrink:0},children:H4.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:H4.jsx("path",{d:"M10 12L6 8l4-4"})})}),H4.jsxs("div",{children:[H4.jsx("div",{className:"apteva-chat-title",children:H0}),H4.jsx("div",{className:F1("apteva-chat-status",T4?g1?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:T4?g1?`Using ${g1}...`:"Thinking...":"Ready"})]})]})}),o==="chat"&&H4.jsxs(H4.Fragment,{children:[H4.jsx(uN,{messages:v4,onAction:g,welcomeTitle:d,welcomeSubtitle:e,welcomeIcon:s,suggestedPrompts:a,welcomeVariant:_0,chatVariant:M0,onPromptClick:(Z1)=>u1(Z1),enableWidgets:i,onWidgetRender:P0}),H4.jsx(lN,{onSendMessage:u1,placeholder:t||_8,disabled:T4,isLoading:T4,onStop:AX,onFileUpload:I0,onSwitchMode:C?()=>K8("command"):void 0})]}),o==="command"&&H4.jsx("div",{className:"w-full",children:H4.jsx(cN,{onExecute:(Z1,P1)=>{y6(Z1),t6(Z1,P1)},state:k7,response:z$?.data?.summary||z$?.message,error:rJ?.message,plan:NX,streamedContent:nJ,toolName:FX,onApprove:U8,onReject:PX,onReset:B8,onStop:AX,onExpand:C?()=>K8("chat"):void 0,placeholder:t||"Enter your command..."})}),H4.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
250
|
+
@keyframes pulse-border {
|
|
251
|
+
0%, 100% { border-color: rgb(59, 130, 246); }
|
|
252
|
+
50% { border-color: rgb(147, 197, 253); }
|
|
253
|
+
}
|
|
254
|
+
.animate-pulse-border {
|
|
255
|
+
animation: pulse-border 2s ease-in-out infinite;
|
|
256
|
+
}
|
|
257
|
+
.apteva-composer {
|
|
258
|
+
border-radius: var(--apteva-border-radius, 1rem) !important;
|
|
259
|
+
}
|
|
260
|
+
`}})]})});var U1=n(k1(),1),B2=U6.createContext(null);function U2(){return U6.useContext(B2)}function O2({children:G}){let{authFetch:H,isAuthenticated:_,isLoading:O}=G4(),[L,N]=U6.useState(null),[W,U]=U6.useState(!1),[y,C]=U6.useState(!1),[F,R]=U6.useState(null),b=async()=>{try{let s=await(await H("/api/meta-agent/status")).json();N(s)}catch(e){console.error("[MetaAgent] Failed to fetch status:",e)}};U6.useEffect(()=>{if(!O&&_)b()},[H,_,O]);let k=async()=>{C(!0),R(null);try{let e=await H("/api/meta-agent/start",{method:"POST"}),s=await e.json();if(!e.ok)R(s.error||"Failed to start assistant");else await b()}catch(e){R("Failed to start assistant")}C(!1)},S=!!(L?.enabled&&L?.available),p=L?.agent,j=!!(p?.status==="running"&&p?.port),d={status:L,isOpen:W,isStarting:y,error:F,isAvailable:S,isRunning:j,agent:p,toggle:()=>U(!W),close:()=>U(!1),startAgent:k};return U1.jsxDEV(B2.Provider,{value:d,children:G},void 0,!1,void 0,this)}function L2(){let G=U2();if(!G?.isAvailable)return null;return U1.jsxDEV("button",{onClick:G.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${G.isOpen?"bg-[#f97316] text-white":"bg-[#151515] hover:bg-[#1a1a1a] text-[#888] hover:text-white"}`,title:"Apteva Assistant",children:[U1.jsxDEV(R2,{className:"w-5 h-5"},void 0,!1,void 0,this),U1.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),G.isRunning&&U1.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 W2(){let G=U2(),{currentProjectId:H,currentProject:_}=u4();if(!G?.isAvailable||!G.isOpen)return null;let{agent:O,isRunning:L,error:N,isStarting:W,startAgent:U,close:y}=G,C=U6.useMemo(()=>{let F=[];if(_)F.push(`Current project: "${_.name}" (id: ${_.id})`);else if(H==="unassigned")F.push("Viewing: unassigned agents (no project)");else F.push("Viewing: All Projects");return F.join(`
|
|
261
|
+
`)},[H,_]);return U1.jsxDEV(U1.Fragment,{children:[U1.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:y},void 0,!1,void 0,this),U1.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:[U1.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[#1a1a1a] bg-[#111]",children:[U1.jsxDEV("div",{className:"flex items-center gap-2",children:[U1.jsxDEV("div",{className:`w-2 h-2 rounded-full ${L?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),U1.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV("button",{onClick:y,className:"text-[#666] hover:text-[#888] transition",children:U1.jsxDEV(nN,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:L?U1.jsxDEV(GY,{agentId:"default",apiUrl:`/api/agents/${O.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",showHeader:!1,context:C},void 0,!1,void 0,this):U1.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[U1.jsxDEV(R2,{className:"w-12 h-12 text-[#333] mb-4"},void 0,!1,void 0,this),U1.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),U1.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),N&&U1.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:N},void 0,!1,void 0,this),U1.jsxDEV("button",{onClick:U,disabled:W,className:"bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:W?"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 R2({className:G="w-6 h-6"}){return U1.jsxDEV("svg",{className:G,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U1.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 nN(){return U1.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U1.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 U0=n(k1(),1);function EJ({onMenuClick:G,agents:H=[]}){let{connected:_}=qY(),{user:O,logout:L}=G4(),N=N2(),{projects:W,currentProjectId:U,currentProject:y,setCurrentProjectId:C,unassignedCount:F,projectsEnabled:R}=u4(),[b,k]=W4.useState(!1),[S,p]=W4.useState(!1),[j,d]=W4.useState(!1),[e,s]=W4.useState(0),[a,_0]=W4.useState([]),l=F2(),{events:L0}=qY(),{accessToken:g}=G4(),I0=W4.useRef(!1),E=W4.default.useMemo(()=>{let V={};for(let i of H)V[i.id]=i.name;return V},[H]),c=W4.default.useMemo(()=>{if(!R||U===null)return null;if(U==="unassigned")return new Set(H.filter((V)=>!V.projectId).map((V)=>V.id));return new Set(H.filter((V)=>V.projectId===U).map((V)=>V.id))},[H,U,R]);W4.useEffect(()=>{if(I0.current||!g)return;I0.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${g}`}}).then((V)=>V.json()).then((V)=>s(V.count||0)).catch(()=>{})},[g]),W4.useEffect(()=>{if(l===0)return;let V=L0.find((i)=>i.level==="error"||i.category==="ERROR"||i.category==="system"&&i.type==="agent_stopped");if(V&&(!c||c.has(V.agent_id)))s((i)=>i+1)},[l]);let u=W4.useRef(U);W4.useEffect(()=>{if(u.current===U)return;if(u.current=U,!g)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${g}`}}).then((V)=>V.json()).then((V)=>{if(!c)s(V.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${g}`}}).then((i)=>i.json()).then((i)=>{let D=(i.notifications||[]).filter((z0)=>!z0.seen&&c.has(z0.agent_id));s(D.length)}).catch(()=>{})}).catch(()=>{})},[U,g,c]);let J0=W4.useCallback(async()=>{if(d((V)=>!V),!j)try{let V={"Content-Type":"application/json"};if(g)V.Authorization=`Bearer ${g}`;let z0=(await(await fetch("/api/notifications?limit=50",{headers:V})).json()).notifications||[];if(c)z0=z0.filter((P0)=>c.has(P0.agent_id));if(_0(z0),e>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:V,body:JSON.stringify({all:!0})}),s(0)}catch{}},[j,e,g,c]),M0=async()=>{await L(),k(!1)},t=(V)=>{C(V),p(!1)},G0=()=>{if(U===null)return"All Projects";if(U==="unassigned")return"Unassigned";return y?.name||"Select Project"},H0=()=>{if(U===null)return"#666";if(U==="unassigned")return"#888";return y?.color||"#6366f1"};return U0.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-4 md:px-6 py-4 flex-shrink-0",children:U0.jsxDEV("div",{className:"flex items-center justify-between",children:[U0.jsxDEV("div",{className:"flex items-center gap-3",children:[U0.jsxDEV("button",{onClick:G,className:"p-2 -ml-2 text-[#666] hover:text-[#e0e0e0] transition md:hidden",children:U0.jsxDEV(b2,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"flex items-center gap-2",children:[U0.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R&&W.length>0&&U0.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[U0.jsxDEV("button",{onClick:()=>p(!S),className:"flex items-center gap-2 px-3 py-1.5 rounded border border-[#222] bg-[#111] hover:bg-[#1a1a1a] transition text-sm",children:[U0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:H0()}},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:G0()},void 0,!1,void 0,this),U0.jsxDEV(M2,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&U0.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50",children:U0.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[U0.jsxDEV("button",{onClick:()=>t(null),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${U===null?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[U0.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),W.map((V)=>U0.jsxDEV("button",{onClick:()=>t(V.id),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${U===V.id?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[U0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:V.color}},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"truncate",children:V.name},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"ml-auto text-xs text-[#666]",children:V.agentCount},void 0,!1,void 0,this)]},V.id,!0,void 0,this)),F>0&&U0.jsxDEV("button",{onClick:()=>t("unassigned"),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${U==="unassigned"?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[U0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-[#888]"},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"ml-auto text-xs text-[#666]",children:F},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),U0.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[U0.jsxDEV("div",{className:"flex items-center gap-2",children:[U0.jsxDEV("span",{className:`w-2 h-2 rounded-full ${_?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"text-xs text-[#666] hidden sm:inline",children:_?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"relative",children:[U0.jsxDEV("button",{onClick:J0,className:"relative p-2 text-[#666] hover:text-[#e0e0e0] transition rounded hover:bg-[#1a1a1a]",children:[U0.jsxDEV(w2,{className:"w-5 h-5"},void 0,!1,void 0,this),e>0&&U0.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:e>99?"99+":e},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j&&U0.jsxDEV(U0.Fragment,{children:[U0.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)},void 0,!1,void 0,this),U0.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:[U0.jsxDEV("div",{className:"px-4 py-3 border-b border-[#222] flex items-center justify-between",children:[U0.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),a.length>0&&U0.jsxDEV("span",{className:"text-xs text-[#666]",children:[a.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),a.length===0?U0.jsxDEV("div",{className:"px-4 py-8 text-center text-sm text-[#666]",children:"No notifications"},void 0,!1,void 0,this):U0.jsxDEV("div",{className:"py-1",children:a.map((V)=>U0.jsxDEV("div",{className:`px-4 py-3 hover:bg-[#1a1a1a] transition border-b border-[#1a1a1a] ${!V.seen?"bg-[#0f0f0f]":""}`,children:[U0.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[U0.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!V.seen?V.level==="error"||V.category==="ERROR"?"bg-red-400":"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),U0.jsxDEV("span",{className:`text-xs font-medium truncate ${!V.seen?"text-[#ccc]":"text-[#666]"}`,children:V.category==="system"&&V.type==="agent_stopped"?"Agent Stopped":V.category==="ERROR"?"Error":`${V.category} / ${V.type}`},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"text-[10px] text-[#555] ml-auto flex-shrink-0",children:tN(V.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:`text-xs truncate ${!V.seen?"text-[#aaa]":"text-[#666]"}`,children:V.error||V.data?.message||V.data?.error||`${V.type} event`},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"text-[10px] text-[#555] mt-1",children:E[V.agent_id]||V.agent_id.slice(0,8)},void 0,!1,void 0,this)]},V.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),U0.jsxDEV(L2,{},void 0,!1,void 0,this),O&&U0.jsxDEV("div",{className:"relative",children:[U0.jsxDEV("button",{onClick:()=>k(!b),className:"flex items-center gap-2 px-2 md:px-3 py-2 rounded hover:bg-[#1a1a1a] transition",children:[U0.jsxDEV("div",{className:"w-8 h-8 rounded-full bg-[#f97316] flex items-center justify-center text-black font-medium text-sm",children:O.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),U0.jsxDEV("span",{className:"text-sm text-[#888] hidden sm:block",children:O.username},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&U0.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-48 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50",children:[U0.jsxDEV("div",{className:"px-4 py-3 border-b border-[#222]",children:[U0.jsxDEV("p",{className:"text-sm font-medium",children:O.username},void 0,!1,void 0,this),U0.jsxDEV("p",{className:"text-xs text-[#f97316] mt-1",children:O.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("button",{onClick:M0,className:"w-full px-4 py-2 text-left text-sm text-red-400 hover:bg-[#1a1a1a] transition",children:"Sign out"},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)},void 0,!1,void 0,this)}function tN(G){let H=Date.now()-new Date(G).getTime(),_=Math.floor(H/60000);if(_<1)return"just now";if(_<60)return`${_}m ago`;let O=Math.floor(_/60);if(O<24)return`${O}h ago`;return`${Math.floor(O/24)}d ago`}var o0=n(k1(),1);function mJ({route:G,agentCount:H,taskCount:_,onNavigate:O,isOpen:L,onClose:N}){let W=(U)=>{O(U),N?.()};return o0.jsxDEV(o0.Fragment,{children:[L&&o0.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:N},void 0,!1,void 0,this),o0.jsxDEV("aside",{className:`
|
|
262
|
+
fixed inset-y-0 left-0 z-50 w-64 bg-[#0a0a0a] border-r border-[#1a1a1a] p-4 transform transition-transform duration-200 ease-in-out
|
|
263
|
+
md:relative md:w-56 md:translate-x-0 md:z-auto
|
|
264
|
+
${L?"translate-x-0":"-translate-x-full"}
|
|
265
|
+
`,children:[o0.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[o0.jsxDEV("div",{className:"flex items-center gap-2",children:[o0.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),o0.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o0.jsxDEV("button",{onClick:N,className:"p-2 text-[#666] hover:text-[#e0e0e0] transition",children:o0.jsxDEV(sz,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o0.jsxDEV("nav",{className:"space-y-1",children:[o0.jsxDEV(i6,{icon:o0.jsxDEV(dH,{},void 0,!1,void 0,this),label:"Dashboard",active:G==="dashboard",onClick:()=>W("dashboard")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(aH,{},void 0,!1,void 0,this),label:"Agents",active:G==="agents",onClick:()=>W("agents"),badge:H>0?String(H):void 0},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(I2,{},void 0,!1,void 0,this),label:"Activity",active:G==="activity",onClick:()=>W("activity")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(I7,{},void 0,!1,void 0,this),label:"Tasks",active:G==="tasks",onClick:()=>W("tasks"),badge:_&&_>0?String(_):void 0},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(Z8,{},void 0,!1,void 0,this),label:"MCP",active:G==="mcp",onClick:()=>W("mcp")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(fJ,{},void 0,!1,void 0,this),label:"Skills",active:G==="skills",onClick:()=>W("skills")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(T2,{},void 0,!1,void 0,this),label:"Connections",active:G==="connections",onClick:()=>W("connections")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(v2,{},void 0,!1,void 0,this),label:"Tests",active:G==="tests",onClick:()=>W("tests")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(P2,{},void 0,!1,void 0,this),label:"Telemetry",active:G==="telemetry",onClick:()=>W("telemetry")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(A2,{},void 0,!1,void 0,this),label:"API",active:G==="api",onClick:()=>W("api")},void 0,!1,void 0,this),o0.jsxDEV(i6,{icon:o0.jsxDEV(iH,{},void 0,!1,void 0,this),label:"Settings",active:G==="settings",onClick:()=>W("settings")},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 i6({icon:G,label:H,active:_,onClick:O,badge:L}){return o0.jsxDEV("button",{onClick:O,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${_?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[G,H,L&&o0.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var HY=n(k1(),1);function hJ({message:G,onDismiss:H}){return HY.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:[HY.jsxDEV("span",{children:G},void 0,!1,void 0,this),HY.jsxDEV("button",{onClick:H,className:"hover:text-red-300",children:HY.jsxDEV(sz,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var KY=n(e0(),1);var Y4=n(k1(),1);function pJ(){let{login:G}=G4(),[H,_]=KY.useState(""),[O,L]=KY.useState(""),[N,W]=KY.useState(null),[U,y]=KY.useState(!1);return Y4.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:Y4.jsxDEV("div",{className:"w-full max-w-md",children:[Y4.jsxDEV("div",{className:"text-center mb-8",children:[Y4.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[Y4.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),Y4.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y4.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y4.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[Y4.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),Y4.jsxDEV("p",{className:"text-[#666] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),Y4.jsxDEV("form",{onSubmit:async(F)=>{F.preventDefault(),W(null),y(!0);let R=await G(H,O);if(!R.success)W(R.error||"Login failed");y(!1)},className:"space-y-4",children:[Y4.jsxDEV("div",{children:[Y4.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[#888] mb-1",children:"Username"},void 0,!1,void 0,this),Y4.jsxDEV("input",{id:"username",type:"text",value:H,onChange:(F)=>_(F.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),Y4.jsxDEV("div",{children:[Y4.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[#888] mb-1",children:"Password"},void 0,!1,void 0,this),Y4.jsxDEV("input",{id:"password",type:"password",value:O,onChange:(F)=>L(F.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),N&&Y4.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:N},void 0,!1,void 0,this),Y4.jsxDEV("button",{type:"submit",disabled:U||!H||!O,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:U?"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 Zz=n(e0(),1),M1=n(k1(),1);function jJ({onComplete:G}){let[H,_]=Zz.useState(""),[O,L]=Zz.useState(""),[N,W]=Zz.useState(""),[U,y]=Zz.useState(""),[C,F]=Zz.useState(!1),[R,b]=Zz.useState(null),[k,S]=Zz.useState(!1);return M1.jsxDEV(M1.Fragment,{children:[M1.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),M1.jsxDEV("p",{className:"text-[#666] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),M1.jsxDEV("form",{onSubmit:async(j)=>{if(j.preventDefault(),b(null),O!==N){b("Passwords do not match");return}S(!0);try{let d=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:H,password:O,...U&&{email:U}})}),e=await d.json();if(!d.ok){b(e.error||"Failed to create account"),S(!1);return}let s=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:H,password:O})});if(!s.ok){b("Account created but login failed. Please try logging in."),S(!1);return}let a=await s.json();if(a.accessToken)sessionStorage.setItem("accessToken",a.accessToken);G({username:H})}catch(d){b("Failed to create account"),S(!1)}},className:"space-y-4",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[#888] mb-1",children:"Username"},void 0,!1,void 0,this),M1.jsxDEV("input",{id:"username",type:"text",value:H,onChange:(j)=>_(j.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),M1.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),M1.jsxDEV("div",{children:[M1.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[#888] mb-1",children:"Password"},void 0,!1,void 0,this),M1.jsxDEV("input",{id:"password",type:"password",value:O,onChange:(j)=>L(j.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),M1.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),M1.jsxDEV("div",{children:[M1.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[#888] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),M1.jsxDEV("input",{id:"confirmPassword",type:"password",value:N,onChange:(j)=>W(j.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),!C?M1.jsxDEV("button",{type:"button",onClick:()=>F(!0),className:"text-sm text-[#666] hover:text-[#888] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):M1.jsxDEV("div",{children:[M1.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[#888] mb-1",children:["Email ",M1.jsxDEV("span",{className:"text-[#666]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("input",{id:"email",type:"email",value:U,onChange:(j)=>y(j.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),M1.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),R&&M1.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:R},void 0,!1,void 0,this),M1.jsxDEV("button",{type:"submit",disabled:k||!H||!O||!N,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:k?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.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 V6=n(e0(),1);var q0=n(k1(),1);function _Y({onComplete:G,needsAccount:H=!1}){let[_,O]=V6.useState(H?0:1),[L,N]=V6.useState([]),[W,U]=V6.useState(null),[y,C]=V6.useState(""),[F,R]=V6.useState(!1),[b,k]=V6.useState(!1),[S,p]=V6.useState(null),[j,d]=V6.useState(null),[e,s]=V6.useState(!1),a=()=>{let c=sessionStorage.getItem("accessToken");return c?{Authorization:`Bearer ${c}`}:{}};V6.useEffect(()=>{if(H&&!e&&_===0)return;fetch("/api/providers",{headers:a()}).then((c)=>c.json()).then((c)=>{let u=(c.providers||[]).filter((J0)=>J0.type==="llm");N(u)})},[e,_,H]);let _0=L.filter((c)=>c.hasKey),l=async()=>{if(!W||!y)return;R(!0),p(null),d(null);try{k(!0);let u=await(await fetch(`/api/keys/${W}/test`,{method:"POST",headers:{"Content-Type":"application/json",...a()},body:JSON.stringify({key:y})})).json();if(k(!1),!u.valid){p(u.error||"API key is invalid"),R(!1);return}let J0=await fetch(`/api/keys/${W}`,{method:"POST",headers:{"Content-Type":"application/json",...a()},body:JSON.stringify({key:y})}),M0=await J0.json();if(!J0.ok)p(M0.error||"Failed to save key");else{d("API key saved successfully!"),C("");let G0=await(await fetch("/api/providers",{headers:a()})).json();N(G0.providers||[]),U(null)}}catch(c){p("Failed to save key")}R(!1)},L0=async()=>{try{let c=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...a()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(c.ok){let u=await c.json();if(u.project?.id)localStorage.setItem("apteva_current_project",u.project.id)}}catch(c){console.error("Failed to create default project:",c)}await fetch("/api/onboarding/complete",{method:"POST",headers:a()}),G()},g=()=>{s(!0),O(1)},I0=H?3:2,E=H?_:_-1;return q0.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:q0.jsxDEV("div",{className:"w-full max-w-2xl",children:[q0.jsxDEV("div",{className:"text-center mb-8",children:[q0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[q0.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[H&&q0.jsxDEV(q0.Fragment,{children:[q0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=0?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),q0.jsxDEV("div",{className:`w-16 h-0.5 ${_>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),q0.jsxDEV("div",{className:`w-16 h-0.5 ${_>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),q0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[_===0&&H&&q0.jsxDEV(jJ,{onComplete:g},void 0,!1,void 0,this),_===1&&q0.jsxDEV(sN,{providers:L,configuredProviders:_0,selectedProvider:W,apiKey:y,saving:F,testing:b,error:S,success:j,onSelectProvider:U,onApiKeyChange:C,onSaveKey:l,onContinue:()=>O(2)},void 0,!1,void 0,this),_===2&&q0.jsxDEV(zb,{configuredProviders:_0,onAddMore:()=>O(1),onComplete:L0},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 sN({providers:G,configuredProviders:H,selectedProvider:_,apiKey:O,saving:L,testing:N,error:W,success:U,onSelectProvider:y,onApiKeyChange:C,onSaveKey:F,onContinue:R}){let b=G.find((k)=>k.id===_);if(_&&b)return q0.jsxDEV(q0.Fragment,{children:[q0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",b.name," Key"]},void 0,!0,void 0,this),q0.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),q0.jsxDEV("div",{className:"mb-6",children:[q0.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:q0.jsxDEV("div",{className:"flex items-center justify-between",children:[q0.jsxDEV("div",{children:[q0.jsxDEV("p",{className:"font-medium",children:b.name},void 0,!1,void 0,this),q0.jsxDEV("p",{className:"text-sm text-[#666]",children:[b.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("a",{href:b.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),q0.jsxDEV("div",{className:"space-y-3",children:[q0.jsxDEV("input",{type:"password",value:O,onChange:(k)=>C(k.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),W&&q0.jsxDEV("p",{className:"text-red-400 text-sm",children:W},void 0,!1,void 0,this),U&&q0.jsxDEV("p",{className:"text-green-400 text-sm",children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:"flex gap-3",children:[q0.jsxDEV("button",{onClick:()=>{y(null),C("")},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),q0.jsxDEV("button",{onClick:F,disabled:!O||L,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:N?"Testing...":L?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return q0.jsxDEV(q0.Fragment,{children:[q0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),q0.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),q0.jsxDEV("div",{className:"space-y-3 mb-6",children:G.map((k)=>q0.jsxDEV(eN,{provider:k,selected:!1,onSelect:()=>!k.hasKey&&y(k.id)},k.id,!1,void 0,this))},void 0,!1,void 0,this),q0.jsxDEV("button",{onClick:R,disabled:H.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:H.length===0?"Add at least one API key to continue":`Continue with ${H.length} provider${H.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eN({provider:G,selected:H,onSelect:_}){return q0.jsxDEV("div",{onClick:_,className:`p-4 rounded border transition cursor-pointer ${G.hasKey?"border-green-500/30 bg-green-500/5":H?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:q0.jsxDEV("div",{className:"flex items-center justify-between",children:[q0.jsxDEV("div",{children:[q0.jsxDEV("p",{className:"font-medium",children:G.name},void 0,!1,void 0,this),q0.jsxDEV("p",{className:"text-sm text-[#666]",children:[G.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.hasKey?q0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[q0.jsxDEV(xJ,{},void 0,!1,void 0,this),"Configured (",G.keyHint,")"]},void 0,!0,void 0,this):q0.jsxDEV("a",{href:G.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(O)=>O.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 zb({configuredProviders:G,onAddMore:H,onComplete:_}){return q0.jsxDEV(q0.Fragment,{children:[q0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),q0.jsxDEV("p",{className:"text-[#666] mb-6",children:["You've configured ",G.length," provider",G.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:"space-y-2 mb-6",children:G.map((O)=>q0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[q0.jsxDEV(xJ,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),q0.jsxDEV("span",{children:O.name},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"text-[#666] text-sm",children:["(",O.keyHint,")"]},void 0,!0,void 0,this)]},O.id,!0,void 0,this))},void 0,!1,void 0,this),q0.jsxDEV("div",{className:"flex gap-3",children:[q0.jsxDEV("button",{onClick:H,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),q0.jsxDEV("button",{onClick:_,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 x1=n(k1(),1),Xb=[{key:"memory",icon:_X,label:"Memory"},{key:"tasks",icon:I7,label:"Tasks"},{key:"files",icon:LX,label:"Files"},{key:"vision",icon:BX,label:"Vision"},{key:"operator",icon:UX,label:"Operator"},{key:"mcp",icon:Z8,label:"MCP"},{key:"realtime",icon:OX,label:"Realtime"},{key:"agents",icon:WX,label:"Multi-Agent"}];function uJ({agent:G,selected:H,onSelect:_,onToggle:O,showProject:L}){let N=Xb.filter((b)=>G.features?.[b.key]),W=G.mcpServerDetails||[],U=G.skillDetails||[],{isActive:y,type:C}=gJ(G.id),{projects:F}=u4(),R=G.projectId?F.find((b)=>b.id===G.projectId):null;return x1.jsxDEV("div",{onClick:_,className:`bg-[#111] rounded p-5 border transition cursor-pointer flex flex-col h-full ${H?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[x1.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[x1.jsxDEV("div",{children:[x1.jsxDEV("h3",{className:"font-semibold text-lg",children:G.name},void 0,!1,void 0,this),x1.jsxDEV("p",{className:"text-sm text-[#666]",children:[G.provider," / ",G.model,G.port&&x1.jsxDEV("span",{className:"text-[#444]",children:[" · :",G.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L&&R&&x1.jsxDEV("p",{className:"text-sm text-[#666] flex items-center gap-1.5 mt-1",children:[x1.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),x1.jsxDEV(Yb,{status:G.status,isActive:y&&G.status==="running",activityType:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.length>0&&x1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:N.map(({key:b,icon:k,label:S})=>x1.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[#f97316]/10 text-[#f97316]/70 text-xs",title:S,children:[x1.jsxDEV(k,{className:"w-3 h-3"},void 0,!1,void 0,this),S]},b,!0,void 0,this))},void 0,!1,void 0,this),W.length>0&&x1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:W.map((b)=>{let k=b.type==="http"&&b.url||b.status==="running";return x1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${k?"bg-green-500/10 text-green-400":"bg-[#222] text-[#666]"}`,title:`MCP: ${b.name} (${k?"available":b.status})`,children:[x1.jsxDEV(Z8,{className:"w-3 h-3"},void 0,!1,void 0,this),b.name]},b.id,!0,void 0,this)})},void 0,!1,void 0,this),U.length>0&&x1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:U.map((b)=>x1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${b.enabled?"bg-purple-500/10 text-purple-400":"bg-[#222] text-[#666]"}`,title:`Skill: ${b.name} v${b.version}`,children:[x1.jsxDEV(fJ,{className:"w-3 h-3"},void 0,!1,void 0,this),b.name]},b.id,!0,void 0,this))},void 0,!1,void 0,this),x1.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4 flex-1",children:G.systemPrompt},void 0,!1,void 0,this),x1.jsxDEV("button",{onClick:O,disabled:G.status==="starting"||G.status==="stopping",className:`w-full px-3 py-1.5 rounded text-sm font-medium transition mt-auto ${G.status==="starting"||G.status==="stopping"?"bg-[#333] text-[#666] cursor-wait":G.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:G.status==="starting"?"Starting...":G.status==="stopping"?"Stopping...":G.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Yb({status:G,isActive:H,activityType:_}){if(G==="running"&&H&&_)return x1.jsxDEV("span",{className:"px-2 py-1 rounded text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",children:_},void 0,!1,void 0,this);return x1.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${G==="starting"||G==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":G==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:G},void 0,!1,void 0,this)}var BY=n(e0(),1);var b0=n(k1(),1),Zb=[{key:"memory",label:"Memory",description:"Persistent recall",icon:_X},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:I7},{key:"files",label:"Files",description:"File storage and management",icon:LX},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:BX},{key:"operator",label:"Operator",description:"Browser automation",icon:UX},{key:"mcp",label:"MCP",description:"External tools/services",icon:Z8},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:OX},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:WX}];function lJ({form:G,providers:H,configuredProviders:_,onFormChange:O,onProviderChange:L,onCreate:N,onClose:W,onGoToSettings:U}){let{projects:y,currentProjectId:C}=u4(),F=H.find((l)=>l.id===G.provider),[R,b]=BY.default.useState([]),[k,S]=BY.default.useState(!1);BY.default.useEffect(()=>{if(G.provider==="ollama")S(!0),fetch("/api/providers/ollama/models").then((l)=>l.json()).then((l)=>{if(l.models&&l.models.length>0){if(b(l.models.map((L0)=>({value:L0.value,label:L0.label||L0.value}))),!G.model&&l.models.length>0)O({...G,model:l.models[0].value})}}).catch(()=>b([])).finally(()=>S(!1))},[G.provider]);let p=_.filter((l)=>l.type==="llm").map((l)=>({value:l.id,label:l.name})),j=G.provider==="ollama"&&R.length>0?R:F?.models.map((l)=>({value:l.value,label:l.label,recommended:l.recommended}))||[],d=y.map((l)=>({value:l.id,label:l.name}));BY.default.useEffect(()=>{if(G.projectId===void 0&&C&&C!=="unassigned")O({...G,projectId:C})},[C]);let e=(l)=>{if(l==="agents")if(typeof G.features.agents==="boolean"?G.features.agents:G.features.agents?.enabled??!1)O({...G,features:{...G.features,agents:!1}});else O({...G,features:{...G.features,agents:{enabled:!0,mode:"worker",group:G.projectId||void 0}}});else O({...G,features:{...G.features,[l]:!G.features[l]}})},s=()=>{let l=G.features.agents;if(typeof l==="boolean")return l;return l?.enabled??!1},a=()=>{return az(G.features,G.projectId).mode||"worker"},_0=(l)=>{let L0=az(G.features,G.projectId);O({...G,features:{...G.features,agents:{...L0,enabled:!0,mode:l}}})};return b0.jsxDEV(oH,{children:[b0.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),p.length===0?b0.jsxDEV(Jb,{onGoToSettings:U},void 0,!1,void 0,this):b0.jsxDEV(b0.Fragment,{children:[b0.jsxDEV("div",{className:"space-y-4",children:[b0.jsxDEV(Jz,{label:"Name",children:b0.jsxDEV("input",{type:"text",value:G.name,onChange:(l)=>O({...G,name:l.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),y.length>0&&b0.jsxDEV(Jz,{label:"Project",children:b0.jsxDEV(Qz,{value:G.projectId||"",options:d,onChange:(l)=>O({...G,projectId:l||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),b0.jsxDEV(Jz,{label:"Provider",children:b0.jsxDEV(Qz,{value:G.provider,options:p,onChange:L,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),b0.jsxDEV(Jz,{label:"Model",children:k?b0.jsxDEV("div",{className:"text-sm text-[#666] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):G.provider==="ollama"&&j.length===0?b0.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",b0.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):b0.jsxDEV(Qz,{value:G.model,options:j,onChange:(l)=>O({...G,model:l}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),b0.jsxDEV(Jz,{label:"System Prompt",children:b0.jsxDEV("textarea",{value:G.systemPrompt,onChange:(l)=>O({...G,systemPrompt:l.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),b0.jsxDEV(Jz,{label:"Features",children:b0.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Zb.map(({key:l,label:L0,description:g,icon:I0})=>{let E=l==="agents"?s():!!G.features[l];return b0.jsxDEV("button",{type:"button",onClick:()=>e(l),className:`flex items-center gap-3 p-3 rounded border text-left transition ${E?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[b0.jsxDEV(I0,{className:`w-5 h-5 flex-shrink-0 ${E?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),b0.jsxDEV("div",{className:"flex-1 min-w-0",children:[b0.jsxDEV("div",{className:`text-sm font-medium ${E?"text-[#f97316]":""}`,children:L0},void 0,!1,void 0,this),b0.jsxDEV("div",{className:"text-xs text-[#666]",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},l,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),s()&&b0.jsxDEV(Jz,{label:"Multi-Agent Mode",children:[b0.jsxDEV("div",{className:"flex gap-2",children:[b0.jsxDEV("button",{type:"button",onClick:()=>_0("coordinator"),className:`flex-1 p-3 rounded border text-left transition ${a()==="coordinator"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[b0.jsxDEV("div",{className:`text-sm font-medium ${a()==="coordinator"?"text-[#f97316]":""}`,children:"Coordinator"},void 0,!1,void 0,this),b0.jsxDEV("div",{className:"text-xs text-[#666]",children:"Orchestrates and delegates"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("button",{type:"button",onClick:()=>_0("worker"),className:`flex-1 p-3 rounded border text-left transition ${a()==="worker"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[b0.jsxDEV("div",{className:`text-sm font-medium ${a()==="worker"?"text-[#f97316]":""}`,children:"Worker"},void 0,!1,void 0,this),b0.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),G.projectId&&b0.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),G.provider==="anthropic"&&b0.jsxDEV(Jz,{label:"Agent Built-in Tools",children:[b0.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[b0.jsxDEV("button",{type:"button",onClick:()=>O({...G,features:{...G.features,builtinTools:{...G.features.builtinTools,webSearch:!G.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${G.features.builtinTools?.webSearch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[b0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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),b0.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b0.jsxDEV("button",{type:"button",onClick:()=>O({...G,features:{...G.features,builtinTools:{...G.features.builtinTools,webFetch:!G.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${G.features.builtinTools?.webFetch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[b0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b0.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),b0.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),b0.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),b0.jsxDEV("div",{className:"flex gap-3 mt-6",children:[b0.jsxDEV("button",{onClick:W,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),b0.jsxDEV("button",{onClick:N,disabled:!G.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 Jz({label:G,children:H}){return b0.jsxDEV("div",{children:[b0.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:G},void 0,!1,void 0,this),H]},void 0,!0,void 0,this)}function Jb({onGoToSettings:G}){return b0.jsxDEV("div",{className:"text-center py-6",children:[b0.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),b0.jsxDEV("button",{onClick:G,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 S0=n(e0(),1);var M=n(k1(),1),Qb=[{key:"memory",label:"Memory",description:"Persistent recall",icon:_X},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:I7},{key:"files",label:"Files",description:"File storage and management",icon:LX},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:BX},{key:"operator",label:"Operator",description:"Browser automation",icon:UX},{key:"mcp",label:"MCP",description:"External tools/services",icon:Z8},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:OX},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:WX}];function dJ({agent:G,providers:H,onClose:_,onStartAgent:O,onUpdateAgent:L,onDeleteAgent:N}){let[W,U]=S0.useState("chat");return M.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[#0a0a0a] border-l border-[#1a1a1a]",children:[M.jsxDEV("div",{className:"border-b border-[#1a1a1a] flex items-center",children:[M.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:M.jsxDEV("div",{className:"flex gap-1",children:[M.jsxDEV(RX,{active:W==="chat",onClick:()=>U("chat"),children:"Chat"},void 0,!1,void 0,this),M.jsxDEV(RX,{active:W==="threads",onClick:()=>U("threads"),children:"Threads"},void 0,!1,void 0,this),M.jsxDEV(RX,{active:W==="tasks",onClick:()=>U("tasks"),children:"Tasks"},void 0,!1,void 0,this),M.jsxDEV(RX,{active:W==="memory",onClick:()=>U("memory"),children:"Memory"},void 0,!1,void 0,this),M.jsxDEV(RX,{active:W==="files",onClick:()=>U("files"),children:"Files"},void 0,!1,void 0,this),M.jsxDEV(RX,{active:W==="settings",onClick:()=>U("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:_,className:"text-[#666] hover:text-[#e0e0e0] transition p-2 flex-shrink-0 mr-2",children:M.jsxDEV(sz,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[W==="chat"&&M.jsxDEV(Gb,{agent:G,onStartAgent:O},void 0,!1,void 0,this),W==="threads"&&M.jsxDEV(qb,{agent:G},void 0,!1,void 0,this),W==="tasks"&&M.jsxDEV(Hb,{agent:G},void 0,!1,void 0,this),W==="memory"&&M.jsxDEV(Kb,{agent:G},void 0,!1,void 0,this),W==="files"&&M.jsxDEV(_b,{agent:G},void 0,!1,void 0,this),W==="settings"&&M.jsxDEV(Bb,{agent:G,providers:H,onUpdateAgent:L,onDeleteAgent:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function RX({active:G,onClick:H,children:_}){return M.jsxDEV("button",{onClick:H,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${G?"border-[#f97316] text-[#e0e0e0]":"border-transparent text-[#666] hover:text-[#888]"}`,children:_},void 0,!1,void 0,this)}function Gb({agent:G,onStartAgent:H}){if(G.status==="running"&&G.port)return M.jsxDEV(GY,{agentId:"default",apiUrl:`/api/agents/${G.id}`,placeholder:"Message this agent...",context:G.systemPrompt,variant:"terminal",headerTitle:G.name},void 0,!1,void 0,this);return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("div",{className:"text-center",children:[M.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:H,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 qb({agent:G}){let[H,_]=S0.useState([]),[O,L]=S0.useState(!0),[N,W]=S0.useState(null),[U,y]=S0.useState(null),[C,F]=S0.useState([]),[R,b]=S0.useState(!1),{confirm:k,ConfirmDialog:S}=cJ();S0.useEffect(()=>{_([]),y(null),W(null),L(!0)},[G.id]),S0.useEffect(()=>{if(G.status!=="running"){L(!1);return}(async()=>{try{let e=await fetch(`/api/agents/${G.id}/threads`);if(!e.ok)throw Error("Failed to fetch threads");let s=await e.json();_(s.threads||[]),W(null)}catch(e){W(e instanceof Error?e.message:"Failed to load threads")}finally{L(!1)}})()},[G.id,G.status]);let p=async(d)=>{b(!0),y(d);try{let e=await fetch(`/api/agents/${G.id}/threads/${d}/messages`);if(e.ok){let s=await e.json();F(nL(s.messages||[]))}else F([])}catch{F([])}b(!1)},j=async(d,e)=>{if(e.stopPropagation(),!await k("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${G.id}/threads/${d}`,{method:"DELETE"}),_((a)=>a.filter((_0)=>_0.id!==d)),U===d)y(null)}catch{}};if(G.status!=="running")return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(O)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:M.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(U)return M.jsxDEV(M.Fragment,{children:[S,M.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:R?M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:"Loading messages..."},void 0,!1,void 0,this):M.jsxDEV(GY,{agentId:"default",apiUrl:`/api/agents/${G.id}`,threadId:U,initialMessages:C,placeholder:"Continue this conversation...",context:G.systemPrompt,variant:"terminal",showHeader:!0,onHeaderBack:()=>{y(null),F([])}},U,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return M.jsxDEV(M.Fragment,{children:[S,M.jsxDEV("div",{className:"flex-1 overflow-auto",children:H.length===0?M.jsxDEV("div",{className:"flex items-center justify-center h-full text-[#666]",children:M.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):M.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:H.map((d)=>M.jsxDEV("div",{onClick:()=>p(d.id),className:"p-4 cursor-pointer hover:bg-[#111] transition flex items-center justify-between",children:[M.jsxDEV("div",{className:"flex-1 min-w-0",children:[M.jsxDEV("p",{className:"text-sm font-medium truncate",children:d.title||`Thread ${d.id.slice(0,8)}`},void 0,!1,void 0,this),M.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:[new Date(d.updated_at||d.created_at).toLocaleString(),d.message_count!==void 0&&` • ${d.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("button",{onClick:(e)=>j(d.id,e),className:"text-[#666] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},d.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Hb({agent:G}){let[H,_]=S0.useState([]),[O,L]=S0.useState(!0),[N,W]=S0.useState(null),[U,y]=S0.useState("all"),{events:C}=k2({agent_id:G.id,category:"task"});S0.useEffect(()=>{_([]),W(null),L(!0)},[G.id]);let F=async()=>{if(G.status!=="running"){L(!1);return}try{let k=await fetch(`/api/agents/${G.id}/tasks?status=${U}`);if(!k.ok)throw Error("Failed to fetch tasks");let S=await k.json();_(S.tasks||[]),W(null)}catch(k){W(k instanceof Error?k.message:"Failed to load tasks")}finally{L(!1)}};S0.useEffect(()=>{L(!0),F()},[G.id,G.status,U,C.length]);let R={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(G.status!=="running")return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!G.features?.tasks)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("div",{className:"text-center",children:[M.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),M.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(O)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:M.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);return M.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[M.jsxDEV("div",{className:"flex gap-2 mb-4",children:[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}].map((k)=>M.jsxDEV("button",{onClick:()=>y(k.value),className:`px-3 py-1.5 rounded text-sm transition ${U===k.value?"bg-[#f97316] text-black":"bg-[#1a1a1a] hover:bg-[#222]"}`,children:k.label},k.value,!1,void 0,this))},void 0,!1,void 0,this),H.length===0?M.jsxDEV("div",{className:"text-center py-10",children:[M.jsxDEV(I7,{className:"w-10 h-10 mx-auto mb-3 text-[#333]"},void 0,!1,void 0,this),M.jsxDEV("p",{className:"text-[#666]",children:["No ",U==="all"?"":U+" ","tasks"]},void 0,!0,void 0,this),M.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):M.jsxDEV("div",{className:"space-y-3",children:H.map((k)=>M.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4",children:[M.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[M.jsxDEV("div",{className:"flex-1 min-w-0",children:M.jsxDEV("h3",{className:"font-medium",children:k.title||k.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),M.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${R[k.status]||R.pending}`,children:k.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.description&&M.jsxDEV("p",{className:"text-sm text-[#888] mb-2 line-clamp-2",children:k.description},void 0,!1,void 0,this),M.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[#555]",children:[M.jsxDEV("span",{className:"flex items-center gap-1",children:[k.type==="recurring"?M.jsxDEV(V2,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):k.execute_at?M.jsxDEV(y2,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):M.jsxDEV(C2,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),k.type==="recurring"&&k.recurrence?D2(k.recurrence):k.type||"once"]},void 0,!0,void 0,this),k.priority!==void 0&&M.jsxDEV("span",{children:["Priority: ",k.priority]},void 0,!0,void 0,this),k.next_run&&M.jsxDEV("span",{className:"text-[#f97316]",children:rH(k.next_run)},void 0,!1,void 0,this),!k.next_run&&k.execute_at&&M.jsxDEV("span",{className:"text-[#f97316]",children:rH(k.execute_at)},void 0,!1,void 0,this),M.jsxDEV("span",{children:["Created: ",new Date(k.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),k.status==="completed"&&k.result&&M.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[M.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),M.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof k.result==="string"?k.result:JSON.stringify(k.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.status==="failed"&&k.error&&M.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[M.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),M.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:k.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},k.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Kb({agent:G}){let[H,_]=S0.useState([]),[O,L]=S0.useState(!0),[N,W]=S0.useState(null),[U,y]=S0.useState(!1),{confirm:C,ConfirmDialog:F}=cJ();S0.useEffect(()=>{_([]),W(null),L(!0)},[G.id]);let R=async()=>{if(G.status!=="running"){L(!1);return}try{let S=await fetch(`/api/agents/${G.id}/memories`);if(!S.ok)throw Error("Failed to fetch memories");let p=await S.json();_(p.memories||[]),y(p.enabled??!1),W(null)}catch(S){W(S instanceof Error?S.message:"Failed to load memories")}finally{L(!1)}};S0.useEffect(()=>{R()},[G.id,G.status]);let b=async(S)=>{try{await fetch(`/api/agents/${G.id}/memories/${S}`,{method:"DELETE"}),_((p)=>p.filter((j)=>j.id!==S))}catch{}},k=async()=>{if(!await C("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${G.id}/memories`,{method:"DELETE"}),_([])}catch{}};if(!G.features?.memory)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("div",{className:"text-center",children:[M.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),M.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(G.status!=="running")return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(O)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:M.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!U)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("div",{className:"text-center",children:[M.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),M.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 M.jsxDEV(M.Fragment,{children:[F,M.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[M.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[M.jsxDEV("h3",{className:"text-sm font-medium text-[#888]",children:["Stored Memories (",H.length,")"]},void 0,!0,void 0,this),H.length>0&&M.jsxDEV("button",{onClick:k,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),H.length===0?M.jsxDEV("div",{className:"text-center py-10 text-[#666]",children:[M.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),M.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):M.jsxDEV("div",{className:"space-y-3",children:H.map((S)=>M.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded p-3",children:[M.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[M.jsxDEV("p",{className:"text-sm text-[#e0e0e0] flex-1",children:S.content},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:()=>b(S.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),M.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[M.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${S.type==="preference"?"bg-purple-500/20 text-purple-400":S.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:S.type},void 0,!1,void 0,this),M.jsxDEV("span",{className:"text-xs text-[#666]",children:new Date(S.created_at).toLocaleString()},void 0,!1,void 0,this),S.importance&&M.jsxDEV("span",{className:"text-xs text-[#555]",children:["importance: ",S.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},S.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function _b({agent:G}){let[H,_]=S0.useState([]),[O,L]=S0.useState(!0),[N,W]=S0.useState(null),[U,y]=S0.useState(!1),[C,F]=S0.useState(null),[R,b]=S0.useState(!1),k=S0.default.useRef(null),{confirm:S,ConfirmDialog:p}=cJ();S0.useEffect(()=>{_([]),W(null),L(!0)},[G.id]);let j=async()=>{if(G.status!=="running"){L(!1);return}try{let E=await fetch(`/api/agents/${G.id}/files`);if(!E.ok)throw Error("Failed to fetch files");let c=await E.json();_(c.files||[]),W(null)}catch(E){W(E instanceof Error?E.message:"Failed to load files")}finally{L(!1)}};S0.useEffect(()=>{j()},[G.id,G.status]);let d=async(E)=>{if(!await S("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${G.id}/files/${E}`,{method:"DELETE"}),_((u)=>u.filter((J0)=>J0.id!==E))}catch{}},e=(E,c)=>{let u=document.createElement("a");u.href=`/api/agents/${G.id}/files/${E}/download`,u.download=c,u.click()},s=(E)=>{if(E<1024)return`${E} B`;if(E<1048576)return`${(E/1024).toFixed(1)} KB`;return`${(E/1048576).toFixed(1)} MB`},a=async(E)=>{y(!0),F(null);try{let c=new FormData;c.append("file",E);let u=await fetch(`/api/agents/${G.id}/files`,{method:"POST",body:c});if(!u.ok){let J0=await u.json();throw Error(J0.error||"Upload failed")}await j()}catch(c){F(c instanceof Error?c.message:"Upload failed")}finally{y(!1)}},_0=(E)=>{let c=E.target.files?.[0];if(c)a(c);E.target.value=""},l=(E)=>{E.preventDefault(),b(!1);let c=E.dataTransfer.files?.[0];if(c)a(c)},L0=(E)=>{E.preventDefault(),b(!0)},g=(E)=>{E.preventDefault(),b(!1)},I0=(E)=>{if(E.startsWith("image/"))return"\uD83D\uDDBC";if(E.includes("pdf"))return"\uD83D\uDCD5";if(E.includes("json"))return"{}";if(E.includes("javascript")||E.includes("typescript"))return"⚡";if(E.startsWith("text/"))return"\uD83D\uDCC4";if(E.startsWith("audio/"))return"\uD83C\uDFB5";if(E.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!G.features?.files)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("div",{className:"text-center",children:[M.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),M.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(G.status!=="running")return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(O)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:M.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return M.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:M.jsxDEV("p",{children:N},void 0,!1,void 0,this)},void 0,!1,void 0,this);return M.jsxDEV(M.Fragment,{children:[p,M.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${R?"bg-[#f97316]/5":""}`,onDrop:l,onDragOver:L0,onDragLeave:g,children:[M.jsxDEV("input",{ref:k,type:"file",className:"hidden",onChange:_0},void 0,!1,void 0,this),M.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[M.jsxDEV("h3",{className:"text-sm font-medium text-[#888]",children:["Agent Files (",H.length,")"]},void 0,!0,void 0,this),M.jsxDEV("div",{className:"flex items-center gap-2",children:[M.jsxDEV("button",{onClick:()=>k.current?.click(),disabled:U,className:"text-xs bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:U?"Uploading...":"Upload"},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:j,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),C&&M.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:C},void 0,!1,void 0,this),R&&M.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[#f97316] rounded-lg p-8 text-center",children:M.jsxDEV("p",{className:"text-[#f97316]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.length===0&&!R&&M.jsxDEV("div",{className:"text-center py-10 text-[#666]",children:[M.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),M.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),G.features?.memory&&M.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),H.length>0&&M.jsxDEV("div",{className:"space-y-2",children:H.map((E)=>M.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded p-3 flex items-center gap-3",children:[M.jsxDEV("div",{className:"w-10 h-10 bg-[#1a1a1a] rounded flex items-center justify-center text-[#666]",children:I0(E.mime_type)},void 0,!1,void 0,this),M.jsxDEV("div",{className:"flex-1 min-w-0",children:[M.jsxDEV("p",{className:"text-sm text-[#e0e0e0] truncate",children:E.filename},void 0,!1,void 0,this),M.jsxDEV("p",{className:"text-xs text-[#666]",children:[s(E.size_bytes)," • ",new Date(E.created_at).toLocaleString(),E.source&&E.source!=="upload"&&` • ${E.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("div",{className:"flex items-center gap-2",children:[M.jsxDEV("button",{onClick:()=>e(E.id,E.filename),className:"text-xs text-[#666] hover:text-[#f97316] px-2 py-1",children:"↓"},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:()=>d(E.id),className:"text-[#666] hover:text-red-400 text-sm",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},E.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Bb({agent:G,providers:H,onUpdateAgent:_,onDeleteAgent:O}){let{authFetch:L,isDev:N}=G4(),[W,U]=S0.useState({name:G.name,provider:G.provider,model:G.model,systemPrompt:G.systemPrompt,features:{...G.features,builtinTools:G.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...G.mcpServers||[]],skills:[...G.skills||[]]}),[y,C]=S0.useState(!1),[F,R]=S0.useState(!1),[b,k]=S0.useState(null),[S,p]=S0.useState([]),[j,d]=S0.useState([]),[e,s]=S0.useState(null),[a,_0]=S0.useState(!1);S0.useEffect(()=>{(async()=>{try{let D=await(await L("/api/mcp/servers")).json();p(D.servers||[])}catch(i){console.error("Failed to fetch MCP servers:",i)}})()},[L]),S0.useEffect(()=>{if(!N)return;(async()=>{try{let i=await L(`/api/agents/${G.id}/api-key`);if(i.ok){let D=await i.json();s(D.apiKey)}}catch(i){}})()},[G.id,N,L]),S0.useEffect(()=>{(async()=>{try{let D=await(await L("/api/skills")).json();d(D.skills||[])}catch(i){console.error("Failed to fetch skills:",i)}})()},[L]),S0.useEffect(()=>{U({name:G.name,provider:G.provider,model:G.model,systemPrompt:G.systemPrompt,features:{...G.features,builtinTools:G.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...G.mcpServers||[]],skills:[...G.skills||[]]}),k(null)},[G.id]);let l=H.find((V)=>V.id===W.provider),L0=H.filter((V)=>V.hasKey&&V.type==="llm").map((V)=>({value:V.id,label:V.name})),g=l?.models.map((V)=>({value:V.value,label:V.label,recommended:V.recommended}))||[],I0=(V)=>{let i=H.find((z0)=>z0.id===V),D=i?.models.find((z0)=>z0.recommended)?.value||i?.models[0]?.value||"";U((z0)=>({...z0,provider:V,model:D}))},E=(V)=>{if(V==="agents"){let i=(D)=>{return az(D.features,G.projectId).enabled};U((D)=>{if(typeof D.features.agents==="boolean"?D.features.agents:D.features.agents?.enabled??!1)return{...D,features:{...D.features,agents:!1}};else return{...D,features:{...D.features,agents:{enabled:!0,mode:"worker",group:G.projectId||void 0}}}})}else U((i)=>({...i,features:{...i.features,[V]:!i.features[V]}}))},c=(V)=>{U((i)=>{let D=az(i.features,G.projectId);return{...i,features:{...i.features,agents:{...D,enabled:!0,mode:V}}}})},u=()=>{let V=W.features.agents;if(typeof V==="boolean")return V;return V?.enabled??!1},J0=()=>{return az(W.features,G.projectId).mode||"worker"},M0=(V)=>{U((i)=>({...i,mcpServers:i.mcpServers.includes(V)?i.mcpServers.filter((D)=>D!==V):[...i.mcpServers,V]}))},t=(V)=>{U((i)=>({...i,skills:i.skills.includes(V)?i.skills.filter((D)=>D!==V):[...i.skills,V]}))},G0=async()=>{C(!0),k(null);let V=await _(W);if(C(!1),V.error)k({type:"error",text:V.error});else k({type:"success",text:"Settings saved"}),setTimeout(()=>k(null),2000)},H0=W.name!==G.name||W.provider!==G.provider||W.model!==G.model||W.systemPrompt!==G.systemPrompt||JSON.stringify(W.features)!==JSON.stringify(G.features)||JSON.stringify(W.mcpServers.sort())!==JSON.stringify((G.mcpServers||[]).sort())||JSON.stringify(W.skills.sort())!==JSON.stringify((G.skills||[]).sort());return M.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:M.jsxDEV("div",{className:"space-y-4",children:[M.jsxDEV(J8,{label:"Name",children:M.jsxDEV("input",{type:"text",value:W.name,onChange:(V)=>U((i)=>({...i,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),M.jsxDEV(J8,{label:"Provider",children:M.jsxDEV(Qz,{value:W.provider,options:L0,onChange:I0},void 0,!1,void 0,this)},void 0,!1,void 0,this),M.jsxDEV(J8,{label:"Model",children:M.jsxDEV(Qz,{value:W.model,options:g,onChange:(V)=>U((i)=>({...i,model:V}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),M.jsxDEV(J8,{label:"System Prompt",children:M.jsxDEV("textarea",{value:W.systemPrompt,onChange:(V)=>U((i)=>({...i,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),M.jsxDEV(J8,{label:"Features",children:M.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Qb.map(({key:V,label:i,description:D,icon:z0})=>{let P0=V==="agents"?u():!!W.features[V];return M.jsxDEV("button",{type:"button",onClick:()=>E(V),className:`flex items-center gap-3 p-3 rounded border text-left transition ${P0?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[M.jsxDEV(z0,{className:`w-5 h-5 flex-shrink-0 ${P0?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),M.jsxDEV("div",{className:"flex-1 min-w-0",children:[M.jsxDEV("div",{className:`text-sm font-medium ${P0?"text-[#f97316]":""}`,children:i},void 0,!1,void 0,this),M.jsxDEV("div",{className:"text-xs text-[#666]",children:D},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()&&M.jsxDEV(J8,{label:"Multi-Agent Mode",children:[M.jsxDEV("div",{className:"flex gap-2",children:[M.jsxDEV("button",{type:"button",onClick:()=>c("coordinator"),className:`flex-1 p-3 rounded border text-left transition ${J0()==="coordinator"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[M.jsxDEV("div",{className:`text-sm font-medium ${J0()==="coordinator"?"text-[#f97316]":""}`,children:"Coordinator"},void 0,!1,void 0,this),M.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),M.jsxDEV("button",{type:"button",onClick:()=>c("worker"),className:`flex-1 p-3 rounded border text-left transition ${J0()==="worker"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[M.jsxDEV("div",{className:`text-sm font-medium ${J0()==="worker"?"text-[#f97316]":""}`,children:"Worker"},void 0,!1,void 0,this),M.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),G.projectId&&M.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),W.provider==="anthropic"&&M.jsxDEV(J8,{label:"Agent Built-in Tools",children:[M.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[M.jsxDEV("button",{type:"button",onClick:()=>U((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 ${W.features.builtinTools?.webSearch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[M.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M.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),M.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("button",{type:"button",onClick:()=>U((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 ${W.features.builtinTools?.webFetch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[M.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:M.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),M.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),M.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),W.features.mcp&&M.jsxDEV(J8,{label:"MCP Servers",children:S.length===0?M.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):M.jsxDEV("div",{className:"space-y-2",children:[S.filter((V)=>V.project_id===null||V.project_id===G.projectId).map((V)=>{let i=V.type==="http"&&V.url,D=i||V.status==="running",z0=i?`${V.source||"remote"} • http`:`${V.type} • ${V.package||V.command||"custom"}${V.status==="running"&&V.port?` • :${V.port}`:""}`;return M.jsxDEV("button",{type:"button",onClick:()=>M0(V.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${W.mcpServers.includes(V.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[M.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${D?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),M.jsxDEV("div",{className:"flex-1 min-w-0",children:[M.jsxDEV("div",{className:"flex items-center gap-2",children:[M.jsxDEV("span",{className:`text-sm font-medium ${W.mcpServers.includes(V.id)?"text-[#f97316]":""}`,children:V.name},void 0,!1,void 0,this),V.project_id===null&&M.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),M.jsxDEV("div",{className:"text-xs text-[#666]",children:z0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${D?"bg-green-500/20 text-green-400":"bg-[#222] text-[#666]"}`,children:i?"remote":V.status},void 0,!1,void 0,this)]},V.id,!0,void 0,this)}),M.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),M.jsxDEV(J8,{label:"Skills",children:j.length===0?M.jsxDEV("p",{className:"text-sm text-[#666]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):M.jsxDEV("div",{className:"space-y-2",children:[j.filter((V)=>V.enabled&&(V.project_id===null||V.project_id===G.projectId)).map((V)=>M.jsxDEV("button",{type:"button",onClick:()=>t(V.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${W.skills.includes(V.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[M.jsxDEV("div",{className:"flex-1 min-w-0",children:[M.jsxDEV("div",{className:"flex items-center gap-2",children:[M.jsxDEV("span",{className:`text-sm font-medium ${W.skills.includes(V.id)?"text-[#f97316]":""}`,children:V.name},void 0,!1,void 0,this),V.project_id===null&&M.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),M.jsxDEV("div",{className:"text-xs text-[#666]",children:V.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.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)),M.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),b&&M.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${b.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:b.text},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:G0,disabled:!H0||y||!W.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:y?"Saving...":"Save Changes"},void 0,!1,void 0,this),G.status==="running"&&H0&&M.jsxDEV("p",{className:"text-xs text-[#666] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),N&&e&&M.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[M.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Developer Info"},void 0,!1,void 0,this),M.jsxDEV("div",{className:"space-y-2",children:[M.jsxDEV("div",{className:"flex items-center justify-between",children:[M.jsxDEV("span",{className:"text-xs text-[#666]",children:"Agent ID"},void 0,!1,void 0,this),M.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888]",children:G.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("div",{className:"flex items-center justify-between",children:[M.jsxDEV("span",{className:"text-xs text-[#666]",children:"Port"},void 0,!1,void 0,this),M.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888]",children:G.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M.jsxDEV("div",{className:"flex flex-col gap-1",children:[M.jsxDEV("div",{className:"flex items-center justify-between",children:[M.jsxDEV("span",{className:"text-xs text-[#666]",children:"API Key"},void 0,!1,void 0,this),M.jsxDEV("button",{onClick:()=>_0(!a),className:"text-xs text-[#f97316] hover:text-[#fb923c]",children:a?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a&&M.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888] break-all",children:e},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.status==="running"&&G.port&&M.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[M.jsxDEV("span",{className:"text-xs text-[#666]",children:"Test with curl"},void 0,!1,void 0,this),M.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1.5 rounded text-[#666] break-all",children:['curl -H "X-API-Key: ',a?e:"***",'" http://localhost:',G.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),M.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[M.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),F?M.jsxDEV("div",{className:"flex gap-2",children:[M.jsxDEV("button",{onClick:()=>R(!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),M.jsxDEV("button",{onClick:O,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):M.jsxDEV("button",{onClick:()=>R(!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 J8({label:G,children:H}){return M.jsxDEV("div",{children:[M.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:G},void 0,!1,void 0,this),H]},void 0,!0,void 0,this)}var S2=n(e0(),1);var w1=n(k1(),1);function aJ({agents:G,loading:H,selectedAgent:_,providers:O,onSelectAgent:L,onCloseAgent:N,onToggleAgent:W,onDeleteAgent:U,onUpdateAgent:y,onNewAgent:C,canCreateAgent:F=!0}){let{currentProjectId:R,currentProject:b}=u4(),k=S2.useMemo(()=>{if(R===null)return G;if(R==="unassigned")return G.filter((p)=>!p.projectId);return G.filter((p)=>p.projectId===R)},[G,R]),S=R===null?"Agents":R==="unassigned"?"Unassigned Agents":b?.name||"Agents";return w1.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[w1.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[w1.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[w1.jsxDEV("div",{className:"flex items-center gap-3",children:[b&&w1.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:b.color}},void 0,!1,void 0,this),w1.jsxDEV("h1",{className:"text-xl font-semibold",children:S},void 0,!1,void 0,this),R!==null&&w1.jsxDEV("span",{className:"text-sm text-[#666]",children:["(",k.length," agent",k.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C&&w1.jsxDEV("button",{onClick:C,disabled:!F,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),H?w1.jsxDEV(ez,{message:"Loading agents..."},void 0,!1,void 0,this):k.length===0?w1.jsxDEV(Ub,{onNewAgent:C,canCreateAgent:F,hasProjectFilter:R!==null},void 0,!1,void 0,this):w1.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:k.map((p)=>w1.jsxDEV(uJ,{agent:p,selected:_?.id===p.id,onSelect:()=>L(p),onToggle:(j)=>W(p,j),showProject:R===null},p.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&w1.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:N},void 0,!1,void 0,this),_&&w1.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:w1.jsxDEV(dJ,{agent:_,providers:O,onClose:N,onStartAgent:(p)=>W(_,p),onUpdateAgent:(p)=>y(_.id,p),onDeleteAgent:()=>U(_.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ub({onNewAgent:G,canCreateAgent:H,hasProjectFilter:_}){return w1.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[_?w1.jsxDEV(w1.Fragment,{children:[w1.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),w1.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):w1.jsxDEV(w1.Fragment,{children:[w1.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),w1.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),G&&w1.jsxDEV("button",{onClick:G,disabled:!H,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 y4=n(e0(),1);var O0=n(k1(),1);function oJ({agents:G,loading:H,runningCount:_,configuredProviders:O,onNavigate:L,onSelectAgent:N}){let{authFetch:W}=G4(),{currentProjectId:U}=u4(),{events:y,statusChangeCounter:C}=qY(),[F,R]=y4.useState(null),[b,k]=y4.useState([]),[S,p]=y4.useState([]),j=y4.useMemo(()=>{if(!U)return G;if(U==="unassigned")return G.filter((g)=>!g.projectId);return G.filter((g)=>g.projectId===U)},[G,U]),d=y4.useMemo(()=>{return j.filter((g)=>g.status==="running").length},[j]),e=y4.useMemo(()=>{return new Set(j.map((g)=>g.id))},[j]),s=y4.useCallback(async()=>{try{let[g,I0,E]=await Promise.all([W("/api/dashboard"),W("/api/tasks?status=all"),W("/api/telemetry/events?type=thread_activity&limit=20")]);if(g.ok){let c=await g.json();R(c)}if(I0.ok){let c=await I0.json();k((c.tasks||[]).slice(0,5))}if(E.ok){let c=await E.json();p(c.events||[])}}catch(g){console.error("Failed to fetch dashboard data:",g)}},[W]);y4.useEffect(()=>{s()},[s,C]);let a=y4.useMemo(()=>{if(!U)return b;return b.filter((g)=>e.has(g.agentId))},[b,U,e]),_0=y4.useMemo(()=>{if(!U)return F?.tasks||{total:0,pending:0,running:0,completed:0};let g=a.length,I0=a.filter((u)=>u.status==="pending").length,E=a.filter((u)=>u.status==="running").length,c=a.filter((u)=>u.status==="completed").length;return{total:g,pending:I0,running:E,completed:c}},[F,U,a]),l=y4.useMemo(()=>{let g=y.filter((u)=>u.type==="thread_activity"),I0=new Set(g.map((u)=>u.id)),E=[...g];for(let u of S)if(!I0.has(u.id))E.push(u),I0.add(u.id);let c=E;if(U)c=E.filter((u)=>e.has(u.agent_id));return c.sort((u,J0)=>new Date(J0.timestamp).getTime()-new Date(u.timestamp).getTime()),c.slice(0,8)},[y,S,U,e]),L0=y4.useMemo(()=>{let g=new Map;for(let I0 of G)g.set(I0.id,I0.name);return g},[G]);return O0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[O0.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[O0.jsxDEV(iJ,{label:"Agents",value:j.length,subValue:`${d} running`},void 0,!1,void 0,this),O0.jsxDEV(iJ,{label:"Tasks",value:_0.total,subValue:`${_0.pending} pending`},void 0,!1,void 0,this),O0.jsxDEV(iJ,{label:"Completed",value:_0.completed,color:"text-green-400"},void 0,!1,void 0,this),O0.jsxDEV(iJ,{label:"Providers",value:O.length,color:"text-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[O0.jsxDEV(nH,{title:"Agents",actionLabel:"View All",onAction:()=>L("agents"),children:H?O0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):j.length===0?O0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"No agents yet"},void 0,!1,void 0,this):O0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:j.slice(0,5).map((g)=>O0.jsxDEV(Ob,{agent:g,onSelect:()=>N(g),showProject:!U},g.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),O0.jsxDEV(nH,{title:"Activity",actionLabel:"Telemetry",onAction:()=>L("telemetry"),children:l.length===0?O0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[O0.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),O0.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):O0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:l.map((g)=>O0.jsxDEV(Wb,{activity:g.data?.activity||"Working...",agentName:L0.get(g.agent_id)||g.agent_id,timestamp:g.timestamp},g.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),O0.jsxDEV(nH,{title:"Recent Tasks",actionLabel:"View All",onAction:()=>L("tasks"),children:a.length===0?O0.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[O0.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),O0.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):O0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:a.map((g)=>O0.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[O0.jsxDEV("div",{className:"flex-1 min-w-0",children:[O0.jsxDEV("p",{className:"font-medium truncate",children:g.title},void 0,!1,void 0,this),O0.jsxDEV("p",{className:"text-sm text-[#666]",children:[g.agentName,g.recurrence&&O0.jsxDEV("span",{className:"ml-1 text-[#555]",children:["· ",Fb(g.recurrence)]},void 0,!0,void 0,this),g.next_run&&O0.jsxDEV("span",{className:"ml-1 text-[#f97316]",children:["· ",E2(g.next_run)]},void 0,!0,void 0,this),!g.next_run&&g.execute_at&&O0.jsxDEV("span",{className:"ml-1 text-[#f97316]",children:["· ",E2(g.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV(Rb,{status:g.status},void 0,!1,void 0,this)]},`${g.agentId}-${g.id}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function iJ({label:G,value:H,subValue:_,color:O}){return O0.jsxDEV("div",{className:"bg-[#111] rounded p-4 border border-[#1a1a1a]",children:[O0.jsxDEV("p",{className:"text-sm text-[#666] mb-1",children:G},void 0,!1,void 0,this),O0.jsxDEV("p",{className:`text-2xl font-semibold ${O||""}`,children:H},void 0,!1,void 0,this),_&&O0.jsxDEV("p",{className:"text-xs text-[#555] mt-1",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nH({title:G,actionLabel:H,onAction:_,children:O}){return O0.jsxDEV("div",{className:"bg-[#111] rounded border border-[#1a1a1a] overflow-hidden",children:[O0.jsxDEV("div",{className:"px-4 py-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[O0.jsxDEV("h3",{className:"font-semibold",children:G},void 0,!1,void 0,this),O0.jsxDEV("button",{onClick:_,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O]},void 0,!0,void 0,this)}function Ob({agent:G,onSelect:H,showProject:_}){let{isActive:O}=gJ(G.id),{projects:L}=u4(),N=G.projectId?L.find((W)=>W.id===G.projectId):null;return O0.jsxDEV("div",{onClick:H,className:"px-4 py-3 hover:bg-[#1a1a1a] cursor-pointer flex items-center justify-between",children:[O0.jsxDEV("div",{className:"flex-1 min-w-0",children:[O0.jsxDEV("p",{className:"font-medium",children:G.name},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[#666]",children:[O0.jsxDEV("span",{children:G.provider},void 0,!1,void 0,this),_&&N&&O0.jsxDEV(O0.Fragment,{children:[O0.jsxDEV("span",{className:"text-[#444]",children:"·"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"flex items-center gap-1",children:[O0.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:N.color}},void 0,!1,void 0,this),N.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),O0.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${G.status==="running"?O?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Lb(G){let H=Math.floor((Date.now()-new Date(G).getTime())/1000);if(H<5)return"just now";if(H<60)return`${H}s ago`;let _=Math.floor(H/60);if(_<60)return`${_}m ago`;let O=Math.floor(_/60);if(O<24)return`${O}h ago`;return`${Math.floor(O/24)}d ago`}function Wb({activity:G,agentName:H,timestamp:_}){return O0.jsxDEV("div",{className:"px-4 py-3",children:[O0.jsxDEV("p",{className:"text-sm truncate",children:G},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[#555] mt-1",children:[O0.jsxDEV("span",{className:"text-[#666]",children:H},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"text-[#444]",children:"·"},void 0,!1,void 0,this),O0.jsxDEV("span",{children:Lb(_)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Rb({status:G}){let H={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 O0.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${H[G]||H.pending}`,children:G},void 0,!1,void 0,this)}var f2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function Fb(G){try{let H=G.trim().split(/\s+/);if(H.length!==5)return G;let[_,O,L,N,W]=H;if(_.startsWith("*/")&&O==="*"&&L==="*"&&N==="*"&&W==="*"){let y=parseInt(_.slice(2));return y===1?"Every min":`Every ${y}min`}if(_!=="*"&&!_.includes("/")&&O==="*"&&L==="*"&&N==="*"&&W==="*")return"Hourly";if(O.startsWith("*/")&&L==="*"&&N==="*"&&W==="*"){let y=parseInt(O.slice(2));return y===1?"Hourly":`Every ${y}h`}let U=(y,C)=>{let F=parseInt(y),R=parseInt(C);if(isNaN(F))return"";let b=F>=12?"PM":"AM";return`${F===0?12:F>12?F-12:F}:${R.toString().padStart(2,"0")} ${b}`};if(O!=="*"&&!O.includes("/")&&L==="*"&&N==="*"){let y=U(O,_);if(W==="*")return`Daily ${y}`;let C=W.split(",").map((F)=>f2[parseInt(F.trim())]||F);if(C.length===1)return`${C[0]} ${y}`;return`${C.join(" & ")} ${y}`}return G}catch{return G}}function E2(G){let H=new Date(G),_=new Date,O=H.getTime()-_.getTime(),L=O>0,N=Math.abs(O),W=Math.floor(N/60000),U=Math.floor(N/3600000),y=H.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),C=H.toDateString()===_.toDateString(),F=new Date(_);F.setDate(F.getDate()+1);let R=H.toDateString()===F.toDateString();if(C){if(W<1)return"now";if(W<60)return L?`in ${W}m`:`${W}m ago`;return L?`in ${U}h`:`${U}h ago`}if(R)return`Tomorrow ${y}`;return`${f2[H.getDay()]} ${y}`}var Y1=n(k1(),1),wb=V1.lazy(()=>import("./SettingsPage.472c15ep.js").then((G)=>({default:G.SettingsPage}))),Pb=V1.lazy(()=>import("./ActivityPage.9a1qg4bp.js").then((G)=>({default:G.ActivityPage}))),Ab=V1.lazy(()=>import("./TasksPage.7g0b8xwc.js").then((G)=>({default:G.TasksPage}))),vb=V1.lazy(()=>import("./McpPage.kf2g327t.js").then((G)=>({default:G.McpPage}))),Tb=V1.lazy(()=>import("./SkillsPage.xdxnh68a.js").then((G)=>({default:G.SkillsPage}))),Ib=V1.lazy(()=>import("./TestsPage.zhc6rqjm.js").then((G)=>({default:G.TestsPage}))),kb=V1.lazy(()=>import("./TelemetryPage.pr7rbz4r.js").then((G)=>({default:G.TelemetryPage}))),Vb=V1.lazy(()=>import("./ConnectionsPage.7zqba1r0.js").then((G)=>({default:G.ConnectionsPage}))),yb=V1.lazy(()=>import("./ApiDocsPage.rfpf7ws1.js").then((G)=>({default:G.ApiDocsPage})));function Cb(){let{isAuthenticated:G,isLoading:H,hasUsers:_,accessToken:O,checkAuth:L}=G4(),{currentProjectId:N,refreshProjects:W}=u4(),U=kJ(),y=h2(),{isComplete:C,setIsComplete:F}=DH(),R=()=>{return O?{Authorization:`Bearer ${O}`}:{}},b=G&&C===!0,{agents:k,loading:S,runningCount:p,fetchAgents:j,createAgent:d,updateAgent:e,deleteAgent:s,toggleAgent:a}=yH(b),{providers:_0,configuredProviders:l,fetchProviders:L0}=CH(b),g=l.filter((o)=>o.type==="llm"),I0=V1.useMemo(()=>{if(N===null)return k.length;if(N==="unassigned")return k.filter((o)=>!o.projectId).length;return k.filter((o)=>o.projectId===N).length},[k,N]),[E,c]=V1.useState(!1),[u,J0]=V1.useState(null),[M0,t]=V1.useState("dashboard"),[G0,H0]=V1.useState(null),[V,i]=V1.useState(0),[D,z0]=V1.useState(!1);V1.useEffect(()=>{if(!b)return;(async()=>{try{let a1="/api/tasks?status=pending";if(N!==null)a1+=`&project_id=${encodeURIComponent(N)}`;let g1=await fetch(a1,{headers:R()});if(g1.ok){let K4=await g1.json();i(K4.count??(K4.tasks||[]).length)}}catch{}})()},[b,O,N,k,U,y]);let[P0,D0]=V1.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...VH},mcpServers:[],skills:[]});V1.useEffect(()=>{if(g.length>0&&!P0.provider){let o=g[0],a1=o.models.find((g1)=>g1.recommended)?.value||o.models[0]?.value||"";D0((g1)=>({...g1,provider:o.id,model:a1}))}},[g,P0.provider]),V1.useEffect(()=>{if(u){let o=k.find((a1)=>a1.id===u.id);if(o)J0(o);else J0(null)}},[k,u]);let r0=(o)=>{let a1=_0.find((K4)=>K4.id===o),g1=a1?.models.find((K4)=>K4.recommended)?.value||a1?.models[0]?.value||"";D0((K4)=>({...K4,provider:o,model:g1}))},v4=async()=>{if(!P0.name)return;await d(P0),await W();let o=g[0],a1=o?.models.find((g1)=>g1.recommended)?.value||o?.models[0]?.value||"";D0({name:"",model:a1,provider:o?.id||"",systemPrompt:"You are a helpful assistant.",features:{...VH},mcpServers:[],skills:[]}),c(!1)},t0=async(o,a1)=>{a1?.stopPropagation(),H0(null);let g1=await a(o);if(g1.error)H0(g1.error)},T4=async(o,a1)=>{if(a1?.stopPropagation(),u?.id===o)J0(null);await s(o),await W()},C4=(o)=>{J0(o),H0(null),t("agents")},r1=(o)=>{t(o),J0(null)},G8=()=>{F(!0),L0(),L()};if(H||_===null)return Y1.jsxDEV(ez,{fullScreen:!0},void 0,!1,void 0,this);if(!_)return Y1.jsxDEV(_Y,{onComplete:G8,needsAccount:!0},void 0,!1,void 0,this);if(!G)return Y1.jsxDEV(pJ,{},void 0,!1,void 0,this);if(C===null)return Y1.jsxDEV(ez,{fullScreen:!0},void 0,!1,void 0,this);if(!C)return Y1.jsxDEV(_Y,{onComplete:G8,needsAccount:!1},void 0,!1,void 0,this);return Y1.jsxDEV("div",{className:"h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col overflow-hidden",children:[Y1.jsxDEV(EJ,{onMenuClick:()=>z0(!0),agents:k},void 0,!1,void 0,this),G0&&Y1.jsxDEV(hJ,{message:G0,onDismiss:()=>H0(null)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Y1.jsxDEV(mJ,{route:M0,agentCount:I0,taskCount:V,onNavigate:r1,isOpen:D,onClose:()=>z0(!1)},void 0,!1,void 0,this),Y1.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:Y1.jsxDEV(V1.Suspense,{fallback:Y1.jsxDEV(ez,{},void 0,!1,void 0,this),children:[M0==="settings"&&Y1.jsxDEV(wb,{},void 0,!1,void 0,this),M0==="activity"&&Y1.jsxDEV(Pb,{agents:k,loading:S},void 0,!1,void 0,this),M0==="agents"&&Y1.jsxDEV(aJ,{agents:k,loading:S,selectedAgent:u,providers:_0,onSelectAgent:C4,onCloseAgent:()=>J0(null),onToggleAgent:t0,onDeleteAgent:T4,onUpdateAgent:e,onNewAgent:()=>c(!0),canCreateAgent:g.length>0},void 0,!1,void 0,this),M0==="dashboard"&&Y1.jsxDEV(oJ,{agents:k,loading:S,runningCount:p,configuredProviders:l,onNavigate:r1,onSelectAgent:C4},void 0,!1,void 0,this),M0==="tasks"&&Y1.jsxDEV(Ab,{},void 0,!1,void 0,this),M0==="connections"&&Y1.jsxDEV(Vb,{},void 0,!1,void 0,this),M0==="mcp"&&Y1.jsxDEV(vb,{},void 0,!1,void 0,this),M0==="skills"&&Y1.jsxDEV(Tb,{},void 0,!1,void 0,this),M0==="tests"&&Y1.jsxDEV(Ib,{},void 0,!1,void 0,this),M0==="telemetry"&&Y1.jsxDEV(kb,{},void 0,!1,void 0,this),M0==="api"&&Y1.jsxDEV(yb,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E&&Y1.jsxDEV(lJ,{form:P0,providers:_0,configuredProviders:l,onFormChange:D0,onProviderChange:r0,onCreate:v4,onClose:()=>c(!1),onGoToSettings:()=>{c(!1),t("settings")}},void 0,!1,void 0,this),Y1.jsxDEV(W2,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Db(){return Y1.jsxDEV(p2,{children:Y1.jsxDEV(j2,{children:Y1.jsxDEV(O2,{children:Y1.jsxDEV(m2,{children:Y1.jsxDEV(Cb,{},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 Sb=x2.createRoot(document.getElementById("root"));Sb.render(Y1.jsxDEV(Db,{},void 0,!1,void 0,this));
|
|
266
|
+
|
|
267
|
+
//# debugId=8DD5C28A496656DB64756E2164756E21
|