apteva 0.2.3 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/App.0mzj9cz9.js +213 -0
  2. package/dist/index.html +1 -1
  3. package/dist/styles.css +1 -1
  4. package/package.json +6 -6
  5. package/src/binary.ts +271 -1
  6. package/src/crypto.ts +53 -0
  7. package/src/db.ts +492 -3
  8. package/src/mcp-client.ts +599 -0
  9. package/src/providers.ts +31 -0
  10. package/src/routes/api.ts +832 -64
  11. package/src/server.ts +169 -5
  12. package/src/web/App.tsx +44 -2
  13. package/src/web/components/agents/AgentCard.tsx +53 -9
  14. package/src/web/components/agents/AgentPanel.tsx +381 -0
  15. package/src/web/components/agents/AgentsView.tsx +27 -10
  16. package/src/web/components/agents/CreateAgentModal.tsx +7 -7
  17. package/src/web/components/agents/index.ts +1 -1
  18. package/src/web/components/common/Icons.tsx +8 -0
  19. package/src/web/components/common/Modal.tsx +2 -2
  20. package/src/web/components/common/Select.tsx +1 -1
  21. package/src/web/components/common/index.ts +1 -0
  22. package/src/web/components/dashboard/Dashboard.tsx +74 -25
  23. package/src/web/components/index.ts +5 -2
  24. package/src/web/components/layout/Sidebar.tsx +22 -2
  25. package/src/web/components/mcp/McpPage.tsx +1144 -0
  26. package/src/web/components/mcp/index.ts +1 -0
  27. package/src/web/components/onboarding/OnboardingWizard.tsx +5 -1
  28. package/src/web/components/settings/SettingsPage.tsx +312 -82
  29. package/src/web/components/tasks/TasksPage.tsx +129 -0
  30. package/src/web/components/tasks/index.ts +1 -0
  31. package/src/web/components/telemetry/TelemetryPage.tsx +359 -0
  32. package/src/web/context/TelemetryContext.tsx +202 -0
  33. package/src/web/context/index.ts +2 -0
  34. package/src/web/hooks/useAgents.ts +23 -0
  35. package/src/web/styles.css +18 -0
  36. package/src/web/types.ts +75 -1
  37. package/dist/App.wfhmfhx7.js +0 -213
  38. package/src/web/components/agents/ChatPanel.tsx +0 -63
@@ -0,0 +1,213 @@
1
+ var gR=Object.create;var{getPrototypeOf:yR,defineProperty:Vq,getOwnPropertyNames:dR}=Object;var cR=Object.prototype.hasOwnProperty;var $0=($,U,B)=>{B=$!=null?gR(yR($)):{};let L=U||!$||!$.__esModule?Vq(B,"default",{value:$,enumerable:!0}):B;for(let G of dR($))if(!cR.call(L,G))Vq(L,G,{get:()=>$[G],enumerable:!0});return L};var ab=($,U)=>()=>(U||$((U={exports:{}}).exports,U),U.exports);var E1=ab((aR,fZ)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $="18.3.1",U=Symbol.for("react.element"),B=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),V=Symbol.iterator,o="@@iterator";function D(q){if(q===null||typeof q!=="object")return null;var w=V&&q[V]||q[o];if(typeof w==="function")return w;return null}var E={current:null},N0={transition:null},p={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Z0={current:null},s={},l=null;function n(q){l=q}s.setExtraStackFrame=function(q){l=q},s.getCurrentStack=null,s.getStackAddendum=function(){var q="";if(l)q+=l;var w=s.getCurrentStack;if(w)q+=w()||"";return q};var L0=!1,c=!1,Y0=!1,R0=!1,b0=!1,v0={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:N0,ReactCurrentOwner:Z0};v0.ReactDebugCurrentFrame=s,v0.ReactCurrentActQueue=p;function d0(q){{for(var w=arguments.length,u=Array(w>1?w-1:0),i=1;i<w;i++)u[i-1]=arguments[i];V0("warn",q,u)}}function h0(q){{for(var w=arguments.length,u=Array(w>1?w-1:0),i=1;i<w;i++)u[i-1]=arguments[i];V0("error",q,u)}}function V0(q,w,u){{var i=v0.ReactDebugCurrentFrame,G0=i.getStackAddendum();if(G0!=="")w+="%s",u=u.concat([G0]);var x0=u.map(function(f0){return String(f0)});x0.unshift("Warning: "+w),Function.prototype.apply.call(console[q],console,x0)}}var P1={};function $1(q,w){{var u=q.constructor,i=u&&(u.displayName||u.name)||"ReactClass",G0=i+"."+w;if(P1[G0])return;h0("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",w,i),P1[G0]=!0}}var v1={isMounted:function(q){return!1},enqueueForceUpdate:function(q,w,u){$1(q,"forceUpdate")},enqueueReplaceState:function(q,w,u,i){$1(q,"replaceState")},enqueueSetState:function(q,w,u,i){$1(q,"setState")}},i0=Object.assign,H1={};Object.freeze(H1);function C1(q,w,u){this.props=q,this.context=w,this.refs=H1,this.updater=u||v1}C1.prototype.isReactComponent={},C1.prototype.setState=function(q,w){if(typeof q!=="object"&&typeof q!=="function"&&q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,w,"setState")},C1.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};{var W4={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},H4=function(q,w){Object.defineProperty(C1.prototype,q,{get:function(){d0("%s(...) is deprecated in plain JavaScript React classes. %s",w[0],w[1]);return}})};for(var Q4 in W4)if(W4.hasOwnProperty(Q4))H4(Q4,W4[Q4])}function _4(){}_4.prototype=C1.prototype;function a1(q,w,u){this.props=q,this.context=w,this.refs=H1,this.updater=u||v1}var i1=a1.prototype=new _4;i1.constructor=a1,i0(i1,C1.prototype),i1.isPureReactComponent=!0;function Y4(){var q={current:null};return Object.seal(q),q}var E4=Array.isArray;function X4(q){return E4(q)}function u4(q){{var w=typeof Symbol==="function"&&Symbol.toStringTag,u=w&&q[Symbol.toStringTag]||q.constructor.name||"Object";return u}}function m4(q){try{return x1(q),!1}catch(w){return!0}}function x1(q){return""+q}function s0(q){if(m4(q))return h0("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",u4(q)),x1(q)}function h4(q,w,u){var i=q.displayName;if(i)return i;var G0=w.displayName||w.name||"";return G0!==""?u+"("+G0+")":u}function I4(q){return q.displayName||"Context"}function G4(q){if(q==null)return null;if(typeof q.tag==="number")h0("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof q==="function")return q.displayName||q.name||null;if(typeof q==="string")return q;switch(q){case L:return"Fragment";case B:return"Portal";case v:return"Profiler";case G:return"StrictMode";case A:return"Suspense";case _:return"SuspenseList"}if(typeof q==="object")switch(q.$$typeof){case P:var w=q;return I4(w)+".Consumer";case F:var u=q;return I4(u._context)+".Provider";case T:return h4(q,q.render,"ForwardRef");case k:var i=q.displayName||null;if(i!==null)return i;return G4(q.type)||"Memo";case R:{var G0=q,x0=G0._payload,f0=G0._init;try{return G4(f0(x0))}catch(p0){return null}}}return null}var O4=Object.prototype.hasOwnProperty,L5={key:!0,ref:!0,__self:!0,__source:!0},r1,X6,n1;n1={};function Z6(q){if(O4.call(q,"ref")){var w=Object.getOwnPropertyDescriptor(q,"ref").get;if(w&&w.isReactWarning)return!1}return q.ref!==void 0}function Z4(q){if(O4.call(q,"key")){var w=Object.getOwnPropertyDescriptor(q,"key").get;if(w&&w.isReactWarning)return!1}return q.key!==void 0}function K4(q,w){var u=function(){if(!r1)r1=!0,h0("%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://reactjs.org/link/special-props)",w)};u.isReactWarning=!0,Object.defineProperty(q,"key",{get:u,configurable:!0})}function p4(q,w){var u=function(){if(!X6)X6=!0,h0("%s: `ref` 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://reactjs.org/link/special-props)",w)};u.isReactWarning=!0,Object.defineProperty(q,"ref",{get:u,configurable:!0})}function _6(q){if(typeof q.ref==="string"&&Z0.current&&q.__self&&Z0.current.stateNode!==q.__self){var w=G4(Z0.current.type);if(!n1[w])h0('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w,q.ref),n1[w]=!0}}var F4=function(q,w,u,i,G0,x0,f0){var p0={$$typeof:U,type:q,key:w,ref:u,props:f0,_owner:x0};if(p0._store={},Object.defineProperty(p0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G0}),Object.freeze)Object.freeze(p0.props),Object.freeze(p0);return p0};function C4(q,w,u){var i,G0={},x0=null,f0=null,p0=null,B1=null;if(w!=null){if(Z6(w))f0=w.ref,_6(w);if(Z4(w))s0(w.key),x0=""+w.key;p0=w.__self===void 0?null:w.__self,B1=w.__source===void 0?null:w.__source;for(i in w)if(O4.call(w,i)&&!L5.hasOwnProperty(i))G0[i]=w[i]}var m1=arguments.length-2;if(m1===1)G0.children=u;else if(m1>1){var t1=Array(m1);for(var s1=0;s1<m1;s1++)t1[s1]=arguments[s1+2];if(Object.freeze)Object.freeze(t1);G0.children=t1}if(q&&q.defaultProps){var U4=q.defaultProps;for(i in U4)if(G0[i]===void 0)G0[i]=U4[i]}if(x0||f0){var R4=typeof q==="function"?q.displayName||q.name||"Unknown":q;if(x0)K4(G0,R4);if(f0)p4(G0,R4)}return F4(q,x0,f0,p0,B1,Z0.current,G0)}function U0(q,w){var u=F4(q.type,w,q.ref,q._self,q._source,q._owner,q.props);return u}function u0(q,w,u){if(q===null||q===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var i,G0=i0({},q.props),x0=q.key,f0=q.ref,p0=q._self,B1=q._source,m1=q._owner;if(w!=null){if(Z6(w))f0=w.ref,m1=Z0.current;if(Z4(w))s0(w.key),x0=""+w.key;var t1;if(q.type&&q.type.defaultProps)t1=q.type.defaultProps;for(i in w)if(O4.call(w,i)&&!L5.hasOwnProperty(i))if(w[i]===void 0&&t1!==void 0)G0[i]=t1[i];else G0[i]=w[i]}var s1=arguments.length-2;if(s1===1)G0.children=u;else if(s1>1){var U4=Array(s1);for(var R4=0;R4<s1;R4++)U4[R4]=arguments[R4+2];G0.children=U4}return F4(q.type,x0,f0,p0,B1,m1,G0)}function c0(q){return typeof q==="object"&&q!==null&&q.$$typeof===U}var N1=".",S1=":";function L4(q){var w=/[=:]/g,u={"=":"=0",":":"=2"},i=q.replace(w,function(G0){return u[G0]});return"$"+i}var l1=!1,f4=/\/+/g;function z1(q){return q.replace(f4,"$&/")}function e0(q,w){if(typeof q==="object"&&q!==null&&q.key!=null)return s0(q.key),L4(""+q.key);return w.toString(36)}function A6(q,w,u,i,G0){var x0=typeof q;if(x0==="undefined"||x0==="boolean")q=null;var f0=!1;if(q===null)f0=!0;else switch(x0){case"string":case"number":f0=!0;break;case"object":switch(q.$$typeof){case U:case B:f0=!0}}if(f0){var p0=q,B1=G0(p0),m1=i===""?N1+e0(p0,0):i;if(X4(B1)){var t1="";if(m1!=null)t1=z1(m1)+"/";A6(B1,w,t1,"",function(eZ){return eZ})}else if(B1!=null){if(c0(B1)){if(B1.key&&(!p0||p0.key!==B1.key))s0(B1.key);B1=U0(B1,u+(B1.key&&(!p0||p0.key!==B1.key)?z1(""+B1.key)+"/":"")+m1)}w.push(B1)}return 1}var s1,U4,R4=0,w1=i===""?N1:i+S1;if(X4(q))for(var Ub=0;Ub<q.length;Ub++)s1=q[Ub],U4=w1+e0(s1,Ub),R4+=A6(s1,w,u,U4,G0);else{var X8=D(q);if(typeof X8==="function"){var w3=q;if(X8===w3.entries){if(!l1)d0("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");l1=!0}var sZ=X8.call(w3),Z7,A3=0;while(!(Z7=sZ.next()).done)s1=Z7.value,U4=w1+e0(s1,A3++),R4+=A6(s1,w,u,U4,G0)}else if(x0==="object"){var I3=String(q);throw Error("Objects are not valid as a React child (found: "+(I3==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":I3)+"). If you meant to render a collection of children, use an array instead.")}}return R4}function r4(q,w,u){if(q==null)return q;var i=[],G0=0;return A6(q,i,"","",function(x0){return w.call(u,x0,G0++)}),i}function I6(q){var w=0;return r4(q,function(){w++}),w}function m5(q,w,u){r4(q,function(){w.apply(this,arguments)},u)}function N5(q){return r4(q,function(w){return w})||[]}function g5(q){if(!c0(q))throw Error("React.Children.only expected to receive a single React element child.");return q}function X5(q){var w={$$typeof:P,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};w.Provider={$$typeof:F,_context:w};var u=!1,i=!1,G0=!1;{var x0={$$typeof:P,_context:w};Object.defineProperties(x0,{Provider:{get:function(){if(!i)i=!0,h0("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");return w.Provider},set:function(f0){w.Provider=f0}},_currentValue:{get:function(){return w._currentValue},set:function(f0){w._currentValue=f0}},_currentValue2:{get:function(){return w._currentValue2},set:function(f0){w._currentValue2=f0}},_threadCount:{get:function(){return w._threadCount},set:function(f0){w._threadCount=f0}},Consumer:{get:function(){if(!u)u=!0,h0("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");return w.Consumer}},displayName:{get:function(){return w.displayName},set:function(f0){if(!G0)d0("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",f0),G0=!0}}}),w.Consumer=x0}return w._currentRenderer=null,w._currentRenderer2=null,w}var P6=-1,W5=0,U1=1,V1=2;function j1(q){if(q._status===P6){var w=q._result,u=w();if(u.then(function(x0){if(q._status===W5||q._status===P6){var f0=q;f0._status=U1,f0._result=x0}},function(x0){if(q._status===W5||q._status===P6){var f0=q;f0._status=V1,f0._result=x0}}),q._status===P6){var i=q;i._status=W5,i._result=u}}if(q._status===U1){var G0=q._result;if(G0===void 0)h0(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,G0);if(!("default"in G0))h0(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,G0);return G0.default}else throw q._result}function R1(q){var w={_status:P6,_result:q},u={$$typeof:R,_payload:w,_init:j1};{var i,G0;Object.defineProperties(u,{defaultProps:{configurable:!0,get:function(){return i},set:function(x0){h0("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),i=x0,Object.defineProperty(u,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return G0},set:function(x0){h0("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G0=x0,Object.defineProperty(u,"propTypes",{enumerable:!0})}}})}return u}function M(q){{if(q!=null&&q.$$typeof===k)h0("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof q!=="function")h0("forwardRef requires a render function but was given %s.",q===null?"null":typeof q);else if(q.length!==0&&q.length!==2)h0("forwardRef render functions accept exactly two parameters: props and ref. %s",q.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(q!=null){if(q.defaultProps!=null||q.propTypes!=null)h0("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var w={$$typeof:T,render:q};{var u;Object.defineProperty(w,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(i){if(u=i,!q.name&&!q.displayName)q.displayName=i}})}return w}var x=Symbol.for("react.module.reference");function Q0(q){if(typeof q==="string"||typeof q==="function")return!0;if(q===L||q===v||b0||q===G||q===A||q===_||R0||q===d||L0||c||Y0)return!0;if(typeof q==="object"&&q!==null){if(q.$$typeof===R||q.$$typeof===k||q.$$typeof===F||q.$$typeof===P||q.$$typeof===T||q.$$typeof===x||q.getModuleId!==void 0)return!0}return!1}function W(q,w){if(!Q0(q))h0("memo: The first argument must be a component. Instead received: %s",q===null?"null":typeof q);var u={$$typeof:k,type:q,compare:w===void 0?null:w};{var i;Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(G0){if(i=G0,!q.name&&!q.displayName)q.displayName=G0}})}return u}function h(){var q=E.current;if(q===null)h0(`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:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return q}function t(q){var w=h();if(q._context!==void 0){var u=q._context;if(u.Consumer===q)h0("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");else if(u.Provider===q)h0("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return w.useContext(q)}function H0(q){var w=h();return w.useState(q)}function B0(q,w,u){var i=h();return i.useReducer(q,w,u)}function C0(q){var w=h();return w.useRef(q)}function w0(q,w){var u=h();return u.useEffect(q,w)}function e(q,w){var u=h();return u.useInsertionEffect(q,w)}function K0(q,w){var u=h();return u.useLayoutEffect(q,w)}function D0(q,w){var u=h();return u.useCallback(q,w)}function q1(q,w){var u=h();return u.useMemo(q,w)}function D1(q,w,u){var i=h();return i.useImperativeHandle(q,w,u)}function f6(q,w){{var u=h();return u.useDebugValue(q,w)}}function x6(){var q=h();return q.useTransition()}function J4(q){var w=h();return w.useDeferredValue(q)}function Z1(){var q=h();return q.useId()}function Q7(q,w,u){var i=h();return i.useSyncExternalStore(q,w,u)}var y5=0,B3,O3,L3,N3,W3,_3,P3;function UQ(){}UQ.__reactDisabledLog=!0;function rZ(){{if(y5===0){B3=console.log,O3=console.info,L3=console.warn,N3=console.error,W3=console.group,_3=console.groupCollapsed,P3=console.groupEnd;var q={configurable:!0,enumerable:!0,value:UQ,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}y5++}}function v3(){{if(y5--,y5===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:i0({},q,{value:B3}),info:i0({},q,{value:O3}),warn:i0({},q,{value:L3}),error:i0({},q,{value:N3}),group:i0({},q,{value:W3}),groupCollapsed:i0({},q,{value:_3}),groupEnd:i0({},q,{value:P3})})}if(y5<0)h0("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Yb=v0.ReactCurrentDispatcher,Z5;function h7(q,w,u){{if(Z5===void 0)try{throw Error()}catch(G0){var i=G0.stack.trim().match(/\n( *(at )?)/);Z5=i&&i[1]||""}return`
14
+ `+Z5+q}}var C7=!1,sb;{var F3=typeof WeakMap==="function"?WeakMap:Map;sb=new F3}function qQ(q,w){if(!q||C7)return"";{var u=sb.get(q);if(u!==void 0)return u}var i;C7=!0;var G0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x0;x0=Yb.current,Yb.current=null,rZ();try{if(w){var f0=function(){throw Error()};if(Object.defineProperty(f0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(f0,[])}catch(w1){i=w1}Reflect.construct(q,[],f0)}else{try{f0.call()}catch(w1){i=w1}q.call(f0.prototype)}}else{try{throw Error()}catch(w1){i=w1}q()}}catch(w1){if(w1&&i&&typeof w1.stack==="string"){var p0=w1.stack.split(`
15
+ `),B1=i.stack.split(`
16
+ `),m1=p0.length-1,t1=B1.length-1;while(m1>=1&&t1>=0&&p0[m1]!==B1[t1])t1--;for(;m1>=1&&t1>=0;m1--,t1--)if(p0[m1]!==B1[t1]){if(m1!==1||t1!==1)do if(m1--,t1--,t1<0||p0[m1]!==B1[t1]){var s1=`
17
+ `+p0[m1].replace(" at new "," at ");if(q.displayName&&s1.includes("<anonymous>"))s1=s1.replace("<anonymous>",q.displayName);if(typeof q==="function")sb.set(q,s1);return s1}while(m1>=1&&t1>=0);break}}}finally{C7=!1,Yb.current=x0,v3(),Error.prepareStackTrace=G0}var U4=q?q.displayName||q.name:"",R4=U4?h7(U4):"";if(typeof q==="function")sb.set(q,R4);return R4}function R3(q,w,u){return qQ(q,!1)}function nZ(q){var w=q.prototype;return!!(w&&w.isReactComponent)}function S7(q,w,u){if(q==null)return"";if(typeof q==="function")return qQ(q,nZ(q));if(typeof q==="string")return h7(q);switch(q){case A:return h7("Suspense");case _:return h7("SuspenseList")}if(typeof q==="object")switch(q.$$typeof){case T:return R3(q.render);case k:return S7(q.type,w,u);case R:{var i=q,G0=i._payload,x0=i._init;try{return S7(x0(G0),w,u)}catch(f0){}}}return""}var BQ={},M3=v0.ReactDebugCurrentFrame;function eb(q){if(q){var w=q._owner,u=S7(q.type,q._source,w?w.type:null);M3.setExtraStackFrame(u)}else M3.setExtraStackFrame(null)}function OQ(q,w,u,i,G0){{var x0=Function.call.bind(O4);for(var f0 in q)if(x0(q,f0)){var p0=void 0;try{if(typeof q[f0]!=="function"){var B1=Error((i||"React class")+": "+u+" type `"+f0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[f0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B1.name="Invariant Violation",B1}p0=q[f0](w,f0,i,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m1){p0=m1}if(p0&&!(p0 instanceof Error))eb(G0),h0("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",u,f0,typeof p0),eb(null);if(p0 instanceof Error&&!(p0.message in BQ))BQ[p0.message]=!0,eb(G0),h0("Failed %s type: %s",u,p0.message),eb(null)}}}function F1(q){if(q){var w=q._owner,u=S7(q.type,q._source,w?w.type:null);n(u)}else n(null)}var LQ=!1;function k3(){if(Z0.current){var q=G4(Z0.current.type);if(q)return`
18
+
19
+ Check the render method of \``+q+"`."}return""}function Q1(q){if(q!==void 0){var w=q.fileName.replace(/^.*[\\\/]/,""),u=q.lineNumber;return`
20
+
21
+ Check your code at `+w+":"+u+"."}return""}function NQ(q){if(q!==null&&q!==void 0)return Q1(q.__source);return""}var v6={};function Gb(q){var w=k3();if(!w){var u=typeof q==="string"?q:q.displayName||q.name;if(u)w=`
22
+
23
+ Check the top-level render call using <`+u+">."}return w}function V7(q,w){if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var u=Gb(w);if(v6[u])return;v6[u]=!0;var i="";if(q&&q._owner&&q._owner!==Z0.current)i=" It was passed a child from "+G4(q._owner.type)+".";F1(q),h0('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,i),F1(null)}function WQ(q,w){if(typeof q!=="object")return;if(X4(q))for(var u=0;u<q.length;u++){var i=q[u];if(c0(i))V7(i,w)}else if(c0(q)){if(q._store)q._store.validated=!0}else if(q){var G0=D(q);if(typeof G0==="function"){if(G0!==q.entries){var x0=G0.call(q),f0;while(!(f0=x0.next()).done)if(c0(f0.value))V7(f0.value,w)}}}}function n4(q){{var w=q.type;if(w===null||w===void 0||typeof w==="string")return;var u;if(typeof w==="function")u=w.propTypes;else if(typeof w==="object"&&(w.$$typeof===T||w.$$typeof===k))u=w.propTypes;else return;if(u){var i=G4(w);OQ(u,q.props,"prop",i,q)}else if(w.PropTypes!==void 0&&!LQ){LQ=!0;var G0=G4(w);h0("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G0||"Unknown")}if(typeof w.getDefaultProps==="function"&&!w.getDefaultProps.isReactClassApproved)h0("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function P4(q){{var w=Object.keys(q.props);for(var u=0;u<w.length;u++){var i=w[u];if(i!=="children"&&i!=="key"){F1(q),h0("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),F1(null);break}}if(q.ref!==null)F1(q),h0("Invalid attribute `ref` supplied to `React.Fragment`."),F1(null)}}function _Q(q,w,u){var i=Q0(q);if(!i){var G0="";if(q===void 0||typeof q==="object"&&q!==null&&Object.keys(q).length===0)G0+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var x0=NQ(w);if(x0)G0+=x0;else G0+=k3();var f0;if(q===null)f0="null";else if(X4(q))f0="array";else if(q!==void 0&&q.$$typeof===U)f0="<"+(G4(q.type)||"Unknown")+" />",G0=" Did you accidentally export a JSX literal instead of a component?";else f0=typeof q;h0("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f0,G0)}var p0=C4.apply(this,arguments);if(p0==null)return p0;if(i)for(var B1=2;B1<arguments.length;B1++)WQ(arguments[B1],q);if(q===L)P4(p0);else n4(p0);return p0}var j6=!1;function m6(q){var w=_Q.bind(null,q);w.type=q;{if(!j6)j6=!0,d0("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(w,"type",{enumerable:!1,get:function(){return d0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:q}),q}})}return w}function d5(q,w,u){var i=u0.apply(this,arguments);for(var G0=2;G0<arguments.length;G0++)WQ(arguments[G0],i.type);return n4(i),i}function tZ(q,w){var u=N0.transition;N0.transition={};var i=N0.transition;N0.transition._updatedFibers=new Set;try{q()}finally{if(N0.transition=u,u===null&&i._updatedFibers){var G0=i._updatedFibers.size;if(G0>10)d0("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.");i._updatedFibers.clear()}}}var b8=!1,Kb=null;function PQ(q){if(Kb===null)try{var w=("require"+Math.random()).slice(0,7),u=fZ&&fZ[w];Kb=u.call(fZ,"timers").setImmediate}catch(i){Kb=function(G0){if(b8===!1){if(b8=!0,typeof MessageChannel>"u")h0("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.")}var x0=new MessageChannel;x0.port1.onmessage=G0,x0.port2.postMessage(void 0)}}return Kb(q)}var D7=0,vQ=!1;function FQ(q){{var w=D7;if(D7++,p.current===null)p.current=[];var u=p.isBatchingLegacy,i;try{if(p.isBatchingLegacy=!0,i=q(),!u&&p.didScheduleLegacyUpdate){var G0=p.current;if(G0!==null)p.didScheduleLegacyUpdate=!1,Q8(G0)}}catch(U4){throw X7(w),U4}finally{p.isBatchingLegacy=u}if(i!==null&&typeof i==="object"&&typeof i.then==="function"){var x0=i,f0=!1,p0={then:function(U4,R4){f0=!0,x0.then(function(w1){if(X7(w),D7===0)z8(w1,U4,R4);else U4(w1)},function(w1){X7(w),R4(w1)})}};if(!vQ&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!f0)vQ=!0,h0("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);")});return p0}else{var B1=i;if(X7(w),D7===0){var m1=p.current;if(m1!==null)Q8(m1),p.current=null;var t1={then:function(U4,R4){if(p.current===null)p.current=[],z8(B1,U4,R4);else U4(B1)}};return t1}else{var s1={then:function(U4,R4){U4(B1)}};return s1}}}}function X7(q){{if(q!==D7-1)h0("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");D7=q}}function z8(q,w,u){{var i=p.current;if(i!==null)try{Q8(i),PQ(function(){if(i.length===0)p.current=null,w(q);else z8(q,w,u)})}catch(G0){u(G0)}else w(q)}}var E7=!1;function Q8(q){if(!E7){E7=!0;var w=0;try{for(;w<q.length;w++){var u=q[w];do u=u(!0);while(u!==null)}q.length=0}catch(i){throw q=q.slice(w+1),i}finally{E7=!1}}}var RQ=_Q,MQ=d5,kQ=m6,wQ={map:r4,forEach:m5,count:I6,toArray:N5,only:g5};if(aR.Children=wQ,aR.Component=C1,aR.Fragment=L,aR.Profiler=v,aR.PureComponent=a1,aR.StrictMode=G,aR.Suspense=A,aR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v0,aR.act=FQ,aR.cloneElement=MQ,aR.createContext=X5,aR.createElement=RQ,aR.createFactory=kQ,aR.createRef=Y4,aR.forwardRef=M,aR.isValidElement=c0,aR.lazy=R1,aR.memo=W,aR.startTransition=tZ,aR.unstable_act=FQ,aR.useCallback=D0,aR.useContext=t,aR.useDebugValue=f6,aR.useDeferredValue=J4,aR.useEffect=w0,aR.useId=Z1,aR.useImperativeHandle=D1,aR.useInsertionEffect=e,aR.useLayoutEffect=K0,aR.useMemo=q1,aR.useReducer=B0,aR.useRef=C0,aR.useState=H0,aR.useSyncExternalStore=Q7,aR.useTransition=x6,aR.version=$,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Dq=ab((lR)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $=!1,U=!1,B=5;function L(U0,u0){var c0=U0.length;U0.push(u0),F(U0,u0,c0)}function G(U0){return U0.length===0?null:U0[0]}function v(U0){if(U0.length===0)return null;var u0=U0[0],c0=U0.pop();if(c0!==u0)U0[0]=c0,P(U0,c0,0);return u0}function F(U0,u0,c0){var N1=c0;while(N1>0){var S1=N1-1>>>1,L4=U0[S1];if(T(L4,u0)>0)U0[S1]=u0,U0[N1]=L4,N1=S1;else return}}function P(U0,u0,c0){var N1=c0,S1=U0.length,L4=S1>>>1;while(N1<L4){var l1=(N1+1)*2-1,f4=U0[l1],z1=l1+1,e0=U0[z1];if(T(f4,u0)<0)if(z1<S1&&T(e0,f4)<0)U0[N1]=e0,U0[z1]=u0,N1=z1;else U0[N1]=f4,U0[l1]=u0,N1=l1;else if(z1<S1&&T(e0,u0)<0)U0[N1]=e0,U0[z1]=u0,N1=z1;else return}}function T(U0,u0){var c0=U0.sortIndex-u0.sortIndex;return c0!==0?c0:U0.id-u0.id}var A=1,_=2,k=3,R=4,d=5;function V(U0,u0){}var o=typeof performance==="object"&&typeof performance.now==="function";if(o){var D=performance;lR.unstable_now=function(){return D.now()}}else{var E=Date,N0=E.now();lR.unstable_now=function(){return E.now()-N0}}var p=1073741823,Z0=-1,s=250,l=5000,n=1e4,L0=p,c=[],Y0=[],R0=1,b0=null,v0=k,d0=!1,h0=!1,V0=!1,P1=typeof setTimeout==="function"?setTimeout:null,$1=typeof clearTimeout==="function"?clearTimeout:null,v1=typeof setImmediate<"u"?setImmediate:null,i0=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function H1(U0){var u0=G(Y0);while(u0!==null){if(u0.callback===null)v(Y0);else if(u0.startTime<=U0)v(Y0),u0.sortIndex=u0.expirationTime,L(c,u0);else return;u0=G(Y0)}}function C1(U0){if(V0=!1,H1(U0),!h0)if(G(c)!==null)h0=!0,K4(W4);else{var u0=G(Y0);if(u0!==null)p4(C1,u0.startTime-U0)}}function W4(U0,u0){if(h0=!1,V0)V0=!1,_6();d0=!0;var c0=v0;try{if(U)try{return H4(U0,u0)}catch(S1){if(b0!==null){var N1=lR.unstable_now();V(b0,N1),b0.isQueued=!1}throw S1}else return H4(U0,u0)}finally{b0=null,v0=c0,d0=!1}}function H4(U0,u0){var c0=u0;H1(c0),b0=G(c);while(b0!==null&&!$){if(b0.expirationTime>c0&&(!U0||O4()))break;var N1=b0.callback;if(typeof N1==="function"){b0.callback=null,v0=b0.priorityLevel;var S1=b0.expirationTime<=c0,L4=N1(S1);if(c0=lR.unstable_now(),typeof L4==="function")b0.callback=L4;else if(b0===G(c))v(c);H1(c0)}else v(c);b0=G(c)}if(b0!==null)return!0;else{var l1=G(Y0);if(l1!==null)p4(C1,l1.startTime-c0);return!1}}function Q4(U0,u0){switch(U0){case A:case _:case k:case R:case d:break;default:U0=k}var c0=v0;v0=U0;try{return u0()}finally{v0=c0}}function _4(U0){var u0;switch(v0){case A:case _:case k:u0=k;break;default:u0=v0;break}var c0=v0;v0=u0;try{return U0()}finally{v0=c0}}function a1(U0){var u0=v0;return function(){var c0=v0;v0=u0;try{return U0.apply(this,arguments)}finally{v0=c0}}}function i1(U0,u0,c0){var N1=lR.unstable_now(),S1;if(typeof c0==="object"&&c0!==null){var L4=c0.delay;if(typeof L4==="number"&&L4>0)S1=N1+L4;else S1=N1}else S1=N1;var l1;switch(U0){case A:l1=Z0;break;case _:l1=s;break;case d:l1=L0;break;case R:l1=n;break;case k:default:l1=l;break}var f4=S1+l1,z1={id:R0++,callback:u0,priorityLevel:U0,startTime:S1,expirationTime:f4,sortIndex:-1};if(S1>N1){if(z1.sortIndex=S1,L(Y0,z1),G(c)===null&&z1===G(Y0)){if(V0)_6();else V0=!0;p4(C1,S1-N1)}}else if(z1.sortIndex=f4,L(c,z1),!h0&&!d0)h0=!0,K4(W4);return z1}function Y4(){}function E4(){if(!h0&&!d0)h0=!0,K4(W4)}function X4(){return G(c)}function u4(U0){U0.callback=null}function m4(){return v0}var x1=!1,s0=null,h4=-1,I4=B,G4=-1;function O4(){var U0=lR.unstable_now()-G4;if(U0<I4)return!1;return!0}function L5(){}function r1(U0){if(U0<0||U0>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(U0>0)I4=Math.floor(1000/U0);else I4=B}var X6=function(){if(s0!==null){var U0=lR.unstable_now();G4=U0;var u0=!0,c0=!0;try{c0=s0(u0,U0)}finally{if(c0)n1();else x1=!1,s0=null}}else x1=!1},n1;if(typeof v1==="function")n1=function(){v1(X6)};else if(typeof MessageChannel<"u"){var Z6=new MessageChannel,Z4=Z6.port2;Z6.port1.onmessage=X6,n1=function(){Z4.postMessage(null)}}else n1=function(){P1(X6,0)};function K4(U0){if(s0=U0,!x1)x1=!0,n1()}function p4(U0,u0){h4=P1(function(){U0(lR.unstable_now())},u0)}function _6(){$1(h4),h4=-1}var F4=L5,C4=null;if(lR.unstable_IdlePriority=d,lR.unstable_ImmediatePriority=A,lR.unstable_LowPriority=R,lR.unstable_NormalPriority=k,lR.unstable_Profiling=C4,lR.unstable_UserBlockingPriority=_,lR.unstable_cancelCallback=u4,lR.unstable_continueExecution=E4,lR.unstable_forceFrameRate=r1,lR.unstable_getCurrentPriorityLevel=m4,lR.unstable_getFirstCallbackNode=X4,lR.unstable_next=_4,lR.unstable_pauseExecution=Y4,lR.unstable_requestPaint=F4,lR.unstable_runWithPriority=Q4,lR.unstable_scheduleCallback=i1,lR.unstable_shouldYield=O4,lR.unstable_wrapCallback=a1,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Eq=ab((iR)=>{var XQ=$0(E1()),c1=$0(Dq());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $=XQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=!1;function B(b){U=b}function L(b){if(!U){for(var z=arguments.length,Q=Array(z>1?z-1:0),X=1;X<z;X++)Q[X-1]=arguments[X];v("warn",b,Q)}}function G(b){if(!U){for(var z=arguments.length,Q=Array(z>1?z-1:0),X=1;X<z;X++)Q[X-1]=arguments[X];v("error",b,Q)}}function v(b,z,Q){{var X=$.ReactDebugCurrentFrame,Z=X.getStackAddendum();if(Z!=="")z+="%s",Q=Q.concat([Z]);var J=Q.map(function(H){return String(H)});J.unshift("Warning: "+z),Function.prototype.apply.call(console[b],console,J)}}var F=0,P=1,T=2,A=3,_=4,k=5,R=6,d=7,V=8,o=9,D=10,E=11,N0=12,p=13,Z0=14,s=15,l=16,n=17,L0=18,c=19,Y0=21,R0=22,b0=23,v0=24,d0=25,h0=!0,V0=!1,P1=!1,$1=!1,v1=!1,i0=!0,H1=!1,C1=!0,W4=!0,H4=!0,Q4=!0,_4=new Set,a1={},i1={};function Y4(b,z){E4(b,z),E4(b+"Capture",z)}function E4(b,z){if(a1[b])G("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",b);a1[b]=z;{var Q=b.toLowerCase();if(i1[Q]=b,b==="onDoubleClick")i1.ondblclick=b}for(var X=0;X<z.length;X++)_4.add(z[X])}var X4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u4=Object.prototype.hasOwnProperty;function m4(b){{var z=typeof Symbol==="function"&&Symbol.toStringTag,Q=z&&b[Symbol.toStringTag]||b.constructor.name||"Object";return Q}}function x1(b){try{return s0(b),!1}catch(z){return!0}}function s0(b){return""+b}function h4(b,z){if(x1(b))return G("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",z,m4(b)),s0(b)}function I4(b){if(x1(b))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",m4(b)),s0(b)}function G4(b,z){if(x1(b))return G("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",z,m4(b)),s0(b)}function O4(b,z){if(x1(b))return G("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",z,m4(b)),s0(b)}function L5(b){if(x1(b))return G("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",m4(b)),s0(b)}function r1(b){if(x1(b))return G("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",m4(b)),s0(b)}var X6=0,n1=1,Z6=2,Z4=3,K4=4,p4=5,_6=6,F4=":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",C4=F4+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U0=new RegExp("^["+F4+"]["+C4+"]*$"),u0={},c0={};function N1(b){if(u4.call(c0,b))return!0;if(u4.call(u0,b))return!1;if(U0.test(b))return c0[b]=!0,!0;return u0[b]=!0,G("Invalid attribute name: `%s`",b),!1}function S1(b,z,Q){if(z!==null)return z.type===X6;if(Q)return!1;if(b.length>2&&(b[0]==="o"||b[0]==="O")&&(b[1]==="n"||b[1]==="N"))return!0;return!1}function L4(b,z,Q,X){if(Q!==null&&Q.type===X6)return!1;switch(typeof z){case"function":case"symbol":return!0;case"boolean":{if(X)return!1;if(Q!==null)return!Q.acceptsBooleans;else{var Z=b.toLowerCase().slice(0,5);return Z!=="data-"&&Z!=="aria-"}}default:return!1}}function l1(b,z,Q,X){if(z===null||typeof z>"u")return!0;if(L4(b,z,Q,X))return!0;if(X)return!1;if(Q!==null)switch(Q.type){case Z4:return!z;case K4:return z===!1;case p4:return isNaN(z);case _6:return isNaN(z)||z<1}return!1}function f4(b){return e0.hasOwnProperty(b)?e0[b]:null}function z1(b,z,Q,X,Z,J,H){this.acceptsBooleans=z===Z6||z===Z4||z===K4,this.attributeName=X,this.attributeNamespace=Z,this.mustUseProperty=Q,this.propertyName=b,this.type=z,this.sanitizeURL=J,this.removeEmptyString=H}var e0={},A6=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];A6.forEach(function(b){e0[b]=new z1(b,X6,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var z=b[0],Q=b[1];e0[z]=new z1(z,n1,!1,Q,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){e0[b]=new z1(b,Z6,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){e0[b]=new z1(b,Z6,!1,b,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(b){e0[b]=new z1(b,Z4,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){e0[b]=new z1(b,Z4,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){e0[b]=new z1(b,K4,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){e0[b]=new z1(b,_6,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){e0[b]=new z1(b,p4,!1,b.toLowerCase(),null,!1,!1)});var r4=/[\-\:]([a-z])/g,I6=function(b){return b[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(b){var z=b.replace(r4,I6);e0[z]=new z1(z,n1,!1,b,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(b){var z=b.replace(r4,I6);e0[z]=new z1(z,n1,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var z=b.replace(r4,I6);e0[z]=new z1(z,n1,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){e0[b]=new z1(b,n1,!1,b.toLowerCase(),null,!1,!1)});var m5="xlinkHref";e0[m5]=new z1("xlinkHref",n1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){e0[b]=new z1(b,n1,!1,b.toLowerCase(),null,!0,!0)});var N5=/^[\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,g5=!1;function X5(b){if(!g5&&N5.test(b))g5=!0,G("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(b))}function P6(b,z,Q,X){if(X.mustUseProperty){var Z=X.propertyName;return b[Z]}else{if(h4(Q,z),X.sanitizeURL)X5(""+Q);var J=X.attributeName,H=null;if(X.type===K4){if(b.hasAttribute(J)){var Y=b.getAttribute(J);if(Y==="")return!0;if(l1(z,Q,X,!1))return Y;if(Y===""+Q)return Q;return Y}}else if(b.hasAttribute(J)){if(l1(z,Q,X,!1))return b.getAttribute(J);if(X.type===Z4)return Q;H=b.getAttribute(J)}if(l1(z,Q,X,!1))return H===null?Q:H;else if(H===""+Q)return Q;else return H}}function W5(b,z,Q,X){{if(!N1(z))return;if(!b.hasAttribute(z))return Q===void 0?void 0:null;var Z=b.getAttribute(z);if(h4(Q,z),Z===""+Q)return Q;return Z}}function U1(b,z,Q,X){var Z=f4(z);if(S1(z,Z,X))return;if(l1(z,Q,Z,X))Q=null;if(X||Z===null){if(N1(z)){var J=z;if(Q===null)b.removeAttribute(J);else h4(Q,z),b.setAttribute(J,""+Q)}return}var H=Z.mustUseProperty;if(H){var Y=Z.propertyName;if(Q===null){var K=Z.type;b[Y]=K===Z4?!1:""}else b[Y]=Q;return}var{attributeName:O,attributeNamespace:N}=Z;if(Q===null)b.removeAttribute(O);else{var f=Z.type,I;if(f===Z4||f===K4&&Q===!0)I="";else if(h4(Q,O),I=""+Q,Z.sanitizeURL)X5(I.toString());if(N)b.setAttributeNS(N,O,I);else b.setAttribute(O,I)}}var V1=Symbol.for("react.element"),j1=Symbol.for("react.portal"),R1=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),Q0=Symbol.for("react.provider"),W=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),t=Symbol.for("react.suspense"),H0=Symbol.for("react.suspense_list"),B0=Symbol.for("react.memo"),C0=Symbol.for("react.lazy"),w0=Symbol.for("react.scope"),e=Symbol.for("react.debug_trace_mode"),K0=Symbol.for("react.offscreen"),D0=Symbol.for("react.legacy_hidden"),q1=Symbol.for("react.cache"),D1=Symbol.for("react.tracing_marker"),f6=Symbol.iterator,x6="@@iterator";function J4(b){if(b===null||typeof b!=="object")return null;var z=f6&&b[f6]||b[x6];if(typeof z==="function")return z;return null}var Z1=Object.assign,Q7=0,y5,B3,O3,L3,N3,W3,_3;function P3(){}P3.__reactDisabledLog=!0;function UQ(){{if(Q7===0){y5=console.log,B3=console.info,O3=console.warn,L3=console.error,N3=console.group,W3=console.groupCollapsed,_3=console.groupEnd;var b={configurable:!0,enumerable:!0,value:P3,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}Q7++}}function rZ(){{if(Q7--,Q7===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z1({},b,{value:y5}),info:Z1({},b,{value:B3}),warn:Z1({},b,{value:O3}),error:Z1({},b,{value:L3}),group:Z1({},b,{value:N3}),groupCollapsed:Z1({},b,{value:W3}),groupEnd:Z1({},b,{value:_3})})}if(Q7<0)G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var v3=$.ReactCurrentDispatcher,Yb;function Z5(b,z,Q){{if(Yb===void 0)try{throw Error()}catch(Z){var X=Z.stack.trim().match(/\n( *(at )?)/);Yb=X&&X[1]||""}return`
24
+ `+Yb+b}}var h7=!1,C7;{var sb=typeof WeakMap==="function"?WeakMap:Map;C7=new sb}function F3(b,z){if(!b||h7)return"";{var Q=C7.get(b);if(Q!==void 0)return Q}var X;h7=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=v3.current,v3.current=null,UQ();try{if(z){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(g){X=g}Reflect.construct(b,[],H)}else{try{H.call()}catch(g){X=g}b.call(H.prototype)}}else{try{throw Error()}catch(g){X=g}b()}}catch(g){if(g&&X&&typeof g.stack==="string"){var Y=g.stack.split(`
25
+ `),K=X.stack.split(`
26
+ `),O=Y.length-1,N=K.length-1;while(O>=1&&N>=0&&Y[O]!==K[N])N--;for(;O>=1&&N>=0;O--,N--)if(Y[O]!==K[N]){if(O!==1||N!==1)do if(O--,N--,N<0||Y[O]!==K[N]){var f=`
27
+ `+Y[O].replace(" at new "," at ");if(b.displayName&&f.includes("<anonymous>"))f=f.replace("<anonymous>",b.displayName);if(typeof b==="function")C7.set(b,f);return f}while(O>=1&&N>=0);break}}}finally{h7=!1,v3.current=J,rZ(),Error.prepareStackTrace=Z}var I=b?b.displayName||b.name:"",m=I?Z5(I):"";if(typeof b==="function")C7.set(b,m);return m}function qQ(b,z,Q){return F3(b,!0)}function R3(b,z,Q){return F3(b,!1)}function nZ(b){var z=b.prototype;return!!(z&&z.isReactComponent)}function S7(b,z,Q){if(b==null)return"";if(typeof b==="function")return F3(b,nZ(b));if(typeof b==="string")return Z5(b);switch(b){case t:return Z5("Suspense");case H0:return Z5("SuspenseList")}if(typeof b==="object")switch(b.$$typeof){case h:return R3(b.render);case B0:return S7(b.type,z,Q);case C0:{var X=b,Z=X._payload,J=X._init;try{return S7(J(Z),z,Q)}catch(H){}}}return""}function BQ(b){var z=b._debugOwner?b._debugOwner.type:null,Q=b._debugSource;switch(b.tag){case k:return Z5(b.type);case l:return Z5("Lazy");case p:return Z5("Suspense");case c:return Z5("SuspenseList");case F:case T:case s:return R3(b.type);case E:return R3(b.type.render);case P:return qQ(b.type);default:return""}}function M3(b){try{var z="",Q=b;do z+=BQ(Q),Q=Q.return;while(Q);return z}catch(X){return`
28
+ Error generating stack: `+X.message+`
29
+ `+X.stack}}function eb(b,z,Q){var X=b.displayName;if(X)return X;var Z=z.displayName||z.name||"";return Z!==""?Q+"("+Z+")":Q}function OQ(b){return b.displayName||"Context"}function F1(b){if(b==null)return null;if(typeof b.tag==="number")G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof b==="function")return b.displayName||b.name||null;if(typeof b==="string")return b;switch(b){case R1:return"Fragment";case j1:return"Portal";case x:return"Profiler";case M:return"StrictMode";case t:return"Suspense";case H0:return"SuspenseList"}if(typeof b==="object")switch(b.$$typeof){case W:var z=b;return OQ(z)+".Consumer";case Q0:var Q=b;return OQ(Q._context)+".Provider";case h:return eb(b,b.render,"ForwardRef");case B0:var X=b.displayName||null;if(X!==null)return X;return F1(b.type)||"Memo";case C0:{var Z=b,J=Z._payload,H=Z._init;try{return F1(H(J))}catch(Y){return null}}}return null}function LQ(b,z,Q){var X=z.displayName||z.name||"";return b.displayName||(X!==""?Q+"("+X+")":Q)}function k3(b){return b.displayName||"Context"}function Q1(b){var{tag:z,type:Q}=b;switch(z){case v0:return"Cache";case o:var X=Q;return k3(X)+".Consumer";case D:var Z=Q;return k3(Z._context)+".Provider";case L0:return"DehydratedFragment";case E:return LQ(Q,Q.render,"ForwardRef");case d:return"Fragment";case k:return Q;case _:return"Portal";case A:return"Root";case R:return"Text";case l:return F1(Q);case V:if(Q===M)return"StrictMode";return"Mode";case R0:return"Offscreen";case N0:return"Profiler";case Y0:return"Scope";case p:return"Suspense";case c:return"SuspenseList";case d0:return"TracingMarker";case P:case F:case n:case T:case Z0:case s:if(typeof Q==="function")return Q.displayName||Q.name||null;if(typeof Q==="string")return Q;break}return null}var NQ=$.ReactDebugCurrentFrame,v6=null,Gb=!1;function V7(){{if(v6===null)return null;var b=v6._debugOwner;if(b!==null&&typeof b<"u")return Q1(b)}return null}function WQ(){{if(v6===null)return"";return M3(v6)}}function n4(){NQ.getCurrentStack=null,v6=null,Gb=!1}function P4(b){NQ.getCurrentStack=b===null?null:WQ,v6=b,Gb=!1}function _Q(){return v6}function j6(b){Gb=b}function m6(b){return""+b}function d5(b){switch(typeof b){case"boolean":case"number":case"string":case"undefined":return b;case"object":return r1(b),b;default:return""}}var tZ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function b8(b,z){{if(!(tZ[z.type]||z.onChange||z.onInput||z.readOnly||z.disabled||z.value==null))G("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`.");if(!(z.onChange||z.readOnly||z.disabled||z.checked==null))G("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 Kb(b){var{type:z,nodeName:Q}=b;return Q&&Q.toLowerCase()==="input"&&(z==="checkbox"||z==="radio")}function PQ(b){return b._valueTracker}function D7(b){b._valueTracker=null}function vQ(b){var z="";if(!b)return z;if(Kb(b))z=b.checked?"true":"false";else z=b.value;return z}function FQ(b){var z=Kb(b)?"checked":"value",Q=Object.getOwnPropertyDescriptor(b.constructor.prototype,z);r1(b[z]);var X=""+b[z];if(b.hasOwnProperty(z)||typeof Q>"u"||typeof Q.get!=="function"||typeof Q.set!=="function")return;var{get:Z,set:J}=Q;Object.defineProperty(b,z,{configurable:!0,get:function(){return Z.call(this)},set:function(Y){r1(Y),X=""+Y,J.call(this,Y)}}),Object.defineProperty(b,z,{enumerable:Q.enumerable});var H={getValue:function(){return X},setValue:function(Y){r1(Y),X=""+Y},stopTracking:function(){D7(b),delete b[z]}};return H}function X7(b){if(PQ(b))return;b._valueTracker=FQ(b)}function z8(b){if(!b)return!1;var z=PQ(b);if(!z)return!0;var Q=z.getValue(),X=vQ(b);if(X!==Q)return z.setValue(X),!0;return!1}function E7(b){if(b=b||(typeof document<"u"?document:void 0),typeof b>"u")return null;try{return b.activeElement||b.body}catch(z){return b.body}}var Q8=!1,RQ=!1,MQ=!1,kQ=!1;function wQ(b){var z=b.type==="checkbox"||b.type==="radio";return z?b.checked!=null:b.value!=null}function q(b,z){var Q=b,X=z.checked,Z=Z1({},z,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:X!=null?X:Q._wrapperState.initialChecked});return Z}function w(b,z){{if(b8("input",z),z.checked!==void 0&&z.defaultChecked!==void 0&&!RQ)G("%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://reactjs.org/link/controlled-components",V7()||"A component",z.type),RQ=!0;if(z.value!==void 0&&z.defaultValue!==void 0&&!Q8)G("%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://reactjs.org/link/controlled-components",V7()||"A component",z.type),Q8=!0}var Q=b,X=z.defaultValue==null?"":z.defaultValue;Q._wrapperState={initialChecked:z.checked!=null?z.checked:z.defaultChecked,initialValue:d5(z.value!=null?z.value:X),controlled:wQ(z)}}function u(b,z){var Q=b,X=z.checked;if(X!=null)U1(Q,"checked",X,!1)}function i(b,z){var Q=b;{var X=wQ(z);if(!Q._wrapperState.controlled&&X&&!kQ)G("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://reactjs.org/link/controlled-components"),kQ=!0;if(Q._wrapperState.controlled&&!X&&!MQ)G("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://reactjs.org/link/controlled-components"),MQ=!0}u(b,z);var Z=d5(z.value),J=z.type;if(Z!=null){if(J==="number"){if(Z===0&&Q.value===""||Q.value!=Z)Q.value=m6(Z)}else if(Q.value!==m6(Z))Q.value=m6(Z)}else if(J==="submit"||J==="reset"){Q.removeAttribute("value");return}if(z.hasOwnProperty("value"))p0(Q,z.type,Z);else if(z.hasOwnProperty("defaultValue"))p0(Q,z.type,d5(z.defaultValue));if(z.checked==null&&z.defaultChecked!=null)Q.defaultChecked=!!z.defaultChecked}function G0(b,z,Q){var X=b;if(z.hasOwnProperty("value")||z.hasOwnProperty("defaultValue")){var Z=z.type,J=Z==="submit"||Z==="reset";if(J&&(z.value===void 0||z.value===null))return;var H=m6(X._wrapperState.initialValue);if(!Q){if(H!==X.value)X.value=H}X.defaultValue=H}var Y=X.name;if(Y!=="")X.name="";if(X.defaultChecked=!X.defaultChecked,X.defaultChecked=!!X._wrapperState.initialChecked,Y!=="")X.name=Y}function x0(b,z){var Q=b;i(Q,z),f0(Q,z)}function f0(b,z){var Q=z.name;if(z.type==="radio"&&Q!=null){var X=b;while(X.parentNode)X=X.parentNode;h4(Q,"name");var Z=X.querySelectorAll("input[name="+JSON.stringify(""+Q)+'][type="radio"]');for(var J=0;J<Z.length;J++){var H=Z[J];if(H===b||H.form!==b.form)continue;var Y=qX(H);if(!Y)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");z8(H),i(H,Y)}}}function p0(b,z,Q){if(z!=="number"||E7(b.ownerDocument)!==b){if(Q==null)b.defaultValue=m6(b._wrapperState.initialValue);else if(b.defaultValue!==m6(Q))b.defaultValue=m6(Q)}}var B1=!1,m1=!1,t1=!1;function s1(b,z){{if(z.value==null){if(typeof z.children==="object"&&z.children!==null)XQ.Children.forEach(z.children,function(Q){if(Q==null)return;if(typeof Q==="string"||typeof Q==="number")return;if(!m1)m1=!0,G("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")});else if(z.dangerouslySetInnerHTML!=null){if(!t1)t1=!0,G("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")}}if(z.selected!=null&&!B1)G("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),B1=!0}}function U4(b,z){if(z.value!=null)b.setAttribute("value",m6(d5(z.value)))}var R4=Array.isArray;function w1(b){return R4(b)}var Ub=!1;function X8(){var b=V7();if(b)return`
30
+
31
+ Check the render method of \``+b+"`.";return""}var w3=["value","defaultValue"];function sZ(b){{b8("select",b);for(var z=0;z<w3.length;z++){var Q=w3[z];if(b[Q]==null)continue;var X=w1(b[Q]);if(b.multiple&&!X)G("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Q,X8());else if(!b.multiple&&X)G("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Q,X8())}}}function Z7(b,z,Q,X){var Z=b.options;if(z){var J=Q,H={};for(var Y=0;Y<J.length;Y++)H["$"+J[Y]]=!0;for(var K=0;K<Z.length;K++){var O=H.hasOwnProperty("$"+Z[K].value);if(Z[K].selected!==O)Z[K].selected=O;if(O&&X)Z[K].defaultSelected=!0}}else{var N=m6(d5(Q)),f=null;for(var I=0;I<Z.length;I++){if(Z[I].value===N){if(Z[I].selected=!0,X)Z[I].defaultSelected=!0;return}if(f===null&&!Z[I].disabled)f=Z[I]}if(f!==null)f.selected=!0}}function A3(b,z){return Z1({},z,{value:void 0})}function I3(b,z){var Q=b;if(sZ(z),Q._wrapperState={wasMultiple:!!z.multiple},z.value!==void 0&&z.defaultValue!==void 0&&!Ub)G("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://reactjs.org/link/controlled-components"),Ub=!0}function eZ(b,z){var Q=b;Q.multiple=!!z.multiple;var X=z.value;if(X!=null)Z7(Q,!!z.multiple,X,!1);else if(z.defaultValue!=null)Z7(Q,!!z.multiple,z.defaultValue,!0)}function _B(b,z){var Q=b,X=Q._wrapperState.wasMultiple;Q._wrapperState.wasMultiple=!!z.multiple;var Z=z.value;if(Z!=null)Z7(Q,!!z.multiple,Z,!1);else if(X!==!!z.multiple)if(z.defaultValue!=null)Z7(Q,!!z.multiple,z.defaultValue,!0);else Z7(Q,!!z.multiple,z.multiple?[]:"",!1)}function PB(b,z){var Q=b,X=z.value;if(X!=null)Z7(Q,!!z.multiple,X,!1)}var kG=!1;function bJ(b,z){var Q=b;if(z.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var X=Z1({},z,{value:void 0,defaultValue:void 0,children:m6(Q._wrapperState.initialValue)});return X}function wG(b,z){var Q=b;if(b8("textarea",z),z.value!==void 0&&z.defaultValue!==void 0&&!kG)G("%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://reactjs.org/link/controlled-components",V7()||"A component"),kG=!0;var X=z.value;if(X==null){var{children:Z,defaultValue:J}=z;if(Z!=null){G("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(J!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(w1(Z)){if(Z.length>1)throw Error("<textarea> can only have at most one child.");Z=Z[0]}J=Z}}if(J==null)J="";X=J}Q._wrapperState={initialValue:d5(X)}}function AG(b,z){var Q=b,X=d5(z.value),Z=d5(z.defaultValue);if(X!=null){var J=m6(X);if(J!==Q.value)Q.value=J;if(z.defaultValue==null&&Q.defaultValue!==J)Q.defaultValue=J}if(Z!=null)Q.defaultValue=m6(Z)}function IG(b,z){var Q=b,X=Q.textContent;if(X===Q._wrapperState.initialValue){if(X!==""&&X!==null)Q.value=X}}function vB(b,z){AG(b,z)}var J7="http://www.w3.org/1999/xhtml",FB="http://www.w3.org/1998/Math/MathML",zJ="http://www.w3.org/2000/svg";function QJ(b){switch(b){case"svg":return zJ;case"math":return FB;default:return J7}}function XJ(b,z){if(b==null||b===J7)return QJ(z);if(b===zJ&&z==="foreignObject")return J7;return b}var RB=function(b){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(z,Q,X,Z){MSApp.execUnsafeLocalFunction(function(){return b(z,Q,X,Z)})};else return b},AQ,fG=RB(function(b,z){if(b.namespaceURI===zJ){if(!("innerHTML"in b)){AQ=AQ||document.createElement("div"),AQ.innerHTML="<svg>"+z.valueOf().toString()+"</svg>";var Q=AQ.firstChild;while(b.firstChild)b.removeChild(b.firstChild);while(Q.firstChild)b.appendChild(Q.firstChild);return}}b.innerHTML=z}),g6=1,$7=3,S4=8,H7=9,ZJ=11,IQ=function(b,z){if(z){var Q=b.firstChild;if(Q&&Q===b.lastChild&&Q.nodeType===$7){Q.nodeValue=z;return}}b.textContent=z},MB={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],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"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],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"],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"]},f3={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function kB(b,z){return b+z.charAt(0).toUpperCase()+z.substring(1)}var wB=["Webkit","ms","Moz","O"];Object.keys(f3).forEach(function(b){wB.forEach(function(z){f3[kB(z,b)]=f3[b]})});function JJ(b,z,Q){var X=z==null||typeof z==="boolean"||z==="";if(X)return"";if(!Q&&typeof z==="number"&&z!==0&&!(f3.hasOwnProperty(b)&&f3[b]))return z+"px";return O4(z,b),(""+z).trim()}var AB=/([A-Z])/g,IB=/^ms-/;function fB(b){return b.replace(AB,"-$1").toLowerCase().replace(IB,"-ms-")}var TG=function(){};{var TB=/^(?:webkit|moz|o)[A-Z]/,hB=/^-ms-/,CB=/-(.)/g,hG=/;\s*$/,Z8={},$J={},CG=!1,SG=!1,SB=function(b){return b.replace(CB,function(z,Q){return Q.toUpperCase()})},VB=function(b){if(Z8.hasOwnProperty(b)&&Z8[b])return;Z8[b]=!0,G("Unsupported style property %s. Did you mean %s?",b,SB(b.replace(hB,"ms-")))},DB=function(b){if(Z8.hasOwnProperty(b)&&Z8[b])return;Z8[b]=!0,G("Unsupported vendor-prefixed style property %s. Did you mean %s?",b,b.charAt(0).toUpperCase()+b.slice(1))},EB=function(b,z){if($J.hasOwnProperty(z)&&$J[z])return;$J[z]=!0,G(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,b,z.replace(hG,""))},uB=function(b,z){if(CG)return;CG=!0,G("`NaN` is an invalid value for the `%s` css style property.",b)},mB=function(b,z){if(SG)return;SG=!0,G("`Infinity` is an invalid value for the `%s` css style property.",b)};TG=function(b,z){if(b.indexOf("-")>-1)VB(b);else if(TB.test(b))DB(b);else if(hG.test(z))EB(b,z);if(typeof z==="number"){if(isNaN(z))uB(b,z);else if(!isFinite(z))mB(b,z)}}}var gB=TG;function yB(b){{var z="",Q="";for(var X in b){if(!b.hasOwnProperty(X))continue;var Z=b[X];if(Z!=null){var J=X.indexOf("--")===0;z+=Q+(J?X:fB(X))+":",z+=JJ(X,Z,J),Q=";"}}return z||null}}function VG(b,z){var Q=b.style;for(var X in z){if(!z.hasOwnProperty(X))continue;var Z=X.indexOf("--")===0;if(!Z)gB(X,z[X]);var J=JJ(X,z[X],Z);if(X==="float")X="cssFloat";if(Z)Q.setProperty(X,J);else Q[X]=J}}function dB(b){return b==null||typeof b==="boolean"||b===""}function DG(b){var z={};for(var Q in b){var X=MB[Q]||[Q];for(var Z=0;Z<X.length;Z++)z[X[Z]]=Q}return z}function cB(b,z){{if(!z)return;var Q=DG(b),X=DG(z),Z={};for(var J in Q){var H=Q[J],Y=X[J];if(Y&&H!==Y){var K=H+","+Y;if(Z[K])continue;Z[K]=!0,G("%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.",dB(b[H])?"Removing":"Updating",H,Y)}}}}var aB={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},lB=Z1({menuitem:!0},aB),iB="__html";function HJ(b,z){if(!z)return;if(lB[b]){if(z.children!=null||z.dangerouslySetInnerHTML!=null)throw Error(b+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(z.dangerouslySetInnerHTML!=null){if(z.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof z.dangerouslySetInnerHTML!=="object"||!(iB in z.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!z.suppressContentEditableWarning&&z.contentEditable&&z.children!=null)G("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.");if(z.style!=null&&typeof z.style!=="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.")}function qb(b,z){if(b.indexOf("-")===-1)return typeof z.is==="string";switch(b){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fQ={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",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",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",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",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"},EG={"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},J8={},xB=new RegExp("^(aria)-["+C4+"]*$"),jB=new RegExp("^(aria)[A-Z]["+C4+"]*$");function oB(b,z){{if(u4.call(J8,z)&&J8[z])return!0;if(jB.test(z)){var Q="aria-"+z.slice(4).toLowerCase(),X=EG.hasOwnProperty(Q)?Q:null;if(X==null)return G("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",z),J8[z]=!0,!0;if(z!==X)return G("Invalid ARIA attribute `%s`. Did you mean `%s`?",z,X),J8[z]=!0,!0}if(xB.test(z)){var Z=z.toLowerCase(),J=EG.hasOwnProperty(Z)?Z:null;if(J==null)return J8[z]=!0,!1;if(z!==J)return G("Unknown ARIA attribute `%s`. Did you mean `%s`?",z,J),J8[z]=!0,!0}}return!0}function pB(b,z){{var Q=[];for(var X in z){var Z=oB(b,X);if(!Z)Q.push(X)}var J=Q.map(function(H){return"`"+H+"`"}).join(", ");if(Q.length===1)G("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",J,b);else if(Q.length>1)G("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",J,b)}}function rB(b,z){if(qb(b,z))return;pB(b,z)}var uG=!1;function nB(b,z){{if(b!=="input"&&b!=="textarea"&&b!=="select")return;if(z!=null&&z.value===null&&!uG)if(uG=!0,b==="select"&&z.multiple)G("`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.",b);else G("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",b)}}var mG=function(){};{var T6={},gG=/^on./,tB=/^on[^A-Z]/,sB=new RegExp("^(aria)-["+C4+"]*$"),eB=new RegExp("^(aria)[A-Z]["+C4+"]*$");mG=function(b,z,Q,X){if(u4.call(T6,z)&&T6[z])return!0;var Z=z.toLowerCase();if(Z==="onfocusin"||Z==="onfocusout")return G("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."),T6[z]=!0,!0;if(X!=null){var{registrationNameDependencies:J,possibleRegistrationNames:H}=X;if(J.hasOwnProperty(z))return!0;var Y=H.hasOwnProperty(Z)?H[Z]:null;if(Y!=null)return G("Invalid event handler property `%s`. Did you mean `%s`?",z,Y),T6[z]=!0,!0;if(gG.test(z))return G("Unknown event handler property `%s`. It will be ignored.",z),T6[z]=!0,!0}else if(gG.test(z)){if(tB.test(z))G("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",z);return T6[z]=!0,!0}if(sB.test(z)||eB.test(z))return!0;if(Z==="innerhtml")return G("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),T6[z]=!0,!0;if(Z==="aria")return G("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),T6[z]=!0,!0;if(Z==="is"&&Q!==null&&Q!==void 0&&typeof Q!=="string")return G("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Q),T6[z]=!0,!0;if(typeof Q==="number"&&isNaN(Q))return G("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",z),T6[z]=!0,!0;var K=f4(z),O=K!==null&&K.type===X6;if(fQ.hasOwnProperty(Z)){var N=fQ[Z];if(N!==z)return G("Invalid DOM property `%s`. Did you mean `%s`?",z,N),T6[z]=!0,!0}else if(!O&&z!==Z)return G("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,Z),T6[z]=!0,!0;if(typeof Q==="boolean"&&L4(z,Q,K,!1)){if(Q)G('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()}.',Q,z,z,Q,z);else G('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.',Q,z,z,Q,z,z,z);return T6[z]=!0,!0}if(O)return!0;if(L4(z,Q,K,!1))return T6[z]=!0,!1;if((Q==="false"||Q==="true")&&K!==null&&K.type===Z4)return G("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",Q,z,Q==="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".',z,Q),T6[z]=!0,!0;return!0}}var bO=function(b,z,Q){{var X=[];for(var Z in z){var J=mG(b,Z,z[Z],Q);if(!J)X.push(Z)}var H=X.map(function(Y){return"`"+Y+"`"}).join(", ");if(X.length===1)G("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://reactjs.org/link/attribute-behavior ",H,b);else if(X.length>1)G("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://reactjs.org/link/attribute-behavior ",H,b)}};function zO(b,z,Q){if(qb(b,z))return;bO(b,z,Q)}var yG=1,YJ=2,T3=4,QO=yG|YJ|T3,h3=null;function XO(b){if(h3!==null)G("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");h3=b}function ZO(){if(h3===null)G("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");h3=null}function JO(b){return b===h3}function GJ(b){var z=b.target||b.srcElement||window;if(z.correspondingUseElement)z=z.correspondingUseElement;return z.nodeType===$7?z.parentNode:z}var KJ=null,$8=null,H8=null;function dG(b){var z=l7(b);if(!z)return;if(typeof KJ!=="function")throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var Q=z.stateNode;if(Q){var X=qX(Q);KJ(z.stateNode,z.type,X)}}function $O(b){KJ=b}function cG(b){if($8)if(H8)H8.push(b);else H8=[b];else $8=b}function HO(){return $8!==null||H8!==null}function aG(){if(!$8)return;var b=$8,z=H8;if($8=null,H8=null,dG(b),z)for(var Q=0;Q<z.length;Q++)dG(z[Q])}var lG=function(b,z){return b(z)},iG=function(){},UJ=!1;function YO(){var b=HO();if(b)iG(),aG()}function xG(b,z,Q){if(UJ)return b(z,Q);UJ=!0;try{return lG(b,z,Q)}finally{UJ=!1,YO()}}function GO(b,z,Q){lG=b,iG=Q}function KO(b){return b==="button"||b==="input"||b==="select"||b==="textarea"}function UO(b,z,Q){switch(b){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(Q.disabled&&KO(z));default:return!1}}function C3(b,z){var Q=b.stateNode;if(Q===null)return null;var X=qX(Q);if(X===null)return null;var Z=X[z];if(UO(z,b.type,X))return null;if(Z&&typeof Z!=="function")throw Error("Expected `"+z+"` listener to be a function, instead got a value of `"+typeof Z+"` type.");return Z}var qJ=!1;if(X4)try{var S3={};Object.defineProperty(S3,"passive",{get:function(){qJ=!0}}),window.addEventListener("test",S3,S3),window.removeEventListener("test",S3,S3)}catch(b){qJ=!1}function jG(b,z,Q,X,Z,J,H,Y,K){var O=Array.prototype.slice.call(arguments,3);try{z.apply(Q,O)}catch(N){this.onError(N)}}var oG=jG;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var BJ=document.createElement("react");oG=function(z,Q,X,Z,J,H,Y,K,O){if(typeof document>"u"||document===null)throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var N=document.createEvent("Event"),f=!1,I=!0,m=window.event,g=Object.getOwnPropertyDescriptor(window,"event");function a(){if(BJ.removeEventListener(j,g0,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=m}var W0=Array.prototype.slice.call(arguments,3);function g0(){f=!0,a(),Q.apply(X,W0),I=!1}var S0,Y1=!1,G1=!1;function C(S){if(S0=S.error,Y1=!0,S0===null&&S.colno===0&&S.lineno===0)G1=!0;if(S.defaultPrevented){if(S0!=null&&typeof S0==="object")try{S0._suppressLogging=!0}catch(J0){}}}var j="react-"+(z?z:"invokeguardedcallback");if(window.addEventListener("error",C),BJ.addEventListener(j,g0,!1),N.initEvent(j,!1,!1),BJ.dispatchEvent(N),g)Object.defineProperty(window,"event",g);if(f&&I){if(!Y1)S0=Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`);else if(G1)S0=Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.");this.onError(S0)}if(window.removeEventListener("error",C),!f)return a(),jG.apply(this,arguments)}}var qO=oG,Y8=!1,TQ=null,hQ=!1,OJ=null,BO={onError:function(b){Y8=!0,TQ=b}};function LJ(b,z,Q,X,Z,J,H,Y,K){Y8=!1,TQ=null,qO.apply(BO,arguments)}function OO(b,z,Q,X,Z,J,H,Y,K){if(LJ.apply(this,arguments),Y8){var O=NJ();if(!hQ)hQ=!0,OJ=O}}function LO(){if(hQ){var b=OJ;throw hQ=!1,OJ=null,b}}function NO(){return Y8}function NJ(){if(Y8){var b=TQ;return Y8=!1,TQ=null,b}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function G8(b){return b._reactInternals}function WO(b){return b._reactInternals!==void 0}function _O(b,z){b._reactInternals=z}var l0=0,K8=1,V4=2,W1=4,Bb=16,V3=32,WJ=64,A1=128,Y7=256,u7=512,Ob=1024,_5=2048,G7=4096,Lb=8192,CQ=16384,PO=_5|W1|WJ|u7|Ob|CQ,vO=32767,D3=32768,h6=65536,_J=131072,pG=1048576,PJ=2097152,Nb=4194304,vJ=8388608,K7=16777216,SQ=33554432,FJ=W1|Ob|0,RJ=V4|W1|Bb|V3|u7|G7|Lb,E3=W1|WJ|u7|Lb,U8=_5|Bb,U7=Nb|vJ|PJ,FO=$.ReactCurrentOwner;function Wb(b){var z=b,Q=b;if(!b.alternate){var X=z;do{if(z=X,(z.flags&(V4|G7))!==l0)Q=z.return;X=z.return}while(X)}else while(z.return)z=z.return;if(z.tag===A)return Q;return null}function rG(b){if(b.tag===p){var z=b.memoizedState;if(z===null){var Q=b.alternate;if(Q!==null)z=Q.memoizedState}if(z!==null)return z.dehydrated}return null}function nG(b){return b.tag===A?b.stateNode.containerInfo:null}function RO(b){return Wb(b)===b}function MO(b){{var z=FO.current;if(z!==null&&z.tag===P){var Q=z,X=Q.stateNode;if(!X._warnedAboutRefsInRender)G("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Q1(Q)||"A component");X._warnedAboutRefsInRender=!0}}var Z=G8(b);if(!Z)return!1;return Wb(Z)===Z}function tG(b){if(Wb(b)!==b)throw Error("Unable to find node on an unmounted component.")}function sG(b){var z=b.alternate;if(!z){var Q=Wb(b);if(Q===null)throw Error("Unable to find node on an unmounted component.");if(Q!==b)return null;return b}var X=b,Z=z;while(!0){var J=X.return;if(J===null)break;var H=J.alternate;if(H===null){var Y=J.return;if(Y!==null){X=Z=Y;continue}break}if(J.child===H.child){var K=J.child;while(K){if(K===X)return tG(J),b;if(K===Z)return tG(J),z;K=K.sibling}throw Error("Unable to find node on an unmounted component.")}if(X.return!==Z.return)X=J,Z=H;else{var O=!1,N=J.child;while(N){if(N===X){O=!0,X=J,Z=H;break}if(N===Z){O=!0,Z=J,X=H;break}N=N.sibling}if(!O){N=H.child;while(N){if(N===X){O=!0,X=H,Z=J;break}if(N===Z){O=!0,Z=H,X=J;break}N=N.sibling}if(!O)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!==Z)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(X.tag!==A)throw Error("Unable to find node on an unmounted component.");if(X.stateNode.current===X)return b;return z}function eG(b){var z=sG(b);return z!==null?b9(z):null}function b9(b){if(b.tag===k||b.tag===R)return b;var z=b.child;while(z!==null){var Q=b9(z);if(Q!==null)return Q;z=z.sibling}return null}function kO(b){var z=sG(b);return z!==null?z9(z):null}function z9(b){if(b.tag===k||b.tag===R)return b;var z=b.child;while(z!==null){if(z.tag!==_){var Q=z9(z);if(Q!==null)return Q}z=z.sibling}return null}var Q9=c1.unstable_scheduleCallback,wO=c1.unstable_cancelCallback,AO=c1.unstable_shouldYield,IO=c1.unstable_requestPaint,t4=c1.unstable_now,fO=c1.unstable_getCurrentPriorityLevel,VQ=c1.unstable_ImmediatePriority,MJ=c1.unstable_UserBlockingPriority,_b=c1.unstable_NormalPriority,TO=c1.unstable_LowPriority,kJ=c1.unstable_IdlePriority,hO=c1.unstable_yieldValue,CO=c1.unstable_setDisableYieldValue,Pb=null,J6=null,P0=null,c5=!1,P5=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function SO(b){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(z.isDisabled)return!0;if(!z.supportsFiber)return G("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{if(W4)b=Z1({},b,{getLaneLabelMap:gO,injectProfilingHooks:mO});Pb=z.inject(b),J6=z}catch(Q){G("React instrumentation encountered an error: %s.",Q)}if(z.checkDCE)return!0;else return!1}function VO(b,z){if(J6&&typeof J6.onScheduleFiberRoot==="function")try{J6.onScheduleFiberRoot(Pb,b,z)}catch(Q){if(!c5)c5=!0,G("React instrumentation encountered an error: %s",Q)}}function DO(b,z){if(J6&&typeof J6.onCommitFiberRoot==="function")try{var Q=(b.current.flags&A1)===A1;if(H4){var X;switch(z){case r6:X=VQ;break;case B7:X=MJ;break;case O7:X=_b;break;case cQ:X=kJ;break;default:X=_b;break}J6.onCommitFiberRoot(Pb,b,X,Q)}else J6.onCommitFiberRoot(Pb,b,void 0,Q)}catch(Z){if(!c5)c5=!0,G("React instrumentation encountered an error: %s",Z)}}function EO(b){if(J6&&typeof J6.onPostCommitFiberRoot==="function")try{J6.onPostCommitFiberRoot(Pb,b)}catch(z){if(!c5)c5=!0,G("React instrumentation encountered an error: %s",z)}}function uO(b){if(J6&&typeof J6.onCommitFiberUnmount==="function")try{J6.onCommitFiberUnmount(Pb,b)}catch(z){if(!c5)c5=!0,G("React instrumentation encountered an error: %s",z)}}function s4(b){{if(typeof hO==="function")CO(b),B(b);if(J6&&typeof J6.setStrictMode==="function")try{J6.setStrictMode(Pb,b)}catch(z){if(!c5)c5=!0,G("React instrumentation encountered an error: %s",z)}}}function mO(b){P0=b}function gO(){{var b=new Map,z=1;for(var Q=0;Q<AJ;Q++){var X=ZL(z);b.set(z,X),z*=2}return b}}function yO(b){if(P0!==null&&typeof P0.markCommitStarted==="function")P0.markCommitStarted(b)}function X9(){if(P0!==null&&typeof P0.markCommitStopped==="function")P0.markCommitStopped()}function u3(b){if(P0!==null&&typeof P0.markComponentRenderStarted==="function")P0.markComponentRenderStarted(b)}function q8(){if(P0!==null&&typeof P0.markComponentRenderStopped==="function")P0.markComponentRenderStopped()}function dO(b){if(P0!==null&&typeof P0.markComponentPassiveEffectMountStarted==="function")P0.markComponentPassiveEffectMountStarted(b)}function cO(){if(P0!==null&&typeof P0.markComponentPassiveEffectMountStopped==="function")P0.markComponentPassiveEffectMountStopped()}function aO(b){if(P0!==null&&typeof P0.markComponentPassiveEffectUnmountStarted==="function")P0.markComponentPassiveEffectUnmountStarted(b)}function lO(){if(P0!==null&&typeof P0.markComponentPassiveEffectUnmountStopped==="function")P0.markComponentPassiveEffectUnmountStopped()}function iO(b){if(P0!==null&&typeof P0.markComponentLayoutEffectMountStarted==="function")P0.markComponentLayoutEffectMountStarted(b)}function xO(){if(P0!==null&&typeof P0.markComponentLayoutEffectMountStopped==="function")P0.markComponentLayoutEffectMountStopped()}function Z9(b){if(P0!==null&&typeof P0.markComponentLayoutEffectUnmountStarted==="function")P0.markComponentLayoutEffectUnmountStarted(b)}function J9(){if(P0!==null&&typeof P0.markComponentLayoutEffectUnmountStopped==="function")P0.markComponentLayoutEffectUnmountStopped()}function jO(b,z,Q){if(P0!==null&&typeof P0.markComponentErrored==="function")P0.markComponentErrored(b,z,Q)}function oO(b,z,Q){if(P0!==null&&typeof P0.markComponentSuspended==="function")P0.markComponentSuspended(b,z,Q)}function pO(b){if(P0!==null&&typeof P0.markLayoutEffectsStarted==="function")P0.markLayoutEffectsStarted(b)}function rO(){if(P0!==null&&typeof P0.markLayoutEffectsStopped==="function")P0.markLayoutEffectsStopped()}function nO(b){if(P0!==null&&typeof P0.markPassiveEffectsStarted==="function")P0.markPassiveEffectsStarted(b)}function tO(){if(P0!==null&&typeof P0.markPassiveEffectsStopped==="function")P0.markPassiveEffectsStopped()}function $9(b){if(P0!==null&&typeof P0.markRenderStarted==="function")P0.markRenderStarted(b)}function sO(){if(P0!==null&&typeof P0.markRenderYielded==="function")P0.markRenderYielded()}function H9(){if(P0!==null&&typeof P0.markRenderStopped==="function")P0.markRenderStopped()}function eO(b){if(P0!==null&&typeof P0.markRenderScheduled==="function")P0.markRenderScheduled(b)}function bL(b,z){if(P0!==null&&typeof P0.markForceUpdateScheduled==="function")P0.markForceUpdateScheduled(b,z)}function wJ(b,z){if(P0!==null&&typeof P0.markStateUpdateScheduled==="function")P0.markStateUpdateScheduled(b,z)}var a0=0,O1=1,g1=2,M4=8,a5=16,Y9=Math.clz32?Math.clz32:XL,zL=Math.log,QL=Math.LN2;function XL(b){var z=b>>>0;if(z===0)return 32;return 31-(zL(z)/QL|0)|0}var AJ=31,X0=0,e4=0,r0=1,B8=2,q7=4,vb=8,l5=16,m3=32,O8=4194240,g3=64,IJ=128,fJ=256,TJ=512,hJ=1024,CJ=2048,SJ=4096,VJ=8192,DJ=16384,EJ=32768,uJ=65536,mJ=131072,gJ=262144,yJ=524288,dJ=1048576,cJ=2097152,DQ=130023424,L8=4194304,aJ=8388608,lJ=16777216,iJ=33554432,xJ=67108864,G9=L8,y3=134217728,K9=268435455,d3=268435456,Fb=536870912,o6=1073741824;function ZL(b){{if(b&r0)return"Sync";if(b&B8)return"InputContinuousHydration";if(b&q7)return"InputContinuous";if(b&vb)return"DefaultHydration";if(b&l5)return"Default";if(b&m3)return"TransitionHydration";if(b&O8)return"Transition";if(b&DQ)return"Retry";if(b&y3)return"SelectiveHydration";if(b&d3)return"IdleHydration";if(b&Fb)return"Idle";if(b&o6)return"Offscreen"}}var $4=-1,EQ=g3,uQ=L8;function c3(b){switch(Rb(b)){case r0:return r0;case B8:return B8;case q7:return q7;case vb:return vb;case l5:return l5;case m3:return m3;case g3:case IJ:case fJ:case TJ:case hJ:case CJ:case SJ:case VJ:case DJ:case EJ:case uJ:case mJ:case gJ:case yJ:case dJ:case cJ:return b&O8;case L8:case aJ:case lJ:case iJ:case xJ:return b&DQ;case y3:return y3;case d3:return d3;case Fb:return Fb;case o6:return o6;default:return G("Should have found matching lanes. This is a bug in React."),b}}function mQ(b,z){var Q=b.pendingLanes;if(Q===X0)return X0;var X=X0,Z=b.suspendedLanes,J=b.pingedLanes,H=Q&K9;if(H!==X0){var Y=H&~Z;if(Y!==X0)X=c3(Y);else{var K=H&J;if(K!==X0)X=c3(K)}}else{var O=Q&~Z;if(O!==X0)X=c3(O);else if(J!==X0)X=c3(J)}if(X===X0)return X0;if(z!==X0&&z!==X&&(z&Z)===X0){var N=Rb(X),f=Rb(z);if(N>=f||N===l5&&(f&O8)!==X0)return z}if((X&q7)!==X0)X|=Q&l5;var I=b.entangledLanes;if(I!==X0){var m=b.entanglements,g=X&I;while(g>0){var a=Mb(g),W0=1<<a;X|=m[a],g&=~W0}}return X}function JL(b,z){var Q=b.eventTimes,X=$4;while(z>0){var Z=Mb(z),J=1<<Z,H=Q[Z];if(H>X)X=H;z&=~J}return X}function $L(b,z){switch(b){case r0:case B8:case q7:return z+250;case vb:case l5:case m3:case g3:case IJ:case fJ:case TJ:case hJ:case CJ:case SJ:case VJ:case DJ:case EJ:case uJ:case mJ:case gJ:case yJ:case dJ:case cJ:return z+5000;case L8:case aJ:case lJ:case iJ:case xJ:return $4;case y3:case d3:case Fb:case o6:return $4;default:return G("Should have found matching lanes. This is a bug in React."),$4}}function HL(b,z){var{pendingLanes:Q,suspendedLanes:X,pingedLanes:Z,expirationTimes:J}=b,H=Q;while(H>0){var Y=Mb(H),K=1<<Y,O=J[Y];if(O===$4){if((K&X)===X0||(K&Z)!==X0)J[Y]=$L(K,z)}else if(O<=z)b.expiredLanes|=K;H&=~K}}function YL(b){return c3(b.pendingLanes)}function jJ(b){var z=b.pendingLanes&~o6;if(z!==X0)return z;if(z&o6)return o6;return X0}function GL(b){return(b&r0)!==X0}function oJ(b){return(b&K9)!==X0}function U9(b){return(b&DQ)===b}function KL(b){var z=r0|q7|l5;return(b&z)===X0}function UL(b){return(b&O8)===b}function gQ(b,z){var Q=B8|q7|vb|l5;return(z&Q)!==X0}function qL(b,z){return(z&b.expiredLanes)!==X0}function q9(b){return(b&O8)!==X0}function B9(){var b=EQ;if(EQ<<=1,(EQ&O8)===X0)EQ=g3;return b}function BL(){var b=uQ;if(uQ<<=1,(uQ&DQ)===X0)uQ=L8;return b}function Rb(b){return b&-b}function a3(b){return Rb(b)}function Mb(b){return 31-Y9(b)}function pJ(b){return Mb(b)}function p6(b,z){return(b&z)!==X0}function N8(b,z){return(b&z)===z}function X1(b,z){return b|z}function yQ(b,z){return b&~z}function O9(b,z){return b&z}function dQ(b){return b}function OL(b,z){return b!==e4&&b<z?b:z}function rJ(b){var z=[];for(var Q=0;Q<AJ;Q++)z.push(b);return z}function l3(b,z,Q){if(b.pendingLanes|=z,z!==Fb)b.suspendedLanes=X0,b.pingedLanes=X0;var X=b.eventTimes,Z=pJ(z);X[Z]=Q}function LL(b,z){b.suspendedLanes|=z,b.pingedLanes&=~z;var Q=b.expirationTimes,X=z;while(X>0){var Z=Mb(X),J=1<<Z;Q[Z]=$4,X&=~J}}function L9(b,z,Q){b.pingedLanes|=b.suspendedLanes&z}function NL(b,z){var Q=b.pendingLanes&~z;b.pendingLanes=z,b.suspendedLanes=X0,b.pingedLanes=X0,b.expiredLanes&=z,b.mutableReadLanes&=z,b.entangledLanes&=z;var{entanglements:X,eventTimes:Z,expirationTimes:J}=b,H=Q;while(H>0){var Y=Mb(H),K=1<<Y;X[Y]=X0,Z[Y]=$4,J[Y]=$4,H&=~K}}function nJ(b,z){var Q=b.entangledLanes|=z,X=b.entanglements,Z=Q;while(Z){var J=Mb(Z),H=1<<J;if(H&z|X[J]&z)X[J]|=z;Z&=~H}}function WL(b,z){var Q=Rb(z),X;switch(Q){case q7:X=B8;break;case l5:X=vb;break;case g3:case IJ:case fJ:case TJ:case hJ:case CJ:case SJ:case VJ:case DJ:case EJ:case uJ:case mJ:case gJ:case yJ:case dJ:case cJ:case L8:case aJ:case lJ:case iJ:case xJ:X=m3;break;case Fb:X=d3;break;default:X=e4;break}if((X&(b.suspendedLanes|z))!==e4)return e4;return X}function N9(b,z,Q){if(!P5)return;var X=b.pendingUpdatersLaneMap;while(Q>0){var Z=pJ(Q),J=1<<Z,H=X[Z];H.add(z),Q&=~J}}function W9(b,z){if(!P5)return;var{pendingUpdatersLaneMap:Q,memoizedUpdaters:X}=b;while(z>0){var Z=pJ(z),J=1<<Z,H=Q[Z];if(H.size>0)H.forEach(function(Y){var K=Y.alternate;if(K===null||!X.has(K))X.add(Y)}),H.clear();z&=~J}}function _9(b,z){return null}var r6=r0,B7=q7,O7=l5,cQ=Fb,i3=e4;function v5(){return i3}function b6(b){i3=b}function _L(b,z){var Q=i3;try{return i3=b,z()}finally{i3=Q}}function PL(b,z){return b!==0&&b<z?b:z}function vL(b,z){return b===0||b>z?b:z}function tJ(b,z){return b!==0&&b<z}function P9(b){var z=Rb(b);if(!tJ(r6,z))return r6;if(!tJ(B7,z))return B7;if(oJ(z))return O7;return cQ}function aQ(b){var z=b.current.memoizedState;return z.isDehydrated}var v9;function FL(b){v9=b}function RL(b){v9(b)}var sJ;function ML(b){sJ=b}var F9;function kL(b){F9=b}var R9;function wL(b){R9=b}var M9;function AL(b){M9=b}var eJ=!1,lQ=[],m7=null,g7=null,y7=null,x3=new Map,j3=new Map,d7=[],IL=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function fL(b){return IL.indexOf(b)>-1}function TL(b,z,Q,X,Z){return{blockedOn:b,domEventName:z,eventSystemFlags:Q,nativeEvent:Z,targetContainers:[X]}}function k9(b,z){switch(b){case"focusin":case"focusout":m7=null;break;case"dragenter":case"dragleave":g7=null;break;case"mouseover":case"mouseout":y7=null;break;case"pointerover":case"pointerout":{var Q=z.pointerId;x3.delete(Q);break}case"gotpointercapture":case"lostpointercapture":{var X=z.pointerId;j3.delete(X);break}}}function o3(b,z,Q,X,Z,J){if(b===null||b.nativeEvent!==J){var H=TL(z,Q,X,Z,J);if(z!==null){var Y=l7(z);if(Y!==null)sJ(Y)}return H}b.eventSystemFlags|=X;var K=b.targetContainers;if(Z!==null&&K.indexOf(Z)===-1)K.push(Z);return b}function hL(b,z,Q,X,Z){switch(z){case"focusin":{var J=Z;return m7=o3(m7,b,z,Q,X,J),!0}case"dragenter":{var H=Z;return g7=o3(g7,b,z,Q,X,H),!0}case"mouseover":{var Y=Z;return y7=o3(y7,b,z,Q,X,Y),!0}case"pointerover":{var K=Z,O=K.pointerId;return x3.set(O,o3(x3.get(O)||null,b,z,Q,X,K)),!0}case"gotpointercapture":{var N=Z,f=N.pointerId;return j3.set(f,o3(j3.get(f)||null,b,z,Q,X,N)),!0}}return!1}function w9(b){var z=Ab(b.target);if(z!==null){var Q=Wb(z);if(Q!==null){var X=Q.tag;if(X===p){var Z=rG(Q);if(Z!==null){b.blockedOn=Z,M9(b.priority,function(){F9(Q)});return}}else if(X===A){var J=Q.stateNode;if(aQ(J)){b.blockedOn=nG(Q);return}}}}b.blockedOn=null}function CL(b){var z=R9(),Q={blockedOn:null,target:b,priority:z},X=0;for(;X<d7.length;X++)if(!tJ(z,d7[X].priority))break;if(d7.splice(X,0,Q),X===0)w9(Q)}function iQ(b){if(b.blockedOn!==null)return!1;var z=b.targetContainers;while(z.length>0){var Q=z[0],X=Q$(b.domEventName,b.eventSystemFlags,Q,b.nativeEvent);if(X===null){var Z=b.nativeEvent,J=new Z.constructor(Z.type,Z);XO(J),Z.target.dispatchEvent(J),ZO()}else{var H=l7(X);if(H!==null)sJ(H);return b.blockedOn=X,!1}z.shift()}return!0}function A9(b,z,Q){if(iQ(b))Q.delete(z)}function SL(){if(eJ=!1,m7!==null&&iQ(m7))m7=null;if(g7!==null&&iQ(g7))g7=null;if(y7!==null&&iQ(y7))y7=null;x3.forEach(A9),j3.forEach(A9)}function p3(b,z){if(b.blockedOn===z){if(b.blockedOn=null,!eJ)eJ=!0,c1.unstable_scheduleCallback(c1.unstable_NormalPriority,SL)}}function r3(b){if(lQ.length>0){p3(lQ[0],b);for(var z=1;z<lQ.length;z++){var Q=lQ[z];if(Q.blockedOn===b)Q.blockedOn=null}}if(m7!==null)p3(m7,b);if(g7!==null)p3(g7,b);if(y7!==null)p3(y7,b);var X=function(Y){return p3(Y,b)};x3.forEach(X),j3.forEach(X);for(var Z=0;Z<d7.length;Z++){var J=d7[Z];if(J.blockedOn===b)J.blockedOn=null}while(d7.length>0){var H=d7[0];if(H.blockedOn!==null)break;else if(w9(H),H.blockedOn===null)d7.shift()}}var W8=$.ReactCurrentBatchConfig,b$=!0;function I9(b){b$=!!b}function VL(){return b$}function DL(b,z,Q){var X=f9(z),Z;switch(X){case r6:Z=EL;break;case B7:Z=uL;break;case O7:default:Z=z$;break}return Z.bind(null,z,Q,b)}function EL(b,z,Q,X){var Z=v5(),J=W8.transition;W8.transition=null;try{b6(r6),z$(b,z,Q,X)}finally{b6(Z),W8.transition=J}}function uL(b,z,Q,X){var Z=v5(),J=W8.transition;W8.transition=null;try{b6(B7),z$(b,z,Q,X)}finally{b6(Z),W8.transition=J}}function z$(b,z,Q,X){if(!b$)return;mL(b,z,Q,X)}function mL(b,z,Q,X){var Z=Q$(b,z,Q,X);if(Z===null){N$(b,z,X,xQ,Q),k9(b,X);return}if(hL(Z,b,z,Q,X)){X.stopPropagation();return}if(k9(b,X),z&T3&&fL(b)){while(Z!==null){var J=l7(Z);if(J!==null)RL(J);var H=Q$(b,z,Q,X);if(H===null)N$(b,z,X,xQ,Q);if(H===Z)break;Z=H}if(Z!==null)X.stopPropagation();return}N$(b,z,X,null,Q)}var xQ=null;function Q$(b,z,Q,X){xQ=null;var Z=GJ(X),J=Ab(Z);if(J!==null){var H=Wb(J);if(H===null)J=null;else{var Y=H.tag;if(Y===p){var K=rG(H);if(K!==null)return K;J=null}else if(Y===A){var O=H.stateNode;if(aQ(O))return nG(H);J=null}else if(H!==J)J=null}}return xQ=J,null}function f9(b){switch(b){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return r6;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return B7;case"message":{var z=fO();switch(z){case VQ:return r6;case MJ:return B7;case _b:case TO:return O7;case kJ:return cQ;default:return O7}}default:return O7}}function gL(b,z,Q){return b.addEventListener(z,Q,!1),Q}function yL(b,z,Q){return b.addEventListener(z,Q,!0),Q}function dL(b,z,Q,X){return b.addEventListener(z,Q,{capture:!0,passive:X}),Q}function cL(b,z,Q,X){return b.addEventListener(z,Q,{passive:X}),Q}var n3=null,X$=null,t3=null;function aL(b){return n3=b,X$=h9(),!0}function lL(){n3=null,X$=null,t3=null}function T9(){if(t3)return t3;var b,z=X$,Q=z.length,X,Z=h9(),J=Z.length;for(b=0;b<Q;b++)if(z[b]!==Z[b])break;var H=Q-b;for(X=1;X<=H;X++)if(z[Q-X]!==Z[J-X])break;var Y=X>1?1-X:void 0;return t3=Z.slice(b,Y),t3}function h9(){if("value"in n3)return n3.value;return n3.textContent}function jQ(b){var z,Q=b.keyCode;if("charCode"in b){if(z=b.charCode,z===0&&Q===13)z=13}else z=Q;if(z===10)z=13;if(z>=32||z===13)return z;return 0}function oQ(){return!0}function C9(){return!1}function n6(b){function z(Q,X,Z,J,H){this._reactName=Q,this._targetInst=Z,this.type=X,this.nativeEvent=J,this.target=H,this.currentTarget=null;for(var Y in b){if(!b.hasOwnProperty(Y))continue;var K=b[Y];if(K)this[Y]=K(J);else this[Y]=J[Y]}var O=J.defaultPrevented!=null?J.defaultPrevented:J.returnValue===!1;if(O)this.isDefaultPrevented=oQ;else this.isDefaultPrevented=C9;return this.isPropagationStopped=C9,this}return Z1(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;if(!Q)return;if(Q.preventDefault)Q.preventDefault();else if(typeof Q.returnValue!=="unknown")Q.returnValue=!1;this.isDefaultPrevented=oQ},stopPropagation:function(){var Q=this.nativeEvent;if(!Q)return;if(Q.stopPropagation)Q.stopPropagation();else if(typeof Q.cancelBubble!=="unknown")Q.cancelBubble=!0;this.isPropagationStopped=oQ},persist:function(){},isPersistent:oQ}),z}var _8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(b){return b.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Z$=n6(_8),s3=Z1({},_8,{view:0,detail:0}),iL=n6(s3),J$,$$,e3;function xL(b){if(b!==e3){if(e3&&b.type==="mousemove")J$=b.screenX-e3.screenX,$$=b.screenY-e3.screenY;else J$=0,$$=0;e3=b}}var pQ=Z1({},s3,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Y$,button:0,buttons:0,relatedTarget:function(b){if(b.relatedTarget===void 0)return b.fromElement===b.srcElement?b.toElement:b.fromElement;return b.relatedTarget},movementX:function(b){if("movementX"in b)return b.movementX;return xL(b),J$},movementY:function(b){if("movementY"in b)return b.movementY;return $$}}),S9=n6(pQ),jL=Z1({},pQ,{dataTransfer:0}),oL=n6(jL),pL=Z1({},s3,{relatedTarget:0}),H$=n6(pL),rL=Z1({},_8,{animationName:0,elapsedTime:0,pseudoElement:0}),nL=n6(rL),tL=Z1({},_8,{clipboardData:function(b){return"clipboardData"in b?b.clipboardData:window.clipboardData}}),sL=n6(tL),eL=Z1({},_8,{data:0}),V9=n6(eL),bN=V9,zN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QN={"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"};function XN(b){if(b.key){var z=zN[b.key]||b.key;if(z!=="Unidentified")return z}if(b.type==="keypress"){var Q=jQ(b);return Q===13?"Enter":String.fromCharCode(Q)}if(b.type==="keydown"||b.type==="keyup")return QN[b.keyCode]||"Unidentified";return""}var ZN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JN(b){var z=this,Q=z.nativeEvent;if(Q.getModifierState)return Q.getModifierState(b);var X=ZN[b];return X?!!Q[X]:!1}function Y$(b){return JN}var $N=Z1({},s3,{key:XN,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Y$,charCode:function(b){if(b.type==="keypress")return jQ(b);return 0},keyCode:function(b){if(b.type==="keydown"||b.type==="keyup")return b.keyCode;return 0},which:function(b){if(b.type==="keypress")return jQ(b);if(b.type==="keydown"||b.type==="keyup")return b.keyCode;return 0}}),HN=n6($N),YN=Z1({},pQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),D9=n6(YN),GN=Z1({},s3,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Y$}),KN=n6(GN),UN=Z1({},_8,{propertyName:0,elapsedTime:0,pseudoElement:0}),qN=n6(UN),BN=Z1({},pQ,{deltaX:function(b){return"deltaX"in b?b.deltaX:("wheelDeltaX"in b)?-b.wheelDeltaX:0},deltaY:function(b){return"deltaY"in b?b.deltaY:("wheelDeltaY"in b)?-b.wheelDeltaY:("wheelDelta"in b)?-b.wheelDelta:0},deltaZ:0,deltaMode:0}),ON=n6(BN),LN=[9,13,27,32],E9=229,G$=X4&&"CompositionEvent"in window,bz=null;if(X4&&"documentMode"in document)bz=document.documentMode;var NN=X4&&"TextEvent"in window&&!bz,u9=X4&&(!G$||bz&&bz>8&&bz<=11),m9=32,g9=String.fromCharCode(m9);function WN(){Y4("onBeforeInput",["compositionend","keypress","textInput","paste"]),Y4("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Y4("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Y4("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var y9=!1;function _N(b){return(b.ctrlKey||b.altKey||b.metaKey)&&!(b.ctrlKey&&b.altKey)}function PN(b){switch(b){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function vN(b,z){return b==="keydown"&&z.keyCode===E9}function d9(b,z){switch(b){case"keyup":return LN.indexOf(z.keyCode)!==-1;case"keydown":return z.keyCode!==E9;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c9(b){var z=b.detail;if(typeof z==="object"&&"data"in z)return z.data;return null}function a9(b){return b.locale==="ko"}var P8=!1;function FN(b,z,Q,X,Z){var J,H;if(G$)J=PN(z);else if(!P8){if(vN(z,X))J="onCompositionStart"}else if(d9(z,X))J="onCompositionEnd";if(!J)return null;if(u9&&!a9(X)){if(!P8&&J==="onCompositionStart")P8=aL(Z);else if(J==="onCompositionEnd"){if(P8)H=T9()}}var Y=eQ(Q,J);if(Y.length>0){var K=new V9(J,z,null,X,Z);if(b.push({event:K,listeners:Y}),H)K.data=H;else{var O=c9(X);if(O!==null)K.data=O}}}function RN(b,z){switch(b){case"compositionend":return c9(z);case"keypress":var Q=z.which;if(Q!==m9)return null;return y9=!0,g9;case"textInput":var X=z.data;if(X===g9&&y9)return null;return X;default:return null}}function MN(b,z){if(P8){if(b==="compositionend"||!G$&&d9(b,z)){var Q=T9();return lL(),P8=!1,Q}return null}switch(b){case"paste":return null;case"keypress":if(!_N(z)){if(z.char&&z.char.length>1)return z.char;else if(z.which)return String.fromCharCode(z.which)}return null;case"compositionend":return u9&&!a9(z)?null:z.data;default:return null}}function kN(b,z,Q,X,Z){var J;if(NN)J=RN(z,X);else J=MN(z,X);if(!J)return null;var H=eQ(Q,"onBeforeInput");if(H.length>0){var Y=new bN("onBeforeInput","beforeinput",null,X,Z);b.push({event:Y,listeners:H}),Y.data=J}}function wN(b,z,Q,X,Z,J,H){FN(b,z,Q,X,Z),kN(b,z,Q,X,Z)}var AN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function l9(b){var z=b&&b.nodeName&&b.nodeName.toLowerCase();if(z==="input")return!!AN[b.type];if(z==="textarea")return!0;return!1}function IN(b){if(!X4)return!1;var z="on"+b,Q=z in document;if(!Q){var X=document.createElement("div");X.setAttribute(z,"return;"),Q=typeof X[z]==="function"}return Q}function fN(){Y4("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function i9(b,z,Q,X){cG(X);var Z=eQ(z,"onChange");if(Z.length>0){var J=new Z$("onChange","change",null,Q,X);b.push({event:J,listeners:Z})}}var zz=null,Qz=null;function TN(b){var z=b.nodeName&&b.nodeName.toLowerCase();return z==="select"||z==="input"&&b.type==="file"}function hN(b){var z=[];i9(z,Qz,b,GJ(b)),xG(CN,z)}function CN(b){YK(b,0)}function rQ(b){var z=w8(b);if(z8(z))return b}function SN(b,z){if(b==="change")return z}var x9=!1;if(X4)x9=IN("input")&&(!document.documentMode||document.documentMode>9);function VN(b,z){zz=b,Qz=z,zz.attachEvent("onpropertychange",o9)}function j9(){if(!zz)return;zz.detachEvent("onpropertychange",o9),zz=null,Qz=null}function o9(b){if(b.propertyName!=="value")return;if(rQ(Qz))hN(b)}function DN(b,z,Q){if(b==="focusin")j9(),VN(z,Q);else if(b==="focusout")j9()}function EN(b,z){if(b==="selectionchange"||b==="keyup"||b==="keydown")return rQ(Qz)}function uN(b){var z=b.nodeName;return z&&z.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")}function mN(b,z){if(b==="click")return rQ(z)}function gN(b,z){if(b==="input"||b==="change")return rQ(z)}function yN(b){var z=b._wrapperState;if(!z||!z.controlled||b.type!=="number")return;p0(b,"number",b.value)}function dN(b,z,Q,X,Z,J,H){var Y=Q?w8(Q):window,K,O;if(TN(Y))K=SN;else if(l9(Y))if(x9)K=gN;else K=EN,O=DN;else if(uN(Y))K=mN;if(K){var N=K(z,Q);if(N){i9(b,N,X,Z);return}}if(O)O(z,Y,Q);if(z==="focusout")yN(Y)}function cN(){E4("onMouseEnter",["mouseout","mouseover"]),E4("onMouseLeave",["mouseout","mouseover"]),E4("onPointerEnter",["pointerout","pointerover"]),E4("onPointerLeave",["pointerout","pointerover"])}function aN(b,z,Q,X,Z,J,H){var Y=z==="mouseover"||z==="pointerover",K=z==="mouseout"||z==="pointerout";if(Y&&!JO(X)){var O=X.relatedTarget||X.fromElement;if(O){if(Ab(O)||Wz(O))return}}if(!K&&!Y)return;var N;if(Z.window===Z)N=Z;else{var f=Z.ownerDocument;if(f)N=f.defaultView||f.parentWindow;else N=window}var I,m;if(K){var g=X.relatedTarget||X.toElement;if(I=Q,m=g?Ab(g):null,m!==null){var a=Wb(m);if(m!==a||m.tag!==k&&m.tag!==R)m=null}}else I=null,m=Q;if(I===m)return;var W0=S9,g0="onMouseLeave",S0="onMouseEnter",Y1="mouse";if(z==="pointerout"||z==="pointerover")W0=D9,g0="onPointerLeave",S0="onPointerEnter",Y1="pointer";var G1=I==null?N:w8(I),C=m==null?N:w8(m),j=new W0(g0,Y1+"leave",I,X,Z);j.target=G1,j.relatedTarget=C;var S=null,J0=Ab(Z);if(J0===Q){var M0=new W0(S0,Y1+"enter",m,X,Z);M0.target=C,M0.relatedTarget=G1,S=M0}qW(b,j,S,I,m)}function lN(b,z){return b===z&&(b!==0||1/b===1/z)||b!==b&&z!==z}var t6=typeof Object.is==="function"?Object.is:lN;function Xz(b,z){if(t6(b,z))return!0;if(typeof b!=="object"||b===null||typeof z!=="object"||z===null)return!1;var Q=Object.keys(b),X=Object.keys(z);if(Q.length!==X.length)return!1;for(var Z=0;Z<Q.length;Z++){var J=Q[Z];if(!u4.call(z,J)||!t6(b[J],z[J]))return!1}return!0}function p9(b){while(b&&b.firstChild)b=b.firstChild;return b}function iN(b){while(b){if(b.nextSibling)return b.nextSibling;b=b.parentNode}}function r9(b,z){var Q=p9(b),X=0,Z=0;while(Q){if(Q.nodeType===$7){if(Z=X+Q.textContent.length,X<=z&&Z>=z)return{node:Q,offset:z-X};X=Z}Q=p9(iN(Q))}}function xN(b){var z=b.ownerDocument,Q=z&&z.defaultView||window,X=Q.getSelection&&Q.getSelection();if(!X||X.rangeCount===0)return null;var{anchorNode:Z,anchorOffset:J,focusNode:H,focusOffset:Y}=X;try{Z.nodeType,H.nodeType}catch(K){return null}return jN(b,Z,J,H,Y)}function jN(b,z,Q,X,Z){var J=0,H=-1,Y=-1,K=0,O=0,N=b,f=null;b:while(!0){var I=null;while(!0){if(N===z&&(Q===0||N.nodeType===$7))H=J+Q;if(N===X&&(Z===0||N.nodeType===$7))Y=J+Z;if(N.nodeType===$7)J+=N.nodeValue.length;if((I=N.firstChild)===null)break;f=N,N=I}while(!0){if(N===b)break b;if(f===z&&++K===Q)H=J;if(f===X&&++O===Z)Y=J;if((I=N.nextSibling)!==null)break;N=f,f=N.parentNode}N=I}if(H===-1||Y===-1)return null;return{start:H,end:Y}}function oN(b,z){var Q=b.ownerDocument||document,X=Q&&Q.defaultView||window;if(!X.getSelection)return;var Z=X.getSelection(),J=b.textContent.length,H=Math.min(z.start,J),Y=z.end===void 0?H:Math.min(z.end,J);if(!Z.extend&&H>Y){var K=Y;Y=H,H=K}var O=r9(b,H),N=r9(b,Y);if(O&&N){if(Z.rangeCount===1&&Z.anchorNode===O.node&&Z.anchorOffset===O.offset&&Z.focusNode===N.node&&Z.focusOffset===N.offset)return;var f=Q.createRange();if(f.setStart(O.node,O.offset),Z.removeAllRanges(),H>Y)Z.addRange(f),Z.extend(N.node,N.offset);else f.setEnd(N.node,N.offset),Z.addRange(f)}}function n9(b){return b&&b.nodeType===$7}function t9(b,z){if(!b||!z)return!1;else if(b===z)return!0;else if(n9(b))return!1;else if(n9(z))return t9(b,z.parentNode);else if("contains"in b)return b.contains(z);else if(b.compareDocumentPosition)return!!(b.compareDocumentPosition(z)&16);else return!1}function pN(b){return b&&b.ownerDocument&&t9(b.ownerDocument.documentElement,b)}function rN(b){try{return typeof b.contentWindow.location.href==="string"}catch(z){return!1}}function s9(){var b=window,z=E7();while(z instanceof b.HTMLIFrameElement){if(rN(z))b=z.contentWindow;else return z;z=E7(b.document)}return z}function K$(b){var z=b&&b.nodeName&&b.nodeName.toLowerCase();return z&&(z==="input"&&(b.type==="text"||b.type==="search"||b.type==="tel"||b.type==="url"||b.type==="password")||z==="textarea"||b.contentEditable==="true")}function nN(){var b=s9();return{focusedElem:b,selectionRange:K$(b)?sN(b):null}}function tN(b){var z=s9(),Q=b.focusedElem,X=b.selectionRange;if(z!==Q&&pN(Q)){if(X!==null&&K$(Q))eN(Q,X);var Z=[],J=Q;while(J=J.parentNode)if(J.nodeType===g6)Z.push({element:J,left:J.scrollLeft,top:J.scrollTop});if(typeof Q.focus==="function")Q.focus();for(var H=0;H<Z.length;H++){var Y=Z[H];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}}function sN(b){var z;if("selectionStart"in b)z={start:b.selectionStart,end:b.selectionEnd};else z=xN(b);return z||{start:0,end:0}}function eN(b,z){var{start:Q,end:X}=z;if(X===void 0)X=Q;if("selectionStart"in b)b.selectionStart=Q,b.selectionEnd=Math.min(X,b.value.length);else oN(b,z)}var bW=X4&&"documentMode"in document&&document.documentMode<=11;function zW(){Y4("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var v8=null,U$=null,Zz=null,q$=!1;function QW(b){if("selectionStart"in b&&K$(b))return{start:b.selectionStart,end:b.selectionEnd};else{var z=b.ownerDocument&&b.ownerDocument.defaultView||window,Q=z.getSelection();return{anchorNode:Q.anchorNode,anchorOffset:Q.anchorOffset,focusNode:Q.focusNode,focusOffset:Q.focusOffset}}}function XW(b){return b.window===b?b.document:b.nodeType===H7?b:b.ownerDocument}function e9(b,z,Q){var X=XW(Q);if(q$||v8==null||v8!==E7(X))return;var Z=QW(v8);if(!Zz||!Xz(Zz,Z)){Zz=Z;var J=eQ(U$,"onSelect");if(J.length>0){var H=new Z$("onSelect","select",null,z,Q);b.push({event:H,listeners:J}),H.target=v8}}}function ZW(b,z,Q,X,Z,J,H){var Y=Q?w8(Q):window;switch(z){case"focusin":if(l9(Y)||Y.contentEditable==="true")v8=Y,U$=Q,Zz=null;break;case"focusout":v8=null,U$=null,Zz=null;break;case"mousedown":q$=!0;break;case"contextmenu":case"mouseup":case"dragend":q$=!1,e9(b,X,Z);break;case"selectionchange":if(bW)break;case"keydown":case"keyup":e9(b,X,Z)}}function nQ(b,z){var Q={};return Q[b.toLowerCase()]=z.toLowerCase(),Q["Webkit"+b]="webkit"+z,Q["Moz"+b]="moz"+z,Q}var F8={animationend:nQ("Animation","AnimationEnd"),animationiteration:nQ("Animation","AnimationIteration"),animationstart:nQ("Animation","AnimationStart"),transitionend:nQ("Transition","TransitionEnd")},B$={},bK={};if(X4){if(bK=document.createElement("div").style,!("AnimationEvent"in window))delete F8.animationend.animation,delete F8.animationiteration.animation,delete F8.animationstart.animation;if(!("TransitionEvent"in window))delete F8.transitionend.transition}function tQ(b){if(B$[b])return B$[b];else if(!F8[b])return b;var z=F8[b];for(var Q in z)if(z.hasOwnProperty(Q)&&Q in bK)return B$[b]=z[Q];return b}var zK=tQ("animationend"),QK=tQ("animationiteration"),XK=tQ("animationstart"),ZK=tQ("transitionend"),JK=new Map,$K=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function c7(b,z){JK.set(b,z),Y4(z,[b])}function JW(){for(var b=0;b<$K.length;b++){var z=$K[b],Q=z.toLowerCase(),X=z[0].toUpperCase()+z.slice(1);c7(Q,"on"+X)}c7(zK,"onAnimationEnd"),c7(QK,"onAnimationIteration"),c7(XK,"onAnimationStart"),c7("dblclick","onDoubleClick"),c7("focusin","onFocus"),c7("focusout","onBlur"),c7(ZK,"onTransitionEnd")}function $W(b,z,Q,X,Z,J,H){var Y=JK.get(z);if(Y===void 0)return;var K=Z$,O=z;switch(z){case"keypress":if(jQ(X)===0)return;case"keydown":case"keyup":K=HN;break;case"focusin":O="focus",K=H$;break;case"focusout":O="blur",K=H$;break;case"beforeblur":case"afterblur":K=H$;break;case"click":if(X.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=S9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=oL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=KN;break;case zK:case QK:case XK:K=nL;break;case ZK:K=qN;break;case"scroll":K=iL;break;case"wheel":K=ON;break;case"copy":case"cut":case"paste":K=sL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=D9;break}var N=(J&T3)!==0;{var f=!N&&z==="scroll",I=KW(Q,Y,X.type,N,f);if(I.length>0){var m=new K(Y,O,null,X,Z);b.push({event:m,listeners:I})}}}JW(),cN(),fN(),zW(),WN();function HW(b,z,Q,X,Z,J,H){$W(b,z,Q,X,Z,J);var Y=(J&QO)===0;if(Y)aN(b,z,Q,X,Z),dN(b,z,Q,X,Z),ZW(b,z,Q,X,Z),wN(b,z,Q,X,Z)}var Jz=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],O$=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Jz));function HK(b,z,Q){var X=b.type||"unknown-event";b.currentTarget=Q,OO(X,z,void 0,b),b.currentTarget=null}function YW(b,z,Q){var X;if(Q)for(var Z=z.length-1;Z>=0;Z--){var J=z[Z],H=J.instance,Y=J.currentTarget,K=J.listener;if(H!==X&&b.isPropagationStopped())return;HK(b,K,Y),X=H}else for(var O=0;O<z.length;O++){var N=z[O],f=N.instance,I=N.currentTarget,m=N.listener;if(f!==X&&b.isPropagationStopped())return;HK(b,m,I),X=f}}function YK(b,z){var Q=(z&T3)!==0;for(var X=0;X<b.length;X++){var Z=b[X],J=Z.event,H=Z.listeners;YW(J,H,Q)}LO()}function GW(b,z,Q,X,Z){var J=GJ(Q),H=[];HW(H,b,X,Q,J,z),YK(H,z)}function q4(b,z){if(!O$.has(b))G('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',b);var Q=!1,X=y_(z),Z=BW(b,Q);if(!X.has(Z))GK(z,b,YJ,Q),X.add(Z)}function L$(b,z,Q){if(O$.has(b)&&!z)G('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',b);var X=0;if(z)X|=T3;GK(Q,b,X,z)}var sQ="_reactListening"+Math.random().toString(36).slice(2);function $z(b){if(!b[sQ]){b[sQ]=!0,_4.forEach(function(Q){if(Q!=="selectionchange"){if(!O$.has(Q))L$(Q,!1,b);L$(Q,!0,b)}});var z=b.nodeType===H7?b:b.ownerDocument;if(z!==null){if(!z[sQ])z[sQ]=!0,L$("selectionchange",!1,z)}}}function GK(b,z,Q,X,Z){var J=DL(b,z,Q),H=void 0;if(qJ){if(z==="touchstart"||z==="touchmove"||z==="wheel")H=!0}b=b;var Y;if(X)if(H!==void 0)Y=dL(b,z,J,H);else Y=yL(b,z,J);else if(H!==void 0)Y=cL(b,z,J,H);else Y=gL(b,z,J)}function KK(b,z){return b===z||b.nodeType===S4&&b.parentNode===z}function N$(b,z,Q,X,Z){var J=X;if((z&yG)===0&&(z&YJ)===0){var H=Z;if(X!==null){var Y=X;b:while(!0){if(Y===null)return;var K=Y.tag;if(K===A||K===_){var O=Y.stateNode.containerInfo;if(KK(O,H))break;if(K===_){var N=Y.return;while(N!==null){var f=N.tag;if(f===A||f===_){var I=N.stateNode.containerInfo;if(KK(I,H))return}N=N.return}}while(O!==null){var m=Ab(O);if(m===null)return;var g=m.tag;if(g===k||g===R){Y=J=m;continue b}O=O.parentNode}}Y=Y.return}}}xG(function(){return GW(b,z,Q,J)})}function Hz(b,z,Q){return{instance:b,listener:z,currentTarget:Q}}function KW(b,z,Q,X,Z,J){var H=z!==null?z+"Capture":null,Y=X?H:z,K=[],O=b,N=null;while(O!==null){var f=O,I=f.stateNode,m=f.tag;if(m===k&&I!==null){if(N=I,Y!==null){var g=C3(O,Y);if(g!=null)K.push(Hz(O,g,N))}}if(Z)break;O=O.return}return K}function eQ(b,z){var Q=z+"Capture",X=[],Z=b;while(Z!==null){var J=Z,H=J.stateNode,Y=J.tag;if(Y===k&&H!==null){var K=H,O=C3(Z,Q);if(O!=null)X.unshift(Hz(Z,O,K));var N=C3(Z,z);if(N!=null)X.push(Hz(Z,N,K))}Z=Z.return}return X}function R8(b){if(b===null)return null;do b=b.return;while(b&&b.tag!==k);if(b)return b;return null}function UW(b,z){var Q=b,X=z,Z=0;for(var J=Q;J;J=R8(J))Z++;var H=0;for(var Y=X;Y;Y=R8(Y))H++;while(Z-H>0)Q=R8(Q),Z--;while(H-Z>0)X=R8(X),H--;var K=Z;while(K--){if(Q===X||X!==null&&Q===X.alternate)return Q;Q=R8(Q),X=R8(X)}return null}function UK(b,z,Q,X,Z){var J=z._reactName,H=[],Y=Q;while(Y!==null){if(Y===X)break;var K=Y,O=K.alternate,N=K.stateNode,f=K.tag;if(O!==null&&O===X)break;if(f===k&&N!==null){var I=N;if(Z){var m=C3(Y,J);if(m!=null)H.unshift(Hz(Y,m,I))}else if(!Z){var g=C3(Y,J);if(g!=null)H.push(Hz(Y,g,I))}}Y=Y.return}if(H.length!==0)b.push({event:z,listeners:H})}function qW(b,z,Q,X,Z){var J=X&&Z?UW(X,Z):null;if(X!==null)UK(b,z,X,J,!1);if(Z!==null&&Q!==null)UK(b,Q,Z,J,!0)}function BW(b,z){return b+"__"+(z?"capture":"bubble")}var y6=!1,Yz="dangerouslySetInnerHTML",bX="suppressContentEditableWarning",a7="suppressHydrationWarning",qK="autoFocus",kb="children",wb="style",zX="__html",W$,QX,Gz,BK,XX,OK,LK;W$={dialog:!0,webview:!0},QX=function(b,z){rB(b,z),nB(b,z),zO(b,z,{registrationNameDependencies:a1,possibleRegistrationNames:i1})},OK=X4&&!document.documentMode,Gz=function(b,z,Q){if(y6)return;var X=ZX(Q),Z=ZX(z);if(Z===X)return;y6=!0,G("Prop `%s` did not match. Server: %s Client: %s",b,JSON.stringify(Z),JSON.stringify(X))},BK=function(b){if(y6)return;y6=!0;var z=[];b.forEach(function(Q){z.push(Q)}),G("Extra attributes from the server: %s",z)},XX=function(b,z){if(z===!1)G("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.",b,b,b);else G("Expected `%s` listener to be a function, instead got a value of `%s` type.",b,typeof z)},LK=function(b,z){var Q=b.namespaceURI===J7?b.ownerDocument.createElement(b.tagName):b.ownerDocument.createElementNS(b.namespaceURI,b.tagName);return Q.innerHTML=z,Q.innerHTML};var OW=/\r\n?/g,LW=/\u0000|\uFFFD/g;function ZX(b){L5(b);var z=typeof b==="string"?b:""+b;return z.replace(OW,`
32
+ `).replace(LW,"")}function JX(b,z,Q,X){var Z=ZX(z),J=ZX(b);if(J===Z)return;if(X){if(!y6)y6=!0,G('Text content did not match. Server: "%s" Client: "%s"',J,Z)}if(Q&&h0)throw Error("Text content does not match server-rendered HTML.")}function NK(b){return b.nodeType===H7?b:b.ownerDocument}function NW(){}function $X(b){b.onclick=NW}function WW(b,z,Q,X,Z){for(var J in X){if(!X.hasOwnProperty(J))continue;var H=X[J];if(J===wb){if(H)Object.freeze(H);VG(z,H)}else if(J===Yz){var Y=H?H[zX]:void 0;if(Y!=null)fG(z,Y)}else if(J===kb){if(typeof H==="string"){var K=b!=="textarea"||H!=="";if(K)IQ(z,H)}else if(typeof H==="number")IQ(z,""+H)}else if(J===bX||J===a7);else if(J===qK);else if(a1.hasOwnProperty(J)){if(H!=null){if(typeof H!=="function")XX(J,H);if(J==="onScroll")q4("scroll",z)}}else if(H!=null)U1(z,J,H,Z)}}function _W(b,z,Q,X){for(var Z=0;Z<z.length;Z+=2){var J=z[Z],H=z[Z+1];if(J===wb)VG(b,H);else if(J===Yz)fG(b,H);else if(J===kb)IQ(b,H);else U1(b,J,H,X)}}function PW(b,z,Q,X){var Z,J=NK(Q),H,Y=X;if(Y===J7)Y=QJ(b);if(Y===J7){if(Z=qb(b,z),!Z&&b!==b.toLowerCase())G("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",b);if(b==="script"){var K=J.createElement("div");K.innerHTML="<script></script>";var O=K.firstChild;H=K.removeChild(O)}else if(typeof z.is==="string")H=J.createElement(b,{is:z.is});else if(H=J.createElement(b),b==="select"){var N=H;if(z.multiple)N.multiple=!0;else if(z.size)N.size=z.size}}else H=J.createElementNS(Y,b);if(Y===J7){if(!Z&&Object.prototype.toString.call(H)==="[object HTMLUnknownElement]"&&!u4.call(W$,b))W$[b]=!0,G("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",b)}return H}function vW(b,z){return NK(z).createTextNode(b)}function FW(b,z,Q,X){var Z=qb(z,Q);QX(z,Q);var J;switch(z){case"dialog":q4("cancel",b),q4("close",b),J=Q;break;case"iframe":case"object":case"embed":q4("load",b),J=Q;break;case"video":case"audio":for(var H=0;H<Jz.length;H++)q4(Jz[H],b);J=Q;break;case"source":q4("error",b),J=Q;break;case"img":case"image":case"link":q4("error",b),q4("load",b),J=Q;break;case"details":q4("toggle",b),J=Q;break;case"input":w(b,Q),J=q(b,Q),q4("invalid",b);break;case"option":s1(b,Q),J=Q;break;case"select":I3(b,Q),J=A3(b,Q),q4("invalid",b);break;case"textarea":wG(b,Q),J=bJ(b,Q),q4("invalid",b);break;default:J=Q}switch(HJ(z,J),WW(z,b,X,J,Z),z){case"input":X7(b),G0(b,Q,!1);break;case"textarea":X7(b),IG(b);break;case"option":U4(b,Q);break;case"select":eZ(b,Q);break;default:if(typeof J.onClick==="function")$X(b);break}}function RW(b,z,Q,X,Z){QX(z,X);var J=null,H,Y;switch(z){case"input":H=q(b,Q),Y=q(b,X),J=[];break;case"select":H=A3(b,Q),Y=A3(b,X),J=[];break;case"textarea":H=bJ(b,Q),Y=bJ(b,X),J=[];break;default:if(H=Q,Y=X,typeof H.onClick!=="function"&&typeof Y.onClick==="function")$X(b);break}HJ(z,Y);var K,O,N=null;for(K in H){if(Y.hasOwnProperty(K)||!H.hasOwnProperty(K)||H[K]==null)continue;if(K===wb){var f=H[K];for(O in f)if(f.hasOwnProperty(O)){if(!N)N={};N[O]=""}}else if(K===Yz||K===kb);else if(K===bX||K===a7);else if(K===qK);else if(a1.hasOwnProperty(K)){if(!J)J=[]}else(J=J||[]).push(K,null)}for(K in Y){var I=Y[K],m=H!=null?H[K]:void 0;if(!Y.hasOwnProperty(K)||I===m||I==null&&m==null)continue;if(K===wb){if(I)Object.freeze(I);if(m){for(O in m)if(m.hasOwnProperty(O)&&(!I||!I.hasOwnProperty(O))){if(!N)N={};N[O]=""}for(O in I)if(I.hasOwnProperty(O)&&m[O]!==I[O]){if(!N)N={};N[O]=I[O]}}else{if(!N){if(!J)J=[];J.push(K,N)}N=I}}else if(K===Yz){var g=I?I[zX]:void 0,a=m?m[zX]:void 0;if(g!=null){if(a!==g)(J=J||[]).push(K,g)}}else if(K===kb){if(typeof I==="string"||typeof I==="number")(J=J||[]).push(K,""+I)}else if(K===bX||K===a7);else if(a1.hasOwnProperty(K)){if(I!=null){if(typeof I!=="function")XX(K,I);if(K==="onScroll")q4("scroll",b)}if(!J&&m!==I)J=[]}else(J=J||[]).push(K,I)}if(N)cB(N,Y[wb]),(J=J||[]).push(wb,N);return J}function MW(b,z,Q,X,Z){if(Q==="input"&&Z.type==="radio"&&Z.name!=null)u(b,Z);var J=qb(Q,X),H=qb(Q,Z);switch(_W(b,z,J,H),Q){case"input":i(b,Z);break;case"textarea":AG(b,Z);break;case"select":_B(b,Z);break}}function kW(b){{var z=b.toLowerCase();if(!fQ.hasOwnProperty(z))return null;return fQ[z]||null}}function wW(b,z,Q,X,Z,J,H){var Y,K;switch(Y=qb(z,Q),QX(z,Q),z){case"dialog":q4("cancel",b),q4("close",b);break;case"iframe":case"object":case"embed":q4("load",b);break;case"video":case"audio":for(var O=0;O<Jz.length;O++)q4(Jz[O],b);break;case"source":q4("error",b);break;case"img":case"image":case"link":q4("error",b),q4("load",b);break;case"details":q4("toggle",b);break;case"input":w(b,Q),q4("invalid",b);break;case"option":s1(b,Q);break;case"select":I3(b,Q),q4("invalid",b);break;case"textarea":wG(b,Q),q4("invalid",b);break}HJ(z,Q);{K=new Set;var N=b.attributes;for(var f=0;f<N.length;f++){var I=N[f].name.toLowerCase();switch(I){case"value":break;case"checked":break;case"selected":break;default:K.add(N[f].name)}}}var m=null;for(var g in Q){if(!Q.hasOwnProperty(g))continue;var a=Q[g];if(g===kb){if(typeof a==="string"){if(b.textContent!==a){if(Q[a7]!==!0)JX(b.textContent,a,J,H);m=[kb,a]}}else if(typeof a==="number"){if(b.textContent!==""+a){if(Q[a7]!==!0)JX(b.textContent,a,J,H);m=[kb,""+a]}}}else if(a1.hasOwnProperty(g)){if(a!=null){if(typeof a!=="function")XX(g,a);if(g==="onScroll")q4("scroll",b)}}else if(H&&!0&&typeof Y==="boolean"){var W0=void 0,g0=Y&&H1?null:f4(g);if(Q[a7]===!0);else if(g===bX||g===a7||g==="value"||g==="checked"||g==="selected");else if(g===Yz){var S0=b.innerHTML,Y1=a?a[zX]:void 0;if(Y1!=null){var G1=LK(b,Y1);if(G1!==S0)Gz(g,S0,G1)}}else if(g===wb){if(K.delete(g),OK){var C=yB(a);if(W0=b.getAttribute("style"),C!==W0)Gz(g,W0,C)}}else if(Y&&!H1){if(K.delete(g.toLowerCase()),W0=W5(b,g,a),a!==W0)Gz(g,W0,a)}else if(!S1(g,g0,Y)&&!l1(g,a,g0,Y)){var j=!1;if(g0!==null)K.delete(g0.attributeName),W0=P6(b,g,a,g0);else{var S=X;if(S===J7)S=QJ(z);if(S===J7)K.delete(g.toLowerCase());else{var J0=kW(g);if(J0!==null&&J0!==g)j=!0,K.delete(J0);K.delete(g)}W0=W5(b,g,a)}var M0=H1;if(!M0&&a!==W0&&!j)Gz(g,W0,a)}}}if(H){if(K.size>0&&Q[a7]!==!0)BK(K)}switch(z){case"input":X7(b),G0(b,Q,!0);break;case"textarea":X7(b),IG(b);break;case"select":case"option":break;default:if(typeof Q.onClick==="function")$X(b);break}return m}function AW(b,z,Q){var X=b.nodeValue!==z;return X}function _$(b,z){{if(y6)return;y6=!0,G("Did not expect server HTML to contain a <%s> in <%s>.",z.nodeName.toLowerCase(),b.nodeName.toLowerCase())}}function P$(b,z){{if(y6)return;y6=!0,G('Did not expect server HTML to contain the text node "%s" in <%s>.',z.nodeValue,b.nodeName.toLowerCase())}}function v$(b,z,Q){{if(y6)return;y6=!0,G("Expected server HTML to contain a matching <%s> in <%s>.",z,b.nodeName.toLowerCase())}}function F$(b,z){{if(z==="")return;if(y6)return;y6=!0,G('Expected server HTML to contain a matching text node for "%s" in <%s>.',z,b.nodeName.toLowerCase())}}function IW(b,z,Q){switch(z){case"input":x0(b,Q);return;case"textarea":vB(b,Q);return;case"select":PB(b,Q);return}}var Kz=function(){},Uz=function(){};{var fW=["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"],WK=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],TW=WK.concat(["button"]),hW=["dd","dt","li","option","optgroup","p","rp","rt"],_K={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Uz=function(b,z){var Q=Z1({},b||_K),X={tag:z};if(WK.indexOf(z)!==-1)Q.aTagInScope=null,Q.buttonTagInScope=null,Q.nobrTagInScope=null;if(TW.indexOf(z)!==-1)Q.pTagInButtonScope=null;if(fW.indexOf(z)!==-1&&z!=="address"&&z!=="div"&&z!=="p")Q.listItemTagAutoclosing=null,Q.dlItemTagAutoclosing=null;if(Q.current=X,z==="form")Q.formTag=X;if(z==="a")Q.aTagInScope=X;if(z==="button")Q.buttonTagInScope=X;if(z==="nobr")Q.nobrTagInScope=X;if(z==="p")Q.pTagInButtonScope=X;if(z==="li")Q.listItemTagAutoclosing=X;if(z==="dd"||z==="dt")Q.dlItemTagAutoclosing=X;return Q};var CW=function(b,z){switch(z){case"select":return b==="option"||b==="optgroup"||b==="#text";case"optgroup":return b==="option"||b==="#text";case"option":return b==="#text";case"tr":return b==="th"||b==="td"||b==="style"||b==="script"||b==="template";case"tbody":case"thead":case"tfoot":return b==="tr"||b==="style"||b==="script"||b==="template";case"colgroup":return b==="col"||b==="template";case"table":return b==="caption"||b==="colgroup"||b==="tbody"||b==="tfoot"||b==="thead"||b==="style"||b==="script"||b==="template";case"head":return b==="base"||b==="basefont"||b==="bgsound"||b==="link"||b==="meta"||b==="title"||b==="noscript"||b==="noframes"||b==="style"||b==="script"||b==="template";case"html":return b==="head"||b==="body"||b==="frameset";case"frameset":return b==="frame";case"#document":return b==="html"}switch(b){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return z!=="h1"&&z!=="h2"&&z!=="h3"&&z!=="h4"&&z!=="h5"&&z!=="h6";case"rp":case"rt":return hW.indexOf(z)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return z==null}return!0},SW=function(b,z){switch(b){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 z.pTagInButtonScope;case"form":return z.formTag||z.pTagInButtonScope;case"li":return z.listItemTagAutoclosing;case"dd":case"dt":return z.dlItemTagAutoclosing;case"button":return z.buttonTagInScope;case"a":return z.aTagInScope;case"nobr":return z.nobrTagInScope}return null},PK={};Kz=function(b,z,Q){Q=Q||_K;var X=Q.current,Z=X&&X.tag;if(z!=null){if(b!=null)G("validateDOMNesting: when childText is passed, childTag should be null");b="#text"}var J=CW(b,Z)?null:X,H=J?null:SW(b,Q),Y=J||H;if(!Y)return;var K=Y.tag,O=!!J+"|"+b+"|"+K;if(PK[O])return;PK[O]=!0;var N=b,f="";if(b==="#text")if(/\S/.test(z))N="Text nodes";else N="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else N="<"+b+">";if(J){var I="";if(K==="table"&&b==="tr")I+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";G("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",N,K,f,I)}else G("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",N,K)}}var HX="suppressHydrationWarning",YX="$",GX="/$",qz="$?",Bz="$!",VW="style",R$=null,M$=null;function DW(b){var z,Q,X=b.nodeType;switch(X){case H7:case ZJ:{z=X===H7?"#document":"#fragment";var Z=b.documentElement;Q=Z?Z.namespaceURI:XJ(null,"");break}default:{var J=X===S4?b.parentNode:b,H=J.namespaceURI||null;z=J.tagName,Q=XJ(H,z);break}}{var Y=z.toLowerCase(),K=Uz(null,Y);return{namespace:Q,ancestorInfo:K}}}function EW(b,z,Q){{var X=b,Z=XJ(X.namespace,z),J=Uz(X.ancestorInfo,z);return{namespace:Z,ancestorInfo:J}}}function k$(b){return b}function uW(b){R$=VL(),M$=nN();var z=null;return I9(!1),z}function mW(b){tN(M$),I9(R$),R$=null,M$=null}function gW(b,z,Q,X,Z){var J;{var H=X;if(Kz(b,null,H.ancestorInfo),typeof z.children==="string"||typeof z.children==="number"){var Y=""+z.children,K=Uz(H.ancestorInfo,b);Kz(null,Y,K)}J=H.namespace}var O=PW(b,z,Q,J);return Nz(Z,O),S$(O,z),O}function yW(b,z){b.appendChild(z)}function dW(b,z,Q,X,Z){switch(FW(b,z,Q,X),z){case"button":case"input":case"select":case"textarea":return!!Q.autoFocus;case"img":return!0;default:return!1}}function cW(b,z,Q,X,Z,J){{var H=J;if(typeof X.children!==typeof Q.children&&(typeof X.children==="string"||typeof X.children==="number")){var Y=""+X.children,K=Uz(H.ancestorInfo,z);Kz(null,Y,K)}}return RW(b,z,Q,X)}function w$(b,z){return b==="textarea"||b==="noscript"||typeof z.children==="string"||typeof z.children==="number"||typeof z.dangerouslySetInnerHTML==="object"&&z.dangerouslySetInnerHTML!==null&&z.dangerouslySetInnerHTML.__html!=null}function aW(b,z,Q,X){{var Z=Q;Kz(null,b,Z.ancestorInfo)}var J=vW(b,z);return Nz(X,J),J}function lW(){var b=window.event;if(b===void 0)return O7;return f9(b.type)}var A$=typeof setTimeout==="function"?setTimeout:void 0,iW=typeof clearTimeout==="function"?clearTimeout:void 0,I$=-1,vK=typeof Promise==="function"?Promise:void 0,xW=typeof queueMicrotask==="function"?queueMicrotask:typeof vK<"u"?function(b){return vK.resolve(null).then(b).catch(jW)}:A$;function jW(b){setTimeout(function(){throw b})}function oW(b,z,Q,X){switch(z){case"button":case"input":case"select":case"textarea":if(Q.autoFocus)b.focus();return;case"img":{if(Q.src)b.src=Q.src;return}}}function pW(b,z,Q,X,Z,J){MW(b,z,Q,X,Z),S$(b,Z)}function FK(b){IQ(b,"")}function rW(b,z,Q){b.nodeValue=Q}function nW(b,z){b.appendChild(z)}function tW(b,z){var Q;if(b.nodeType===S4)Q=b.parentNode,Q.insertBefore(z,b);else Q=b,Q.appendChild(z);var X=b._reactRootContainer;if((X===null||X===void 0)&&Q.onclick===null)$X(Q)}function sW(b,z,Q){b.insertBefore(z,Q)}function eW(b,z,Q){if(b.nodeType===S4)b.parentNode.insertBefore(z,Q);else b.insertBefore(z,Q)}function b_(b,z){b.removeChild(z)}function z_(b,z){if(b.nodeType===S4)b.parentNode.removeChild(z);else b.removeChild(z)}function f$(b,z){var Q=z,X=0;do{var Z=Q.nextSibling;if(b.removeChild(Q),Z&&Z.nodeType===S4){var J=Z.data;if(J===GX)if(X===0){b.removeChild(Z),r3(z);return}else X--;else if(J===YX||J===qz||J===Bz)X++}Q=Z}while(Q);r3(z)}function Q_(b,z){if(b.nodeType===S4)f$(b.parentNode,z);else if(b.nodeType===g6)f$(b,z);r3(b)}function X_(b){b=b;var z=b.style;if(typeof z.setProperty==="function")z.setProperty("display","none","important");else z.display="none"}function Z_(b){b.nodeValue=""}function J_(b,z){b=b;var Q=z[VW],X=Q!==void 0&&Q!==null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=JJ("display",X)}function $_(b,z){b.nodeValue=z}function H_(b){if(b.nodeType===g6)b.textContent="";else if(b.nodeType===H7){if(b.documentElement)b.removeChild(b.documentElement)}}function Y_(b,z,Q){if(b.nodeType!==g6||z.toLowerCase()!==b.nodeName.toLowerCase())return null;return b}function G_(b,z){if(z===""||b.nodeType!==$7)return null;return b}function K_(b){if(b.nodeType!==S4)return null;return b}function RK(b){return b.data===qz}function T$(b){return b.data===Bz}function U_(b){var z=b.nextSibling&&b.nextSibling.dataset,Q,X,Z;if(z)Q=z.dgst,X=z.msg,Z=z.stck;return{message:X,digest:Q,stack:Z}}function q_(b,z){b._reactRetry=z}function KX(b){for(;b!=null;b=b.nextSibling){var z=b.nodeType;if(z===g6||z===$7)break;if(z===S4){var Q=b.data;if(Q===YX||Q===Bz||Q===qz)break;if(Q===GX)return null}}return b}function Oz(b){return KX(b.nextSibling)}function B_(b){return KX(b.firstChild)}function O_(b){return KX(b.firstChild)}function L_(b){return KX(b.nextSibling)}function N_(b,z,Q,X,Z,J,H){Nz(J,b),S$(b,Q);var Y;{var K=Z;Y=K.namespace}var O=(J.mode&O1)!==a0;return wW(b,z,Q,Y,X,O,H)}function W_(b,z,Q,X){Nz(Q,b);var Z=(Q.mode&O1)!==a0;return AW(b,z)}function __(b,z){Nz(z,b)}function P_(b){var z=b.nextSibling,Q=0;while(z){if(z.nodeType===S4){var X=z.data;if(X===GX)if(Q===0)return Oz(z);else Q--;else if(X===YX||X===Bz||X===qz)Q++}z=z.nextSibling}return null}function MK(b){var z=b.previousSibling,Q=0;while(z){if(z.nodeType===S4){var X=z.data;if(X===YX||X===Bz||X===qz)if(Q===0)return z;else Q--;else if(X===GX)Q++}z=z.previousSibling}return null}function v_(b){r3(b)}function F_(b){r3(b)}function R_(b){return b!=="head"&&b!=="body"}function M_(b,z,Q,X){var Z=!0;JX(z.nodeValue,Q,X,Z)}function k_(b,z,Q,X,Z,J){if(z[HX]!==!0){var H=!0;JX(X.nodeValue,Z,J,H)}}function w_(b,z){if(z.nodeType===g6)_$(b,z);else if(z.nodeType===S4);else P$(b,z)}function A_(b,z){{var Q=b.parentNode;if(Q!==null)if(z.nodeType===g6)_$(Q,z);else if(z.nodeType===S4);else P$(Q,z)}}function I_(b,z,Q,X,Z){if(Z||z[HX]!==!0)if(X.nodeType===g6)_$(Q,X);else if(X.nodeType===S4);else P$(Q,X)}function f_(b,z,Q){v$(b,z)}function T_(b,z){F$(b,z)}function h_(b,z,Q){{var X=b.parentNode;if(X!==null)v$(X,z)}}function C_(b,z){{var Q=b.parentNode;if(Q!==null)F$(Q,z)}}function S_(b,z,Q,X,Z,J){if(J||z[HX]!==!0)v$(Q,X)}function V_(b,z,Q,X,Z){if(Z||z[HX]!==!0)F$(Q,X)}function D_(b){G("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",b.nodeName.toLowerCase())}function E_(b){$z(b)}var M8=Math.random().toString(36).slice(2),k8="__reactFiber$"+M8,h$="__reactProps$"+M8,Lz="__reactContainer$"+M8,C$="__reactEvents$"+M8,u_="__reactListeners$"+M8,m_="__reactHandles$"+M8;function g_(b){delete b[k8],delete b[h$],delete b[C$],delete b[u_],delete b[m_]}function Nz(b,z){z[k8]=b}function UX(b,z){z[Lz]=b}function kK(b){b[Lz]=null}function Wz(b){return!!b[Lz]}function Ab(b){var z=b[k8];if(z)return z;var Q=b.parentNode;while(Q){if(z=Q[Lz]||Q[k8],z){var X=z.alternate;if(z.child!==null||X!==null&&X.child!==null){var Z=MK(b);while(Z!==null){var J=Z[k8];if(J)return J;Z=MK(Z)}}return z}b=Q,Q=b.parentNode}return null}function l7(b){var z=b[k8]||b[Lz];if(z)if(z.tag===k||z.tag===R||z.tag===p||z.tag===A)return z;else return null;return null}function w8(b){if(b.tag===k||b.tag===R)return b.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function qX(b){return b[h$]||null}function S$(b,z){b[h$]=z}function y_(b){var z=b[C$];if(z===void 0)z=b[C$]=new Set;return z}var wK={},AK=$.ReactDebugCurrentFrame;function BX(b){if(b){var z=b._owner,Q=S7(b.type,b._source,z?z.type:null);AK.setExtraStackFrame(Q)}else AK.setExtraStackFrame(null)}function F5(b,z,Q,X,Z){{var J=Function.call.bind(u4);for(var H in b)if(J(b,H)){var Y=void 0;try{if(typeof b[H]!=="function"){var K=Error((X||"React class")+": "+Q+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}Y=b[H](z,H,X,Q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){Y=O}if(Y&&!(Y instanceof Error))BX(Z),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",X||"React class",Q,H,typeof Y),BX(null);if(Y instanceof Error&&!(Y.message in wK))wK[Y.message]=!0,BX(Z),G("Failed %s type: %s",Q,Y.message),BX(null)}}}var V$=[],OX;OX=[];var L7=-1;function i7(b){return{current:b}}function F6(b,z){if(L7<0){G("Unexpected pop.");return}if(z!==OX[L7])G("Unexpected Fiber popped.");b.current=V$[L7],V$[L7]=null,OX[L7]=null,L7--}function R6(b,z,Q){L7++,V$[L7]=b.current,OX[L7]=Q,b.current=z}var IK={},s6={};Object.freeze(s6);var N7=i7(s6),i5=i7(!1),D$=s6;function A8(b,z,Q){{if(Q&&x5(z))return D$;return N7.current}}function fK(b,z,Q){{var X=b.stateNode;X.__reactInternalMemoizedUnmaskedChildContext=z,X.__reactInternalMemoizedMaskedChildContext=Q}}function I8(b,z){{var Q=b.type,X=Q.contextTypes;if(!X)return s6;var Z=b.stateNode;if(Z&&Z.__reactInternalMemoizedUnmaskedChildContext===z)return Z.__reactInternalMemoizedMaskedChildContext;var J={};for(var H in X)J[H]=z[H];{var Y=Q1(b)||"Unknown";F5(X,J,"context",Y)}if(Z)fK(b,z,J);return J}}function LX(){return i5.current}function x5(b){{var z=b.childContextTypes;return z!==null&&z!==void 0}}function NX(b){F6(i5,b),F6(N7,b)}function E$(b){F6(i5,b),F6(N7,b)}function TK(b,z,Q){{if(N7.current!==s6)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");R6(N7,z,b),R6(i5,Q,b)}}function hK(b,z,Q){{var X=b.stateNode,Z=z.childContextTypes;if(typeof X.getChildContext!=="function"){{var J=Q1(b)||"Unknown";if(!IK[J])IK[J]=!0,G("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",J,J)}return Q}var H=X.getChildContext();for(var Y in H)if(!(Y in Z))throw Error((Q1(b)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var K=Q1(b)||"Unknown";F5(Z,H,"child context",K)}return Z1({},Q,H)}}function WX(b){{var z=b.stateNode,Q=z&&z.__reactInternalMemoizedMergedChildContext||s6;return D$=N7.current,R6(N7,Q,b),R6(i5,i5.current,b),!0}}function CK(b,z,Q){{var X=b.stateNode;if(!X)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(Q){var Z=hK(b,z,D$);X.__reactInternalMemoizedMergedChildContext=Z,F6(i5,b),F6(N7,b),R6(N7,Z,b),R6(i5,Q,b)}else F6(i5,b),R6(i5,Q,b)}}function d_(b){{if(!RO(b)||b.tag!==P)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var z=b;do{switch(z.tag){case A:return z.stateNode.context;case P:{var Q=z.type;if(x5(Q))return z.stateNode.__reactInternalMemoizedMergedChildContext;break}}z=z.return}while(z!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var x7=0,_X=1,W7=null,u$=!1,m$=!1;function SK(b){if(W7===null)W7=[b];else W7.push(b)}function c_(b){u$=!0,SK(b)}function VK(){if(u$)j7()}function j7(){if(!m$&&W7!==null){m$=!0;var b=0,z=v5();try{var Q=!0,X=W7;b6(r6);for(;b<X.length;b++){var Z=X[b];do Z=Z(Q);while(Z!==null)}W7=null,u$=!1}catch(J){if(W7!==null)W7=W7.slice(b+1);throw Q9(VQ,j7),J}finally{b6(z),m$=!1}}return null}var f8=[],T8=0,PX=null,vX=0,J5=[],$5=0,Ib=null,_7=1,P7="";function a_(b){return Tb(),(b.flags&pG)!==l0}function l_(b){return Tb(),vX}function i_(){var b=P7,z=_7,Q=z&~x_(z);return Q.toString(32)+b}function fb(b,z){Tb(),f8[T8++]=vX,f8[T8++]=PX,PX=b,vX=z}function DK(b,z,Q){Tb(),J5[$5++]=_7,J5[$5++]=P7,J5[$5++]=Ib,Ib=b;var X=_7,Z=P7,J=FX(X)-1,H=X&~(1<<J),Y=Q+1,K=FX(z)+J;if(K>30){var O=J-J%5,N=(1<<O)-1,f=(H&N).toString(32),I=H>>O,m=J-O,g=FX(z)+m,a=Y<<m,W0=a|I,g0=f+Z;_7=1<<g|W0,P7=g0}else{var S0=Y<<J,Y1=S0|H,G1=Z;_7=1<<K|Y1,P7=G1}}function g$(b){Tb();var z=b.return;if(z!==null){var Q=1,X=0;fb(b,Q),DK(b,Q,X)}}function FX(b){return 32-Y9(b)}function x_(b){return 1<<FX(b)-1}function y$(b){while(b===PX)PX=f8[--T8],f8[T8]=null,vX=f8[--T8],f8[T8]=null;while(b===Ib)Ib=J5[--$5],J5[$5]=null,P7=J5[--$5],J5[$5]=null,_7=J5[--$5],J5[$5]=null}function j_(){if(Tb(),Ib!==null)return{id:_7,overflow:P7};else return null}function o_(b,z){Tb(),J5[$5++]=_7,J5[$5++]=P7,J5[$5++]=Ib,_7=z.id,P7=z.overflow,Ib=b}function Tb(){if(!H6())G("Expected to be hydrating. This is a bug in React. Please file an issue.")}var $6=null,H5=null,R5=!1,hb=!1,o7=null;function p_(){if(R5)G("We should not be hydrating here. This is a bug in React. Please file a bug.")}function EK(){hb=!0}function r_(){return hb}function n_(b){var z=b.stateNode.containerInfo;return H5=O_(z),$6=b,R5=!0,o7=null,hb=!1,!0}function t_(b,z,Q){if(H5=L_(z),$6=b,R5=!0,o7=null,hb=!1,Q!==null)o_(b,Q);return!0}function uK(b,z){switch(b.tag){case A:{w_(b.stateNode.containerInfo,z);break}case k:{var Q=(b.mode&O1)!==a0;I_(b.type,b.memoizedProps,b.stateNode,z,Q);break}case p:{var X=b.memoizedState;if(X.dehydrated!==null)A_(X.dehydrated,z);break}}}function mK(b,z){uK(b,z);var Q=JR();Q.stateNode=z,Q.return=b;var X=b.deletions;if(X===null)b.deletions=[Q],b.flags|=Bb;else X.push(Q)}function d$(b,z){{if(hb)return;switch(b.tag){case A:{var Q=b.stateNode.containerInfo;switch(z.tag){case k:var{type:X,pendingProps:Z}=z;f_(Q,X);break;case R:var J=z.pendingProps;T_(Q,J);break}break}case k:{var{type:H,memoizedProps:Y,stateNode:K}=b;switch(z.tag){case k:{var{type:O,pendingProps:N}=z,f=(b.mode&O1)!==a0;S_(H,Y,K,O,N,f);break}case R:{var I=z.pendingProps,m=(b.mode&O1)!==a0;V_(H,Y,K,I,m);break}}break}case p:{var g=b.memoizedState,a=g.dehydrated;if(a!==null)switch(z.tag){case k:var{type:W0,pendingProps:g0}=z;h_(a,W0);break;case R:var S0=z.pendingProps;C_(a,S0);break}break}default:return}}}function gK(b,z){z.flags=z.flags&~G7|V4,d$(b,z)}function yK(b,z){switch(b.tag){case k:{var{type:Q,pendingProps:X}=b,Z=Y_(z,Q);if(Z!==null)return b.stateNode=Z,$6=b,H5=B_(Z),!0;return!1}case R:{var J=b.pendingProps,H=G_(z,J);if(H!==null)return b.stateNode=H,$6=b,H5=null,!0;return!1}case p:{var Y=K_(z);if(Y!==null){var K={dehydrated:Y,treeContext:j_(),retryLane:o6};b.memoizedState=K;var O=$R(Y);return O.return=b,b.child=O,$6=b,H5=null,!0}return!1}default:return!1}}function c$(b){return(b.mode&O1)!==a0&&(b.flags&A1)===l0}function a$(b){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function l$(b){if(!R5)return;var z=H5;if(!z){if(c$(b))d$($6,b),a$();gK($6,b),R5=!1,$6=b;return}var Q=z;if(!yK(b,z)){if(c$(b))d$($6,b),a$();z=Oz(Q);var X=$6;if(!z||!yK(b,z)){gK($6,b),R5=!1,$6=b;return}mK(X,Q)}}function s_(b,z,Q){var X=b.stateNode,Z=!hb,J=N_(X,b.type,b.memoizedProps,z,Q,b,Z);if(b.updateQueue=J,J!==null)return!0;return!1}function e_(b){var{stateNode:z,memoizedProps:Q}=b,X=W_(z,Q,b);if(X){var Z=$6;if(Z!==null)switch(Z.tag){case A:{var J=Z.stateNode.containerInfo,H=(Z.mode&O1)!==a0;M_(J,z,Q,H);break}case k:{var{type:Y,memoizedProps:K,stateNode:O}=Z,N=(Z.mode&O1)!==a0;k_(Y,K,O,z,Q,N);break}}}return X}function bP(b){var z=b.memoizedState,Q=z!==null?z.dehydrated:null;if(!Q)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");__(Q,b)}function zP(b){var z=b.memoizedState,Q=z!==null?z.dehydrated:null;if(!Q)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return P_(Q)}function dK(b){var z=b.return;while(z!==null&&z.tag!==k&&z.tag!==A&&z.tag!==p)z=z.return;$6=z}function RX(b){if(b!==$6)return!1;if(!R5)return dK(b),R5=!0,!1;if(b.tag!==A&&(b.tag!==k||R_(b.type)&&!w$(b.type,b.memoizedProps))){var z=H5;if(z)if(c$(b))cK(b),a$();else while(z)mK(b,z),z=Oz(z)}if(dK(b),b.tag===p)H5=zP(b);else H5=$6?Oz(b.stateNode):null;return!0}function QP(){return R5&&H5!==null}function cK(b){var z=H5;while(z)uK(b,z),z=Oz(z)}function h8(){$6=null,H5=null,R5=!1,hb=!1}function aK(){if(o7!==null)u2(o7),o7=null}function H6(){return R5}function i$(b){if(o7===null)o7=[b];else o7.push(b)}var XP=$.ReactCurrentBatchConfig,ZP=null;function JP(){return XP.transition}var M5={recordUnsafeLifecycleWarnings:function(b,z){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(b,z){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var $P=function(b){var z=null,Q=b;while(Q!==null){if(Q.mode&M4)z=Q;Q=Q.return}return z},Cb=function(b){var z=[];return b.forEach(function(Q){z.push(Q)}),z.sort().join(", ")},_z=[],Pz=[],vz=[],Fz=[],Rz=[],Mz=[],Sb=new Set;M5.recordUnsafeLifecycleWarnings=function(b,z){if(Sb.has(b.type))return;if(typeof z.componentWillMount==="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0)_z.push(b);if(b.mode&M4&&typeof z.UNSAFE_componentWillMount==="function")Pz.push(b);if(typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0)vz.push(b);if(b.mode&M4&&typeof z.UNSAFE_componentWillReceiveProps==="function")Fz.push(b);if(typeof z.componentWillUpdate==="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0)Rz.push(b);if(b.mode&M4&&typeof z.UNSAFE_componentWillUpdate==="function")Mz.push(b)},M5.flushPendingUnsafeLifecycleWarnings=function(){var b=new Set;if(_z.length>0)_z.forEach(function(I){b.add(Q1(I)||"Component"),Sb.add(I.type)}),_z=[];var z=new Set;if(Pz.length>0)Pz.forEach(function(I){z.add(Q1(I)||"Component"),Sb.add(I.type)}),Pz=[];var Q=new Set;if(vz.length>0)vz.forEach(function(I){Q.add(Q1(I)||"Component"),Sb.add(I.type)}),vz=[];var X=new Set;if(Fz.length>0)Fz.forEach(function(I){X.add(Q1(I)||"Component"),Sb.add(I.type)}),Fz=[];var Z=new Set;if(Rz.length>0)Rz.forEach(function(I){Z.add(Q1(I)||"Component"),Sb.add(I.type)}),Rz=[];var J=new Set;if(Mz.length>0)Mz.forEach(function(I){J.add(Q1(I)||"Component"),Sb.add(I.type)}),Mz=[];if(z.size>0){var H=Cb(z);G(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
33
+
34
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
35
+
36
+ Please update the following components: %s`,H)}if(X.size>0){var Y=Cb(X);G(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
37
+
38
+ * Move data fetching code or side effects to componentDidUpdate.
39
+ * 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://reactjs.org/link/derived-state
40
+
41
+ Please update the following components: %s`,Y)}if(J.size>0){var K=Cb(J);G(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
42
+
43
+ * Move data fetching code or side effects to componentDidUpdate.
44
+
45
+ Please update the following components: %s`,K)}if(b.size>0){var O=Cb(b);L(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
46
+
47
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
48
+ * 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.
49
+
50
+ Please update the following components: %s`,O)}if(Q.size>0){var N=Cb(Q);L(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
51
+
52
+ * Move data fetching code or side effects to componentDidUpdate.
53
+ * 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://reactjs.org/link/derived-state
54
+ * 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.
55
+
56
+ Please update the following components: %s`,N)}if(Z.size>0){var f=Cb(Z);L(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
57
+
58
+ * Move data fetching code or side effects to componentDidUpdate.
59
+ * 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.
60
+
61
+ Please update the following components: %s`,f)}};var MX=new Map,lK=new Set;M5.recordLegacyContextWarning=function(b,z){var Q=$P(b);if(Q===null){G("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.");return}if(lK.has(b.type))return;var X=MX.get(Q);if(b.type.contextTypes!=null||b.type.childContextTypes!=null||z!==null&&typeof z.getChildContext==="function"){if(X===void 0)X=[],MX.set(Q,X);X.push(b)}},M5.flushLegacyContextWarning=function(){MX.forEach(function(b,z){if(b.length===0)return;var Q=b[0],X=new Set;b.forEach(function(J){X.add(Q1(J)||"Component"),lK.add(J.type)});var Z=Cb(X);try{P4(Q),G(`Legacy context API has been detected within a strict-mode tree.
62
+
63
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
64
+
65
+ Please update the following components: %s
66
+
67
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,Z)}finally{n4()}})},M5.discardPendingWarnings=function(){_z=[],Pz=[],vz=[],Fz=[],Rz=[],Mz=[],MX=new Map}}var x$,j$,o$,p$,r$,iK=function(b,z){};x$=!1,j$=!1,o$={},p$={},r$={},iK=function(b,z){if(b===null||typeof b!=="object")return;if(!b._store||b._store.validated||b.key!=null)return;if(typeof b._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.");b._store.validated=!0;var Q=Q1(z)||"Component";if(p$[Q])return;p$[Q]=!0,G('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')};function HP(b){return b.prototype&&b.prototype.isReactComponent}function kz(b,z,Q){var X=Q.ref;if(X!==null&&typeof X!=="function"&&typeof X!=="object"){if((b.mode&M4||C1)&&!(Q._owner&&Q._self&&Q._owner.stateNode!==Q._self)&&!(Q._owner&&Q._owner.tag!==P)&&!(typeof Q.type==="function"&&!HP(Q.type))&&Q._owner){var Z=Q1(b)||"Component";if(!o$[Z])G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Z,X),o$[Z]=!0}if(Q._owner){var J=Q._owner,H;if(J){var Y=J;if(Y.tag!==P)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");H=Y.stateNode}if(!H)throw Error("Missing owner for string ref "+X+". This error is likely caused by a bug in React. Please file an issue.");var K=H;G4(X,"ref");var O=""+X;if(z!==null&&z.ref!==null&&typeof z.ref==="function"&&z.ref._stringRef===O)return z.ref;var N=function(f){var I=K.refs;if(f===null)delete I[O];else I[O]=f};return N._stringRef=O,N}else{if(typeof X!=="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!Q._owner)throw Error("Element ref was specified as a string ("+X+`) but no owner was set. This could happen for one of the following reasons:
68
+ 1. You may be adding a ref to a function component
69
+ 2. You may be adding a ref to a component that was not created inside a component's render method
70
+ 3. You have multiple copies of React loaded
71
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return X}function kX(b,z){var Q=Object.prototype.toString.call(z);throw Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}function wX(b){{var z=Q1(b)||"Component";if(r$[z])return;r$[z]=!0,G("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function xK(b){var{_payload:z,_init:Q}=b;return Q(z)}function jK(b){function z(C,j){if(!b)return;var S=C.deletions;if(S===null)C.deletions=[j],C.flags|=Bb;else S.push(j)}function Q(C,j){if(!b)return null;var S=j;while(S!==null)z(C,S),S=S.sibling;return null}function X(C,j){var S=new Map,J0=j;while(J0!==null){if(J0.key!==null)S.set(J0.key,J0);else S.set(J0.index,J0);J0=J0.sibling}return S}function Z(C,j){var S=cb(C,j);return S.index=0,S.sibling=null,S}function J(C,j,S){if(C.index=S,!b)return C.flags|=pG,j;var J0=C.alternate;if(J0!==null){var M0=J0.index;if(M0<j)return C.flags|=V4,j;else return M0}else return C.flags|=V4,j}function H(C){if(b&&C.alternate===null)C.flags|=V4;return C}function Y(C,j,S,J0){if(j===null||j.tag!==R){var M0=jY(S,C.mode,J0);return M0.return=C,M0}else{var _0=Z(j,S);return _0.return=C,_0}}function K(C,j,S,J0){var M0=S.type;if(M0===R1)return N(C,j,S.props.children,J0,S.key);if(j!==null){if(j.elementType===M0||s2(j,S)||typeof M0==="object"&&M0!==null&&M0.$$typeof===C0&&xK(M0)===j.type){var _0=Z(j,S.props);return _0.ref=kz(C,j,S),_0.return=C,_0._debugSource=S._source,_0._debugOwner=S._owner,_0}}var j0=xY(S,C.mode,J0);return j0.ref=kz(C,j,S),j0.return=C,j0}function O(C,j,S,J0){if(j===null||j.tag!==_||j.stateNode.containerInfo!==S.containerInfo||j.stateNode.implementation!==S.implementation){var M0=oY(S,C.mode,J0);return M0.return=C,M0}else{var _0=Z(j,S.children||[]);return _0.return=C,_0}}function N(C,j,S,J0,M0){if(j===null||j.tag!==d){var _0=Zb(S,C.mode,J0,M0);return _0.return=C,_0}else{var j0=Z(j,S);return j0.return=C,j0}}function f(C,j,S){if(typeof j==="string"&&j!==""||typeof j==="number"){var J0=jY(""+j,C.mode,S);return J0.return=C,J0}if(typeof j==="object"&&j!==null){switch(j.$$typeof){case V1:{var M0=xY(j,C.mode,S);return M0.ref=kz(C,null,j),M0.return=C,M0}case j1:{var _0=oY(j,C.mode,S);return _0.return=C,_0}case C0:{var{_payload:j0,_init:b1}=j;return f(C,b1(j0),S)}}if(w1(j)||J4(j)){var d1=Zb(j,C.mode,S,null);return d1.return=C,d1}kX(C,j)}if(typeof j==="function")wX(C);return null}function I(C,j,S,J0){var M0=j!==null?j.key:null;if(typeof S==="string"&&S!==""||typeof S==="number"){if(M0!==null)return null;return Y(C,j,""+S,J0)}if(typeof S==="object"&&S!==null){switch(S.$$typeof){case V1:if(S.key===M0)return K(C,j,S,J0);else return null;case j1:if(S.key===M0)return O(C,j,S,J0);else return null;case C0:{var{_payload:_0,_init:j0}=S;return I(C,j,j0(_0),J0)}}if(w1(S)||J4(S)){if(M0!==null)return null;return N(C,j,S,J0,null)}kX(C,S)}if(typeof S==="function")wX(C);return null}function m(C,j,S,J0,M0){if(typeof J0==="string"&&J0!==""||typeof J0==="number"){var _0=C.get(S)||null;return Y(j,_0,""+J0,M0)}if(typeof J0==="object"&&J0!==null){switch(J0.$$typeof){case V1:{var j0=C.get(J0.key===null?S:J0.key)||null;return K(j,j0,J0,M0)}case j1:{var b1=C.get(J0.key===null?S:J0.key)||null;return O(j,b1,J0,M0)}case C0:var{_payload:d1,_init:M1}=J0;return m(C,j,S,M1(d1),M0)}if(w1(J0)||J4(J0)){var T4=C.get(S)||null;return N(j,T4,J0,M0,null)}kX(j,J0)}if(typeof J0==="function")wX(j);return null}function g(C,j,S){{if(typeof C!=="object"||C===null)return j;switch(C.$$typeof){case V1:case j1:iK(C,S);var J0=C.key;if(typeof J0!=="string")break;if(j===null){j=new Set,j.add(J0);break}if(!j.has(J0)){j.add(J0);break}G("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.",J0);break;case C0:var{_payload:M0,_init:_0}=C;g(_0(M0),j,S);break}}return j}function a(C,j,S,J0){{var M0=null;for(var _0=0;_0<S.length;_0++){var j0=S[_0];M0=g(j0,M0,C)}}var b1=null,d1=null,M1=j,T4=0,k1=0,k4=null;for(;M1!==null&&k1<S.length;k1++){if(M1.index>k1)k4=M1,M1=null;else k4=M1.sibling;var k6=I(C,M1,S[k1],J0);if(k6===null){if(M1===null)M1=k4;break}if(b){if(M1&&k6.alternate===null)z(C,M1)}if(T4=J(k6,T4,k1),d1===null)b1=k6;else d1.sibling=k6;d1=k6,M1=k4}if(k1===S.length){if(Q(C,M1),H6()){var O6=k1;fb(C,O6)}return b1}if(M1===null){for(;k1<S.length;k1++){var b5=f(C,S[k1],J0);if(b5===null)continue;if(T4=J(b5,T4,k1),d1===null)b1=b5;else d1.sibling=b5;d1=b5}if(H6()){var D6=k1;fb(C,D6)}return b1}var E6=X(C,M1);for(;k1<S.length;k1++){var w6=m(E6,C,k1,S[k1],J0);if(w6!==null){if(b){if(w6.alternate!==null)E6.delete(w6.key===null?k1:w6.key)}if(T4=J(w6,T4,k1),d1===null)b1=w6;else d1.sibling=w6;d1=w6}}if(b)E6.forEach(function(r8){return z(C,r8)});if(H6()){var A7=k1;fb(C,A7)}return b1}function W0(C,j,S,J0){var M0=J4(S);if(typeof M0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{if(typeof Symbol==="function"&&S[Symbol.toStringTag]==="Generator"){if(!j$)G("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers.");j$=!0}if(S.entries===M0){if(!x$)G("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");x$=!0}var _0=M0.call(S);if(_0){var j0=null,b1=_0.next();for(;!b1.done;b1=_0.next()){var d1=b1.value;j0=g(d1,j0,C)}}}var M1=M0.call(S);if(M1==null)throw Error("An iterable object provided no iterator.");var T4=null,k1=null,k4=j,k6=0,O6=0,b5=null,D6=M1.next();for(;k4!==null&&!D6.done;O6++,D6=M1.next()){if(k4.index>O6)b5=k4,k4=null;else b5=k4.sibling;var E6=I(C,k4,D6.value,J0);if(E6===null){if(k4===null)k4=b5;break}if(b){if(k4&&E6.alternate===null)z(C,k4)}if(k6=J(E6,k6,O6),k1===null)T4=E6;else k1.sibling=E6;k1=E6,k4=b5}if(D6.done){if(Q(C,k4),H6()){var w6=O6;fb(C,w6)}return T4}if(k4===null){for(;!D6.done;O6++,D6=M1.next()){var A7=f(C,D6.value,J0);if(A7===null)continue;if(k6=J(A7,k6,O6),k1===null)T4=A7;else k1.sibling=A7;k1=A7}if(H6()){var r8=O6;fb(C,r8)}return T4}var QQ=X(C,k4);for(;!D6.done;O6++,D6=M1.next()){var e5=m(QQ,C,O6,D6.value,J0);if(e5!==null){if(b){if(e5.alternate!==null)QQ.delete(e5.key===null?O6:e5.key)}if(k6=J(e5,k6,O6),k1===null)T4=e5;else k1.sibling=e5;k1=e5}}if(b)QQ.forEach(function(mR){return z(C,mR)});if(H6()){var uR=O6;fb(C,uR)}return T4}function g0(C,j,S,J0){if(j!==null&&j.tag===R){Q(C,j.sibling);var M0=Z(j,S);return M0.return=C,M0}Q(C,j);var _0=jY(S,C.mode,J0);return _0.return=C,_0}function S0(C,j,S,J0){var M0=S.key,_0=j;while(_0!==null){if(_0.key===M0){var j0=S.type;if(j0===R1){if(_0.tag===d){Q(C,_0.sibling);var b1=Z(_0,S.props.children);return b1.return=C,b1._debugSource=S._source,b1._debugOwner=S._owner,b1}}else if(_0.elementType===j0||s2(_0,S)||typeof j0==="object"&&j0!==null&&j0.$$typeof===C0&&xK(j0)===_0.type){Q(C,_0.sibling);var d1=Z(_0,S.props);return d1.ref=kz(C,_0,S),d1.return=C,d1._debugSource=S._source,d1._debugOwner=S._owner,d1}Q(C,_0);break}else z(C,_0);_0=_0.sibling}if(S.type===R1){var M1=Zb(S.props.children,C.mode,J0,S.key);return M1.return=C,M1}else{var T4=xY(S,C.mode,J0);return T4.ref=kz(C,j,S),T4.return=C,T4}}function Y1(C,j,S,J0){var M0=S.key,_0=j;while(_0!==null){if(_0.key===M0)if(_0.tag===_&&_0.stateNode.containerInfo===S.containerInfo&&_0.stateNode.implementation===S.implementation){Q(C,_0.sibling);var j0=Z(_0,S.children||[]);return j0.return=C,j0}else{Q(C,_0);break}else z(C,_0);_0=_0.sibling}var b1=oY(S,C.mode,J0);return b1.return=C,b1}function G1(C,j,S,J0){var M0=typeof S==="object"&&S!==null&&S.type===R1&&S.key===null;if(M0)S=S.props.children;if(typeof S==="object"&&S!==null){switch(S.$$typeof){case V1:return H(S0(C,j,S,J0));case j1:return H(Y1(C,j,S,J0));case C0:var{_payload:_0,_init:j0}=S;return G1(C,j,j0(_0),J0)}if(w1(S))return a(C,j,S,J0);if(J4(S))return W0(C,j,S,J0);kX(C,S)}if(typeof S==="string"&&S!==""||typeof S==="number")return H(g0(C,j,""+S,J0));if(typeof S==="function")wX(C);return Q(C,j)}return G1}var C8=jK(!0),oK=jK(!1);function YP(b,z){if(b!==null&&z.child!==b.child)throw Error("Resuming work not yet implemented.");if(z.child===null)return;var Q=z.child,X=cb(Q,Q.pendingProps);z.child=X,X.return=z;while(Q.sibling!==null)Q=Q.sibling,X=X.sibling=cb(Q,Q.pendingProps),X.return=z;X.sibling=null}function GP(b,z){var Q=b.child;while(Q!==null)bR(Q,z),Q=Q.sibling}var n$=i7(null),t$;t$={};var AX=null,S8=null,s$=null,IX=!1;function fX(){AX=null,S8=null,s$=null,IX=!1}function pK(){IX=!0}function rK(){IX=!1}function nK(b,z,Q){{R6(n$,z._currentValue,b),z._currentValue=Q;{if(z._currentRenderer!==void 0&&z._currentRenderer!==null&&z._currentRenderer!==t$)G("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");z._currentRenderer=t$}}}function e$(b,z){var Q=n$.current;F6(n$,z),b._currentValue=Q}function bH(b,z,Q){var X=b;while(X!==null){var Z=X.alternate;if(!N8(X.childLanes,z)){if(X.childLanes=X1(X.childLanes,z),Z!==null)Z.childLanes=X1(Z.childLanes,z)}else if(Z!==null&&!N8(Z.childLanes,z))Z.childLanes=X1(Z.childLanes,z);if(X===Q)break;X=X.return}if(X!==Q)G("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 KP(b,z,Q){UP(b,z,Q)}function UP(b,z,Q){var X=b.child;if(X!==null)X.return=b;while(X!==null){var Z=void 0,J=X.dependencies;if(J!==null){Z=X.child;var H=J.firstContext;while(H!==null){if(H.context===z){if(X.tag===P){var Y=a3(Q),K=v7($4,Y);K.tag=hX;var O=X.updateQueue;if(O===null);else{var N=O.shared,f=N.pending;if(f===null)K.next=K;else K.next=f.next,f.next=K;N.pending=K}}X.lanes=X1(X.lanes,Q);var I=X.alternate;if(I!==null)I.lanes=X1(I.lanes,Q);bH(X.return,Q,b),J.lanes=X1(J.lanes,Q);break}H=H.next}}else if(X.tag===D)Z=X.type===b.type?null:X.child;else if(X.tag===L0){var m=X.return;if(m===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes=X1(m.lanes,Q);var g=m.alternate;if(g!==null)g.lanes=X1(g.lanes,Q);bH(m,Q,b),Z=X.sibling}else Z=X.child;if(Z!==null)Z.return=X;else{Z=X;while(Z!==null){if(Z===b){Z=null;break}var a=Z.sibling;if(a!==null){a.return=Z.return,Z=a;break}Z=Z.return}}X=Z}}function V8(b,z){AX=b,S8=null,s$=null;var Q=b.dependencies;if(Q!==null){var X=Q.firstContext;if(X!==null){if(p6(Q.lanes,z))yz();Q.firstContext=null}}}function D4(b){if(IX)G("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().");var z=b._currentValue;if(s$===b);else{var Q={context:b,memoizedValue:z,next:null};if(S8===null){if(AX===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().");S8=Q,AX.dependencies={lanes:X0,firstContext:Q}}else S8=S8.next=Q}return z}var Vb=null;function zH(b){if(Vb===null)Vb=[b];else Vb.push(b)}function qP(){if(Vb!==null){for(var b=0;b<Vb.length;b++){var z=Vb[b],Q=z.interleaved;if(Q!==null){z.interleaved=null;var X=Q.next,Z=z.pending;if(Z!==null){var J=Z.next;Z.next=X,Q.next=J}z.pending=Q}}Vb=null}}function tK(b,z,Q,X){var Z=z.interleaved;if(Z===null)Q.next=Q,zH(z);else Q.next=Z.next,Z.next=Q;return z.interleaved=Q,TX(b,X)}function BP(b,z,Q,X){var Z=z.interleaved;if(Z===null)Q.next=Q,zH(z);else Q.next=Z.next,Z.next=Q;z.interleaved=Q}function OP(b,z,Q,X){var Z=z.interleaved;if(Z===null)Q.next=Q,zH(z);else Q.next=Z.next,Z.next=Q;return z.interleaved=Q,TX(b,X)}function d6(b,z){return TX(b,z)}var LP=TX;function TX(b,z){b.lanes=X1(b.lanes,z);var Q=b.alternate;if(Q!==null)Q.lanes=X1(Q.lanes,z);if(Q===null&&(b.flags&(V4|G7))!==l0)p2(b);var X=b,Z=b.return;while(Z!==null){if(Z.childLanes=X1(Z.childLanes,z),Q=Z.alternate,Q!==null)Q.childLanes=X1(Q.childLanes,z);else if((Z.flags&(V4|G7))!==l0)p2(b);X=Z,Z=Z.return}if(X.tag===A){var J=X.stateNode;return J}else return null}var sK=0,eK=1,hX=2,QH=3,CX=!1,XH,SX;XH=!1,SX=null;function ZH(b){var z={baseState:b.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:X0},effects:null};b.updateQueue=z}function bU(b,z){var Q=z.updateQueue,X=b.updateQueue;if(Q===X){var Z={baseState:X.baseState,firstBaseUpdate:X.firstBaseUpdate,lastBaseUpdate:X.lastBaseUpdate,shared:X.shared,effects:X.effects};z.updateQueue=Z}}function v7(b,z){var Q={eventTime:b,lane:z,tag:sK,payload:null,callback:null,next:null};return Q}function p7(b,z,Q){var X=b.updateQueue;if(X===null)return null;var Z=X.shared;if(SX===Z&&!XH)G("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."),XH=!0;if(WF()){var J=Z.pending;if(J===null)z.next=z;else z.next=J.next,J.next=z;return Z.pending=z,LP(b,Q)}else return OP(b,Z,z,Q)}function VX(b,z,Q){var X=z.updateQueue;if(X===null)return;var Z=X.shared;if(q9(Q)){var J=Z.lanes;J=O9(J,b.pendingLanes);var H=X1(J,Q);Z.lanes=H,nJ(b,H)}}function JH(b,z){var{updateQueue:Q,alternate:X}=b;if(X!==null){var Z=X.updateQueue;if(Q===Z){var J=null,H=null,Y=Q.firstBaseUpdate;if(Y!==null){var K=Y;do{var O={eventTime:K.eventTime,lane:K.lane,tag:K.tag,payload:K.payload,callback:K.callback,next:null};if(H===null)J=H=O;else H.next=O,H=O;K=K.next}while(K!==null);if(H===null)J=H=z;else H.next=z,H=z}else J=H=z;Q={baseState:Z.baseState,firstBaseUpdate:J,lastBaseUpdate:H,shared:Z.shared,effects:Z.effects},b.updateQueue=Q;return}}var N=Q.lastBaseUpdate;if(N===null)Q.firstBaseUpdate=z;else N.next=z;Q.lastBaseUpdate=z}function NP(b,z,Q,X,Z,J){switch(Q.tag){case eK:{var H=Q.payload;if(typeof H==="function"){pK();var Y=H.call(J,X,Z);{if(b.mode&M4){s4(!0);try{H.call(J,X,Z)}finally{s4(!1)}}rK()}return Y}return H}case QH:b.flags=b.flags&~h6|A1;case sK:{var K=Q.payload,O;if(typeof K==="function"){pK(),O=K.call(J,X,Z);{if(b.mode&M4){s4(!0);try{K.call(J,X,Z)}finally{s4(!1)}}rK()}}else O=K;if(O===null||O===void 0)return X;return Z1({},X,O)}case hX:return CX=!0,X}return X}function DX(b,z,Q,X){var Z=b.updateQueue;CX=!1,SX=Z.shared;var{firstBaseUpdate:J,lastBaseUpdate:H}=Z,Y=Z.shared.pending;if(Y!==null){Z.shared.pending=null;var K=Y,O=K.next;if(K.next=null,H===null)J=O;else H.next=O;H=K;var N=b.alternate;if(N!==null){var f=N.updateQueue,I=f.lastBaseUpdate;if(I!==H){if(I===null)f.firstBaseUpdate=O;else I.next=O;f.lastBaseUpdate=K}}}if(J!==null){var m=Z.baseState,g=X0,a=null,W0=null,g0=null,S0=J;do{var{lane:Y1,eventTime:G1}=S0;if(!N8(X,Y1)){var C={eventTime:G1,lane:Y1,tag:S0.tag,payload:S0.payload,callback:S0.callback,next:null};if(g0===null)W0=g0=C,a=m;else g0=g0.next=C;g=X1(g,Y1)}else{if(g0!==null){var j={eventTime:G1,lane:e4,tag:S0.tag,payload:S0.payload,callback:S0.callback,next:null};g0=g0.next=j}m=NP(b,Z,S0,m,z,Q);var S=S0.callback;if(S!==null&&S0.lane!==e4){b.flags|=WJ;var J0=Z.effects;if(J0===null)Z.effects=[S0];else J0.push(S0)}}if(S0=S0.next,S0===null)if(Y=Z.shared.pending,Y===null)break;else{var M0=Y,_0=M0.next;M0.next=null,S0=_0,Z.lastBaseUpdate=M0,Z.shared.pending=null}}while(!0);if(g0===null)a=m;Z.baseState=a,Z.firstBaseUpdate=W0,Z.lastBaseUpdate=g0;var j0=Z.shared.interleaved;if(j0!==null){var b1=j0;do g=X1(g,b1.lane),b1=b1.next;while(b1!==j0)}else if(J===null)Z.shared.lanes=X0;tz(g),b.lanes=g,b.memoizedState=m}SX=null}function WP(b,z){if(typeof b!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+b));b.call(z)}function zU(){CX=!1}function EX(){return CX}function QU(b,z,Q){var X=z.effects;if(z.effects=null,X!==null)for(var Z=0;Z<X.length;Z++){var J=X[Z],H=J.callback;if(H!==null)J.callback=null,WP(H,Q)}}var wz={},r7=i7(wz),Az=i7(wz),uX=i7(wz);function mX(b){if(b===wz)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return b}function XU(){var b=mX(uX.current);return b}function $H(b,z){R6(uX,z,b),R6(Az,b,b),R6(r7,wz,b);var Q=DW(z);F6(r7,b),R6(r7,Q,b)}function D8(b){F6(r7,b),F6(Az,b),F6(uX,b)}function HH(){var b=mX(r7.current);return b}function ZU(b){var z=mX(uX.current),Q=mX(r7.current),X=EW(Q,b.type);if(Q===X)return;R6(Az,b,b),R6(r7,X,b)}function YH(b){if(Az.current!==b)return;F6(r7,b),F6(Az,b)}var _P=0,JU=1,$U=1,Iz=2,k5=i7(_P);function GH(b,z){return(b&z)!==0}function E8(b){return b&JU}function KH(b,z){return b&JU|z}function PP(b,z){return b|z}function n7(b,z){R6(k5,z,b)}function u8(b){F6(k5,b)}function vP(b,z){var Q=b.memoizedState;if(Q!==null){if(Q.dehydrated!==null)return!0;return!1}var X=b.memoizedProps;return!0}function gX(b){var z=b;while(z!==null){if(z.tag===p){var Q=z.memoizedState;if(Q!==null){var X=Q.dehydrated;if(X===null||RK(X)||T$(X))return z}}else if(z.tag===c&&z.memoizedProps.revealOrder!==void 0){var Z=(z.flags&A1)!==l0;if(Z)return z}else if(z.child!==null){z.child.return=z,z=z.child;continue}if(z===b)return null;while(z.sibling===null){if(z.return===null||z.return===b)return null;z=z.return}z.sibling.return=z.return,z=z.sibling}return null}var c6=0,g4=1,j5=2,y4=4,Y6=8,UH=[];function qH(){for(var b=0;b<UH.length;b++){var z=UH[b];z._workInProgressVersionPrimary=null}UH.length=0}function FP(b,z){var Q=z._getVersion,X=Q(z._source);if(b.mutableSourceEagerHydrationData==null)b.mutableSourceEagerHydrationData=[z,X];else b.mutableSourceEagerHydrationData.push(z,X)}var{ReactCurrentDispatcher:F0,ReactCurrentBatchConfig:fz}=$,BH,m8;BH=new Set;var Db=X0,y1=null,d4=null,c4=null,yX=!1,Tz=!1,hz=0,RP=0,MP=25,r=null,Y5=null,t7=-1,OH=!1;function T1(){{var b=r;if(Y5===null)Y5=[b];else Y5.push(b)}}function O0(){{var b=r;if(Y5!==null){if(t7++,Y5[t7]!==b)kP(b)}}}function g8(b){if(b!==void 0&&b!==null&&!w1(b))G("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",r,typeof b)}function kP(b){{var z=Q1(y1);if(!BH.has(z)){if(BH.add(z),Y5!==null){var Q="",X=30;for(var Z=0;Z<=t7;Z++){var J=Y5[Z],H=Z===t7?b:J,Y=Z+1+". "+J;while(Y.length<X)Y+=" ";Y+=H+`
72
+ `,Q+=Y}G(`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://reactjs.org/link/rules-of-hooks
73
+
74
+ Previous render Next render
75
+ ------------------------------------------------------
76
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
+ `,z,Q)}}}}function M6(){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:
78
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
79
+ 2. You might be breaking the Rules of Hooks
80
+ 3. You might have more than one copy of React in the same app
81
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function LH(b,z){if(OH)return!1;if(z===null)return G("%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.",r),!1;if(b.length!==z.length)G(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
82
+
83
+ Previous: %s
84
+ Incoming: %s`,r,"["+z.join(", ")+"]","["+b.join(", ")+"]");for(var Q=0;Q<z.length&&Q<b.length;Q++){if(t6(b[Q],z[Q]))continue;return!1}return!0}function y8(b,z,Q,X,Z,J){if(Db=J,y1=z,Y5=b!==null?b._debugHookTypes:null,t7=-1,OH=b!==null&&b.type!==z.type,z.memoizedState=null,z.updateQueue=null,z.lanes=X0,b!==null&&b.memoizedState!==null)F0.current=fU;else if(Y5!==null)F0.current=IU;else F0.current=AU;var H=Q(X,Z);if(Tz){var Y=0;do{if(Tz=!1,hz=0,Y>=MP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");Y+=1,OH=!1,d4=null,c4=null,z.updateQueue=null,t7=-1,F0.current=TU,H=Q(X,Z)}while(Tz)}F0.current=bZ,z._debugHookTypes=Y5;var K=d4!==null&&d4.next!==null;if(Db=X0,y1=null,d4=null,c4=null,r=null,Y5=null,t7=-1,b!==null&&(b.flags&U7)!==(z.flags&U7)&&(b.mode&O1)!==a0)G("Internal React error: Expected static flag was missing. Please notify the React team.");if(yX=!1,K)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return H}function d8(){var b=hz!==0;return hz=0,b}function HU(b,z,Q){if(z.updateQueue=b.updateQueue,(z.mode&a5)!==a0)z.flags&=~(SQ|K7|_5|W1);else z.flags&=~(_5|W1);b.lanes=yQ(b.lanes,Q)}function YU(){if(F0.current=bZ,yX){var b=y1.memoizedState;while(b!==null){var z=b.queue;if(z!==null)z.pending=null;b=b.next}yX=!1}Db=X0,y1=null,d4=null,c4=null,Y5=null,t7=-1,r=null,FU=!1,Tz=!1,hz=0}function o5(){var b={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(c4===null)y1.memoizedState=c4=b;else c4=c4.next=b;return c4}function G5(){var b;if(d4===null){var z=y1.alternate;if(z!==null)b=z.memoizedState;else b=null}else b=d4.next;var Q;if(c4===null)Q=y1.memoizedState;else Q=c4.next;if(Q!==null)c4=Q,Q=c4.next,d4=b;else{if(b===null)throw Error("Rendered more hooks than during the previous render.");d4=b;var X={memoizedState:d4.memoizedState,baseState:d4.baseState,baseQueue:d4.baseQueue,queue:d4.queue,next:null};if(c4===null)y1.memoizedState=c4=X;else c4=c4.next=X}return c4}function GU(){return{lastEffect:null,stores:null}}function NH(b,z){return typeof z==="function"?z(b):z}function WH(b,z,Q){var X=o5(),Z;if(Q!==void 0)Z=Q(z);else Z=z;X.memoizedState=X.baseState=Z;var J={pending:null,interleaved:null,lanes:X0,dispatch:null,lastRenderedReducer:b,lastRenderedState:Z};X.queue=J;var H=J.dispatch=IP.bind(null,y1,J);return[X.memoizedState,H]}function _H(b,z,Q){var X=G5(),Z=X.queue;if(Z===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");Z.lastRenderedReducer=b;var J=d4,H=J.baseQueue,Y=Z.pending;if(Y!==null){if(H!==null){var K=H.next,O=Y.next;H.next=O,Y.next=K}if(J.baseQueue!==H)G("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");J.baseQueue=H=Y,Z.pending=null}if(H!==null){var N=H.next,f=J.baseState,I=null,m=null,g=null,a=N;do{var W0=a.lane;if(!N8(Db,W0)){var g0={lane:W0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};if(g===null)m=g=g0,I=f;else g=g.next=g0;y1.lanes=X1(y1.lanes,W0),tz(W0)}else{if(g!==null){var S0={lane:e4,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};g=g.next=S0}if(a.hasEagerState)f=a.eagerState;else{var Y1=a.action;f=b(f,Y1)}}a=a.next}while(a!==null&&a!==N);if(g===null)I=f;else g.next=m;if(!t6(f,X.memoizedState))yz();X.memoizedState=f,X.baseState=I,X.baseQueue=g,Z.lastRenderedState=f}var G1=Z.interleaved;if(G1!==null){var C=G1;do{var j=C.lane;y1.lanes=X1(y1.lanes,j),tz(j),C=C.next}while(C!==G1)}else if(H===null)Z.lanes=X0;var S=Z.dispatch;return[X.memoizedState,S]}function PH(b,z,Q){var X=G5(),Z=X.queue;if(Z===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");Z.lastRenderedReducer=b;var{dispatch:J,pending:H}=Z,Y=X.memoizedState;if(H!==null){Z.pending=null;var K=H.next,O=K;do{var N=O.action;Y=b(Y,N),O=O.next}while(O!==K);if(!t6(Y,X.memoizedState))yz();if(X.memoizedState=Y,X.baseQueue===null)X.baseState=Y;Z.lastRenderedState=Y}return[Y,J]}function vH(b,z,Q){return}function dX(b,z,Q){return}function FH(b,z,Q){var X=y1,Z=o5(),J,H=H6();if(H){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(J=Q(),!m8){if(J!==Q())G("The result of getServerSnapshot should be cached to avoid an infinite loop"),m8=!0}}else{if(J=z(),!m8){var Y=z();if(!t6(J,Y))G("The result of getSnapshot should be cached to avoid an infinite loop"),m8=!0}var K=PZ();if(K===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!gQ(K,Db))KU(X,z,J)}Z.memoizedState=J;var O={value:J,getSnapshot:z};return Z.queue=O,xX(qU.bind(null,X,O,b),[b]),X.flags|=_5,Cz(g4|Y6,UU.bind(null,X,O,J,z),void 0,null),J}function cX(b,z,Q){var X=y1,Z=G5(),J=z();if(!m8){var H=z();if(!t6(J,H))G("The result of getSnapshot should be cached to avoid an infinite loop"),m8=!0}var Y=Z.memoizedState,K=!t6(Y,J);if(K)Z.memoizedState=J,yz();var O=Z.queue;if(Vz(qU.bind(null,X,O,b),[b]),O.getSnapshot!==z||K||c4!==null&&c4.memoizedState.tag&g4){X.flags|=_5,Cz(g4|Y6,UU.bind(null,X,O,J,z),void 0,null);var N=PZ();if(N===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!gQ(N,Db))KU(X,z,J)}return J}function KU(b,z,Q){b.flags|=CQ;var X={getSnapshot:z,value:Q},Z=y1.updateQueue;if(Z===null)Z=GU(),y1.updateQueue=Z,Z.stores=[X];else{var J=Z.stores;if(J===null)Z.stores=[X];else J.push(X)}}function UU(b,z,Q,X){if(z.value=Q,z.getSnapshot=X,BU(z))OU(b)}function qU(b,z,Q){var X=function(){if(BU(z))OU(b)};return Q(X)}function BU(b){var{getSnapshot:z,value:Q}=b;try{var X=z();return!t6(Q,X)}catch(Z){return!0}}function OU(b){var z=d6(b,r0);if(z!==null)x4(z,b,r0,$4)}function aX(b){var z=o5();if(typeof b==="function")b=b();z.memoizedState=z.baseState=b;var Q={pending:null,interleaved:null,lanes:X0,dispatch:null,lastRenderedReducer:NH,lastRenderedState:b};z.queue=Q;var X=Q.dispatch=fP.bind(null,y1,Q);return[z.memoizedState,X]}function RH(b){return _H(NH)}function MH(b){return PH(NH)}function Cz(b,z,Q,X){var Z={tag:b,create:z,destroy:Q,deps:X,next:null},J=y1.updateQueue;if(J===null)J=GU(),y1.updateQueue=J,J.lastEffect=Z.next=Z;else{var H=J.lastEffect;if(H===null)J.lastEffect=Z.next=Z;else{var Y=H.next;H.next=Z,Z.next=Y,J.lastEffect=Z}}return Z}function kH(b){var z=o5();{var Q={current:b};return z.memoizedState=Q,Q}}function lX(b){var z=G5();return z.memoizedState}function Sz(b,z,Q,X){var Z=o5(),J=X===void 0?null:X;y1.flags|=b,Z.memoizedState=Cz(g4|z,Q,void 0,J)}function iX(b,z,Q,X){var Z=G5(),J=X===void 0?null:X,H=void 0;if(d4!==null){var Y=d4.memoizedState;if(H=Y.destroy,J!==null){var K=Y.deps;if(LH(J,K)){Z.memoizedState=Cz(z,Q,H,J);return}}}y1.flags|=b,Z.memoizedState=Cz(g4|z,Q,H,J)}function xX(b,z){if((y1.mode&a5)!==a0)return Sz(SQ|_5|vJ,Y6,b,z);else return Sz(_5|vJ,Y6,b,z)}function Vz(b,z){return iX(_5,Y6,b,z)}function wH(b,z){return Sz(W1,j5,b,z)}function jX(b,z){return iX(W1,j5,b,z)}function AH(b,z){var Q=W1;if(Q|=Nb,(y1.mode&a5)!==a0)Q|=K7;return Sz(Q,y4,b,z)}function oX(b,z){return iX(W1,y4,b,z)}function LU(b,z){if(typeof z==="function"){var Q=z,X=b();return Q(X),function(){Q(null)}}else if(z!==null&&z!==void 0){var Z=z;if(!Z.hasOwnProperty("current"))G("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(Z).join(", ")+"}");var J=b();return Z.current=J,function(){Z.current=null}}}function IH(b,z,Q){if(typeof z!=="function")G("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",z!==null?typeof z:"null");var X=Q!==null&&Q!==void 0?Q.concat([b]):null,Z=W1;if(Z|=Nb,(y1.mode&a5)!==a0)Z|=K7;return Sz(Z,y4,LU.bind(null,z,b),X)}function pX(b,z,Q){if(typeof z!=="function")G("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",z!==null?typeof z:"null");var X=Q!==null&&Q!==void 0?Q.concat([b]):null;return iX(W1,y4,LU.bind(null,z,b),X)}function rX(b,z){}var nX=rX;function fH(b,z){var Q=o5(),X=z===void 0?null:z;return Q.memoizedState=[b,X],b}function tX(b,z){var Q=G5(),X=z===void 0?null:z,Z=Q.memoizedState;if(Z!==null){if(X!==null){var J=Z[1];if(LH(X,J))return Z[0]}}return Q.memoizedState=[b,X],b}function TH(b,z){var Q=o5(),X=z===void 0?null:z,Z=b();return Q.memoizedState=[Z,X],Z}function sX(b,z){var Q=G5(),X=z===void 0?null:z,Z=Q.memoizedState;if(Z!==null){if(X!==null){var J=Z[1];if(LH(X,J))return Z[0]}}var H=b();return Q.memoizedState=[H,X],H}function hH(b){var z=o5();return z.memoizedState=b,b}function NU(b){var z=G5(),Q=d4,X=Q.memoizedState;return _U(z,X,b)}function WU(b){var z=G5();if(d4===null)return z.memoizedState=b,b;else{var Q=d4.memoizedState;return _U(z,Q,b)}}function _U(b,z,Q){var X=!KL(Db);if(X){if(!t6(Q,z)){var Z=B9();y1.lanes=X1(y1.lanes,Z),tz(Z),b.baseState=!0}return z}else{if(b.baseState)b.baseState=!1,yz();return b.memoizedState=Q,Q}}function wP(b,z,Q){var X=v5();b6(PL(X,B7)),b(!0);var Z=fz.transition;fz.transition={};var J=fz.transition;fz.transition._updatedFibers=new Set;try{b(!1),z()}finally{if(b6(X),fz.transition=Z,Z===null&&J._updatedFibers){var H=J._updatedFibers.size;if(H>10)L("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.");J._updatedFibers.clear()}}}function CH(){var b=aX(!1),z=b[0],Q=b[1],X=wP.bind(null,Q),Z=o5();return Z.memoizedState=X,[z,X]}function PU(){var b=RH(),z=b[0],Q=G5(),X=Q.memoizedState;return[z,X]}function vU(){var b=MH(),z=b[0],Q=G5(),X=Q.memoizedState;return[z,X]}var FU=!1;function AP(){return FU}function SH(){var b=o5(),z=PZ(),Q=z.identifierPrefix,X;if(H6()){var Z=i_();X=":"+Q+"R"+Z;var J=hz++;if(J>0)X+="H"+J.toString(32);X+=":"}else{var H=RP++;X=":"+Q+"r"+H.toString(32)+":"}return b.memoizedState=X,X}function eX(){var b=G5(),z=b.memoizedState;return z}function IP(b,z,Q){if(typeof arguments[3]==="function")G("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().");var X=Qb(b),Z={lane:X,action:Q,hasEagerState:!1,eagerState:null,next:null};if(RU(b))MU(z,Z);else{var J=tK(b,z,Z,X);if(J!==null){var H=V6();x4(J,b,X,H),kU(J,z,X)}}wU(b,X)}function fP(b,z,Q){if(typeof arguments[3]==="function")G("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().");var X=Qb(b),Z={lane:X,action:Q,hasEagerState:!1,eagerState:null,next:null};if(RU(b))MU(z,Z);else{var J=b.alternate;if(b.lanes===X0&&(J===null||J.lanes===X0)){var H=z.lastRenderedReducer;if(H!==null){var Y;Y=F0.current,F0.current=w5;try{var K=z.lastRenderedState,O=H(K,Q);if(Z.hasEagerState=!0,Z.eagerState=O,t6(O,K)){BP(b,z,Z,X);return}}catch(I){}finally{F0.current=Y}}}var N=tK(b,z,Z,X);if(N!==null){var f=V6();x4(N,b,X,f),kU(N,z,X)}}wU(b,X)}function RU(b){var z=b.alternate;return b===y1||z!==null&&z===y1}function MU(b,z){Tz=yX=!0;var Q=b.pending;if(Q===null)z.next=z;else z.next=Q.next,Q.next=z;b.pending=z}function kU(b,z,Q){if(q9(Q)){var X=z.lanes;X=O9(X,b.pendingLanes);var Z=X1(X,Q);z.lanes=Z,nJ(b,Z)}}function wU(b,z,Q){wJ(b,z)}var bZ={readContext:D4,useCallback:M6,useContext:M6,useEffect:M6,useImperativeHandle:M6,useInsertionEffect:M6,useLayoutEffect:M6,useMemo:M6,useReducer:M6,useRef:M6,useState:M6,useDebugValue:M6,useDeferredValue:M6,useTransition:M6,useMutableSource:M6,useSyncExternalStore:M6,useId:M6,unstable_isNewReconciler:V0},AU=null,IU=null,fU=null,TU=null,p5=null,w5=null,zZ=null;{var VH=function(){G("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().")},n0=function(){G("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://reactjs.org/link/rules-of-hooks")};AU={readContext:function(b){return D4(b)},useCallback:function(b,z){return r="useCallback",T1(),g8(z),fH(b,z)},useContext:function(b){return r="useContext",T1(),D4(b)},useEffect:function(b,z){return r="useEffect",T1(),g8(z),xX(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",T1(),g8(Q),IH(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",T1(),g8(z),wH(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",T1(),g8(z),AH(b,z)},useMemo:function(b,z){r="useMemo",T1(),g8(z);var Q=F0.current;F0.current=p5;try{return TH(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",T1();var X=F0.current;F0.current=p5;try{return WH(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",T1(),kH(b)},useState:function(b){r="useState",T1();var z=F0.current;F0.current=p5;try{return aX(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",T1(),rX()},useDeferredValue:function(b){return r="useDeferredValue",T1(),hH(b)},useTransition:function(){return r="useTransition",T1(),CH()},useMutableSource:function(b,z,Q){return r="useMutableSource",T1(),vH()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",T1(),FH(b,z,Q)},useId:function(){return r="useId",T1(),SH()},unstable_isNewReconciler:V0},IU={readContext:function(b){return D4(b)},useCallback:function(b,z){return r="useCallback",O0(),fH(b,z)},useContext:function(b){return r="useContext",O0(),D4(b)},useEffect:function(b,z){return r="useEffect",O0(),xX(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",O0(),IH(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",O0(),wH(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",O0(),AH(b,z)},useMemo:function(b,z){r="useMemo",O0();var Q=F0.current;F0.current=p5;try{return TH(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",O0();var X=F0.current;F0.current=p5;try{return WH(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",O0(),kH(b)},useState:function(b){r="useState",O0();var z=F0.current;F0.current=p5;try{return aX(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",O0(),rX()},useDeferredValue:function(b){return r="useDeferredValue",O0(),hH(b)},useTransition:function(){return r="useTransition",O0(),CH()},useMutableSource:function(b,z,Q){return r="useMutableSource",O0(),vH()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",O0(),FH(b,z,Q)},useId:function(){return r="useId",O0(),SH()},unstable_isNewReconciler:V0},fU={readContext:function(b){return D4(b)},useCallback:function(b,z){return r="useCallback",O0(),tX(b,z)},useContext:function(b){return r="useContext",O0(),D4(b)},useEffect:function(b,z){return r="useEffect",O0(),Vz(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",O0(),pX(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",O0(),jX(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",O0(),oX(b,z)},useMemo:function(b,z){r="useMemo",O0();var Q=F0.current;F0.current=w5;try{return sX(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",O0();var X=F0.current;F0.current=w5;try{return _H(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",O0(),lX()},useState:function(b){r="useState",O0();var z=F0.current;F0.current=w5;try{return RH(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",O0(),nX()},useDeferredValue:function(b){return r="useDeferredValue",O0(),NU(b)},useTransition:function(){return r="useTransition",O0(),PU()},useMutableSource:function(b,z,Q){return r="useMutableSource",O0(),dX()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",O0(),cX(b,z)},useId:function(){return r="useId",O0(),eX()},unstable_isNewReconciler:V0},TU={readContext:function(b){return D4(b)},useCallback:function(b,z){return r="useCallback",O0(),tX(b,z)},useContext:function(b){return r="useContext",O0(),D4(b)},useEffect:function(b,z){return r="useEffect",O0(),Vz(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",O0(),pX(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",O0(),jX(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",O0(),oX(b,z)},useMemo:function(b,z){r="useMemo",O0();var Q=F0.current;F0.current=zZ;try{return sX(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",O0();var X=F0.current;F0.current=zZ;try{return PH(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",O0(),lX()},useState:function(b){r="useState",O0();var z=F0.current;F0.current=zZ;try{return MH(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",O0(),nX()},useDeferredValue:function(b){return r="useDeferredValue",O0(),WU(b)},useTransition:function(){return r="useTransition",O0(),vU()},useMutableSource:function(b,z,Q){return r="useMutableSource",O0(),dX()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",O0(),cX(b,z)},useId:function(){return r="useId",O0(),eX()},unstable_isNewReconciler:V0},p5={readContext:function(b){return VH(),D4(b)},useCallback:function(b,z){return r="useCallback",n0(),T1(),fH(b,z)},useContext:function(b){return r="useContext",n0(),T1(),D4(b)},useEffect:function(b,z){return r="useEffect",n0(),T1(),xX(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",n0(),T1(),IH(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",n0(),T1(),wH(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",n0(),T1(),AH(b,z)},useMemo:function(b,z){r="useMemo",n0(),T1();var Q=F0.current;F0.current=p5;try{return TH(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",n0(),T1();var X=F0.current;F0.current=p5;try{return WH(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",n0(),T1(),kH(b)},useState:function(b){r="useState",n0(),T1();var z=F0.current;F0.current=p5;try{return aX(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",n0(),T1(),rX()},useDeferredValue:function(b){return r="useDeferredValue",n0(),T1(),hH(b)},useTransition:function(){return r="useTransition",n0(),T1(),CH()},useMutableSource:function(b,z,Q){return r="useMutableSource",n0(),T1(),vH()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",n0(),T1(),FH(b,z,Q)},useId:function(){return r="useId",n0(),T1(),SH()},unstable_isNewReconciler:V0},w5={readContext:function(b){return VH(),D4(b)},useCallback:function(b,z){return r="useCallback",n0(),O0(),tX(b,z)},useContext:function(b){return r="useContext",n0(),O0(),D4(b)},useEffect:function(b,z){return r="useEffect",n0(),O0(),Vz(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",n0(),O0(),pX(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",n0(),O0(),jX(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",n0(),O0(),oX(b,z)},useMemo:function(b,z){r="useMemo",n0(),O0();var Q=F0.current;F0.current=w5;try{return sX(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",n0(),O0();var X=F0.current;F0.current=w5;try{return _H(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",n0(),O0(),lX()},useState:function(b){r="useState",n0(),O0();var z=F0.current;F0.current=w5;try{return RH(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",n0(),O0(),nX()},useDeferredValue:function(b){return r="useDeferredValue",n0(),O0(),NU(b)},useTransition:function(){return r="useTransition",n0(),O0(),PU()},useMutableSource:function(b,z,Q){return r="useMutableSource",n0(),O0(),dX()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",n0(),O0(),cX(b,z)},useId:function(){return r="useId",n0(),O0(),eX()},unstable_isNewReconciler:V0},zZ={readContext:function(b){return VH(),D4(b)},useCallback:function(b,z){return r="useCallback",n0(),O0(),tX(b,z)},useContext:function(b){return r="useContext",n0(),O0(),D4(b)},useEffect:function(b,z){return r="useEffect",n0(),O0(),Vz(b,z)},useImperativeHandle:function(b,z,Q){return r="useImperativeHandle",n0(),O0(),pX(b,z,Q)},useInsertionEffect:function(b,z){return r="useInsertionEffect",n0(),O0(),jX(b,z)},useLayoutEffect:function(b,z){return r="useLayoutEffect",n0(),O0(),oX(b,z)},useMemo:function(b,z){r="useMemo",n0(),O0();var Q=F0.current;F0.current=w5;try{return sX(b,z)}finally{F0.current=Q}},useReducer:function(b,z,Q){r="useReducer",n0(),O0();var X=F0.current;F0.current=w5;try{return PH(b,z,Q)}finally{F0.current=X}},useRef:function(b){return r="useRef",n0(),O0(),lX()},useState:function(b){r="useState",n0(),O0();var z=F0.current;F0.current=w5;try{return MH(b)}finally{F0.current=z}},useDebugValue:function(b,z){return r="useDebugValue",n0(),O0(),nX()},useDeferredValue:function(b){return r="useDeferredValue",n0(),O0(),WU(b)},useTransition:function(){return r="useTransition",n0(),O0(),vU()},useMutableSource:function(b,z,Q){return r="useMutableSource",n0(),O0(),dX()},useSyncExternalStore:function(b,z,Q){return r="useSyncExternalStore",n0(),O0(),cX(b,z)},useId:function(){return r="useId",n0(),O0(),eX()},unstable_isNewReconciler:V0}}var s7=c1.unstable_now,hU=0,QZ=-1,Dz=-1,XZ=-1,DH=!1,ZZ=!1;function CU(){return DH}function TP(){ZZ=!0}function hP(){DH=!1,ZZ=!1}function CP(){DH=ZZ,ZZ=!1}function SU(){return hU}function VU(){hU=s7()}function EH(b){if(Dz=s7(),b.actualStartTime<0)b.actualStartTime=s7()}function DU(b){Dz=-1}function JZ(b,z){if(Dz>=0){var Q=s7()-Dz;if(b.actualDuration+=Q,z)b.selfBaseDuration=Q;Dz=-1}}function r5(b){if(QZ>=0){var z=s7()-QZ;QZ=-1;var Q=b.return;while(Q!==null){switch(Q.tag){case A:var X=Q.stateNode;X.effectDuration+=z;return;case N0:var Z=Q.stateNode;Z.effectDuration+=z;return}Q=Q.return}}}function uH(b){if(XZ>=0){var z=s7()-XZ;XZ=-1;var Q=b.return;while(Q!==null){switch(Q.tag){case A:var X=Q.stateNode;if(X!==null)X.passiveEffectDuration+=z;return;case N0:var Z=Q.stateNode;if(Z!==null)Z.passiveEffectDuration+=z;return}Q=Q.return}}}function n5(){QZ=s7()}function mH(){XZ=s7()}function gH(b){var z=b.child;while(z)b.actualDuration+=z.actualDuration,z=z.sibling}function A5(b,z){if(b&&b.defaultProps){var Q=Z1({},z),X=b.defaultProps;for(var Z in X)if(Q[Z]===void 0)Q[Z]=X[Z];return Q}return z}var yH={},dH,cH,aH,lH,iH,EU,$Z,xH,jH,oH,Ez;{dH=new Set,cH=new Set,aH=new Set,lH=new Set,xH=new Set,iH=new Set,jH=new Set,oH=new Set,Ez=new Set;var uU=new Set;$Z=function(b,z){if(b===null||typeof b==="function")return;var Q=z+"_"+b;if(!uU.has(Q))uU.add(Q),G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",z,b)},EU=function(b,z){if(z===void 0){var Q=F1(b)||"Component";if(!iH.has(Q))iH.add(Q),G("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Q)}},Object.defineProperty(yH,"_processChildContext",{enumerable:!1,value:function(){throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(yH)}function pH(b,z,Q,X){var Z=b.memoizedState,J=Q(X,Z);{if(b.mode&M4){s4(!0);try{J=Q(X,Z)}finally{s4(!1)}}EU(z,J)}var H=J===null||J===void 0?Z:Z1({},Z,J);if(b.memoizedState=H,b.lanes===X0){var Y=b.updateQueue;Y.baseState=H}}var rH={isMounted:MO,enqueueSetState:function(b,z,Q){var X=G8(b),Z=V6(),J=Qb(X),H=v7(Z,J);if(H.payload=z,Q!==void 0&&Q!==null)$Z(Q,"setState"),H.callback=Q;var Y=p7(X,H,J);if(Y!==null)x4(Y,X,J,Z),VX(Y,X,J);wJ(X,J)},enqueueReplaceState:function(b,z,Q){var X=G8(b),Z=V6(),J=Qb(X),H=v7(Z,J);if(H.tag=eK,H.payload=z,Q!==void 0&&Q!==null)$Z(Q,"replaceState"),H.callback=Q;var Y=p7(X,H,J);if(Y!==null)x4(Y,X,J,Z),VX(Y,X,J);wJ(X,J)},enqueueForceUpdate:function(b,z){var Q=G8(b),X=V6(),Z=Qb(Q),J=v7(X,Z);if(J.tag=hX,z!==void 0&&z!==null)$Z(z,"forceUpdate"),J.callback=z;var H=p7(Q,J,Z);if(H!==null)x4(H,Q,Z,X),VX(H,Q,Z);bL(Q,Z)}};function mU(b,z,Q,X,Z,J,H){var Y=b.stateNode;if(typeof Y.shouldComponentUpdate==="function"){var K=Y.shouldComponentUpdate(X,J,H);{if(b.mode&M4){s4(!0);try{K=Y.shouldComponentUpdate(X,J,H)}finally{s4(!1)}}if(K===void 0)G("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",F1(z)||"Component")}return K}if(z.prototype&&z.prototype.isPureReactComponent)return!Xz(Q,X)||!Xz(Z,J);return!0}function SP(b,z,Q){var X=b.stateNode;{var Z=F1(z)||"Component",J=X.render;if(!J)if(z.prototype&&typeof z.prototype.render==="function")G("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",Z);else G("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",Z);if(X.getInitialState&&!X.getInitialState.isReactClassApproved&&!X.state)G("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?",Z);if(X.getDefaultProps&&!X.getDefaultProps.isReactClassApproved)G("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.",Z);if(X.propTypes)G("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",Z);if(X.contextType)G("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Z);{if(z.childContextTypes&&!Ez.has(z)&&(b.mode&M4)===a0)Ez.add(z),G(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
85
+
86
+ .Learn more about this warning here: https://reactjs.org/link/legacy-context`,Z);if(z.contextTypes&&!Ez.has(z)&&(b.mode&M4)===a0)Ez.add(z),G(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
87
+
88
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,Z);if(X.contextTypes)G("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",Z);if(z.contextType&&z.contextTypes&&!jH.has(z))jH.add(z),G("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",Z)}if(typeof X.componentShouldUpdate==="function")G("%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.",Z);if(z.prototype&&z.prototype.isPureReactComponent&&typeof X.shouldComponentUpdate<"u")G("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",F1(z)||"A pure component");if(typeof X.componentDidUnmount==="function")G("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Z);if(typeof X.componentDidReceiveProps==="function")G("%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().",Z);if(typeof X.componentWillRecieveProps==="function")G("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Z);if(typeof X.UNSAFE_componentWillRecieveProps==="function")G("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Z);var H=X.props!==Q;if(X.props!==void 0&&H)G("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Z,Z);if(X.defaultProps)G("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",Z,Z);if(typeof X.getSnapshotBeforeUpdate==="function"&&typeof X.componentDidUpdate!=="function"&&!aH.has(z))aH.add(z),G("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",F1(z));if(typeof X.getDerivedStateFromProps==="function")G("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Z);if(typeof X.getDerivedStateFromError==="function")G("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Z);if(typeof z.getSnapshotBeforeUpdate==="function")G("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Z);var Y=X.state;if(Y&&(typeof Y!=="object"||w1(Y)))G("%s.state: must be set to an object or null",Z);if(typeof X.getChildContext==="function"&&typeof z.childContextTypes!=="object")G("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Z)}}function gU(b,z){z.updater=rH,b.stateNode=z,_O(z,b),z._reactInternalInstance=yH}function yU(b,z,Q){var X=!1,Z=s6,J=s6,H=z.contextType;if("contextType"in z){var Y=H===null||H!==void 0&&H.$$typeof===W&&H._context===void 0;if(!Y&&!oH.has(z)){oH.add(z);var K="";if(H===void 0)K=" 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.";else if(typeof H!=="object")K=" However, it is set to a "+typeof H+".";else if(H.$$typeof===Q0)K=" Did you accidentally pass the Context.Provider instead?";else if(H._context!==void 0)K=" Did you accidentally pass the Context.Consumer instead?";else K=" However, it is set to an object with keys {"+Object.keys(H).join(", ")+"}.";G("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",F1(z)||"Component",K)}}if(typeof H==="object"&&H!==null)J=D4(H);else{Z=A8(b,z,!0);var O=z.contextTypes;X=O!==null&&O!==void 0,J=X?I8(b,Z):s6}var N=new z(Q,J);if(b.mode&M4){s4(!0);try{N=new z(Q,J)}finally{s4(!1)}}var f=b.memoizedState=N.state!==null&&N.state!==void 0?N.state:null;gU(b,N);{if(typeof z.getDerivedStateFromProps==="function"&&f===null){var I=F1(z)||"Component";if(!cH.has(I))cH.add(I),G("`%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.",I,N.state===null?"null":"undefined",I)}if(typeof z.getDerivedStateFromProps==="function"||typeof N.getSnapshotBeforeUpdate==="function"){var m=null,g=null,a=null;if(typeof N.componentWillMount==="function"&&N.componentWillMount.__suppressDeprecationWarning!==!0)m="componentWillMount";else if(typeof N.UNSAFE_componentWillMount==="function")m="UNSAFE_componentWillMount";if(typeof N.componentWillReceiveProps==="function"&&N.componentWillReceiveProps.__suppressDeprecationWarning!==!0)g="componentWillReceiveProps";else if(typeof N.UNSAFE_componentWillReceiveProps==="function")g="UNSAFE_componentWillReceiveProps";if(typeof N.componentWillUpdate==="function"&&N.componentWillUpdate.__suppressDeprecationWarning!==!0)a="componentWillUpdate";else if(typeof N.UNSAFE_componentWillUpdate==="function")a="UNSAFE_componentWillUpdate";if(m!==null||g!==null||a!==null){var W0=F1(z)||"Component",g0=typeof z.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!lH.has(W0))lH.add(W0),G(`Unsafe legacy lifecycles will not be called for components using new component APIs.
89
+
90
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
91
+
92
+ The above lifecycles should be removed. Learn more about this warning here:
93
+ https://reactjs.org/link/unsafe-component-lifecycles`,W0,g0,m!==null?`
94
+ `+m:"",g!==null?`
95
+ `+g:"",a!==null?`
96
+ `+a:"")}}}if(X)fK(b,Z,J);return N}function VP(b,z){var Q=z.state;if(typeof z.componentWillMount==="function")z.componentWillMount();if(typeof z.UNSAFE_componentWillMount==="function")z.UNSAFE_componentWillMount();if(Q!==z.state)G("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Q1(b)||"Component"),rH.enqueueReplaceState(z,z.state,null)}function dU(b,z,Q,X){var Z=z.state;if(typeof z.componentWillReceiveProps==="function")z.componentWillReceiveProps(Q,X);if(typeof z.UNSAFE_componentWillReceiveProps==="function")z.UNSAFE_componentWillReceiveProps(Q,X);if(z.state!==Z){{var J=Q1(b)||"Component";if(!dH.has(J))dH.add(J),G("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",J)}rH.enqueueReplaceState(z,z.state,null)}}function nH(b,z,Q,X){SP(b,z,Q);var Z=b.stateNode;Z.props=Q,Z.state=b.memoizedState,Z.refs={},ZH(b);var J=z.contextType;if(typeof J==="object"&&J!==null)Z.context=D4(J);else{var H=A8(b,z,!0);Z.context=I8(b,H)}{if(Z.state===Q){var Y=F1(z)||"Component";if(!xH.has(Y))xH.add(Y),G("%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.",Y)}if(b.mode&M4)M5.recordLegacyContextWarning(b,Z);M5.recordUnsafeLifecycleWarnings(b,Z)}Z.state=b.memoizedState;var K=z.getDerivedStateFromProps;if(typeof K==="function")pH(b,z,K,Q),Z.state=b.memoizedState;if(typeof z.getDerivedStateFromProps!=="function"&&typeof Z.getSnapshotBeforeUpdate!=="function"&&(typeof Z.UNSAFE_componentWillMount==="function"||typeof Z.componentWillMount==="function"))VP(b,Z),DX(b,Q,Z,X),Z.state=b.memoizedState;if(typeof Z.componentDidMount==="function"){var O=W1;if(O|=Nb,(b.mode&a5)!==a0)O|=K7;b.flags|=O}}function DP(b,z,Q,X){var{stateNode:Z,memoizedProps:J}=b;Z.props=J;var H=Z.context,Y=z.contextType,K=s6;if(typeof Y==="object"&&Y!==null)K=D4(Y);else{var O=A8(b,z,!0);K=I8(b,O)}var N=z.getDerivedStateFromProps,f=typeof N==="function"||typeof Z.getSnapshotBeforeUpdate==="function";if(!f&&(typeof Z.UNSAFE_componentWillReceiveProps==="function"||typeof Z.componentWillReceiveProps==="function")){if(J!==Q||H!==K)dU(b,Z,Q,K)}zU();var I=b.memoizedState,m=Z.state=I;if(DX(b,Q,Z,X),m=b.memoizedState,J===Q&&I===m&&!LX()&&!EX()){if(typeof Z.componentDidMount==="function"){var g=W1;if(g|=Nb,(b.mode&a5)!==a0)g|=K7;b.flags|=g}return!1}if(typeof N==="function")pH(b,z,N,Q),m=b.memoizedState;var a=EX()||mU(b,z,J,Q,I,m,K);if(a){if(!f&&(typeof Z.UNSAFE_componentWillMount==="function"||typeof Z.componentWillMount==="function")){if(typeof Z.componentWillMount==="function")Z.componentWillMount();if(typeof Z.UNSAFE_componentWillMount==="function")Z.UNSAFE_componentWillMount()}if(typeof Z.componentDidMount==="function"){var W0=W1;if(W0|=Nb,(b.mode&a5)!==a0)W0|=K7;b.flags|=W0}}else{if(typeof Z.componentDidMount==="function"){var g0=W1;if(g0|=Nb,(b.mode&a5)!==a0)g0|=K7;b.flags|=g0}b.memoizedProps=Q,b.memoizedState=m}return Z.props=Q,Z.state=m,Z.context=K,a}function EP(b,z,Q,X,Z){var J=z.stateNode;bU(b,z);var H=z.memoizedProps,Y=z.type===z.elementType?H:A5(z.type,H);J.props=Y;var K=z.pendingProps,O=J.context,N=Q.contextType,f=s6;if(typeof N==="object"&&N!==null)f=D4(N);else{var I=A8(z,Q,!0);f=I8(z,I)}var m=Q.getDerivedStateFromProps,g=typeof m==="function"||typeof J.getSnapshotBeforeUpdate==="function";if(!g&&(typeof J.UNSAFE_componentWillReceiveProps==="function"||typeof J.componentWillReceiveProps==="function")){if(H!==K||O!==f)dU(z,J,X,f)}zU();var a=z.memoizedState,W0=J.state=a;if(DX(z,X,J,Z),W0=z.memoizedState,H===K&&a===W0&&!LX()&&!EX()&&!P1){if(typeof J.componentDidUpdate==="function"){if(H!==b.memoizedProps||a!==b.memoizedState)z.flags|=W1}if(typeof J.getSnapshotBeforeUpdate==="function"){if(H!==b.memoizedProps||a!==b.memoizedState)z.flags|=Ob}return!1}if(typeof m==="function")pH(z,Q,m,X),W0=z.memoizedState;var g0=EX()||mU(z,Q,Y,X,a,W0,f)||P1;if(g0){if(!g&&(typeof J.UNSAFE_componentWillUpdate==="function"||typeof J.componentWillUpdate==="function")){if(typeof J.componentWillUpdate==="function")J.componentWillUpdate(X,W0,f);if(typeof J.UNSAFE_componentWillUpdate==="function")J.UNSAFE_componentWillUpdate(X,W0,f)}if(typeof J.componentDidUpdate==="function")z.flags|=W1;if(typeof J.getSnapshotBeforeUpdate==="function")z.flags|=Ob}else{if(typeof J.componentDidUpdate==="function"){if(H!==b.memoizedProps||a!==b.memoizedState)z.flags|=W1}if(typeof J.getSnapshotBeforeUpdate==="function"){if(H!==b.memoizedProps||a!==b.memoizedState)z.flags|=Ob}z.memoizedProps=X,z.memoizedState=W0}return J.props=X,J.state=W0,J.context=f,g0}function Eb(b,z){return{value:b,source:z,stack:M3(z),digest:null}}function tH(b,z,Q){return{value:b,source:null,stack:Q!=null?Q:null,digest:z!=null?z:null}}function uP(b,z){return!0}function sH(b,z){try{var Q=uP(b,z);if(Q===!1)return;var{value:X,source:Z,stack:J}=z,H=J!==null?J:"";if(X!=null&&X._suppressLogging){if(b.tag===P)return;console.error(X)}var Y=Z?Q1(Z):null,K=Y?"The above error occurred in the <"+Y+"> component:":"The above error occurred in one of your React components:",O;if(b.tag===A)O=`Consider adding an error boundary to your tree to customize error handling behavior.
97
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var N=Q1(b)||"Anonymous";O="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+N+".")}var f=K+`
98
+ `+H+`
99
+
100
+ `+(""+O);console.error(f)}catch(I){setTimeout(function(){throw I})}}var mP=typeof WeakMap==="function"?WeakMap:Map;function cU(b,z,Q){var X=v7($4,Q);X.tag=QH,X.payload={element:null};var Z=z.value;return X.callback=function(){DF(Z),sH(b,z)},X}function eH(b,z,Q){var X=v7($4,Q);X.tag=QH;var Z=b.type.getDerivedStateFromError;if(typeof Z==="function"){var J=z.value;X.payload=function(){return Z(J)},X.callback=function(){e2(b),sH(b,z)}}var H=b.stateNode;if(H!==null&&typeof H.componentDidCatch==="function")X.callback=function(){if(e2(b),sH(b,z),typeof Z!=="function")SF(this);var{value:K,stack:O}=z;if(this.componentDidCatch(K,{componentStack:O!==null?O:""}),typeof Z!=="function"){if(!p6(b.lanes,r0))G("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Q1(b)||"Unknown")}};return X}function aU(b,z,Q){var X=b.pingCache,Z;if(X===null)X=b.pingCache=new mP,Z=new Set,X.set(z,Z);else if(Z=X.get(z),Z===void 0)Z=new Set,X.set(z,Z);if(!Z.has(Q)){Z.add(Q);var J=EF.bind(null,b,z,Q);if(P5)sz(b,Q);z.then(J,J)}}function gP(b,z,Q,X){var Z=b.updateQueue;if(Z===null){var J=new Set;J.add(Q),b.updateQueue=J}else Z.add(Q)}function yP(b,z){var Q=b.tag;if((b.mode&O1)===a0&&(Q===F||Q===E||Q===s)){var X=b.alternate;if(X)b.updateQueue=X.updateQueue,b.memoizedState=X.memoizedState,b.lanes=X.lanes;else b.updateQueue=null,b.memoizedState=null}}function lU(b){var z=b;do{if(z.tag===p&&vP(z))return z;z=z.return}while(z!==null);return null}function iU(b,z,Q,X,Z){if((b.mode&O1)===a0){if(b===z)b.flags|=h6;else{if(b.flags|=A1,Q.flags|=_J,Q.flags&=~(PO|D3),Q.tag===P){var J=Q.alternate;if(J===null)Q.tag=n;else{var H=v7($4,r0);H.tag=hX,p7(Q,H,r0)}}Q.lanes=X1(Q.lanes,r0)}return b}return b.flags|=h6,b.lanes=Z,b}function dP(b,z,Q,X,Z){if(Q.flags|=D3,P5)sz(b,Z);if(X!==null&&typeof X==="object"&&typeof X.then==="function"){var J=X;if(yP(Q),H6()&&Q.mode&O1)EK();var H=lU(z);if(H!==null){if(H.flags&=~Y7,iU(H,z,Q,b,Z),H.mode&O1)aU(b,J,Z);gP(H,b,J);return}else{if(!GL(Z)){aU(b,J,Z),VY();return}var Y=Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");X=Y}}else if(H6()&&Q.mode&O1){EK();var K=lU(z);if(K!==null){if((K.flags&h6)===l0)K.flags|=Y7;iU(K,z,Q,b,Z),i$(Eb(X,Q));return}}X=Eb(X,Q),kF(X);var O=z;do{switch(O.tag){case A:{var N=X;O.flags|=h6;var f=a3(Z);O.lanes=X1(O.lanes,f);var I=cU(O,N,f);JH(O,I);return}case P:var m=X,g=O.type,a=O.stateNode;if((O.flags&A1)===l0&&(typeof g.getDerivedStateFromError==="function"||a!==null&&typeof a.componentDidCatch==="function"&&!i2(a))){O.flags|=h6;var W0=a3(Z);O.lanes=X1(O.lanes,W0);var g0=eH(O,m,W0);JH(O,g0);return}break}O=O.return}while(O!==null)}function cP(){return null}var uz=$.ReactCurrentOwner,I5=!1,bY,mz,zY,QY,XY,ub,ZY,HZ,gz;bY={},mz={},zY={},QY={},XY={},ub=!1,ZY={},HZ={},gz={};function C6(b,z,Q,X){if(b===null)z.child=oK(z,null,Q,X);else z.child=C8(z,b.child,Q,X)}function aP(b,z,Q,X){z.child=C8(z,b.child,null,X),z.child=C8(z,null,Q,X)}function xU(b,z,Q,X,Z){if(z.type!==z.elementType){var J=Q.propTypes;if(J)F5(J,X,"prop",F1(Q))}var H=Q.render,Y=z.ref,K,O;V8(z,Z),u3(z);{if(uz.current=z,j6(!0),K=y8(b,z,H,X,Y,Z),O=d8(),z.mode&M4){s4(!0);try{K=y8(b,z,H,X,Y,Z),O=d8()}finally{s4(!1)}}j6(!1)}if(q8(),b!==null&&!I5)return HU(b,z,Z),F7(b,z,Z);if(H6()&&O)g$(z);return z.flags|=K8,C6(b,z,K,Z),z.child}function jU(b,z,Q,X,Z){if(b===null){var J=Q.type;if(sF(J)&&Q.compare===null&&Q.defaultProps===void 0){var H=J;return H=p8(J),z.tag=s,z.type=H,HY(z,J),oU(b,z,H,X,Z)}{var Y=J.propTypes;if(Y)F5(Y,X,"prop",F1(J));if(Q.defaultProps!==void 0){var K=F1(J)||"Unknown";if(!gz[K])G("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",K),gz[K]=!0}}var O=iY(Q.type,null,X,z,z.mode,Z);return O.ref=z.ref,O.return=z,z.child=O,O}{var N=Q.type,f=N.propTypes;if(f)F5(f,X,"prop",F1(N))}var I=b.child,m=BY(b,Z);if(!m){var g=I.memoizedProps,a=Q.compare;if(a=a!==null?a:Xz,a(g,X)&&b.ref===z.ref)return F7(b,z,Z)}z.flags|=K8;var W0=cb(I,X);return W0.ref=z.ref,W0.return=z,z.child=W0,W0}function oU(b,z,Q,X,Z){if(z.type!==z.elementType){var J=z.elementType;if(J.$$typeof===C0){var H=J,Y=H._payload,K=H._init;try{J=K(Y)}catch(f){J=null}var O=J&&J.propTypes;if(O)F5(O,X,"prop",F1(J))}}if(b!==null){var N=b.memoizedProps;if(Xz(N,X)&&b.ref===z.ref&&z.type===b.type){if(I5=!1,z.pendingProps=X=N,!BY(b,Z))return z.lanes=b.lanes,F7(b,z,Z);else if((b.flags&_J)!==l0)I5=!0}}return JY(b,z,Q,X,Z)}function pU(b,z,Q){var X=z.pendingProps,Z=X.children,J=b!==null?b.memoizedState:null;if(X.mode==="hidden"||$1)if((z.mode&O1)===a0){var H={baseLanes:X0,cachePool:null,transitions:null};z.memoizedState=H,vZ(z,Q)}else if(!p6(Q,o6)){var Y=null,K;if(J!==null){var O=J.baseLanes;K=X1(O,Q)}else K=Q;z.lanes=z.childLanes=dQ(o6);var N={baseLanes:K,cachePool:Y,transitions:null};return z.memoizedState=N,z.updateQueue=null,vZ(z,K),null}else{var f={baseLanes:X0,cachePool:null,transitions:null};z.memoizedState=f;var I=J!==null?J.baseLanes:Q;vZ(z,I)}else{var m;if(J!==null)m=X1(J.baseLanes,Q),z.memoizedState=null;else m=Q;vZ(z,m)}return C6(b,z,Z,Q),z.child}function lP(b,z,Q){var X=z.pendingProps;return C6(b,z,X,Q),z.child}function iP(b,z,Q){var X=z.pendingProps.children;return C6(b,z,X,Q),z.child}function xP(b,z,Q){{z.flags|=W1;{var X=z.stateNode;X.effectDuration=0,X.passiveEffectDuration=0}}var Z=z.pendingProps,J=Z.children;return C6(b,z,J,Q),z.child}function rU(b,z){var Q=z.ref;if(b===null&&Q!==null||b!==null&&b.ref!==Q)z.flags|=u7,z.flags|=PJ}function JY(b,z,Q,X,Z){if(z.type!==z.elementType){var J=Q.propTypes;if(J)F5(J,X,"prop",F1(Q))}var H;{var Y=A8(z,Q,!0);H=I8(z,Y)}var K,O;V8(z,Z),u3(z);{if(uz.current=z,j6(!0),K=y8(b,z,Q,X,H,Z),O=d8(),z.mode&M4){s4(!0);try{K=y8(b,z,Q,X,H,Z),O=d8()}finally{s4(!1)}}j6(!1)}if(q8(),b!==null&&!I5)return HU(b,z,Z),F7(b,z,Z);if(H6()&&O)g$(z);return z.flags|=K8,C6(b,z,K,Z),z.child}function nU(b,z,Q,X,Z){{switch(BR(z)){case!1:{var{stateNode:J,type:H}=z,Y=new H(z.memoizedProps,J.context),K=Y.state;J.updater.enqueueSetState(J,K,null);break}case!0:{z.flags|=A1,z.flags|=h6;var O=Error("Simulated error coming from DevTools"),N=a3(Z);z.lanes=X1(z.lanes,N);var f=eH(z,Eb(O,z),N);JH(z,f);break}}if(z.type!==z.elementType){var I=Q.propTypes;if(I)F5(I,X,"prop",F1(Q))}}var m;if(x5(Q))m=!0,WX(z);else m=!1;V8(z,Z);var g=z.stateNode,a;if(g===null)GZ(b,z),yU(z,Q,X),nH(z,Q,X,Z),a=!0;else if(b===null)a=DP(z,Q,X,Z);else a=EP(b,z,Q,X,Z);var W0=$Y(b,z,Q,a,m,Z);{var g0=z.stateNode;if(a&&g0.props!==X){if(!ub)G("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Q1(z)||"a component");ub=!0}}return W0}function $Y(b,z,Q,X,Z,J){rU(b,z);var H=(z.flags&A1)!==l0;if(!X&&!H){if(Z)CK(z,Q,!1);return F7(b,z,J)}var Y=z.stateNode;uz.current=z;var K;if(H&&typeof Q.getDerivedStateFromError!=="function")K=null,DU();else{u3(z);{if(j6(!0),K=Y.render(),z.mode&M4){s4(!0);try{Y.render()}finally{s4(!1)}}j6(!1)}q8()}if(z.flags|=K8,b!==null&&H)aP(b,z,K,J);else C6(b,z,K,J);if(z.memoizedState=Y.state,Z)CK(z,Q,!0);return z.child}function tU(b){var z=b.stateNode;if(z.pendingContext)TK(b,z.pendingContext,z.pendingContext!==z.context);else if(z.context)TK(b,z.context,!1);$H(b,z.containerInfo)}function jP(b,z,Q){if(tU(z),b===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:X,memoizedState:Z}=z,J=Z.element;bU(b,z),DX(z,X,null,Q);var{memoizedState:H,stateNode:Y}=z,K=H.element;if(Z.isDehydrated){var O={element:K,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},N=z.updateQueue;if(N.baseState=O,z.memoizedState=O,z.flags&Y7){var f=Eb(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),z);return sU(b,z,K,Q,f)}else if(K!==J){var I=Eb(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),z);return sU(b,z,K,Q,I)}else{n_(z);var m=oK(z,null,K,Q);z.child=m;var g=m;while(g)g.flags=g.flags&~V4|G7,g=g.sibling}}else{if(h8(),K===J)return F7(b,z,Q);C6(b,z,K,Q)}return z.child}function sU(b,z,Q,X,Z){return h8(),i$(Z),z.flags|=Y7,C6(b,z,Q,X),z.child}function oP(b,z,Q){if(ZU(z),b===null)l$(z);var{type:X,pendingProps:Z}=z,J=b!==null?b.memoizedProps:null,H=Z.children,Y=w$(X,Z);if(Y)H=null;else if(J!==null&&w$(X,J))z.flags|=V3;return rU(b,z),C6(b,z,H,Q),z.child}function pP(b,z){if(b===null)l$(z);return null}function rP(b,z,Q,X){GZ(b,z);var Z=z.pendingProps,J=Q,H=J._payload,Y=J._init,K=Y(H);z.type=K;var O=z.tag=eF(K),N=A5(K,Z),f;switch(O){case F:return HY(z,K),z.type=K=p8(K),f=JY(null,z,K,N,X),f;case P:return z.type=K=gY(K),f=nU(null,z,K,N,X),f;case E:return z.type=K=yY(K),f=xU(null,z,K,N,X),f;case Z0:{if(z.type!==z.elementType){var I=K.propTypes;if(I)F5(I,N,"prop",F1(K))}return f=jU(null,z,K,A5(K.type,N),X),f}}var m="";if(K!==null&&typeof K==="object"&&K.$$typeof===C0)m=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+K+". "+("Lazy element type must resolve to a class or function."+m))}function nP(b,z,Q,X,Z){GZ(b,z),z.tag=P;var J;if(x5(Q))J=!0,WX(z);else J=!1;return V8(z,Z),yU(z,Q,X),nH(z,Q,X,Z),$Y(null,z,Q,!0,J,Z)}function tP(b,z,Q,X){GZ(b,z);var Z=z.pendingProps,J;{var H=A8(z,Q,!1);J=I8(z,H)}V8(z,X);var Y,K;u3(z);{if(Q.prototype&&typeof Q.prototype.render==="function"){var O=F1(Q)||"Unknown";if(!bY[O])G("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.",O,O),bY[O]=!0}if(z.mode&M4)M5.recordLegacyContextWarning(z,null);j6(!0),uz.current=z,Y=y8(null,z,Q,Z,J,X),K=d8(),j6(!1)}if(q8(),z.flags|=K8,typeof Y==="object"&&Y!==null&&typeof Y.render==="function"&&Y.$$typeof===void 0){var N=F1(Q)||"Unknown";if(!mz[N])G("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",N,N,N),mz[N]=!0}if(typeof Y==="object"&&Y!==null&&typeof Y.render==="function"&&Y.$$typeof===void 0){{var f=F1(Q)||"Unknown";if(!mz[f])G("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",f,f,f),mz[f]=!0}z.tag=P,z.memoizedState=null,z.updateQueue=null;var I=!1;if(x5(Q))I=!0,WX(z);else I=!1;return z.memoizedState=Y.state!==null&&Y.state!==void 0?Y.state:null,ZH(z),gU(z,Y),nH(z,Q,Z,X),$Y(null,z,Q,!0,I,X)}else{if(z.tag=F,z.mode&M4){s4(!0);try{Y=y8(null,z,Q,Z,J,X),K=d8()}finally{s4(!1)}}if(H6()&&K)g$(z);return C6(null,z,Y,X),HY(z,Q),z.child}}function HY(b,z){{if(z){if(z.childContextTypes)G("%s(...): childContextTypes cannot be defined on a function component.",z.displayName||z.name||"Component")}if(b.ref!==null){var Q="",X=V7();if(X)Q+=`
101
+
102
+ Check the render method of \``+X+"`.";var Z=X||"",J=b._debugSource;if(J)Z=J.fileName+":"+J.lineNumber;if(!XY[Z])XY[Z]=!0,G("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",Q)}if(z.defaultProps!==void 0){var H=F1(z)||"Unknown";if(!gz[H])G("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",H),gz[H]=!0}if(typeof z.getDerivedStateFromProps==="function"){var Y=F1(z)||"Unknown";if(!QY[Y])G("%s: Function components do not support getDerivedStateFromProps.",Y),QY[Y]=!0}if(typeof z.contextType==="object"&&z.contextType!==null){var K=F1(z)||"Unknown";if(!zY[K])G("%s: Function components do not support contextType.",K),zY[K]=!0}}}var YY={dehydrated:null,treeContext:null,retryLane:e4};function GY(b){return{baseLanes:b,cachePool:cP(),transitions:null}}function sP(b,z){var Q=null;return{baseLanes:X1(b.baseLanes,z),cachePool:Q,transitions:b.transitions}}function eP(b,z,Q,X){if(z!==null){var Z=z.memoizedState;if(Z===null)return!1}return GH(b,Iz)}function bv(b,z){return yQ(b.childLanes,z)}function eU(b,z,Q){var X=z.pendingProps;if(OR(z))z.flags|=A1;var Z=k5.current,J=!1,H=(z.flags&A1)!==l0;if(H||eP(Z,b))J=!0,z.flags&=~A1;else if(b===null||b.memoizedState!==null)Z=PP(Z,$U);if(Z=E8(Z),n7(z,Z),b===null){l$(z);var Y=z.memoizedState;if(Y!==null){var K=Y.dehydrated;if(K!==null)return Jv(z,K)}var{children:O,fallback:N}=X;if(J){var f=zv(z,O,N,Q),I=z.child;return I.memoizedState=GY(Q),z.memoizedState=YY,f}else return KY(z,O)}else{var m=b.memoizedState;if(m!==null){var g=m.dehydrated;if(g!==null)return $v(b,z,H,X,g,m,Q)}if(J){var{fallback:a,children:W0}=X,g0=Xv(b,z,W0,a,Q),S0=z.child,Y1=b.child.memoizedState;return S0.memoizedState=Y1===null?GY(Q):sP(Y1,Q),S0.childLanes=bv(b,Q),z.memoizedState=YY,g0}else{var G1=X.children,C=Qv(b,z,G1,Q);return z.memoizedState=null,C}}}function KY(b,z,Q){var X=b.mode,Z={mode:"visible",children:z},J=UY(Z,X);return J.return=b,b.child=J,J}function zv(b,z,Q,X){var{mode:Z,child:J}=b,H={mode:"hidden",children:z},Y,K;if((Z&O1)===a0&&J!==null){if(Y=J,Y.childLanes=X0,Y.pendingProps=H,b.mode&g1)Y.actualDuration=0,Y.actualStartTime=-1,Y.selfBaseDuration=0,Y.treeBaseDuration=0;K=Zb(Q,Z,X,null)}else Y=UY(H,Z),K=Zb(Q,Z,X,null);return Y.return=b,K.return=b,Y.sibling=K,b.child=Y,K}function UY(b,z,Q){return zq(b,z,X0,null)}function b2(b,z){return cb(b,z)}function Qv(b,z,Q,X){var Z=b.child,J=Z.sibling,H=b2(Z,{mode:"visible",children:Q});if((z.mode&O1)===a0)H.lanes=X;if(H.return=z,H.sibling=null,J!==null){var Y=z.deletions;if(Y===null)z.deletions=[J],z.flags|=Bb;else Y.push(J)}return z.child=H,H}function Xv(b,z,Q,X,Z){var J=z.mode,H=b.child,Y=H.sibling,K={mode:"hidden",children:Q},O;if((J&O1)===a0&&z.child!==H){var N=z.child;if(O=N,O.childLanes=X0,O.pendingProps=K,z.mode&g1)O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=H.selfBaseDuration,O.treeBaseDuration=H.treeBaseDuration;z.deletions=null}else O=b2(H,K),O.subtreeFlags=H.subtreeFlags&U7;var f;if(Y!==null)f=cb(Y,X);else f=Zb(X,J,Z,null),f.flags|=V4;return f.return=z,O.return=z,O.sibling=f,z.child=O,f}function YZ(b,z,Q,X){if(X!==null)i$(X);C8(z,b.child,null,Q);var Z=z.pendingProps,J=Z.children,H=KY(z,J);return H.flags|=V4,z.memoizedState=null,H}function Zv(b,z,Q,X,Z){var J=z.mode,H={mode:"visible",children:Q},Y=UY(H,J),K=Zb(X,J,Z,null);if(K.flags|=V4,Y.return=z,K.return=z,Y.sibling=K,z.child=Y,(z.mode&O1)!==a0)C8(z,b.child,null,Z);return K}function Jv(b,z,Q){if((b.mode&O1)===a0)G("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),b.lanes=dQ(r0);else if(T$(z))b.lanes=dQ(vb);else b.lanes=dQ(o6);return null}function $v(b,z,Q,X,Z,J,H){if(!Q){if(p_(),(z.mode&O1)===a0)return YZ(b,z,H,null);if(T$(Z)){var Y,K,O;{var N=U_(Z);Y=N.digest,K=N.message,O=N.stack}var f;if(K)f=Error(K);else f=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var I=tH(f,Y,O);return YZ(b,z,H,I)}var m=p6(H,b.childLanes);if(I5||m){var g=PZ();if(g!==null){var a=WL(g,H);if(a!==e4&&a!==J.retryLane){J.retryLane=a;var W0=$4;d6(b,a),x4(g,b,a,W0)}}VY();var g0=tH(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return YZ(b,z,H,g0)}else if(RK(Z)){z.flags|=A1,z.child=b.child;var S0=uF.bind(null,b);return q_(Z,S0),null}else{t_(z,Z,J.treeContext);var Y1=X.children,G1=KY(z,Y1);return G1.flags|=G7,G1}}else if(z.flags&Y7){z.flags&=~Y7;var C=tH(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return YZ(b,z,H,C)}else if(z.memoizedState!==null)return z.child=b.child,z.flags|=A1,null;else{var{children:j,fallback:S}=X,J0=Zv(b,z,j,S,H),M0=z.child;return M0.memoizedState=GY(H),z.memoizedState=YY,J0}}function z2(b,z,Q){b.lanes=X1(b.lanes,z);var X=b.alternate;if(X!==null)X.lanes=X1(X.lanes,z);bH(b.return,z,Q)}function Hv(b,z,Q){var X=z;while(X!==null){if(X.tag===p){var Z=X.memoizedState;if(Z!==null)z2(X,Q,b)}else if(X.tag===c)z2(X,Q,b);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===b)return;while(X.sibling===null){if(X.return===null||X.return===b)return;X=X.return}X.sibling.return=X.return,X=X.sibling}}function Yv(b){var z=b,Q=null;while(z!==null){var X=z.alternate;if(X!==null&&gX(X)===null)Q=z;z=z.sibling}return Q}function Gv(b){if(b!==void 0&&b!=="forwards"&&b!=="backwards"&&b!=="together"&&!ZY[b])if(ZY[b]=!0,typeof b==="string")switch(b.toLowerCase()){case"together":case"forwards":case"backwards":{G('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',b,b.toLowerCase());break}case"forward":case"backward":{G('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',b,b.toLowerCase());break}default:G('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b);break}else G('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b)}function Kv(b,z){if(b!==void 0&&!HZ[b]){if(b!=="collapsed"&&b!=="hidden")HZ[b]=!0,G('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',b);else if(z!=="forwards"&&z!=="backwards")HZ[b]=!0,G('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',b)}}function Q2(b,z){{var Q=w1(b),X=!Q&&typeof J4(b)==="function";if(Q||X){var Z=Q?"array":"iterable";return G("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>",Z,z,Z),!1}}return!0}function Uv(b,z){if((z==="forwards"||z==="backwards")&&b!==void 0&&b!==null&&b!==!1)if(w1(b)){for(var Q=0;Q<b.length;Q++)if(!Q2(b[Q],Q))return}else{var X=J4(b);if(typeof X==="function"){var Z=X.call(b);if(Z){var J=Z.next(),H=0;for(;!J.done;J=Z.next()){if(!Q2(J.value,H))return;H++}}}else G('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)}}function qY(b,z,Q,X,Z){var J=b.memoizedState;if(J===null)b.memoizedState={isBackwards:z,rendering:null,renderingStartTime:0,last:X,tail:Q,tailMode:Z};else J.isBackwards=z,J.rendering=null,J.renderingStartTime=0,J.last=X,J.tail=Q,J.tailMode=Z}function X2(b,z,Q){var X=z.pendingProps,Z=X.revealOrder,J=X.tail,H=X.children;Gv(Z),Kv(J,Z),Uv(H,Z),C6(b,z,H,Q);var Y=k5.current,K=GH(Y,Iz);if(K)Y=KH(Y,Iz),z.flags|=A1;else{var O=b!==null&&(b.flags&A1)!==l0;if(O)Hv(z,z.child,Q);Y=E8(Y)}if(n7(z,Y),(z.mode&O1)===a0)z.memoizedState=null;else switch(Z){case"forwards":{var N=Yv(z.child),f;if(N===null)f=z.child,z.child=null;else f=N.sibling,N.sibling=null;qY(z,!1,f,N,J);break}case"backwards":{var I=null,m=z.child;z.child=null;while(m!==null){var g=m.alternate;if(g!==null&&gX(g)===null){z.child=m;break}var a=m.sibling;m.sibling=I,I=m,m=a}qY(z,!0,I,null,J);break}case"together":{qY(z,!1,null,null,void 0);break}default:z.memoizedState=null}return z.child}function qv(b,z,Q){$H(z,z.stateNode.containerInfo);var X=z.pendingProps;if(b===null)z.child=C8(z,null,X,Q);else C6(b,z,X,Q);return z.child}var Z2=!1;function Bv(b,z,Q){var X=z.type,Z=X._context,J=z.pendingProps,H=z.memoizedProps,Y=J.value;{if(!("value"in J)){if(!Z2)Z2=!0,G("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var K=z.type.propTypes;if(K)F5(K,J,"prop","Context.Provider")}if(nK(z,Z,Y),H!==null){var O=H.value;if(t6(O,Y)){if(H.children===J.children&&!LX())return F7(b,z,Q)}else KP(z,Z,Q)}var N=J.children;return C6(b,z,N,Q),z.child}var J2=!1;function Ov(b,z,Q){var X=z.type;if(X._context===void 0){if(X!==X.Consumer){if(!J2)J2=!0,G("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else X=X._context;var Z=z.pendingProps,J=Z.children;if(typeof J!=="function")G("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.");V8(z,Q);var H=D4(X);u3(z);var Y;return uz.current=z,j6(!0),Y=J(H),j6(!1),q8(),z.flags|=K8,C6(b,z,Y,Q),z.child}function yz(){I5=!0}function GZ(b,z){if((z.mode&O1)===a0){if(b!==null)b.alternate=null,z.alternate=null,z.flags|=V4}}function F7(b,z,Q){if(b!==null)z.dependencies=b.dependencies;if(DU(),tz(z.lanes),!p6(Q,z.childLanes))return null;return YP(b,z),z.child}function Lv(b,z,Q){{var X=z.return;if(X===null)throw Error("Cannot swap the root fiber.");if(b.alternate=null,z.alternate=null,Q.index=z.index,Q.sibling=z.sibling,Q.return=z.return,Q.ref=z.ref,z===X.child)X.child=Q;else{var Z=X.child;if(Z===null)throw Error("Expected parent to have a child.");while(Z.sibling!==z)if(Z=Z.sibling,Z===null)throw Error("Expected to find the previous sibling.");Z.sibling=Q}var J=X.deletions;if(J===null)X.deletions=[b],X.flags|=Bb;else J.push(b);return Q.flags|=V4,Q}}function BY(b,z){var Q=b.lanes;if(p6(Q,z))return!0;return!1}function Nv(b,z,Q){switch(z.tag){case A:tU(z);var X=z.stateNode;h8();break;case k:ZU(z);break;case P:{var Z=z.type;if(x5(Z))WX(z);break}case _:$H(z,z.stateNode.containerInfo);break;case D:{var J=z.memoizedProps.value,H=z.type._context;nK(z,H,J);break}case N0:{var Y=p6(Q,z.childLanes);if(Y)z.flags|=W1;{var K=z.stateNode;K.effectDuration=0,K.passiveEffectDuration=0}}break;case p:{var O=z.memoizedState;if(O!==null){if(O.dehydrated!==null)return n7(z,E8(k5.current)),z.flags|=A1,null;var N=z.child,f=N.childLanes;if(p6(Q,f))return eU(b,z,Q);else{n7(z,E8(k5.current));var I=F7(b,z,Q);if(I!==null)return I.sibling;else return null}}else n7(z,E8(k5.current));break}case c:{var m=(b.flags&A1)!==l0,g=p6(Q,z.childLanes);if(m){if(g)return X2(b,z,Q);z.flags|=A1}var a=z.memoizedState;if(a!==null)a.rendering=null,a.tail=null,a.lastEffect=null;if(n7(z,k5.current),g)break;else return null}case R0:case b0:return z.lanes=X0,pU(b,z,Q)}return F7(b,z,Q)}function $2(b,z,Q){if(z._debugNeedsRemount&&b!==null)return Lv(b,z,iY(z.type,z.key,z.pendingProps,z._debugOwner||null,z.mode,z.lanes));if(b!==null){var X=b.memoizedProps,Z=z.pendingProps;if(X!==Z||LX()||z.type!==b.type)I5=!0;else{var J=BY(b,Q);if(!J&&(z.flags&A1)===l0)return I5=!1,Nv(b,z,Q);if((b.flags&_J)!==l0)I5=!0;else I5=!1}}else if(I5=!1,H6()&&a_(z)){var H=z.index,Y=l_();DK(z,Y,H)}switch(z.lanes=X0,z.tag){case T:return tP(b,z,z.type,Q);case l:{var K=z.elementType;return rP(b,z,K,Q)}case F:{var{type:O,pendingProps:N}=z,f=z.elementType===O?N:A5(O,N);return JY(b,z,O,f,Q)}case P:{var{type:I,pendingProps:m}=z,g=z.elementType===I?m:A5(I,m);return nU(b,z,I,g,Q)}case A:return jP(b,z,Q);case k:return oP(b,z,Q);case R:return pP(b,z);case p:return eU(b,z,Q);case _:return qv(b,z,Q);case E:{var{type:a,pendingProps:W0}=z,g0=z.elementType===a?W0:A5(a,W0);return xU(b,z,a,g0,Q)}case d:return lP(b,z,Q);case V:return iP(b,z,Q);case N0:return xP(b,z,Q);case D:return Bv(b,z,Q);case o:return Ov(b,z,Q);case Z0:{var{type:S0,pendingProps:Y1}=z,G1=A5(S0,Y1);if(z.type!==z.elementType){var C=S0.propTypes;if(C)F5(C,G1,"prop",F1(S0))}return G1=A5(S0.type,G1),jU(b,z,S0,G1,Q)}case s:return oU(b,z,z.type,z.pendingProps,Q);case n:{var{type:j,pendingProps:S}=z,J0=z.elementType===j?S:A5(j,S);return nP(b,z,j,J0,Q)}case c:return X2(b,z,Q);case Y0:break;case R0:return pU(b,z,Q)}throw Error("Unknown unit of work tag ("+z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function c8(b){b.flags|=W1}function H2(b){b.flags|=u7,b.flags|=PJ}var Y2,OY,G2,K2;Y2=function(b,z,Q,X){var Z=z.child;while(Z!==null){if(Z.tag===k||Z.tag===R)yW(b,Z.stateNode);else if(Z.tag===_);else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===z)return;while(Z.sibling===null){if(Z.return===null||Z.return===z)return;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}},OY=function(b,z){},G2=function(b,z,Q,X,Z){var J=b.memoizedProps;if(J===X)return;var H=z.stateNode,Y=HH(),K=cW(H,Q,J,X,Z,Y);if(z.updateQueue=K,K)c8(z)},K2=function(b,z,Q,X){if(Q!==X)c8(z)};function dz(b,z){if(H6())return;switch(b.tailMode){case"hidden":{var Q=b.tail,X=null;while(Q!==null){if(Q.alternate!==null)X=Q;Q=Q.sibling}if(X===null)b.tail=null;else X.sibling=null;break}case"collapsed":{var Z=b.tail,J=null;while(Z!==null){if(Z.alternate!==null)J=Z;Z=Z.sibling}if(J===null)if(!z&&b.tail!==null)b.tail.sibling=null;else b.tail=null;else J.sibling=null;break}}}function G6(b){var z=b.alternate!==null&&b.alternate.child===b.child,Q=X0,X=l0;if(!z){if((b.mode&g1)!==a0){var{actualDuration:Z,selfBaseDuration:J,child:H}=b;while(H!==null)Q=X1(Q,X1(H.lanes,H.childLanes)),X|=H.subtreeFlags,X|=H.flags,Z+=H.actualDuration,J+=H.treeBaseDuration,H=H.sibling;b.actualDuration=Z,b.treeBaseDuration=J}else{var Y=b.child;while(Y!==null)Q=X1(Q,X1(Y.lanes,Y.childLanes)),X|=Y.subtreeFlags,X|=Y.flags,Y.return=b,Y=Y.sibling}b.subtreeFlags|=X}else{if((b.mode&g1)!==a0){var{selfBaseDuration:K,child:O}=b;while(O!==null)Q=X1(Q,X1(O.lanes,O.childLanes)),X|=O.subtreeFlags&U7,X|=O.flags&U7,K+=O.treeBaseDuration,O=O.sibling;b.treeBaseDuration=K}else{var N=b.child;while(N!==null)Q=X1(Q,X1(N.lanes,N.childLanes)),X|=N.subtreeFlags&U7,X|=N.flags&U7,N.return=b,N=N.sibling}b.subtreeFlags|=X}return b.childLanes=Q,z}function Wv(b,z,Q){if(QP()&&(z.mode&O1)!==a0&&(z.flags&A1)===l0)return cK(z),h8(),z.flags|=Y7|D3|h6,!1;var X=RX(z);if(Q!==null&&Q.dehydrated!==null)if(b===null){if(!X)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(bP(z),G6(z),(z.mode&g1)!==a0){var Z=Q!==null;if(Z){var J=z.child;if(J!==null)z.treeBaseDuration-=J.treeBaseDuration}}return!1}else{if(h8(),(z.flags&A1)===l0)z.memoizedState=null;if(z.flags|=W1,G6(z),(z.mode&g1)!==a0){var H=Q!==null;if(H){var Y=z.child;if(Y!==null)z.treeBaseDuration-=Y.treeBaseDuration}}return!1}else return aK(),!0}function U2(b,z,Q){var X=z.pendingProps;switch(y$(z),z.tag){case T:case l:case s:case F:case E:case d:case V:case N0:case o:case Z0:return G6(z),null;case P:{var Z=z.type;if(x5(Z))NX(z);return G6(z),null}case A:{var J=z.stateNode;if(D8(z),E$(z),qH(),J.pendingContext)J.context=J.pendingContext,J.pendingContext=null;if(b===null||b.child===null){var H=RX(z);if(H)c8(z);else if(b!==null){var Y=b.memoizedState;if(!Y.isDehydrated||(z.flags&Y7)!==l0)z.flags|=Ob,aK()}}return OY(b,z),G6(z),null}case k:{YH(z);var K=XU(),O=z.type;if(b!==null&&z.stateNode!=null){if(G2(b,z,O,X,K),b.ref!==z.ref)H2(z)}else{if(!X){if(z.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 G6(z),null}var N=HH(),f=RX(z);if(f){if(s_(z,K,N))c8(z)}else{var I=gW(O,X,K,N,z);if(Y2(I,z,!1,!1),z.stateNode=I,dW(I,O,X,K))c8(z)}if(z.ref!==null)H2(z)}return G6(z),null}case R:{var m=X;if(b&&z.stateNode!=null){var g=b.memoizedProps;K2(b,z,g,m)}else{if(typeof m!=="string"){if(z.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.")}var a=XU(),W0=HH(),g0=RX(z);if(g0){if(e_(z))c8(z)}else z.stateNode=aW(m,a,W0,z)}return G6(z),null}case p:{u8(z);var S0=z.memoizedState;if(b===null||b.memoizedState!==null&&b.memoizedState.dehydrated!==null){var Y1=Wv(b,z,S0);if(!Y1)if(z.flags&h6)return z;else return null}if((z.flags&A1)!==l0){if(z.lanes=Q,(z.mode&g1)!==a0)gH(z);return z}var G1=S0!==null,C=b!==null&&b.memoizedState!==null;if(G1!==C){if(G1){var j=z.child;if(j.flags|=Lb,(z.mode&O1)!==a0){var S=b===null&&(z.memoizedProps.unstable_avoidThisFallback!==!0||!v1);if(S||GH(k5.current,$U))MF();else VY()}}}var J0=z.updateQueue;if(J0!==null)z.flags|=W1;if(G6(z),(z.mode&g1)!==a0){if(G1){var M0=z.child;if(M0!==null)z.treeBaseDuration-=M0.treeBaseDuration}}return null}case _:if(D8(z),OY(b,z),b===null)E_(z.stateNode.containerInfo);return G6(z),null;case D:var _0=z.type._context;return e$(_0,z),G6(z),null;case n:{var j0=z.type;if(x5(j0))NX(z);return G6(z),null}case c:{u8(z);var b1=z.memoizedState;if(b1===null)return G6(z),null;var d1=(z.flags&A1)!==l0,M1=b1.rendering;if(M1===null)if(!d1){var T4=wF()&&(b===null||(b.flags&A1)===l0);if(!T4){var k1=z.child;while(k1!==null){var k4=gX(k1);if(k4!==null){d1=!0,z.flags|=A1,dz(b1,!1);var k6=k4.updateQueue;if(k6!==null)z.updateQueue=k6,z.flags|=W1;return z.subtreeFlags=l0,GP(z,Q),n7(z,KH(k5.current,Iz)),z.child}k1=k1.sibling}}if(b1.tail!==null&&t4()>V2())z.flags|=A1,d1=!0,dz(b1,!1),z.lanes=G9}else dz(b1,!1);else{if(!d1){var O6=gX(M1);if(O6!==null){z.flags|=A1,d1=!0;var b5=O6.updateQueue;if(b5!==null)z.updateQueue=b5,z.flags|=W1;if(dz(b1,!0),b1.tail===null&&b1.tailMode==="hidden"&&!M1.alternate&&!H6())return G6(z),null}else if(t4()*2-b1.renderingStartTime>V2()&&Q!==o6)z.flags|=A1,d1=!0,dz(b1,!1),z.lanes=G9}if(b1.isBackwards)M1.sibling=z.child,z.child=M1;else{var D6=b1.last;if(D6!==null)D6.sibling=M1;else z.child=M1;b1.last=M1}}if(b1.tail!==null){var E6=b1.tail;b1.rendering=E6,b1.tail=E6.sibling,b1.renderingStartTime=t4(),E6.sibling=null;var w6=k5.current;if(d1)w6=KH(w6,Iz);else w6=E8(w6);return n7(z,w6),E6}return G6(z),null}case Y0:break;case R0:case b0:{SY(z);var A7=z.memoizedState,r8=A7!==null;if(b!==null){var QQ=b.memoizedState,e5=QQ!==null;if(e5!==r8&&!$1)z.flags|=Lb}if(!r8||(z.mode&O1)===a0)G6(z);else if(p6(s5,o6)){if(G6(z),z.subtreeFlags&(V4|W1))z.flags|=Lb}return null}case v0:return null;case d0:return null}throw Error("Unknown unit of work tag ("+z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function _v(b,z,Q){switch(y$(z),z.tag){case P:{var X=z.type;if(x5(X))NX(z);var Z=z.flags;if(Z&h6){if(z.flags=Z&~h6|A1,(z.mode&g1)!==a0)gH(z);return z}return null}case A:{var J=z.stateNode;D8(z),E$(z),qH();var H=z.flags;if((H&h6)!==l0&&(H&A1)===l0)return z.flags=H&~h6|A1,z;return null}case k:return YH(z),null;case p:{u8(z);var Y=z.memoizedState;if(Y!==null&&Y.dehydrated!==null){if(z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");h8()}var K=z.flags;if(K&h6){if(z.flags=K&~h6|A1,(z.mode&g1)!==a0)gH(z);return z}return null}case c:return u8(z),null;case _:return D8(z),null;case D:var O=z.type._context;return e$(O,z),null;case R0:case b0:return SY(z),null;case v0:return null;default:return null}}function q2(b,z,Q){switch(y$(z),z.tag){case P:{var X=z.type.childContextTypes;if(X!==null&&X!==void 0)NX(z);break}case A:{var Z=z.stateNode;D8(z),E$(z),qH();break}case k:{YH(z);break}case _:D8(z);break;case p:u8(z);break;case c:u8(z);break;case D:var J=z.type._context;e$(J,z);break;case R0:case b0:SY(z);break}}var B2=null;B2=new Set;var KZ=!1,K6=!1,Pv=typeof WeakSet==="function"?WeakSet:Set,I0=null,a8=null,l8=null;function vv(b){LJ(null,function(){throw b}),NJ()}var Fv=function(b,z){if(z.props=b.memoizedProps,z.state=b.memoizedState,b.mode&g1)try{n5(),z.componentWillUnmount()}finally{r5(b)}else z.componentWillUnmount()};function O2(b,z){try{e7(y4,b)}catch(Q){e1(b,z,Q)}}function LY(b,z,Q){try{Fv(b,Q)}catch(X){e1(b,z,X)}}function Rv(b,z,Q){try{Q.componentDidMount()}catch(X){e1(b,z,X)}}function L2(b,z){try{_2(b)}catch(Q){e1(b,z,Q)}}function i8(b,z){var Q=b.ref;if(Q!==null)if(typeof Q==="function"){var X;try{if(H4&&Q4&&b.mode&g1)try{n5(),X=Q(null)}finally{r5(b)}else X=Q(null)}catch(Z){e1(b,z,Z)}if(typeof X==="function")G("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Q1(b))}else Q.current=null}function UZ(b,z,Q){try{Q()}catch(X){e1(b,z,X)}}var N2=null,W2=!1;function Mv(b,z){N2=uW(b.containerInfo),I0=z,kv();var Q=W2;return W2=!1,N2=null,Q}function kv(){while(I0!==null){var b=I0,z=b.child;if((b.subtreeFlags&FJ)!==l0&&z!==null)z.return=b,I0=z;else wv()}}function wv(){while(I0!==null){var b=I0;P4(b);try{Av(b)}catch(Q){e1(b,b.return,Q)}n4();var z=b.sibling;if(z!==null){z.return=b.return,I0=z;return}I0=b.return}}function Av(b){var{alternate:z,flags:Q}=b;if((Q&Ob)!==l0){switch(P4(b),b.tag){case F:case E:case s:break;case P:{if(z!==null){var{memoizedProps:X,memoizedState:Z}=z,J=b.stateNode;if(b.type===b.elementType&&!ub){if(J.props!==b.memoizedProps)G("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.",Q1(b)||"instance");if(J.state!==b.memoizedState)G("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.",Q1(b)||"instance")}var H=J.getSnapshotBeforeUpdate(b.elementType===b.type?X:A5(b.type,X),Z);{var Y=B2;if(H===void 0&&!Y.has(b.type))Y.add(b.type),G("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Q1(b))}J.__reactInternalSnapshotBeforeUpdate=H}break}case A:{{var K=b.stateNode;H_(K.containerInfo)}break}case k:case R:case _:case n:break;default: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.")}n4()}}function f5(b,z,Q){var X=z.updateQueue,Z=X!==null?X.lastEffect:null;if(Z!==null){var J=Z.next,H=J;do{if((H.tag&b)===b){var Y=H.destroy;if(H.destroy=void 0,Y!==void 0){if((b&Y6)!==c6)aO(z);else if((b&y4)!==c6)Z9(z);if((b&j5)!==c6)ez(!0);if(UZ(z,Q,Y),(b&j5)!==c6)ez(!1);if((b&Y6)!==c6)lO();else if((b&y4)!==c6)J9()}}H=H.next}while(H!==J)}}function e7(b,z){var Q=z.updateQueue,X=Q!==null?Q.lastEffect:null;if(X!==null){var Z=X.next,J=Z;do{if((J.tag&b)===b){if((b&Y6)!==c6)dO(z);else if((b&y4)!==c6)iO(z);var H=J.create;if((b&j5)!==c6)ez(!0);if(J.destroy=H(),(b&j5)!==c6)ez(!1);if((b&Y6)!==c6)cO();else if((b&y4)!==c6)xO();{var Y=J.destroy;if(Y!==void 0&&typeof Y!=="function"){var K=void 0;if((J.tag&y4)!==l0)K="useLayoutEffect";else if((J.tag&j5)!==l0)K="useInsertionEffect";else K="useEffect";var O=void 0;if(Y===null)O=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof Y.then==="function")O=`
103
+
104
+ It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
105
+
106
+ `+K+`(() => {
107
+ async function fetchData() {
108
+ // You can await here
109
+ const response = await MyAPI.getData(someId);
110
+ // ...
111
+ }
112
+ fetchData();
113
+ }, [someId]); // Or [] if effect doesn't need props or state
114
+
115
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else O=" You returned: "+Y;G("%s must not return anything besides a function, which is used for clean-up.%s",K,O)}}}J=J.next}while(J!==Z)}}function Iv(b,z){if((z.flags&W1)!==l0)switch(z.tag){case N0:{var Q=z.stateNode.passiveEffectDuration,X=z.memoizedProps,Z=X.id,J=X.onPostCommit,H=SU(),Y=z.alternate===null?"mount":"update";if(CU())Y="nested-update";if(typeof J==="function")J(Z,Y,Q,H);var K=z.return;b:while(K!==null){switch(K.tag){case A:var O=K.stateNode;O.passiveEffectDuration+=Q;break b;case N0:var N=K.stateNode;N.passiveEffectDuration+=Q;break b}K=K.return}break}}}function fv(b,z,Q,X){if((Q.flags&E3)!==l0)switch(Q.tag){case F:case E:case s:{if(!K6)if(Q.mode&g1)try{n5(),e7(y4|g4,Q)}finally{r5(Q)}else e7(y4|g4,Q);break}case P:{var Z=Q.stateNode;if(Q.flags&W1){if(!K6)if(z===null){if(Q.type===Q.elementType&&!ub){if(Z.props!==Q.memoizedProps)G("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.",Q1(Q)||"instance");if(Z.state!==Q.memoizedState)G("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.",Q1(Q)||"instance")}if(Q.mode&g1)try{n5(),Z.componentDidMount()}finally{r5(Q)}else Z.componentDidMount()}else{var J=Q.elementType===Q.type?z.memoizedProps:A5(Q.type,z.memoizedProps),H=z.memoizedState;if(Q.type===Q.elementType&&!ub){if(Z.props!==Q.memoizedProps)G("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.",Q1(Q)||"instance");if(Z.state!==Q.memoizedState)G("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.",Q1(Q)||"instance")}if(Q.mode&g1)try{n5(),Z.componentDidUpdate(J,H,Z.__reactInternalSnapshotBeforeUpdate)}finally{r5(Q)}else Z.componentDidUpdate(J,H,Z.__reactInternalSnapshotBeforeUpdate)}}var Y=Q.updateQueue;if(Y!==null){if(Q.type===Q.elementType&&!ub){if(Z.props!==Q.memoizedProps)G("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.",Q1(Q)||"instance");if(Z.state!==Q.memoizedState)G("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.",Q1(Q)||"instance")}QU(Q,Y,Z)}break}case A:{var K=Q.updateQueue;if(K!==null){var O=null;if(Q.child!==null)switch(Q.child.tag){case k:O=k$(Q.child.stateNode);break;case P:O=Q.child.stateNode;break}QU(Q,K,O)}break}case k:{var N=Q.stateNode;if(z===null&&Q.flags&W1){var{type:f,memoizedProps:I}=Q;oW(N,f,I)}break}case R:break;case _:break;case N0:{{var m=Q.memoizedProps,g=m.onCommit,a=m.onRender,W0=Q.stateNode.effectDuration,g0=SU(),S0=z===null?"mount":"update";if(CU())S0="nested-update";if(typeof a==="function")a(Q.memoizedProps.id,S0,Q.actualDuration,Q.treeBaseDuration,Q.actualStartTime,g0);{if(typeof g==="function")g(Q.memoizedProps.id,S0,W0,g0);hF(Q);var Y1=Q.return;b:while(Y1!==null){switch(Y1.tag){case A:var G1=Y1.stateNode;G1.effectDuration+=W0;break b;case N0:var C=Y1.stateNode;C.effectDuration+=W0;break b}Y1=Y1.return}}}break}case p:{uv(b,Q);break}case c:case n:case Y0:case R0:case b0:case d0:break;default: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(!K6){if(Q.flags&u7)_2(Q)}}function Tv(b){switch(b.tag){case F:case E:case s:{if(b.mode&g1)try{n5(),O2(b,b.return)}finally{r5(b)}else O2(b,b.return);break}case P:{var z=b.stateNode;if(typeof z.componentDidMount==="function")Rv(b,b.return,z);L2(b,b.return);break}case k:{L2(b,b.return);break}}}function hv(b,z){var Q=null;{var X=b;while(!0){if(X.tag===k){if(Q===null){Q=X;try{var Z=X.stateNode;if(z)X_(Z);else J_(X.stateNode,X.memoizedProps)}catch(H){e1(b,b.return,H)}}}else if(X.tag===R){if(Q===null)try{var J=X.stateNode;if(z)Z_(J);else $_(J,X.memoizedProps)}catch(H){e1(b,b.return,H)}}else if((X.tag===R0||X.tag===b0)&&X.memoizedState!==null&&X!==b);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===b)return;while(X.sibling===null){if(X.return===null||X.return===b)return;if(Q===X)Q=null;X=X.return}if(Q===X)Q=null;X.sibling.return=X.return,X=X.sibling}}}function _2(b){var z=b.ref;if(z!==null){var Q=b.stateNode,X;switch(b.tag){case k:X=k$(Q);break;default:X=Q}if(typeof z==="function"){var Z;if(b.mode&g1)try{n5(),Z=z(X)}finally{r5(b)}else Z=z(X);if(typeof Z==="function")G("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Q1(b))}else{if(!z.hasOwnProperty("current"))G("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Q1(b));z.current=X}}}function Cv(b){var z=b.alternate;if(z!==null)z.return=null;b.return=null}function P2(b){var z=b.alternate;if(z!==null)b.alternate=null,P2(z);{if(b.child=null,b.deletions=null,b.sibling=null,b.tag===k){var Q=b.stateNode;if(Q!==null)g_(Q)}b.stateNode=null,b._debugOwner=null,b.return=null,b.dependencies=null,b.memoizedProps=null,b.memoizedState=null,b.pendingProps=null,b.stateNode=null,b.updateQueue=null}}function Sv(b){var z=b.return;while(z!==null){if(v2(z))return z;z=z.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function v2(b){return b.tag===k||b.tag===A||b.tag===_}function F2(b){var z=b;b:while(!0){while(z.sibling===null){if(z.return===null||v2(z.return))return null;z=z.return}z.sibling.return=z.return,z=z.sibling;while(z.tag!==k&&z.tag!==R&&z.tag!==L0){if(z.flags&V4)continue b;if(z.child===null||z.tag===_)continue b;else z.child.return=z,z=z.child}if(!(z.flags&V4))return z.stateNode}}function Vv(b){var z=Sv(b);switch(z.tag){case k:{var Q=z.stateNode;if(z.flags&V3)FK(Q),z.flags&=~V3;var X=F2(b);WY(b,X,Q);break}case A:case _:{var Z=z.stateNode.containerInfo,J=F2(b);NY(b,J,Z);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function NY(b,z,Q){var X=b.tag,Z=X===k||X===R;if(Z){var J=b.stateNode;if(z)eW(Q,J,z);else tW(Q,J)}else if(X===_);else{var H=b.child;if(H!==null){NY(H,z,Q);var Y=H.sibling;while(Y!==null)NY(Y,z,Q),Y=Y.sibling}}}function WY(b,z,Q){var X=b.tag,Z=X===k||X===R;if(Z){var J=b.stateNode;if(z)sW(Q,J,z);else nW(Q,J)}else if(X===_);else{var H=b.child;if(H!==null){WY(H,z,Q);var Y=H.sibling;while(Y!==null)WY(Y,z,Q),Y=Y.sibling}}}var U6=null,T5=!1;function Dv(b,z,Q){{var X=z;b:while(X!==null){switch(X.tag){case k:{U6=X.stateNode,T5=!1;break b}case A:{U6=X.stateNode.containerInfo,T5=!0;break b}case _:{U6=X.stateNode.containerInfo,T5=!0;break b}}X=X.return}if(U6===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");R2(b,z,Q),U6=null,T5=!1}Cv(Q)}function bb(b,z,Q){var X=Q.child;while(X!==null)R2(b,z,X),X=X.sibling}function R2(b,z,Q){switch(uO(Q),Q.tag){case k:if(!K6)i8(Q,z);case R:{{var X=U6,Z=T5;if(U6=null,bb(b,z,Q),U6=X,T5=Z,U6!==null)if(T5)z_(U6,Q.stateNode);else b_(U6,Q.stateNode)}return}case L0:{if(U6!==null)if(T5)Q_(U6,Q.stateNode);else f$(U6,Q.stateNode);return}case _:{{var J=U6,H=T5;U6=Q.stateNode.containerInfo,T5=!0,bb(b,z,Q),U6=J,T5=H}return}case F:case E:case Z0:case s:{if(!K6){var Y=Q.updateQueue;if(Y!==null){var K=Y.lastEffect;if(K!==null){var O=K.next,N=O;do{var f=N,I=f.destroy,m=f.tag;if(I!==void 0){if((m&j5)!==c6)UZ(Q,z,I);else if((m&y4)!==c6){if(Z9(Q),Q.mode&g1)n5(),UZ(Q,z,I),r5(Q);else UZ(Q,z,I);J9()}}N=N.next}while(N!==O)}}}bb(b,z,Q);return}case P:{if(!K6){i8(Q,z);var g=Q.stateNode;if(typeof g.componentWillUnmount==="function")LY(Q,z,g)}bb(b,z,Q);return}case Y0:{bb(b,z,Q);return}case R0:{if(Q.mode&O1){var a=K6;K6=a||Q.memoizedState!==null,bb(b,z,Q),K6=a}else bb(b,z,Q);break}default:{bb(b,z,Q);return}}}function Ev(b){var z=b.memoizedState}function uv(b,z){var Q=z.memoizedState;if(Q===null){var X=z.alternate;if(X!==null){var Z=X.memoizedState;if(Z!==null){var J=Z.dehydrated;if(J!==null)F_(J)}}}}function M2(b){var z=b.updateQueue;if(z!==null){b.updateQueue=null;var Q=b.stateNode;if(Q===null)Q=b.stateNode=new Pv;z.forEach(function(X){var Z=mF.bind(null,b,X);if(!Q.has(X)){if(Q.add(X),P5)if(a8!==null&&l8!==null)sz(l8,a8);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");X.then(Z,Z)}})}}function mv(b,z,Q){a8=Q,l8=b,P4(z),k2(z,b),P4(z),a8=null,l8=null}function h5(b,z,Q){var X=z.deletions;if(X!==null)for(var Z=0;Z<X.length;Z++){var J=X[Z];try{Dv(b,z,J)}catch(K){e1(J,z,K)}}var H=_Q();if(z.subtreeFlags&RJ){var Y=z.child;while(Y!==null)P4(Y),k2(Y,b),Y=Y.sibling}P4(H)}function k2(b,z,Q){var{alternate:X,flags:Z}=b;switch(b.tag){case F:case E:case Z0:case s:{if(h5(z,b),t5(b),Z&W1){try{f5(j5|g4,b,b.return),e7(j5|g4,b)}catch(j0){e1(b,b.return,j0)}if(b.mode&g1){try{n5(),f5(y4|g4,b,b.return)}catch(j0){e1(b,b.return,j0)}r5(b)}else try{f5(y4|g4,b,b.return)}catch(j0){e1(b,b.return,j0)}}return}case P:{if(h5(z,b),t5(b),Z&u7){if(X!==null)i8(X,X.return)}return}case k:{if(h5(z,b),t5(b),Z&u7){if(X!==null)i8(X,X.return)}{if(b.flags&V3){var J=b.stateNode;try{FK(J)}catch(j0){e1(b,b.return,j0)}}if(Z&W1){var H=b.stateNode;if(H!=null){var Y=b.memoizedProps,K=X!==null?X.memoizedProps:Y,O=b.type,N=b.updateQueue;if(b.updateQueue=null,N!==null)try{pW(H,N,O,K,Y,b)}catch(j0){e1(b,b.return,j0)}}}}return}case R:{if(h5(z,b),t5(b),Z&W1){if(b.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.");var{stateNode:f,memoizedProps:I}=b,m=X!==null?X.memoizedProps:I;try{rW(f,m,I)}catch(j0){e1(b,b.return,j0)}}return}case A:{if(h5(z,b),t5(b),Z&W1){if(X!==null){var g=X.memoizedState;if(g.isDehydrated)try{v_(z.containerInfo)}catch(j0){e1(b,b.return,j0)}}}return}case _:{h5(z,b),t5(b);return}case p:{h5(z,b),t5(b);var a=b.child;if(a.flags&Lb){var{stateNode:W0,memoizedState:g0}=a,S0=g0!==null;if(W0.isHidden=S0,S0){var Y1=a.alternate!==null&&a.alternate.memoizedState!==null;if(!Y1)RF()}}if(Z&W1){try{Ev(b)}catch(j0){e1(b,b.return,j0)}M2(b)}return}case R0:{var G1=X!==null&&X.memoizedState!==null;if(b.mode&O1){var C=K6;K6=C||G1,h5(z,b),K6=C}else h5(z,b);if(t5(b),Z&Lb){var{stateNode:j,memoizedState:S}=b,J0=S!==null,M0=b;if(j.isHidden=J0,J0){if(!G1){if((M0.mode&O1)!==a0){I0=M0;var _0=M0.child;while(_0!==null)I0=_0,yv(_0),_0=_0.sibling}}}hv(M0,J0)}return}case c:{if(h5(z,b),t5(b),Z&W1)M2(b);return}case Y0:return;default:{h5(z,b),t5(b);return}}}function t5(b){var z=b.flags;if(z&V4){try{Vv(b)}catch(Q){e1(b,b.return,Q)}b.flags&=~V4}if(z&G7)b.flags&=~G7}function gv(b,z,Q){a8=Q,l8=z,I0=b,w2(b,z,Q),a8=null,l8=null}function w2(b,z,Q){var X=(b.mode&O1)!==a0;while(I0!==null){var Z=I0,J=Z.child;if(Z.tag===R0&&X){var H=Z.memoizedState!==null,Y=H||KZ;if(Y){_Y(b,z,Q);continue}else{var K=Z.alternate,O=K!==null&&K.memoizedState!==null,N=O||K6,f=KZ,I=K6;if(KZ=Y,K6=N,K6&&!I)I0=Z,dv(Z);var m=J;while(m!==null)I0=m,w2(m,z,Q),m=m.sibling;I0=Z,KZ=f,K6=I,_Y(b,z,Q);continue}}if((Z.subtreeFlags&E3)!==l0&&J!==null)J.return=Z,I0=J;else _Y(b,z,Q)}}function _Y(b,z,Q){while(I0!==null){var X=I0;if((X.flags&E3)!==l0){var Z=X.alternate;P4(X);try{fv(z,Z,X,Q)}catch(H){e1(X,X.return,H)}n4()}if(X===b){I0=null;return}var J=X.sibling;if(J!==null){J.return=X.return,I0=J;return}I0=X.return}}function yv(b){while(I0!==null){var z=I0,Q=z.child;switch(z.tag){case F:case E:case Z0:case s:{if(z.mode&g1)try{n5(),f5(y4,z,z.return)}finally{r5(z)}else f5(y4,z,z.return);break}case P:{i8(z,z.return);var X=z.stateNode;if(typeof X.componentWillUnmount==="function")LY(z,z.return,X);break}case k:{i8(z,z.return);break}case R0:{var Z=z.memoizedState!==null;if(Z){A2(b);continue}break}}if(Q!==null)Q.return=z,I0=Q;else A2(b)}}function A2(b){while(I0!==null){var z=I0;if(z===b){I0=null;return}var Q=z.sibling;if(Q!==null){Q.return=z.return,I0=Q;return}I0=z.return}}function dv(b){while(I0!==null){var z=I0,Q=z.child;if(z.tag===R0){var X=z.memoizedState!==null;if(X){I2(b);continue}}if(Q!==null)Q.return=z,I0=Q;else I2(b)}}function I2(b){while(I0!==null){var z=I0;P4(z);try{Tv(z)}catch(X){e1(z,z.return,X)}if(n4(),z===b){I0=null;return}var Q=z.sibling;if(Q!==null){Q.return=z.return,I0=Q;return}I0=z.return}}function cv(b,z,Q,X){I0=z,av(z,b,Q,X)}function av(b,z,Q,X){while(I0!==null){var Z=I0,J=Z.child;if((Z.subtreeFlags&U8)!==l0&&J!==null)J.return=Z,I0=J;else lv(b,z,Q,X)}}function lv(b,z,Q,X){while(I0!==null){var Z=I0;if((Z.flags&_5)!==l0){P4(Z);try{iv(z,Z,Q,X)}catch(H){e1(Z,Z.return,H)}n4()}if(Z===b){I0=null;return}var J=Z.sibling;if(J!==null){J.return=Z.return,I0=J;return}I0=Z.return}}function iv(b,z,Q,X){switch(z.tag){case F:case E:case s:{if(z.mode&g1){mH();try{e7(Y6|g4,z)}finally{uH(z)}}else e7(Y6|g4,z);break}}}function xv(b){I0=b,jv()}function jv(){while(I0!==null){var b=I0,z=b.child;if((I0.flags&Bb)!==l0){var Q=b.deletions;if(Q!==null){for(var X=0;X<Q.length;X++){var Z=Q[X];I0=Z,rv(Z,b)}{var J=b.alternate;if(J!==null){var H=J.child;if(H!==null){J.child=null;do{var Y=H.sibling;H.sibling=null,H=Y}while(H!==null)}}}I0=b}}if((b.subtreeFlags&U8)!==l0&&z!==null)z.return=b,I0=z;else ov()}}function ov(){while(I0!==null){var b=I0;if((b.flags&_5)!==l0)P4(b),pv(b),n4();var z=b.sibling;if(z!==null){z.return=b.return,I0=z;return}I0=b.return}}function pv(b){switch(b.tag){case F:case E:case s:{if(b.mode&g1)mH(),f5(Y6|g4,b,b.return),uH(b);else f5(Y6|g4,b,b.return);break}}}function rv(b,z){while(I0!==null){var Q=I0;P4(Q),tv(Q,z),n4();var X=Q.child;if(X!==null)X.return=Q,I0=X;else nv(b)}}function nv(b){while(I0!==null){var z=I0,Q=z.sibling,X=z.return;if(P2(z),z===b){I0=null;return}if(Q!==null){Q.return=X,I0=Q;return}I0=X}}function tv(b,z){switch(b.tag){case F:case E:case s:{if(b.mode&g1)mH(),f5(Y6,b,z),uH(b);else f5(Y6,b,z);break}}}function sv(b){switch(b.tag){case F:case E:case s:{try{e7(y4|g4,b)}catch(Q){e1(b,b.return,Q)}break}case P:{var z=b.stateNode;try{z.componentDidMount()}catch(Q){e1(b,b.return,Q)}break}}}function ev(b){switch(b.tag){case F:case E:case s:{try{e7(Y6|g4,b)}catch(z){e1(b,b.return,z)}break}}}function bF(b){switch(b.tag){case F:case E:case s:{try{f5(y4|g4,b,b.return)}catch(Q){e1(b,b.return,Q)}break}case P:{var z=b.stateNode;if(typeof z.componentWillUnmount==="function")LY(b,b.return,z);break}}}function zF(b){switch(b.tag){case F:case E:case s:try{f5(Y6|g4,b,b.return)}catch(z){e1(b,b.return,z)}}}var QF=0,XF=1,ZF=2,JF=3,$F=4;if(typeof Symbol==="function"&&Symbol.for){var cz=Symbol.for;QF=cz("selector.component"),XF=cz("selector.has_pseudo_class"),ZF=cz("selector.role"),JF=cz("selector.test_id"),$F=cz("selector.text")}var HF=[];function YF(){HF.forEach(function(b){return b()})}var GF=$.ReactCurrentActQueue;function KF(b){{var z=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,Q=typeof jest<"u";return Q&&z!==!1}}function f2(){{var b=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!b&&GF.current!==null)G("The current testing environment is not configured to support act(...)");return b}}var UF=Math.ceil,PY=$.ReactCurrentDispatcher,vY=$.ReactCurrentOwner,q6=$.ReactCurrentBatchConfig,C5=$.ReactCurrentActQueue,a4=0,T2=1,B6=2,K5=4,R7=0,az=1,mb=2,qZ=3,lz=4,h2=5,FY=6,L1=a4,S6=null,v4=null,l4=X0,s5=X0,RY=i7(X0),i4=R7,iz=null,MY=X0,BZ=X0,xz=X0,OZ=X0,jz=null,a6=null,kY=0,C2=500,S2=1/0,qF=500,M7=null;function oz(){S2=t4()+qF}function V2(){return S2}var LZ=!1,wY=null,x8=null,gb=!1,zb=null,pz=X0,AY=[],IY=null,BF=50,rz=0,fY=null,TY=!1,NZ=!1,OF=50,j8=0,WZ=null,nz=$4,_Z=X0,D2=!1;function PZ(){return S6}function V6(){if((L1&(B6|K5))!==a4)return t4();if(nz!==$4)return nz;return nz=t4(),nz}function Qb(b){var z=b.mode;if((z&O1)===a0)return r0;else if((L1&B6)!==a4&&l4!==X0)return a3(l4);var Q=JP()!==ZP;if(Q){if(q6.transition!==null){var X=q6.transition;if(!X._updatedFibers)X._updatedFibers=new Set;X._updatedFibers.add(b)}if(_Z===e4)_Z=B9();return _Z}var Z=v5();if(Z!==e4)return Z;var J=lW();return J}function LF(b){var z=b.mode;if((z&O1)===a0)return r0;return BL()}function x4(b,z,Q,X){if(yF(),D2)G("useInsertionEffect must not schedule updates.");if(TY)NZ=!0;if(l3(b,Q,X),(L1&B6)!==X0&&b===S6)aF(z);else{if(P5)N9(b,z,Q);if(lF(z),b===S6){if((L1&B6)===a4)xz=X1(xz,Q);if(i4===lz)Xb(b,l4)}if(l6(b,X),Q===r0&&L1===a4&&(z.mode&O1)===a0&&!C5.isBatchingLegacy)oz(),VK()}}function NF(b,z,Q){var X=b.current;X.lanes=z,l3(b,z,Q),l6(b,Q)}function WF(b){return(L1&B6)!==a4}function l6(b,z){var Q=b.callbackNode;HL(b,z);var X=mQ(b,b===S6?l4:X0);if(X===X0){if(Q!==null)n2(Q);b.callbackNode=null,b.callbackPriority=e4;return}var Z=Rb(X),J=b.callbackPriority;if(J===Z&&!(C5.current!==null&&Q!==uY)){if(Q==null&&J!==r0)G("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(Q!=null)n2(Q);var H;if(Z===r0){if(b.tag===x7){if(C5.isBatchingLegacy!==null)C5.didScheduleLegacyUpdate=!0;c_(m2.bind(null,b))}else SK(m2.bind(null,b));if(C5.current!==null)C5.current.push(j7);else xW(function(){if((L1&(B6|K5))===a4)j7()});H=null}else{var Y;switch(P9(X)){case r6:Y=VQ;break;case B7:Y=MJ;break;case O7:Y=_b;break;case cQ:Y=kJ;break;default:Y=_b;break}H=mY(Y,E2.bind(null,b))}b.callbackPriority=Z,b.callbackNode=H}function E2(b,z){if(hP(),nz=$4,_Z=X0,(L1&(B6|K5))!==a4)throw Error("Should not already be working.");var Q=b.callbackNode,X=w7();if(X){if(b.callbackNode!==Q)return null}var Z=mQ(b,b===S6?l4:X0);if(Z===X0)return null;var J=!gQ(b,Z)&&!qL(b,Z)&&!z,H=J?IF(b,Z):FZ(b,Z);if(H!==R7){if(H===mb){var Y=jJ(b);if(Y!==X0)Z=Y,H=hY(b,Y)}if(H===az){var K=iz;throw yb(b,X0),Xb(b,Z),l6(b,t4()),K}if(H===FY)Xb(b,Z);else{var O=!gQ(b,Z),N=b.current.alternate;if(O&&!PF(N)){if(H=FZ(b,Z),H===mb){var f=jJ(b);if(f!==X0)Z=f,H=hY(b,f)}if(H===az){var I=iz;throw yb(b,X0),Xb(b,Z),l6(b,t4()),I}}b.finishedWork=N,b.finishedLanes=Z,_F(b,H,Z)}}if(l6(b,t4()),b.callbackNode===Q)return E2.bind(null,b);return null}function hY(b,z){var Q=jz;if(aQ(b)){var X=yb(b,z);X.flags|=Y7,D_(b.containerInfo)}var Z=FZ(b,z);if(Z!==mb){var J=a6;if(a6=Q,J!==null)u2(J)}return Z}function u2(b){if(a6===null)a6=b;else a6.push.apply(a6,b)}function _F(b,z,Q){switch(z){case R7:case az:throw Error("Root did not complete. This is a bug in React.");case mb:{db(b,a6,M7);break}case qZ:{if(Xb(b,Q),U9(Q)&&!t2()){var X=kY+C2-t4();if(X>10){var Z=mQ(b,X0);if(Z!==X0)break;var J=b.suspendedLanes;if(!N8(J,Q)){var H=V6();L9(b,J);break}b.timeoutHandle=A$(db.bind(null,b,a6,M7),X);break}}db(b,a6,M7);break}case lz:{if(Xb(b,Q),UL(Q))break;if(!t2()){var Y=JL(b,Q),K=Y,O=t4()-K,N=gF(O)-O;if(N>10){b.timeoutHandle=A$(db.bind(null,b,a6,M7),N);break}}db(b,a6,M7);break}case h2:{db(b,a6,M7);break}default:throw Error("Unknown root exit status.")}}function PF(b){var z=b;while(!0){if(z.flags&CQ){var Q=z.updateQueue;if(Q!==null){var X=Q.stores;if(X!==null)for(var Z=0;Z<X.length;Z++){var J=X[Z],H=J.getSnapshot,Y=J.value;try{if(!t6(H(),Y))return!1}catch(O){return!1}}}}var K=z.child;if(z.subtreeFlags&CQ&&K!==null){K.return=z,z=K;continue}if(z===b)return!0;while(z.sibling===null){if(z.return===null||z.return===b)return!0;z=z.return}z.sibling.return=z.return,z=z.sibling}return!0}function Xb(b,z){z=yQ(z,OZ),z=yQ(z,xz),LL(b,z)}function m2(b){if(CP(),(L1&(B6|K5))!==a4)throw Error("Should not already be working.");w7();var z=mQ(b,X0);if(!p6(z,r0))return l6(b,t4()),null;var Q=FZ(b,z);if(b.tag!==x7&&Q===mb){var X=jJ(b);if(X!==X0)z=X,Q=hY(b,X)}if(Q===az){var Z=iz;throw yb(b,X0),Xb(b,z),l6(b,t4()),Z}if(Q===FY)throw Error("Root did not complete. This is a bug in React.");var J=b.current.alternate;return b.finishedWork=J,b.finishedLanes=z,db(b,a6,M7),l6(b,t4()),null}function vF(b,z){if(z!==X0){if(nJ(b,X1(z,r0)),l6(b,t4()),(L1&(B6|K5))===a4)oz(),j7()}}function CY(b,z){var Q=L1;L1|=T2;try{return b(z)}finally{if(L1=Q,L1===a4&&!C5.isBatchingLegacy)oz(),VK()}}function FF(b,z,Q,X,Z){var J=v5(),H=q6.transition;try{return q6.transition=null,b6(r6),b(z,Q,X,Z)}finally{if(b6(J),q6.transition=H,L1===a4)oz()}}function k7(b){if(zb!==null&&zb.tag===x7&&(L1&(B6|K5))===a4)w7();var z=L1;L1|=T2;var Q=q6.transition,X=v5();try{if(q6.transition=null,b6(r6),b)return b();else return}finally{if(b6(X),q6.transition=Q,L1=z,(L1&(B6|K5))===a4)j7()}}function g2(){return(L1&(B6|K5))!==a4}function vZ(b,z){R6(RY,s5,b),s5=X1(s5,z),MY=X1(MY,z)}function SY(b){s5=RY.current,F6(RY,b)}function yb(b,z){b.finishedWork=null,b.finishedLanes=X0;var Q=b.timeoutHandle;if(Q!==I$)b.timeoutHandle=I$,iW(Q);if(v4!==null){var X=v4.return;while(X!==null){var Z=X.alternate;q2(Z,X),X=X.return}}S6=b;var J=cb(b.current,null);return v4=J,l4=s5=MY=z,i4=R7,iz=null,BZ=X0,xz=X0,OZ=X0,jz=null,a6=null,qP(),M5.discardPendingWarnings(),J}function y2(b,z){do{var Q=v4;try{if(fX(),YU(),n4(),vY.current=null,Q===null||Q.return===null){i4=az,iz=z,v4=null;return}if(H4&&Q.mode&g1)JZ(Q,!0);if(W4)if(q8(),z!==null&&typeof z==="object"&&typeof z.then==="function"){var X=z;oO(Q,X,l4)}else jO(Q,z,l4);dP(b,Q.return,Q,z,l4),l2(Q)}catch(Z){if(z=Z,v4===Q&&Q!==null)Q=Q.return,v4=Q;else Q=v4;continue}return}while(!0)}function d2(){var b=PY.current;if(PY.current=bZ,b===null)return bZ;else return b}function c2(b){PY.current=b}function RF(){kY=t4()}function tz(b){BZ=X1(b,BZ)}function MF(){if(i4===R7)i4=qZ}function VY(){if(i4===R7||i4===qZ||i4===mb)i4=lz;if(S6!==null&&(oJ(BZ)||oJ(xz)))Xb(S6,l4)}function kF(b){if(i4!==lz)i4=mb;if(jz===null)jz=[b];else jz.push(b)}function wF(){return i4===R7}function FZ(b,z){var Q=L1;L1|=B6;var X=d2();if(S6!==b||l4!==z){if(P5){var Z=b.memoizedUpdaters;if(Z.size>0)sz(b,l4),Z.clear();W9(b,z)}M7=_9(),yb(b,z)}$9(z);do try{AF();break}catch(J){y2(b,J)}while(!0);if(fX(),L1=Q,c2(X),v4!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return H9(),S6=null,l4=X0,i4}function AF(){while(v4!==null)a2(v4)}function IF(b,z){var Q=L1;L1|=B6;var X=d2();if(S6!==b||l4!==z){if(P5){var Z=b.memoizedUpdaters;if(Z.size>0)sz(b,l4),Z.clear();W9(b,z)}M7=_9(),oz(),yb(b,z)}$9(z);do try{fF();break}catch(J){y2(b,J)}while(!0);if(fX(),c2(X),L1=Q,v4!==null)return sO(),R7;else return H9(),S6=null,l4=X0,i4}function fF(){while(v4!==null&&!AO())a2(v4)}function a2(b){var z=b.alternate;P4(b);var Q;if((b.mode&g1)!==a0)EH(b),Q=DY(z,b,s5),JZ(b,!0);else Q=DY(z,b,s5);if(n4(),b.memoizedProps=b.pendingProps,Q===null)l2(b);else v4=Q;vY.current=null}function l2(b){var z=b;do{var{alternate:Q,return:X}=z;if((z.flags&D3)===l0){P4(z);var Z=void 0;if((z.mode&g1)===a0)Z=U2(Q,z,s5);else EH(z),Z=U2(Q,z,s5),JZ(z,!1);if(n4(),Z!==null){v4=Z;return}}else{var J=_v(Q,z);if(J!==null){J.flags&=vO,v4=J;return}if((z.mode&g1)!==a0){JZ(z,!1);var{actualDuration:H,child:Y}=z;while(Y!==null)H+=Y.actualDuration,Y=Y.sibling;z.actualDuration=H}if(X!==null)X.flags|=D3,X.subtreeFlags=l0,X.deletions=null;else{i4=FY,v4=null;return}}var K=z.sibling;if(K!==null){v4=K;return}z=X,v4=z}while(z!==null);if(i4===R7)i4=h2}function db(b,z,Q){var X=v5(),Z=q6.transition;try{q6.transition=null,b6(r6),TF(b,z,Q,X)}finally{q6.transition=Z,b6(X)}return null}function TF(b,z,Q,X){do w7();while(zb!==null);if(dF(),(L1&(B6|K5))!==a4)throw Error("Should not already be working.");var{finishedWork:Z,finishedLanes:J}=b;if(yO(J),Z===null)return X9(),null;else if(J===X0)G("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(b.finishedWork=null,b.finishedLanes=X0,Z===b.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");b.callbackNode=null,b.callbackPriority=e4;var H=X1(Z.lanes,Z.childLanes);if(NL(b,H),b===S6)S6=null,v4=null,l4=X0;if((Z.subtreeFlags&U8)!==l0||(Z.flags&U8)!==l0){if(!gb)gb=!0,IY=Q,mY(_b,function(){return w7(),null})}var Y=(Z.subtreeFlags&(FJ|RJ|E3|U8))!==l0,K=(Z.flags&(FJ|RJ|E3|U8))!==l0;if(Y||K){var O=q6.transition;q6.transition=null;var N=v5();b6(r6);var f=L1;L1|=K5,vY.current=null;var I=Mv(b,Z);VU(),mv(b,Z,J),mW(b.containerInfo),b.current=Z,pO(J),gv(Z,b,J),rO(),IO(),L1=f,b6(N),q6.transition=O}else b.current=Z,VU();var m=gb;if(gb)gb=!1,zb=b,pz=J;else j8=0,WZ=null;if(H=b.pendingLanes,H===X0)x8=null;if(!m)o2(b.current,!1);if(DO(Z.stateNode,X),P5)b.memoizedUpdaters.clear();if(YF(),l6(b,t4()),z!==null){var g=b.onRecoverableError;for(var a=0;a<z.length;a++){var W0=z[a],g0=W0.stack,S0=W0.digest;g(W0.value,{componentStack:g0,digest:S0})}}if(LZ){LZ=!1;var Y1=wY;throw wY=null,Y1}if(p6(pz,r0)&&b.tag!==x7)w7();if(H=b.pendingLanes,p6(H,r0))if(TP(),b===fY)rz++;else rz=0,fY=b;else rz=0;return j7(),X9(),null}function w7(){if(zb!==null){var b=P9(pz),z=vL(O7,b),Q=q6.transition,X=v5();try{return q6.transition=null,b6(z),CF()}finally{b6(X),q6.transition=Q}}return!1}function hF(b){if(AY.push(b),!gb)gb=!0,mY(_b,function(){return w7(),null})}function CF(){if(zb===null)return!1;var b=IY;IY=null;var z=zb,Q=pz;if(zb=null,pz=X0,(L1&(B6|K5))!==a4)throw Error("Cannot flush passive effects while already rendering.");TY=!0,NZ=!1,nO(Q);var X=L1;L1|=K5,xv(z.current),cv(z,z.current,Q,b);{var Z=AY;AY=[];for(var J=0;J<Z.length;J++){var H=Z[J];Iv(z,H)}}tO(),o2(z.current,!0),L1=X,j7();{if(NZ)if(z===WZ)j8++;else j8=0,WZ=z;else j8=0;TY=!1,NZ=!1}EO(z);{var Y=z.current.stateNode;Y.effectDuration=0,Y.passiveEffectDuration=0}return!0}function i2(b){return x8!==null&&x8.has(b)}function SF(b){if(x8===null)x8=new Set([b]);else x8.add(b)}function VF(b){if(!LZ)LZ=!0,wY=b}var DF=VF;function x2(b,z,Q){var X=Eb(Q,z),Z=cU(b,X,r0),J=p7(b,Z,r0),H=V6();if(J!==null)l3(J,r0,H),l6(J,H)}function e1(b,z,Q){if(vv(Q),ez(!1),b.tag===A){x2(b,b,Q);return}var X=null;X=z;while(X!==null){if(X.tag===A){x2(X,b,Q);return}else if(X.tag===P){var{type:Z,stateNode:J}=X;if(typeof Z.getDerivedStateFromError==="function"||typeof J.componentDidCatch==="function"&&!i2(J)){var H=Eb(Q,b),Y=eH(X,H,r0),K=p7(X,Y,r0),O=V6();if(K!==null)l3(K,r0,O),l6(K,O);return}}X=X.return}G(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
116
+
117
+ Error message:
118
+
119
+ %s`,Q)}function EF(b,z,Q){var X=b.pingCache;if(X!==null)X.delete(z);var Z=V6();if(L9(b,Q),iF(b),S6===b&&N8(l4,Q))if(i4===lz||i4===qZ&&U9(l4)&&t4()-kY<C2)yb(b,X0);else OZ=X1(OZ,Q);l6(b,Z)}function j2(b,z){if(z===e4)z=LF(b);var Q=V6(),X=d6(b,z);if(X!==null)l3(X,z,Q),l6(X,Q)}function uF(b){var z=b.memoizedState,Q=e4;if(z!==null)Q=z.retryLane;j2(b,Q)}function mF(b,z){var Q=e4,X;switch(b.tag){case p:X=b.stateNode;var Z=b.memoizedState;if(Z!==null)Q=Z.retryLane;break;case c:X=b.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(X!==null)X.delete(z);j2(b,Q)}function gF(b){return b<120?120:b<480?480:b<1080?1080:b<1920?1920:b<3000?3000:b<4320?4320:UF(b/1960)*1960}function yF(){if(rz>BF)throw rz=0,fY=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.");if(j8>OF)j8=0,WZ=null,G("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.")}function dF(){M5.flushLegacyContextWarning(),M5.flushPendingUnsafeLifecycleWarnings()}function o2(b,z){{if(P4(b),RZ(b,K7,bF),z)RZ(b,SQ,zF);if(RZ(b,K7,sv),z)RZ(b,SQ,ev);n4()}}function RZ(b,z,Q){{var X=b,Z=null;while(X!==null){var J=X.subtreeFlags&z;if(X!==Z&&X.child!==null&&J!==l0)X=X.child;else{if((X.flags&z)!==l0)Q(X);if(X.sibling!==null)X=X.sibling;else X=Z=X.return}}}}var MZ=null;function p2(b){{if((L1&B6)!==a4)return;if(!(b.mode&O1))return;var z=b.tag;if(z!==T&&z!==A&&z!==P&&z!==F&&z!==E&&z!==Z0&&z!==s)return;var Q=Q1(b)||"ReactComponent";if(MZ!==null){if(MZ.has(Q))return;MZ.add(Q)}else MZ=new Set([Q]);var X=v6;try{P4(b),G("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 later calls tries to update the component. Move this work to useEffect instead.")}finally{if(X)P4(b);else n4()}}}var DY;{var cF=null;DY=function(b,z,Q){var X=Qq(cF,z);try{return $2(b,z,Q)}catch(J){if(r_()||J!==null&&typeof J==="object"&&typeof J.then==="function")throw J;if(fX(),YU(),q2(b,z),Qq(z,X),z.mode&g1)EH(z);if(LJ(null,$2,null,b,z,Q),NO()){var Z=NJ();if(typeof Z==="object"&&Z!==null&&Z._suppressLogging&&typeof J==="object"&&J!==null&&!J._suppressLogging)J._suppressLogging=!0}throw J}}}var r2=!1,EY;EY=new Set;function aF(b){if(Gb&&!AP())switch(b.tag){case F:case E:case s:{var z=v4&&Q1(v4)||"Unknown",Q=z;if(!EY.has(Q)){EY.add(Q);var X=Q1(b)||"Unknown";G("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://reactjs.org/link/setstate-in-render",X,z,z)}break}case P:{if(!r2)G("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),r2=!0;break}}}function sz(b,z){if(P5){var Q=b.memoizedUpdaters;Q.forEach(function(X){N9(b,X,z)})}}var uY={};function mY(b,z){{var Q=C5.current;if(Q!==null)return Q.push(z),uY;else return Q9(b,z)}}function n2(b){if(b===uY)return;return wO(b)}function t2(){return C5.current!==null}function lF(b){{if(b.mode&O1){if(!f2())return}else{if(!KF())return;if(L1!==a4)return;if(b.tag!==F&&b.tag!==E&&b.tag!==s)return}if(C5.current===null){var z=v6;try{P4(b),G(`An update to %s inside a test was not wrapped in act(...).
120
+
121
+ When testing, code that causes React state updates should be wrapped into act(...):
122
+
123
+ act(() => {
124
+ /* fire events that update state */
125
+ });
126
+ /* assert on the output */
127
+
128
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Q1(b))}finally{if(z)P4(b);else n4()}}}}function iF(b){if(b.tag!==x7&&f2()&&C5.current===null)G(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
129
+
130
+ When testing, code that resolves suspended data should be wrapped into act(...):
131
+
132
+ act(() => {
133
+ /* finish loading suspended data */
134
+ });
135
+ /* assert on the output */
136
+
137
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function ez(b){D2=b}var U5=null,o8=null,xF=function(b){U5=b};function p8(b){{if(U5===null)return b;var z=U5(b);if(z===void 0)return b;return z.current}}function gY(b){return p8(b)}function yY(b){{if(U5===null)return b;var z=U5(b);if(z===void 0){if(b!==null&&b!==void 0&&typeof b.render==="function"){var Q=p8(b.render);if(b.render!==Q){var X={$$typeof:h,render:Q};if(b.displayName!==void 0)X.displayName=b.displayName;return X}}return b}return z.current}}function s2(b,z){{if(U5===null)return!1;var Q=b.elementType,X=z.type,Z=!1,J=typeof X==="object"&&X!==null?X.$$typeof:null;switch(b.tag){case P:{if(typeof X==="function")Z=!0;break}case F:{if(typeof X==="function")Z=!0;else if(J===C0)Z=!0;break}case E:{if(J===h)Z=!0;else if(J===C0)Z=!0;break}case Z0:case s:{if(J===B0)Z=!0;else if(J===C0)Z=!0;break}default:return!1}if(Z){var H=U5(Q);if(H!==void 0&&H===U5(X))return!0}return!1}}function e2(b){{if(U5===null)return;if(typeof WeakSet!=="function")return;if(o8===null)o8=new WeakSet;o8.add(b)}}var jF=function(b,z){{if(U5===null)return;var{staleFamilies:Q,updatedFamilies:X}=z;w7(),k7(function(){dY(b.current,X,Q)})}},oF=function(b,z){{if(b.context!==s6)return;w7(),k7(function(){bQ(z,b,null,null)})}};function dY(b,z,Q){{var{alternate:X,child:Z,sibling:J,tag:H,type:Y}=b,K=null;switch(H){case F:case s:case P:K=Y;break;case E:K=Y.render;break}if(U5===null)throw Error("Expected resolveFamily to be set during hot reload.");var O=!1,N=!1;if(K!==null){var f=U5(K);if(f!==void 0){if(Q.has(f))N=!0;else if(z.has(f))if(H===P)N=!0;else O=!0}}if(o8!==null){if(o8.has(b)||X!==null&&o8.has(X))N=!0}if(N)b._debugNeedsRemount=!0;if(N||O){var I=d6(b,r0);if(I!==null)x4(I,b,r0,$4)}if(Z!==null&&!N)dY(Z,z,Q);if(J!==null)dY(J,z,Q)}}var pF=function(b,z){{var Q=new Set,X=new Set(z.map(function(Z){return Z.current}));return cY(b.current,X,Q),Q}};function cY(b,z,Q){{var{child:X,sibling:Z,tag:J,type:H}=b,Y=null;switch(J){case F:case s:case P:Y=H;break;case E:Y=H.render;break}var K=!1;if(Y!==null){if(z.has(Y))K=!0}if(K)rF(b,Q);else if(X!==null)cY(X,z,Q);if(Z!==null)cY(Z,z,Q)}}function rF(b,z){{var Q=nF(b,z);if(Q)return;var X=b;while(!0){switch(X.tag){case k:z.add(X.stateNode);return;case _:z.add(X.stateNode.containerInfo);return;case A:z.add(X.stateNode.containerInfo);return}if(X.return===null)throw Error("Expected to reach root first.");X=X.return}}}function nF(b,z){{var Q=b,X=!1;while(!0){if(Q.tag===k)X=!0,z.add(Q.stateNode);else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===b)return X;while(Q.sibling===null){if(Q.return===null||Q.return===b)return X;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}}return!1}var aY;{aY=!1;try{var bq=Object.preventExtensions({})}catch(b){aY=!0}}function tF(b,z,Q,X){if(this.tag=b,this.key=Q,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=z,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=X,this.flags=l0,this.subtreeFlags=l0,this.deletions=null,this.lanes=X0,this.childLanes=X0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!aY&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var e6=function(b,z,Q,X){return new tF(b,z,Q,X)};function lY(b){var z=b.prototype;return!!(z&&z.isReactComponent)}function sF(b){return typeof b==="function"&&!lY(b)&&b.defaultProps===void 0}function eF(b){if(typeof b==="function")return lY(b)?P:F;else if(b!==void 0&&b!==null){var z=b.$$typeof;if(z===h)return E;if(z===B0)return Z0}return T}function cb(b,z){var Q=b.alternate;if(Q===null)Q=e6(b.tag,z,b.key,b.mode),Q.elementType=b.elementType,Q.type=b.type,Q.stateNode=b.stateNode,Q._debugSource=b._debugSource,Q._debugOwner=b._debugOwner,Q._debugHookTypes=b._debugHookTypes,Q.alternate=b,b.alternate=Q;else Q.pendingProps=z,Q.type=b.type,Q.flags=l0,Q.subtreeFlags=l0,Q.deletions=null,Q.actualDuration=0,Q.actualStartTime=-1;Q.flags=b.flags&U7,Q.childLanes=b.childLanes,Q.lanes=b.lanes,Q.child=b.child,Q.memoizedProps=b.memoizedProps,Q.memoizedState=b.memoizedState,Q.updateQueue=b.updateQueue;var X=b.dependencies;switch(Q.dependencies=X===null?null:{lanes:X.lanes,firstContext:X.firstContext},Q.sibling=b.sibling,Q.index=b.index,Q.ref=b.ref,Q.selfBaseDuration=b.selfBaseDuration,Q.treeBaseDuration=b.treeBaseDuration,Q._debugNeedsRemount=b._debugNeedsRemount,Q.tag){case T:case F:case s:Q.type=p8(b.type);break;case P:Q.type=gY(b.type);break;case E:Q.type=yY(b.type);break}return Q}function bR(b,z){b.flags&=U7|V4;var Q=b.alternate;if(Q===null)b.childLanes=X0,b.lanes=z,b.child=null,b.subtreeFlags=l0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null,b.selfBaseDuration=0,b.treeBaseDuration=0;else{b.childLanes=Q.childLanes,b.lanes=Q.lanes,b.child=Q.child,b.subtreeFlags=l0,b.deletions=null,b.memoizedProps=Q.memoizedProps,b.memoizedState=Q.memoizedState,b.updateQueue=Q.updateQueue,b.type=Q.type;var X=Q.dependencies;b.dependencies=X===null?null:{lanes:X.lanes,firstContext:X.firstContext},b.selfBaseDuration=Q.selfBaseDuration,b.treeBaseDuration=Q.treeBaseDuration}return b}function zR(b,z,Q){var X;if(b===_X){if(X=O1,z===!0)X|=M4,X|=a5}else X=a0;if(P5)X|=g1;return e6(A,null,null,X)}function iY(b,z,Q,X,Z,J){var H=T,Y=b;if(typeof b==="function")if(lY(b))H=P,Y=gY(Y);else Y=p8(Y);else if(typeof b==="string")H=k;else b:switch(b){case R1:return Zb(Q.children,Z,J,z);case M:if(H=V,Z|=M4,(Z&O1)!==a0)Z|=a5;break;case x:return QR(Q,Z,J,z);case t:return XR(Q,Z,J,z);case H0:return ZR(Q,Z,J,z);case K0:return zq(Q,Z,J,z);case D0:case w0:case q1:case D1:case e:default:{if(typeof b==="object"&&b!==null)switch(b.$$typeof){case Q0:H=D;break b;case W:H=o;break b;case h:H=E,Y=yY(Y);break b;case B0:H=Z0;break b;case C0:H=l,Y=null;break b}var K="";{if(b===void 0||typeof b==="object"&&b!==null&&Object.keys(b).length===0)K+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var O=X?Q1(X):null;if(O)K+=`
138
+
139
+ Check the render method of \``+O+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(b==null?b:typeof b)+"."+K))}}var N=e6(H,Q,z,Z);return N.elementType=b,N.type=Y,N.lanes=J,N._debugOwner=X,N}function xY(b,z,Q){var X=null;X=b._owner;var{type:Z,key:J,props:H}=b,Y=iY(Z,J,H,X,z,Q);return Y._debugSource=b._source,Y._debugOwner=b._owner,Y}function Zb(b,z,Q,X){var Z=e6(d,b,X,z);return Z.lanes=Q,Z}function QR(b,z,Q,X){if(typeof b.id!=="string")G('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof b.id);var Z=e6(N0,b,X,z|g1);return Z.elementType=x,Z.lanes=Q,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z}function XR(b,z,Q,X){var Z=e6(p,b,X,z);return Z.elementType=t,Z.lanes=Q,Z}function ZR(b,z,Q,X){var Z=e6(c,b,X,z);return Z.elementType=H0,Z.lanes=Q,Z}function zq(b,z,Q,X){var Z=e6(R0,b,X,z);Z.elementType=K0,Z.lanes=Q;var J={isHidden:!1};return Z.stateNode=J,Z}function jY(b,z,Q){var X=e6(R,b,null,z);return X.lanes=Q,X}function JR(){var b=e6(k,null,null,a0);return b.elementType="DELETED",b}function $R(b){var z=e6(L0,null,null,a0);return z.stateNode=b,z}function oY(b,z,Q){var X=b.children!==null?b.children:[],Z=e6(_,X,b.key,z);return Z.lanes=Q,Z.stateNode={containerInfo:b.containerInfo,pendingChildren:null,implementation:b.implementation},Z}function Qq(b,z){if(b===null)b=e6(T,null,null,a0);return b.tag=z.tag,b.key=z.key,b.elementType=z.elementType,b.type=z.type,b.stateNode=z.stateNode,b.return=z.return,b.child=z.child,b.sibling=z.sibling,b.index=z.index,b.ref=z.ref,b.pendingProps=z.pendingProps,b.memoizedProps=z.memoizedProps,b.updateQueue=z.updateQueue,b.memoizedState=z.memoizedState,b.dependencies=z.dependencies,b.mode=z.mode,b.flags=z.flags,b.subtreeFlags=z.subtreeFlags,b.deletions=z.deletions,b.lanes=z.lanes,b.childLanes=z.childLanes,b.alternate=z.alternate,b.actualDuration=z.actualDuration,b.actualStartTime=z.actualStartTime,b.selfBaseDuration=z.selfBaseDuration,b.treeBaseDuration=z.treeBaseDuration,b._debugSource=z._debugSource,b._debugOwner=z._debugOwner,b._debugNeedsRemount=z._debugNeedsRemount,b._debugHookTypes=z._debugHookTypes,b}function HR(b,z,Q,X,Z){this.tag=z,this.containerInfo=b,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=I$,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=e4,this.eventTimes=rJ(X0),this.expirationTimes=rJ($4),this.pendingLanes=X0,this.suspendedLanes=X0,this.pingedLanes=X0,this.expiredLanes=X0,this.mutableReadLanes=X0,this.finishedLanes=X0,this.entangledLanes=X0,this.entanglements=rJ(X0),this.identifierPrefix=X,this.onRecoverableError=Z,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var J=this.pendingUpdatersLaneMap=[];for(var H=0;H<AJ;H++)J.push(new Set)}switch(z){case _X:this._debugRootType=Q?"hydrateRoot()":"createRoot()";break;case x7:this._debugRootType=Q?"hydrate()":"render()";break}}function Xq(b,z,Q,X,Z,J,H,Y,K,O){var N=new HR(b,z,Q,Y,K),f=zR(z,J);N.current=f,f.stateNode=N;{var I={element:X,isDehydrated:Q,cache:null,transitions:null,pendingSuspenseBoundaries:null};f.memoizedState=I}return ZH(f),N}var pY="18.3.1";function YR(b,z,Q){var X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return I4(X),{$$typeof:j1,key:X==null?null:""+X,children:b,containerInfo:z,implementation:Q}}var rY,nY;rY=!1,nY={};function Zq(b){if(!b)return s6;var z=G8(b),Q=d_(z);if(z.tag===P){var X=z.type;if(x5(X))return hK(z,X,Q)}return Q}function GR(b,z){{var Q=G8(b);if(Q===void 0)if(typeof b.render==="function")throw Error("Unable to find node on an unmounted component.");else{var X=Object.keys(b).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+X)}var Z=eG(Q);if(Z===null)return null;if(Z.mode&M4){var J=Q1(Q)||"Component";if(!nY[J]){nY[J]=!0;var H=v6;try{if(P4(Z),Q.mode&M4)G("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",z,z,J);else G("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",z,z,J)}finally{if(H)P4(H);else n4()}}}return Z.stateNode}}function Jq(b,z,Q,X,Z,J,H,Y){var K=!1,O=null;return Xq(b,z,K,O,Q,X,Z,J,H)}function $q(b,z,Q,X,Z,J,H,Y,K,O){var N=!0,f=Xq(Q,X,N,b,Z,J,H,Y,K);f.context=Zq(null);var I=f.current,m=V6(),g=Qb(I),a=v7(m,g);return a.callback=z!==void 0&&z!==null?z:null,p7(I,a,g),NF(f,g,m),f}function bQ(b,z,Q,X){VO(z,b);var Z=z.current,J=V6(),H=Qb(Z);eO(H);var Y=Zq(Q);if(z.context===null)z.context=Y;else z.pendingContext=Y;if(Gb&&v6!==null&&!rY)rY=!0,G(`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.
140
+
141
+ Check the render method of %s.`,Q1(v6)||"Unknown");var K=v7(J,H);if(K.payload={element:b},X=X===void 0?null:X,X!==null){if(typeof X!=="function")G("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",X);K.callback=X}var O=p7(Z,K,H);if(O!==null)x4(O,Z,H,J),VX(O,Z,H);return H}function kZ(b){var z=b.current;if(!z.child)return null;switch(z.child.tag){case k:return k$(z.child.stateNode);default:return z.child.stateNode}}function KR(b){switch(b.tag){case A:{var z=b.stateNode;if(aQ(z)){var Q=YL(z);vF(z,Q)}break}case p:{k7(function(){var Z=d6(b,r0);if(Z!==null){var J=V6();x4(Z,b,r0,J)}});var X=r0;tY(b,X);break}}}function Hq(b,z){var Q=b.memoizedState;if(Q!==null&&Q.dehydrated!==null)Q.retryLane=OL(Q.retryLane,z)}function tY(b,z){Hq(b,z);var Q=b.alternate;if(Q)Hq(Q,z)}function UR(b){if(b.tag!==p)return;var z=y3,Q=d6(b,z);if(Q!==null){var X=V6();x4(Q,b,z,X)}tY(b,z)}function qR(b){if(b.tag!==p)return;var z=Qb(b),Q=d6(b,z);if(Q!==null){var X=V6();x4(Q,b,z,X)}tY(b,z)}function Yq(b){var z=kO(b);if(z===null)return null;return z.stateNode}var Gq=function(b){return null};function BR(b){return Gq(b)}var Kq=function(b){return!1};function OR(b){return Kq(b)}var Uq=null,qq=null,Bq=null,Oq=null,Lq=null,Nq=null,Wq=null,_q=null,Pq=null;{var vq=function(b,z,Q){var X=z[Q],Z=w1(b)?b.slice():Z1({},b);if(Q+1===z.length){if(w1(Z))Z.splice(X,1);else delete Z[X];return Z}return Z[X]=vq(b[X],z,Q+1),Z},Fq=function(b,z){return vq(b,z,0)},Rq=function(b,z,Q,X){var Z=z[X],J=w1(b)?b.slice():Z1({},b);if(X+1===z.length){var H=Q[X];if(J[H]=J[Z],w1(J))J.splice(Z,1);else delete J[Z]}else J[Z]=Rq(b[Z],z,Q,X+1);return J},Mq=function(b,z,Q){if(z.length!==Q.length){L("copyWithRename() expects paths of the same length");return}else for(var X=0;X<Q.length-1;X++)if(z[X]!==Q[X]){L("copyWithRename() expects paths to be the same except for the deepest key");return}return Rq(b,z,Q,0)},kq=function(b,z,Q,X){if(Q>=z.length)return X;var Z=z[Q],J=w1(b)?b.slice():Z1({},b);return J[Z]=kq(b[Z],z,Q+1,X),J},wq=function(b,z,Q){return kq(b,z,0,Q)},sY=function(b,z){var Q=b.memoizedState;while(Q!==null&&z>0)Q=Q.next,z--;return Q};Uq=function(b,z,Q,X){var Z=sY(b,z);if(Z!==null){var J=wq(Z.memoizedState,Q,X);Z.memoizedState=J,Z.baseState=J,b.memoizedProps=Z1({},b.memoizedProps);var H=d6(b,r0);if(H!==null)x4(H,b,r0,$4)}},qq=function(b,z,Q){var X=sY(b,z);if(X!==null){var Z=Fq(X.memoizedState,Q);X.memoizedState=Z,X.baseState=Z,b.memoizedProps=Z1({},b.memoizedProps);var J=d6(b,r0);if(J!==null)x4(J,b,r0,$4)}},Bq=function(b,z,Q,X){var Z=sY(b,z);if(Z!==null){var J=Mq(Z.memoizedState,Q,X);Z.memoizedState=J,Z.baseState=J,b.memoizedProps=Z1({},b.memoizedProps);var H=d6(b,r0);if(H!==null)x4(H,b,r0,$4)}},Oq=function(b,z,Q){if(b.pendingProps=wq(b.memoizedProps,z,Q),b.alternate)b.alternate.pendingProps=b.pendingProps;var X=d6(b,r0);if(X!==null)x4(X,b,r0,$4)},Lq=function(b,z){if(b.pendingProps=Fq(b.memoizedProps,z),b.alternate)b.alternate.pendingProps=b.pendingProps;var Q=d6(b,r0);if(Q!==null)x4(Q,b,r0,$4)},Nq=function(b,z,Q){if(b.pendingProps=Mq(b.memoizedProps,z,Q),b.alternate)b.alternate.pendingProps=b.pendingProps;var X=d6(b,r0);if(X!==null)x4(X,b,r0,$4)},Wq=function(b){var z=d6(b,r0);if(z!==null)x4(z,b,r0,$4)},_q=function(b){Gq=b},Pq=function(b){Kq=b}}function LR(b){var z=eG(b);if(z===null)return null;return z.stateNode}function NR(b){return null}function WR(){return v6}function _R(b){var z=b.findFiberByHostInstance,Q=$.ReactCurrentDispatcher;return SO({bundleType:b.bundleType,version:b.version,rendererPackageName:b.rendererPackageName,rendererConfig:b.rendererConfig,overrideHookState:Uq,overrideHookStateDeletePath:qq,overrideHookStateRenamePath:Bq,overrideProps:Oq,overridePropsDeletePath:Lq,overridePropsRenamePath:Nq,setErrorHandler:_q,setSuspenseHandler:Pq,scheduleUpdate:Wq,currentDispatcherRef:Q,findHostInstanceByFiber:LR,findFiberByHostInstance:z||NR,findHostInstancesForRefresh:pF,scheduleRefresh:jF,scheduleRoot:oF,setRefreshHandler:xF,getCurrentFiber:WR,reconcilerVersion:pY})}var Aq=typeof reportError==="function"?reportError:function(b){console.error(b)};function eY(b){this._internalRoot=b}wZ.prototype.render=eY.prototype.render=function(b){var z=this._internalRoot;if(z===null)throw Error("Cannot update an unmounted root.");{if(typeof arguments[1]==="function")G("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");else if(AZ(arguments[1]))G("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.");else if(typeof arguments[1]<"u")G("You passed a second argument to root.render(...) but it only accepts one argument.");var Q=z.containerInfo;if(Q.nodeType!==S4){var X=Yq(z.current);if(X){if(X.parentNode!==Q)G("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}}bQ(b,z,null,null)},wZ.prototype.unmount=eY.prototype.unmount=function(){if(typeof arguments[0]==="function")G("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var b=this._internalRoot;if(b!==null){this._internalRoot=null;var z=b.containerInfo;if(g2())G("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.");k7(function(){bQ(null,b,null,null)}),kK(z)}};function PR(b,z){if(!AZ(b))throw Error("createRoot(...): Target container is not a DOM element.");Iq(b);var Q=!1,X=!1,Z="",J=Aq,H=null;if(z!==null&&z!==void 0){if(z.hydrate)L("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");else if(typeof z==="object"&&z!==null&&z.$$typeof===V1)G(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
142
+
143
+ let root = createRoot(domContainer);
144
+ root.render(<App />);`);if(z.unstable_strictMode===!0)Q=!0;if(z.identifierPrefix!==void 0)Z=z.identifierPrefix;if(z.onRecoverableError!==void 0)J=z.onRecoverableError;if(z.transitionCallbacks!==void 0)H=z.transitionCallbacks}var Y=Jq(b,_X,null,Q,X,Z,J);UX(Y.current,b);var K=b.nodeType===S4?b.parentNode:b;return $z(K),new eY(Y)}function wZ(b){this._internalRoot=b}function vR(b){if(b)CL(b)}wZ.prototype.unstable_scheduleHydration=vR;function FR(b,z,Q){if(!AZ(b))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(Iq(b),z===void 0)G("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var X=Q!=null?Q:null,Z=Q!=null&&Q.hydratedSources||null,J=!1,H=!1,Y="",K=Aq;if(Q!==null&&Q!==void 0){if(Q.unstable_strictMode===!0)J=!0;if(Q.identifierPrefix!==void 0)Y=Q.identifierPrefix;if(Q.onRecoverableError!==void 0)K=Q.onRecoverableError}var O=$q(z,null,b,_X,X,J,H,Y,K);if(UX(O.current,b),$z(b),Z)for(var N=0;N<Z.length;N++){var f=Z[N];FP(O,f)}return new wZ(O)}function AZ(b){return!!(b&&(b.nodeType===g6||b.nodeType===H7||b.nodeType===ZJ||!i0))}function zQ(b){return!!(b&&(b.nodeType===g6||b.nodeType===H7||b.nodeType===ZJ||b.nodeType===S4&&b.nodeValue===" react-mount-point-unstable "))}function Iq(b){{if(b.nodeType===g6&&b.tagName&&b.tagName.toUpperCase()==="BODY")G("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app.");if(Wz(b))if(b._reactRootContainer)G("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");else G("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.")}}var RR=$.ReactCurrentOwner,fq;fq=function(b){if(b._reactRootContainer&&b.nodeType!==S4){var z=Yq(b._reactRootContainer.current);if(z){if(z.parentNode!==b)G("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}}var Q=!!b._reactRootContainer,X=bG(b),Z=!!(X&&l7(X));if(Z&&!Q)G("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.");if(b.nodeType===g6&&b.tagName&&b.tagName.toUpperCase()==="BODY")G("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function bG(b){if(!b)return null;if(b.nodeType===H7)return b.documentElement;else return b.firstChild}function Tq(){}function MR(b,z,Q,X,Z){if(Z){if(typeof X==="function"){var J=X;X=function(){var I=kZ(H);J.call(I)}}var H=$q(z,X,b,x7,null,!1,!1,"",Tq);b._reactRootContainer=H,UX(H.current,b);var Y=b.nodeType===S4?b.parentNode:b;return $z(Y),k7(),H}else{var K;while(K=b.lastChild)b.removeChild(K);if(typeof X==="function"){var O=X;X=function(){var I=kZ(N);O.call(I)}}var N=Jq(b,x7,null,!1,!1,"",Tq);b._reactRootContainer=N,UX(N.current,b);var f=b.nodeType===S4?b.parentNode:b;return $z(f),k7(function(){bQ(z,N,Q,X)}),N}}function kR(b,z){if(b!==null&&typeof b!=="function")G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",z,b)}function IZ(b,z,Q,X,Z){fq(Q),kR(Z===void 0?null:Z,"render");var J=Q._reactRootContainer,H;if(!J)H=MR(Q,z,b,Z,X);else{if(H=J,typeof Z==="function"){var Y=Z;Z=function(){var K=kZ(H);Y.call(K)}}bQ(z,H,b,Z)}return kZ(H)}var hq=!1;function wR(b){{if(!hq)hq=!0,G("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node");var z=RR.current;if(z!==null&&z.stateNode!==null){var Q=z.stateNode._warnedAboutRefsInRender;if(!Q)G("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",F1(z.type)||"A component");z.stateNode._warnedAboutRefsInRender=!0}}if(b==null)return null;if(b.nodeType===g6)return b;return GR(b,"findDOMNode")}function AR(b,z,Q){if(G("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!zQ(z))throw Error("Target container is not a DOM element.");{var X=Wz(z)&&z._reactRootContainer===void 0;if(X)G("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return IZ(null,b,z,!0,Q)}function IR(b,z,Q){if(G("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!zQ(z))throw Error("Target container is not a DOM element.");{var X=Wz(z)&&z._reactRootContainer===void 0;if(X)G("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return IZ(null,b,z,!1,Q)}function fR(b,z,Q,X){if(G("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!zQ(Q))throw Error("Target container is not a DOM element.");if(b==null||!WO(b))throw Error("parentComponent must be a valid React Component");return IZ(b,z,Q,!1,X)}var Cq=!1;function TR(b){if(!Cq)Cq=!0,G("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot");if(!zQ(b))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var z=Wz(b)&&b._reactRootContainer===void 0;if(z)G("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(b._reactRootContainer){{var Q=bG(b),X=Q&&!l7(Q);if(X)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return k7(function(){IZ(null,null,b,!1,function(){b._reactRootContainer=null,kK(b)})}),!0}else{{var Z=bG(b),J=!!(Z&&l7(Z)),H=b.nodeType===g6&&zQ(b.parentNode)&&!!b.parentNode._reactRootContainer;if(J)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",H?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}if(FL(KR),ML(UR),kL(qR),wL(v5),AL(_L),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")G("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");$O(IW),GO(CY,FF,k7);function hR(b,z){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!AZ(z))throw Error("Target container is not a DOM element.");return YR(b,z,null,Q)}function CR(b,z,Q,X){return fR(b,z,Q,X)}var zG={usingClientEntryPoint:!1,Events:[l7,w8,qX,cG,aG,CY]};function SR(b,z){if(!zG.usingClientEntryPoint)G('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return PR(b,z)}function VR(b,z,Q){if(!zG.usingClientEntryPoint)G('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return FR(b,z,Q)}function DR(b){if(g2())G("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.");return k7(b)}var ER=_R({findFiberByHostInstance:Ab,bundleType:1,version:pY,rendererPackageName:"react-dom"});if(!ER&&X4&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var Sq=window.location.protocol;if(/^(https?|file):$/.test(Sq))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(Sq==="file:"?`
145
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}}if(iR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zG,iR.createPortal=hR,iR.createRoot=SR,iR.findDOMNode=wR,iR.flushSync=DR,iR.hydrate=AR,iR.hydrateRoot=VR,iR.render=IR,iR.unmountComponentAtNode=TR,iR.unstable_batchedUpdates=CY,iR.unstable_renderSubtreeIntoContainer=CR,iR.version=pY,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mq=ab((JA,uq)=>{var xR=$0(Eq());uq.exports=xR});var gq=ab((jR)=>{var t8=$0(mq());n8=t8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jR.createRoot=function($,U){n8.usingClientEntryPoint=!0;try{return t8.createRoot($,U)}finally{n8.usingClientEntryPoint=!1}},jR.hydrateRoot=function($,U,B){n8.usingClientEntryPoint=!0;try{return t8.hydrateRoot($,U,B)}finally{n8.usingClientEntryPoint=!1}};var n8});var K1=ab((oR)=>{var XG=$0(E1());(function(){var $=Symbol.for("react.element"),U=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),F=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),d=Symbol.iterator,V="@@iterator";function o(M){if(M===null||typeof M!=="object")return null;var x=d&&M[d]||M[V];if(typeof x==="function")return x;return null}var D=XG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(M){{for(var x=arguments.length,Q0=Array(x>1?x-1:0),W=1;W<x;W++)Q0[W-1]=arguments[W];N0("error",M,Q0)}}function N0(M,x,Q0){{var W=D.ReactDebugCurrentFrame,h=W.getStackAddendum();if(h!=="")x+="%s",Q0=Q0.concat([h]);var t=Q0.map(function(H0){return String(H0)});t.unshift("Warning: "+x),Function.prototype.apply.call(console[M],console,t)}}var p=!1,Z0=!1,s=!1,l=!1,n=!1,L0;L0=Symbol.for("react.module.reference");function c(M){if(typeof M==="string"||typeof M==="function")return!0;if(M===B||M===G||n||M===L||M===T||M===A||l||M===R||p||Z0||s)return!0;if(typeof M==="object"&&M!==null){if(M.$$typeof===k||M.$$typeof===_||M.$$typeof===v||M.$$typeof===F||M.$$typeof===P||M.$$typeof===L0||M.getModuleId!==void 0)return!0}return!1}function Y0(M,x,Q0){var W=M.displayName;if(W)return W;var h=x.displayName||x.name||"";return h!==""?Q0+"("+h+")":Q0}function R0(M){return M.displayName||"Context"}function b0(M){if(M==null)return null;if(typeof M.tag==="number")E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof M==="function")return M.displayName||M.name||null;if(typeof M==="string")return M;switch(M){case B:return"Fragment";case U:return"Portal";case G:return"Profiler";case L:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof M==="object")switch(M.$$typeof){case F:var x=M;return R0(x)+".Consumer";case v:var Q0=M;return R0(Q0._context)+".Provider";case P:return Y0(M,M.render,"ForwardRef");case _:var W=M.displayName||null;if(W!==null)return W;return b0(M.type)||"Memo";case k:{var h=M,t=h._payload,H0=h._init;try{return b0(H0(t))}catch(B0){return null}}}return null}var v0=Object.assign,d0=0,h0,V0,P1,$1,v1,i0,H1;function C1(){}C1.__reactDisabledLog=!0;function W4(){{if(d0===0){h0=console.log,V0=console.info,P1=console.warn,$1=console.error,v1=console.group,i0=console.groupCollapsed,H1=console.groupEnd;var M={configurable:!0,enumerable:!0,value:C1,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}d0++}}function H4(){{if(d0--,d0===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:v0({},M,{value:h0}),info:v0({},M,{value:V0}),warn:v0({},M,{value:P1}),error:v0({},M,{value:$1}),group:v0({},M,{value:v1}),groupCollapsed:v0({},M,{value:i0}),groupEnd:v0({},M,{value:H1})})}if(d0<0)E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q4=D.ReactCurrentDispatcher,_4;function a1(M,x,Q0){{if(_4===void 0)try{throw Error()}catch(h){var W=h.stack.trim().match(/\n( *(at )?)/);_4=W&&W[1]||""}return`
146
+ `+_4+M}}var i1=!1,Y4;{var E4=typeof WeakMap==="function"?WeakMap:Map;Y4=new E4}function X4(M,x){if(!M||i1)return"";{var Q0=Y4.get(M);if(Q0!==void 0)return Q0}var W;i1=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var t;t=Q4.current,Q4.current=null,W4();try{if(x){var H0=function(){throw Error()};if(Object.defineProperty(H0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(H0,[])}catch(D1){W=D1}Reflect.construct(M,[],H0)}else{try{H0.call()}catch(D1){W=D1}M.call(H0.prototype)}}else{try{throw Error()}catch(D1){W=D1}M()}}catch(D1){if(D1&&W&&typeof D1.stack==="string"){var B0=D1.stack.split(`
147
+ `),C0=W.stack.split(`
148
+ `),w0=B0.length-1,e=C0.length-1;while(w0>=1&&e>=0&&B0[w0]!==C0[e])e--;for(;w0>=1&&e>=0;w0--,e--)if(B0[w0]!==C0[e]){if(w0!==1||e!==1)do if(w0--,e--,e<0||B0[w0]!==C0[e]){var K0=`
149
+ `+B0[w0].replace(" at new "," at ");if(M.displayName&&K0.includes("<anonymous>"))K0=K0.replace("<anonymous>",M.displayName);if(typeof M==="function")Y4.set(M,K0);return K0}while(w0>=1&&e>=0);break}}}finally{i1=!1,Q4.current=t,H4(),Error.prepareStackTrace=h}var D0=M?M.displayName||M.name:"",q1=D0?a1(D0):"";if(typeof M==="function")Y4.set(M,q1);return q1}function u4(M,x,Q0){return X4(M,!1)}function m4(M){var x=M.prototype;return!!(x&&x.isReactComponent)}function x1(M,x,Q0){if(M==null)return"";if(typeof M==="function")return X4(M,m4(M));if(typeof M==="string")return a1(M);switch(M){case T:return a1("Suspense");case A:return a1("SuspenseList")}if(typeof M==="object")switch(M.$$typeof){case P:return u4(M.render);case _:return x1(M.type,x,Q0);case k:{var W=M,h=W._payload,t=W._init;try{return x1(t(h),x,Q0)}catch(H0){}}}return""}var s0=Object.prototype.hasOwnProperty,h4={},I4=D.ReactDebugCurrentFrame;function G4(M){if(M){var x=M._owner,Q0=x1(M.type,M._source,x?x.type:null);I4.setExtraStackFrame(Q0)}else I4.setExtraStackFrame(null)}function O4(M,x,Q0,W,h){{var t=Function.call.bind(s0);for(var H0 in M)if(t(M,H0)){var B0=void 0;try{if(typeof M[H0]!=="function"){var C0=Error((W||"React class")+": "+Q0+" type `"+H0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[H0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C0.name="Invariant Violation",C0}B0=M[H0](x,H0,W,Q0,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w0){B0=w0}if(B0&&!(B0 instanceof Error))G4(h),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",Q0,H0,typeof B0),G4(null);if(B0 instanceof Error&&!(B0.message in h4))h4[B0.message]=!0,G4(h),E("Failed %s type: %s",Q0,B0.message),G4(null)}}}var L5=Array.isArray;function r1(M){return L5(M)}function X6(M){{var x=typeof Symbol==="function"&&Symbol.toStringTag,Q0=x&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Q0}}function n1(M){try{return Z6(M),!1}catch(x){return!0}}function Z6(M){return""+M}function Z4(M){if(n1(M))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",X6(M)),Z6(M)}var K4=D.ReactCurrentOwner,p4={key:!0,ref:!0,__self:!0,__source:!0},_6,F4,C4;C4={};function U0(M){if(s0.call(M,"ref")){var x=Object.getOwnPropertyDescriptor(M,"ref").get;if(x&&x.isReactWarning)return!1}return M.ref!==void 0}function u0(M){if(s0.call(M,"key")){var x=Object.getOwnPropertyDescriptor(M,"key").get;if(x&&x.isReactWarning)return!1}return M.key!==void 0}function c0(M,x){if(typeof M.ref==="string"&&K4.current&&x&&K4.current.stateNode!==x){var Q0=b0(K4.current.type);if(!C4[Q0])E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b0(K4.current.type),M.ref),C4[Q0]=!0}}function N1(M,x){{var Q0=function(){if(!_6)_6=!0,E("%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://reactjs.org/link/special-props)",x)};Q0.isReactWarning=!0,Object.defineProperty(M,"key",{get:Q0,configurable:!0})}}function S1(M,x){{var Q0=function(){if(!F4)F4=!0,E("%s: `ref` 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://reactjs.org/link/special-props)",x)};Q0.isReactWarning=!0,Object.defineProperty(M,"ref",{get:Q0,configurable:!0})}}var L4=function(M,x,Q0,W,h,t,H0){var B0={$$typeof:$,type:M,key:x,ref:Q0,props:H0,_owner:t};if(B0._store={},Object.defineProperty(B0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(B0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze)Object.freeze(B0.props),Object.freeze(B0);return B0};function l1(M,x,Q0,W,h){{var t,H0={},B0=null,C0=null;if(Q0!==void 0)Z4(Q0),B0=""+Q0;if(u0(x))Z4(x.key),B0=""+x.key;if(U0(x))C0=x.ref,c0(x,h);for(t in x)if(s0.call(x,t)&&!p4.hasOwnProperty(t))H0[t]=x[t];if(M&&M.defaultProps){var w0=M.defaultProps;for(t in w0)if(H0[t]===void 0)H0[t]=w0[t]}if(B0||C0){var e=typeof M==="function"?M.displayName||M.name||"Unknown":M;if(B0)N1(H0,e);if(C0)S1(H0,e)}return L4(M,B0,C0,h,W,K4.current,H0)}}var{ReactCurrentOwner:f4,ReactDebugCurrentFrame:z1}=D;function e0(M){if(M){var x=M._owner,Q0=x1(M.type,M._source,x?x.type:null);z1.setExtraStackFrame(Q0)}else z1.setExtraStackFrame(null)}var A6=!1;function r4(M){return typeof M==="object"&&M!==null&&M.$$typeof===$}function I6(){{if(f4.current){var M=b0(f4.current.type);if(M)return`
150
+
151
+ Check the render method of \``+M+"`."}return""}}function m5(M){{if(M!==void 0){var x=M.fileName.replace(/^.*[\\\/]/,""),Q0=M.lineNumber;return`
152
+
153
+ Check your code at `+x+":"+Q0+"."}return""}}var N5={};function g5(M){{var x=I6();if(!x){var Q0=typeof M==="string"?M:M.displayName||M.name;if(Q0)x=`
154
+
155
+ Check the top-level render call using <`+Q0+">."}return x}}function X5(M,x){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var Q0=g5(x);if(N5[Q0])return;N5[Q0]=!0;var W="";if(M&&M._owner&&M._owner!==f4.current)W=" It was passed a child from "+b0(M._owner.type)+".";e0(M),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q0,W),e0(null)}}function P6(M,x){{if(typeof M!=="object")return;if(r1(M))for(var Q0=0;Q0<M.length;Q0++){var W=M[Q0];if(r4(W))X5(W,x)}else if(r4(M)){if(M._store)M._store.validated=!0}else if(M){var h=o(M);if(typeof h==="function"){if(h!==M.entries){var t=h.call(M),H0;while(!(H0=t.next()).done)if(r4(H0.value))X5(H0.value,x)}}}}}function W5(M){{var x=M.type;if(x===null||x===void 0||typeof x==="string")return;var Q0;if(typeof x==="function")Q0=x.propTypes;else if(typeof x==="object"&&(x.$$typeof===P||x.$$typeof===_))Q0=x.propTypes;else return;if(Q0){var W=b0(x);O4(Q0,M.props,"prop",W,M)}else if(x.PropTypes!==void 0&&!A6){A6=!0;var h=b0(x);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}if(typeof x.getDefaultProps==="function"&&!x.getDefaultProps.isReactClassApproved)E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function U1(M){{var x=Object.keys(M.props);for(var Q0=0;Q0<x.length;Q0++){var W=x[Q0];if(W!=="children"&&W!=="key"){e0(M),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),e0(null);break}}if(M.ref!==null)e0(M),E("Invalid attribute `ref` supplied to `React.Fragment`."),e0(null)}}var V1={};function j1(M,x,Q0,W,h,t){{var H0=c(M);if(!H0){var B0="";if(M===void 0||typeof M==="object"&&M!==null&&Object.keys(M).length===0)B0+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var C0=m5(h);if(C0)B0+=C0;else B0+=I6();var w0;if(M===null)w0="null";else if(r1(M))w0="array";else if(M!==void 0&&M.$$typeof===$)w0="<"+(b0(M.type)||"Unknown")+" />",B0=" Did you accidentally export a JSX literal instead of a component?";else w0=typeof M;E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w0,B0)}var e=l1(M,x,Q0,h,t);if(e==null)return e;if(H0){var K0=x.children;if(K0!==void 0)if(W)if(r1(K0)){for(var D0=0;D0<K0.length;D0++)P6(K0[D0],M);if(Object.freeze)Object.freeze(K0)}else E("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 P6(K0,M)}if(s0.call(x,"key")){var q1=b0(M),D1=Object.keys(x).filter(function(J4){return J4!=="key"}),f6=D1.length>0?"{key: someKey, "+D1.join(": ..., ")+": ...}":"{key: someKey}";if(!V1[q1+f6]){var x6=D1.length>0?"{"+D1.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
156
+ let props = %s;
157
+ <%s {...props} />
158
+ React keys must be passed directly to JSX without using spread:
159
+ let props = %s;
160
+ <%s key={someKey} {...props} />`,f6,q1,x6,q1),V1[q1+f6]=!0}}if(M===B)U1(e);else W5(e);return e}}var R1=j1;oR.Fragment=B,oR.jsxDEV=R1})()});var z4=ab((gM)=>{var BG=$0(E1());(function(){var $=Symbol.for("react.element"),U=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),F=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),d=Symbol.iterator,V="@@iterator";function o(W){if(W===null||typeof W!=="object")return null;var h=d&&W[d]||W[V];if(typeof h==="function")return h;return null}var D=BG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(W){{for(var h=arguments.length,t=Array(h>1?h-1:0),H0=1;H0<h;H0++)t[H0-1]=arguments[H0];N0("error",W,t)}}function N0(W,h,t){{var H0=D.ReactDebugCurrentFrame,B0=H0.getStackAddendum();if(B0!=="")h+="%s",t=t.concat([B0]);var C0=t.map(function(w0){return String(w0)});C0.unshift("Warning: "+h),Function.prototype.apply.call(console[W],console,C0)}}var p=!1,Z0=!1,s=!1,l=!1,n=!1,L0;L0=Symbol.for("react.module.reference");function c(W){if(typeof W==="string"||typeof W==="function")return!0;if(W===B||W===G||n||W===L||W===T||W===A||l||W===R||p||Z0||s)return!0;if(typeof W==="object"&&W!==null){if(W.$$typeof===k||W.$$typeof===_||W.$$typeof===v||W.$$typeof===F||W.$$typeof===P||W.$$typeof===L0||W.getModuleId!==void 0)return!0}return!1}function Y0(W,h,t){var H0=W.displayName;if(H0)return H0;var B0=h.displayName||h.name||"";return B0!==""?t+"("+B0+")":t}function R0(W){return W.displayName||"Context"}function b0(W){if(W==null)return null;if(typeof W.tag==="number")E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof W==="function")return W.displayName||W.name||null;if(typeof W==="string")return W;switch(W){case B:return"Fragment";case U:return"Portal";case G:return"Profiler";case L:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof W==="object")switch(W.$$typeof){case F:var h=W;return R0(h)+".Consumer";case v:var t=W;return R0(t._context)+".Provider";case P:return Y0(W,W.render,"ForwardRef");case _:var H0=W.displayName||null;if(H0!==null)return H0;return b0(W.type)||"Memo";case k:{var B0=W,C0=B0._payload,w0=B0._init;try{return b0(w0(C0))}catch(e){return null}}}return null}var v0=Object.assign,d0=0,h0,V0,P1,$1,v1,i0,H1;function C1(){}C1.__reactDisabledLog=!0;function W4(){{if(d0===0){h0=console.log,V0=console.info,P1=console.warn,$1=console.error,v1=console.group,i0=console.groupCollapsed,H1=console.groupEnd;var W={configurable:!0,enumerable:!0,value:C1,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}d0++}}function H4(){{if(d0--,d0===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:v0({},W,{value:h0}),info:v0({},W,{value:V0}),warn:v0({},W,{value:P1}),error:v0({},W,{value:$1}),group:v0({},W,{value:v1}),groupCollapsed:v0({},W,{value:i0}),groupEnd:v0({},W,{value:H1})})}if(d0<0)E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q4=D.ReactCurrentDispatcher,_4;function a1(W,h,t){{if(_4===void 0)try{throw Error()}catch(B0){var H0=B0.stack.trim().match(/\n( *(at )?)/);_4=H0&&H0[1]||""}return`
161
+ `+_4+W}}var i1=!1,Y4;{var E4=typeof WeakMap==="function"?WeakMap:Map;Y4=new E4}function X4(W,h){if(!W||i1)return"";{var t=Y4.get(W);if(t!==void 0)return t}var H0;i1=!0;var B0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C0;C0=Q4.current,Q4.current=null,W4();try{if(h){var w0=function(){throw Error()};if(Object.defineProperty(w0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(w0,[])}catch(J4){H0=J4}Reflect.construct(W,[],w0)}else{try{w0.call()}catch(J4){H0=J4}W.call(w0.prototype)}}else{try{throw Error()}catch(J4){H0=J4}W()}}catch(J4){if(J4&&H0&&typeof J4.stack==="string"){var e=J4.stack.split(`
162
+ `),K0=H0.stack.split(`
163
+ `),D0=e.length-1,q1=K0.length-1;while(D0>=1&&q1>=0&&e[D0]!==K0[q1])q1--;for(;D0>=1&&q1>=0;D0--,q1--)if(e[D0]!==K0[q1]){if(D0!==1||q1!==1)do if(D0--,q1--,q1<0||e[D0]!==K0[q1]){var D1=`
164
+ `+e[D0].replace(" at new "," at ");if(W.displayName&&D1.includes("<anonymous>"))D1=D1.replace("<anonymous>",W.displayName);if(typeof W==="function")Y4.set(W,D1);return D1}while(D0>=1&&q1>=0);break}}}finally{i1=!1,Q4.current=C0,H4(),Error.prepareStackTrace=B0}var f6=W?W.displayName||W.name:"",x6=f6?a1(f6):"";if(typeof W==="function")Y4.set(W,x6);return x6}function u4(W,h,t){return X4(W,!1)}function m4(W){var h=W.prototype;return!!(h&&h.isReactComponent)}function x1(W,h,t){if(W==null)return"";if(typeof W==="function")return X4(W,m4(W));if(typeof W==="string")return a1(W);switch(W){case T:return a1("Suspense");case A:return a1("SuspenseList")}if(typeof W==="object")switch(W.$$typeof){case P:return u4(W.render);case _:return x1(W.type,h,t);case k:{var H0=W,B0=H0._payload,C0=H0._init;try{return x1(C0(B0),h,t)}catch(w0){}}}return""}var s0=Object.prototype.hasOwnProperty,h4={},I4=D.ReactDebugCurrentFrame;function G4(W){if(W){var h=W._owner,t=x1(W.type,W._source,h?h.type:null);I4.setExtraStackFrame(t)}else I4.setExtraStackFrame(null)}function O4(W,h,t,H0,B0){{var C0=Function.call.bind(s0);for(var w0 in W)if(C0(W,w0)){var e=void 0;try{if(typeof W[w0]!=="function"){var K0=Error((H0||"React class")+": "+t+" type `"+w0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof W[w0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K0.name="Invariant Violation",K0}e=W[w0](h,w0,H0,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D0){e=D0}if(e&&!(e instanceof Error))G4(B0),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",H0||"React class",t,w0,typeof e),G4(null);if(e instanceof Error&&!(e.message in h4))h4[e.message]=!0,G4(B0),E("Failed %s type: %s",t,e.message),G4(null)}}}var L5=Array.isArray;function r1(W){return L5(W)}function X6(W){{var h=typeof Symbol==="function"&&Symbol.toStringTag,t=h&&W[Symbol.toStringTag]||W.constructor.name||"Object";return t}}function n1(W){try{return Z6(W),!1}catch(h){return!0}}function Z6(W){return""+W}function Z4(W){if(n1(W))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",X6(W)),Z6(W)}var K4=D.ReactCurrentOwner,p4={key:!0,ref:!0,__self:!0,__source:!0},_6,F4,C4;C4={};function U0(W){if(s0.call(W,"ref")){var h=Object.getOwnPropertyDescriptor(W,"ref").get;if(h&&h.isReactWarning)return!1}return W.ref!==void 0}function u0(W){if(s0.call(W,"key")){var h=Object.getOwnPropertyDescriptor(W,"key").get;if(h&&h.isReactWarning)return!1}return W.key!==void 0}function c0(W,h){if(typeof W.ref==="string"&&K4.current&&h&&K4.current.stateNode!==h){var t=b0(K4.current.type);if(!C4[t])E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b0(K4.current.type),W.ref),C4[t]=!0}}function N1(W,h){{var t=function(){if(!_6)_6=!0,E("%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://reactjs.org/link/special-props)",h)};t.isReactWarning=!0,Object.defineProperty(W,"key",{get:t,configurable:!0})}}function S1(W,h){{var t=function(){if(!F4)F4=!0,E("%s: `ref` 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://reactjs.org/link/special-props)",h)};t.isReactWarning=!0,Object.defineProperty(W,"ref",{get:t,configurable:!0})}}var L4=function(W,h,t,H0,B0,C0,w0){var e={$$typeof:$,type:W,key:h,ref:t,props:w0,_owner:C0};if(e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H0}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B0}),Object.freeze)Object.freeze(e.props),Object.freeze(e);return e};function l1(W,h,t,H0,B0){{var C0,w0={},e=null,K0=null;if(t!==void 0)Z4(t),e=""+t;if(u0(h))Z4(h.key),e=""+h.key;if(U0(h))K0=h.ref,c0(h,B0);for(C0 in h)if(s0.call(h,C0)&&!p4.hasOwnProperty(C0))w0[C0]=h[C0];if(W&&W.defaultProps){var D0=W.defaultProps;for(C0 in D0)if(w0[C0]===void 0)w0[C0]=D0[C0]}if(e||K0){var q1=typeof W==="function"?W.displayName||W.name||"Unknown":W;if(e)N1(w0,q1);if(K0)S1(w0,q1)}return L4(W,e,K0,B0,H0,K4.current,w0)}}var{ReactCurrentOwner:f4,ReactDebugCurrentFrame:z1}=D;function e0(W){if(W){var h=W._owner,t=x1(W.type,W._source,h?h.type:null);z1.setExtraStackFrame(t)}else z1.setExtraStackFrame(null)}var A6=!1;function r4(W){return typeof W==="object"&&W!==null&&W.$$typeof===$}function I6(){{if(f4.current){var W=b0(f4.current.type);if(W)return`
165
+
166
+ Check the render method of \``+W+"`."}return""}}function m5(W){{if(W!==void 0){var h=W.fileName.replace(/^.*[\\\/]/,""),t=W.lineNumber;return`
167
+
168
+ Check your code at `+h+":"+t+"."}return""}}var N5={};function g5(W){{var h=I6();if(!h){var t=typeof W==="string"?W:W.displayName||W.name;if(t)h=`
169
+
170
+ Check the top-level render call using <`+t+">."}return h}}function X5(W,h){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var t=g5(h);if(N5[t])return;N5[t]=!0;var H0="";if(W&&W._owner&&W._owner!==f4.current)H0=" It was passed a child from "+b0(W._owner.type)+".";e0(W),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,H0),e0(null)}}function P6(W,h){{if(typeof W!=="object")return;if(r1(W))for(var t=0;t<W.length;t++){var H0=W[t];if(r4(H0))X5(H0,h)}else if(r4(W)){if(W._store)W._store.validated=!0}else if(W){var B0=o(W);if(typeof B0==="function"){if(B0!==W.entries){var C0=B0.call(W),w0;while(!(w0=C0.next()).done)if(r4(w0.value))X5(w0.value,h)}}}}}function W5(W){{var h=W.type;if(h===null||h===void 0||typeof h==="string")return;var t;if(typeof h==="function")t=h.propTypes;else if(typeof h==="object"&&(h.$$typeof===P||h.$$typeof===_))t=h.propTypes;else return;if(t){var H0=b0(h);O4(t,W.props,"prop",H0,W)}else if(h.PropTypes!==void 0&&!A6){A6=!0;var B0=b0(h);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B0||"Unknown")}if(typeof h.getDefaultProps==="function"&&!h.getDefaultProps.isReactClassApproved)E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function U1(W){{var h=Object.keys(W.props);for(var t=0;t<h.length;t++){var H0=h[t];if(H0!=="children"&&H0!=="key"){e0(W),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H0),e0(null);break}}if(W.ref!==null)e0(W),E("Invalid attribute `ref` supplied to `React.Fragment`."),e0(null)}}var V1={};function j1(W,h,t,H0,B0,C0){{var w0=c(W);if(!w0){var e="";if(W===void 0||typeof W==="object"&&W!==null&&Object.keys(W).length===0)e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";var K0=m5(B0);if(K0)e+=K0;else e+=I6();var D0;if(W===null)D0="null";else if(r1(W))D0="array";else if(W!==void 0&&W.$$typeof===$)D0="<"+(b0(W.type)||"Unknown")+" />",e=" Did you accidentally export a JSX literal instead of a component?";else D0=typeof W;E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D0,e)}var q1=l1(W,h,t,B0,C0);if(q1==null)return q1;if(w0){var D1=h.children;if(D1!==void 0)if(H0)if(r1(D1)){for(var f6=0;f6<D1.length;f6++)P6(D1[f6],W);if(Object.freeze)Object.freeze(D1)}else E("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 P6(D1,W)}if(s0.call(h,"key")){var x6=b0(W),J4=Object.keys(h).filter(function(y5){return y5!=="key"}),Z1=J4.length>0?"{key: someKey, "+J4.join(": ..., ")+": ...}":"{key: someKey}";if(!V1[x6+Z1]){var Q7=J4.length>0?"{"+J4.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
171
+ let props = %s;
172
+ <%s {...props} />
173
+ React keys must be passed directly to JSX without using spread:
174
+ let props = %s;
175
+ <%s key={someKey} {...props} />`,Z1,x6,Q7,x6),V1[x6+Z1]=!0}}if(W===B)U1(q1);else W5(q1);return q1}}function R1(W,h,t){return j1(W,h,t,!0)}function M(W,h,t){return j1(W,h,t,!1)}var x=M,Q0=R1;gM.Fragment=B,gM.jsx=x,gM.jsxs=Q0})()});var u5=$0(E1(),1),WB=$0(gq(),1);var QG={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1};var j4=$0(E1(),1),dq=$0(K1(),1),yq=j4.createContext(null),pR=200;function ZG({children:$}){let[U,B]=j4.useState(!1),[L,G]=j4.useState([]),[v,F]=j4.useState({}),P=j4.useRef(null),T=j4.useRef(null),A=j4.useCallback(()=>{if(P.current)P.current.close();let k=new EventSource("/api/telemetry/stream");P.current=k,k.onopen=()=>{B(!0)},k.onmessage=(R)=>{try{let d=JSON.parse(R.data);if(d.connected){B(!0);return}if(Array.isArray(d))G((V)=>{return[...d,...V].slice(0,pR)}),F((V)=>{let o={...V};for(let D of d){let E=o[D.agent_id];if(!E||new Date(D.timestamp)>new Date(E.timestamp))o[D.agent_id]={timestamp:D.timestamp,category:D.category,type:D.type}}return o})}catch(d){console.error("Failed to parse telemetry event:",d)}},k.onerror=()=>{if(B(!1),k.close(),P.current=null,T.current)clearTimeout(T.current);T.current=setTimeout(A,3000)}},[]);j4.useEffect(()=>{return A(),()=>{if(P.current)P.current.close();if(T.current)clearTimeout(T.current)}},[A]);let _=j4.useCallback(()=>{G([])},[]);return dq.jsxDEV(yq.Provider,{value:{connected:U,events:L,lastActivityByAgent:v,clearEvents:_},children:$},void 0,!1,void 0,this)}function TZ(){let $=j4.useContext(yq);if(!$)throw Error("useTelemetryContext must be used within TelemetryProvider");return $}function JG($){let{lastActivityByAgent:U}=TZ(),[B,L]=j4.useState(!1),G=U[$];return j4.useEffect(()=>{if(!G){L(!1);return}L(!0);let v=setTimeout(()=>{L(!1)},3000);return()=>clearTimeout(v)},[G?.timestamp]),{isActive:B,lastActivity:G,category:G?.category,type:G?.type}}var ib=$0(E1(),1);function $G($){let[U,B]=ib.useState([]),[L,G]=ib.useState(!0),v=ib.useCallback(async()=>{let R=await(await fetch("/api/agents")).json();B(R.agents||[]),G(!1)},[]);ib.useEffect(()=>{if($)v()},[$,v]);let F=async(k)=>{await fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)}),await v()},P=async(k)=>{await fetch(`/api/agents/${k}`,{method:"DELETE"}),await v()},T=async(k,R)=>{let d=await fetch(`/api/agents/${k}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)}),V=await d.json();if(await v(),!d.ok&&V.error)return{error:V.error};return{}},A=async(k)=>{let R=k.status==="running"?"stop":"start",d=await fetch(`/api/agents/${k.id}/${R}`,{method:"POST"}),V=await d.json();if(await v(),!d.ok&&V.error)return{error:V.error};return{}},_=U.filter((k)=>k.status==="running").length;return{agents:U,loading:L,runningCount:_,fetchAgents:v,createAgent:F,updateAgent:T,deleteAgent:P,toggleAgent:A}}var s8=$0(E1(),1);function HG($){let[U,B]=s8.useState([]),L=s8.useCallback(async()=>{let T=await(await fetch("/api/providers")).json();B(T.providers||[])},[]);s8.useEffect(()=>{if($)L()},[$,L]);let G=U.filter((P)=>P.hasKey);return{providers:U,configuredProviders:G,fetchProviders:L,saveKey:async(P,T)=>{let _=await(await fetch(`/api/keys/${P}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:T})})).json();if(!_.valid)return{success:!1,error:_.error||"API key is invalid"};let k=await fetch(`/api/keys/${P}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:T})});if(!k.ok)return{success:!1,error:(await k.json()).error||"Failed to save key"};return await L(),{success:!0}},deleteKey:async(P)=>{await fetch(`/api/keys/${P}`,{method:"DELETE"}),await L()}}}var e8=$0(E1(),1);function YG(){let[$,U]=e8.useState(null);e8.useEffect(()=>{fetch("/api/onboarding/status").then((L)=>L.json()).then((L)=>{U(L.completed||L.has_any_keys)}).catch(()=>U(!0))},[]);let B=e8.useCallback(async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),U(!0)},[]);return{isComplete:$,setIsComplete:U,complete:B}}var Jb=$0(K1(),1);function b3({message:$="Loading...",fullScreen:U=!1}){let B=Jb.jsxDEV("div",{className:"flex items-center gap-3 text-[#666]",children:[Jb.jsxDEV("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",children:[Jb.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"},void 0,!1,void 0,this),Jb.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Jb.jsxDEV("span",{children:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(U)return Jb.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center",children:B},void 0,!1,void 0,this);return Jb.jsxDEV("div",{className:"flex items-center justify-center py-20",children:B},void 0,!1,void 0,this)}var GG=$0(K1(),1);function hZ({children:$,onClose:U}){return GG.jsxDEV("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50 p-4",children:GG.jsxDEV("div",{className:"bg-[#111] rounded p-6 w-full max-w-xl border border-[#1a1a1a] max-h-[90vh] overflow-y-auto",children:$},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var z3=$0(E1(),1),L6=$0(K1(),1);function q5({value:$,options:U,onChange:B,placeholder:L="Select..."}){let[G,v]=z3.useState(!1),F=z3.useRef(null),P=U.find((T)=>T.value===$);return z3.useEffect(()=>{function T(A){if(F.current&&!F.current.contains(A.target))v(!1)}return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]),L6.jsxDEV("div",{ref:F,className:"relative",children:[L6.jsxDEV("button",{type:"button",onClick:()=>v(!G),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 text-left flex items-center justify-between focus:outline-none focus:border-[#f97316] text-[#e0e0e0] hover:border-[#333] transition",children:[L6.jsxDEV("span",{className:P?"text-[#e0e0e0]":"text-[#666]",children:P?L6.jsxDEV(L6.Fragment,{children:[P.label,P.recommended&&L6.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):L},void 0,!1,void 0,this),L6.jsxDEV(rR,{isOpen:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&L6.jsxDEV("div",{className:"absolute z-50 w-full min-w-max mt-1 bg-[#111] border border-[#222] rounded shadow-lg max-h-60 overflow-y-auto scrollbar-hide",children:U.map((T)=>L6.jsxDEV("button",{type:"button",onClick:()=>{B(T.value),v(!1)},className:`w-full px-3 py-2 text-left flex items-center justify-between hover:bg-[#1a1a1a] transition ${T.value===$?"bg-[#1a1a1a] text-[#f97316]":"text-[#e0e0e0]"}`,children:[L6.jsxDEV("span",{children:[T.label,T.recommended&&L6.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T.value===$&&L6.jsxDEV("svg",{className:"w-4 h-4 text-[#f97316]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:L6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},T.value,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rR({isOpen:$}){return L6.jsxDEV("svg",{className:`w-4 h-4 text-[#666] transition-transform ${$?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:L6.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var b4=$0(K1(),1);function S5({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Q3({className:$="w-5 h-5"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.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)}function CZ({className:$="w-5 h-5"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function SZ({className:$="w-5 h-5"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function VZ({className:$="w-5 h-5"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"},void 0,!1,void 0,this),b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xb({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function B5({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function jb({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},void 0,!1,void 0,this),b4.jsxDEV("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"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ob({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function O5({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function pb({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function KG({className:$="w-4 h-4"}){return b4.jsxDEV("svg",{className:$,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b4.jsxDEV("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"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rb=$0(K1(),1);function DZ({onNewAgent:$,canCreateAgent:U}){return rb.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-6 py-4 flex-shrink-0",children:rb.jsxDEV("div",{className:"flex items-center justify-between",children:[rb.jsxDEV("div",{className:"flex items-center gap-2",children:[rb.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),rb.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rb.jsxDEV("button",{onClick:$,disabled:!U,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)},void 0,!1,void 0,this)}var N6=$0(K1(),1);function EZ({route:$,agentCount:U,taskCount:B,onNavigate:L}){return N6.jsxDEV("aside",{className:"w-56 border-r border-[#1a1a1a] flex-shrink-0 p-4",children:N6.jsxDEV("nav",{className:"space-y-1",children:[N6.jsxDEV(X3,{icon:N6.jsxDEV(CZ,{},void 0,!1,void 0,this),label:"Dashboard",active:$==="dashboard",onClick:()=>L("dashboard")},void 0,!1,void 0,this),N6.jsxDEV(X3,{icon:N6.jsxDEV(SZ,{},void 0,!1,void 0,this),label:"Agents",active:$==="agents",onClick:()=>L("agents"),badge:U>0?String(U):void 0},void 0,!1,void 0,this),N6.jsxDEV(X3,{icon:N6.jsxDEV(B5,{},void 0,!1,void 0,this),label:"Tasks",active:$==="tasks",onClick:()=>L("tasks"),badge:B&&B>0?String(B):void 0},void 0,!1,void 0,this),N6.jsxDEV(X3,{icon:N6.jsxDEV(O5,{},void 0,!1,void 0,this),label:"MCP",active:$==="mcp",onClick:()=>L("mcp")},void 0,!1,void 0,this),N6.jsxDEV(X3,{icon:N6.jsxDEV(KG,{},void 0,!1,void 0,this),label:"Telemetry",active:$==="telemetry",onClick:()=>L("telemetry")},void 0,!1,void 0,this),N6.jsxDEV(X3,{icon:N6.jsxDEV(VZ,{},void 0,!1,void 0,this),label:"Settings",active:$==="settings",onClick:()=>L("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function X3({icon:$,label:U,active:B,onClick:L,badge:G}){return N6.jsxDEV("button",{onClick:L,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${B?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[$,U,G&&N6.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ZQ=$0(K1(),1);function uZ({message:$,onDismiss:U}){return ZQ.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:[ZQ.jsxDEV("span",{children:$},void 0,!1,void 0,this),ZQ.jsxDEV("button",{onClick:U,className:"hover:text-red-300",children:ZQ.jsxDEV(Q3,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var V5=$0(E1(),1);var E0=$0(K1(),1);function mZ({onComplete:$}){let[U,B]=V5.useState(1),[L,G]=V5.useState([]),[v,F]=V5.useState(null),[P,T]=V5.useState(""),[A,_]=V5.useState(!1),[k,R]=V5.useState(!1),[d,V]=V5.useState(null),[o,D]=V5.useState(null);V5.useEffect(()=>{fetch("/api/providers").then((Z0)=>Z0.json()).then((Z0)=>{let s=(Z0.providers||[]).filter((l)=>l.type==="llm");G(s)})},[]);let E=L.filter((Z0)=>Z0.hasKey),N0=async()=>{if(!v||!P)return;_(!0),V(null),D(null);try{R(!0);let s=await(await fetch(`/api/keys/${v}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:P})})).json();if(R(!1),!s.valid){V(s.error||"API key is invalid"),_(!1);return}let l=await fetch(`/api/keys/${v}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:P})}),n=await l.json();if(!l.ok)V(n.error||"Failed to save key");else{D("API key saved successfully!"),T("");let c=await(await fetch("/api/providers")).json();G(c.providers||[]),F(null)}}catch(Z0){V("Failed to save key")}_(!1)},p=async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),$()};return E0.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:E0.jsxDEV("div",{className:"w-full max-w-2xl",children:[E0.jsxDEV("div",{className:"text-center mb-8",children:[E0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[E0.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),E0.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[E0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${U>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),E0.jsxDEV("div",{className:`w-16 h-0.5 ${U>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),E0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${U>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[U===1&&E0.jsxDEV(nR,{providers:L,configuredProviders:E,selectedProvider:v,apiKey:P,saving:A,testing:k,error:d,success:o,onSelectProvider:F,onApiKeyChange:T,onSaveKey:N0,onContinue:()=>B(2)},void 0,!1,void 0,this),U===2&&E0.jsxDEV(sR,{configuredProviders:E,onAddMore:()=>B(1),onComplete:p},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 nR({providers:$,configuredProviders:U,selectedProvider:B,apiKey:L,saving:G,testing:v,error:F,success:P,onSelectProvider:T,onApiKeyChange:A,onSaveKey:_,onContinue:k}){let R=$.find((d)=>d.id===B);if(B&&R)return E0.jsxDEV(E0.Fragment,{children:[E0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",R.name," Key"]},void 0,!0,void 0,this),E0.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),E0.jsxDEV("div",{className:"mb-6",children:[E0.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:E0.jsxDEV("div",{className:"flex items-center justify-between",children:[E0.jsxDEV("div",{children:[E0.jsxDEV("p",{className:"font-medium",children:R.name},void 0,!1,void 0,this),E0.jsxDEV("p",{className:"text-sm text-[#666]",children:[R.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("a",{href:R.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),E0.jsxDEV("div",{className:"space-y-3",children:[E0.jsxDEV("input",{type:"password",value:L,onChange:(d)=>A(d.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316] text-lg"},void 0,!1,void 0,this),F&&E0.jsxDEV("p",{className:"text-red-400 text-sm",children:F},void 0,!1,void 0,this),P&&E0.jsxDEV("p",{className:"text-green-400 text-sm",children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"flex gap-3",children:[E0.jsxDEV("button",{onClick:()=>{T(null),A("")},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),E0.jsxDEV("button",{onClick:_,disabled:!L||G,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:v?"Testing...":G?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return E0.jsxDEV(E0.Fragment,{children:[E0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),E0.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),E0.jsxDEV("div",{className:"space-y-3 mb-6",children:$.map((d)=>E0.jsxDEV(tR,{provider:d,selected:!1,onSelect:()=>!d.hasKey&&T(d.id)},d.id,!1,void 0,this))},void 0,!1,void 0,this),E0.jsxDEV("button",{onClick:k,disabled:U.length===0,className:"w-full bg-[#222] hover:bg-[#333] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:U.length===0?"Add at least one API key to continue":`Continue with ${U.length} provider${U.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tR({provider:$,selected:U,onSelect:B}){return E0.jsxDEV("div",{onClick:B,className:`p-4 rounded border transition cursor-pointer ${$.hasKey?"border-green-500/30 bg-green-500/5":U?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:E0.jsxDEV("div",{className:"flex items-center justify-between",children:[E0.jsxDEV("div",{children:[E0.jsxDEV("p",{className:"font-medium",children:$.name},void 0,!1,void 0,this),E0.jsxDEV("p",{className:"text-sm text-[#666]",children:[$.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.hasKey?E0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[E0.jsxDEV(S5,{},void 0,!1,void 0,this),"Configured (",$.keyHint,")"]},void 0,!0,void 0,this):E0.jsxDEV("a",{href:$.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(L)=>L.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 sR({configuredProviders:$,onAddMore:U,onComplete:B}){return E0.jsxDEV(E0.Fragment,{children:[E0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),E0.jsxDEV("p",{className:"text-[#666] mb-6",children:["You've configured ",$.length," provider",$.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),E0.jsxDEV("div",{className:"space-y-2 mb-6",children:$.map((L)=>E0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[E0.jsxDEV(S5,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),E0.jsxDEV("span",{children:L.name},void 0,!1,void 0,this),E0.jsxDEV("span",{className:"text-[#666] text-sm",children:["(",L.keyHint,")"]},void 0,!0,void 0,this)]},L.id,!0,void 0,this))},void 0,!1,void 0,this),E0.jsxDEV("div",{className:"flex gap-3",children:[E0.jsxDEV("button",{onClick:U,className:"flex-1 border border-[#333] hover:border-[#f97316] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),E0.jsxDEV("button",{onClick:B,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 z6=$0(E1(),1);var z0=$0(K1(),1);function gZ(){let[$,U]=z6.useState("providers");return z0.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[z0.jsxDEV("div",{className:"w-48 border-r border-[#1a1a1a] p-4",children:[z0.jsxDEV("h2",{className:"text-sm font-medium text-[#666] uppercase tracking-wider mb-3",children:"Settings"},void 0,!1,void 0,this),z0.jsxDEV("nav",{className:"space-y-1",children:[z0.jsxDEV(cq,{label:"Providers",active:$==="providers",onClick:()=>U("providers")},void 0,!1,void 0,this),z0.jsxDEV(cq,{label:"Updates",active:$==="updates",onClick:()=>U("updates")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[$==="providers"&&z0.jsxDEV(eR,{},void 0,!1,void 0,this),$==="updates"&&z0.jsxDEV(bM,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cq({label:$,active:U,onClick:B}){return z0.jsxDEV("button",{onClick:B,className:`w-full text-left px-3 py-2 rounded text-sm transition ${U?"bg-[#1a1a1a] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:$},void 0,!1,void 0,this)}function eR(){let[$,U]=z6.useState([]),[B,L]=z6.useState(null),[G,v]=z6.useState(""),[F,P]=z6.useState(!1),[T,A]=z6.useState(!1),[_,k]=z6.useState(null),[R,d]=z6.useState(null),V=async()=>{let l=await(await fetch("/api/providers")).json();U(l.providers||[])};z6.useEffect(()=>{V()},[]);let o=async()=>{if(!B||!G)return;P(!0),k(null),d(null);try{A(!0);let l=await(await fetch(`/api/keys/${B}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})})).json();if(A(!1),!l.valid){k(l.error||"API key is invalid"),P(!1);return}let n=await fetch(`/api/keys/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})});if(!n.ok){let L0=await n.json();k(L0.error||"Failed to save key")}else d("API key saved!"),v(""),L(null),V()}catch(s){k("Failed to save key")}P(!1)},D=async(s)=>{if(!confirm("Are you sure you want to remove this API key?"))return;await fetch(`/api/keys/${s}`,{method:"DELETE"}),V()},E=$.filter((s)=>s.type==="llm"),N0=$.filter((s)=>s.type==="integration"),p=E.filter((s)=>s.hasKey).length,Z0=N0.filter((s)=>s.hasKey).length;return z0.jsxDEV("div",{className:"max-w-4xl space-y-10",children:[z0.jsxDEV("div",{children:[z0.jsxDEV("div",{className:"mb-6",children:[z0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"AI Providers"},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-[#666]",children:["Manage your API keys for AI providers. ",p," of ",E.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:E.map((s)=>z0.jsxDEV(zM,{provider:s,isEditing:B===s.id,apiKey:G,saving:F,testing:T,error:B===s.id?_:null,success:B===s.id?R:null,onStartEdit:()=>{L(s.id),k(null),d(null)},onCancelEdit:()=>{L(null),v(""),k(null)},onApiKeyChange:v,onSave:o,onDelete:()=>D(s.id)},s.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{children:[z0.jsxDEV("div",{className:"mb-6",children:[z0.jsxDEV("h2",{className:"text-xl font-semibold mb-1",children:"MCP Integrations"},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-[#666]",children:["Connect to MCP gateways for tool integrations. ",Z0," of ",N0.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:N0.map((s)=>z0.jsxDEV(QM,{provider:s,isEditing:B===s.id,apiKey:G,saving:F,testing:T,error:B===s.id?_:null,success:B===s.id?R:null,onStartEdit:()=>{L(s.id),k(null),d(null)},onCancelEdit:()=>{L(null),v(""),k(null)},onApiKeyChange:v,onSave:o,onDelete:()=>D(s.id)},s.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function bM(){let[$,U]=z6.useState(null),[B,L]=z6.useState(!1),[G,v]=z6.useState(!1),[F,P]=z6.useState(null),[T,A]=z6.useState(null),[_,k]=z6.useState(null),R=async()=>{L(!0),P(null);try{let D=await fetch("/api/version");if(!D.ok)throw Error("Failed to check for updates");let E=await D.json();U(E)}catch(D){P("Failed to check for updates")}L(!1)},d=async()=>{v(!0),P(null),A(null);try{let E=await(await fetch("/api/version/update",{method:"POST"})).json();if(!E.success)P(E.error||"Update failed");else A(`Agent updated to v${E.version}. New agents will use this version.`),await R()}catch(D){P("Failed to update agent")}v(!1)};z6.useEffect(()=>{R()},[]);let V=(D,E)=>{navigator.clipboard.writeText(D),k(E),setTimeout(()=>k(null),2000)},o=$?.apteva.updateAvailable||$?.agent.updateAvailable;return z0.jsxDEV("div",{className:"max-w-2xl",children:[z0.jsxDEV("div",{className:"mb-6",children:[z0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Updates"},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-[#666]",children:"Check for new versions of apteva and the agent binary."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B&&!$?z0.jsxDEV("div",{className:"text-[#666]",children:"Checking for updates..."},void 0,!1,void 0,this):F&&!$?z0.jsxDEV("div",{className:"text-red-400",children:F},void 0,!1,void 0,this):$?z0.jsxDEV("div",{className:"space-y-6",children:[T&&z0.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 text-green-400",children:T},void 0,!1,void 0,this),F&&z0.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg p-4 text-red-400",children:F},void 0,!1,void 0,this),z0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-5",children:[z0.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[z0.jsxDEV("div",{children:[z0.jsxDEV("h3",{className:"font-medium text-lg",children:"apteva"},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-sm text-[#666]",children:"The app you're running"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{className:"text-right",children:[z0.jsxDEV("div",{className:"text-xl font-mono",children:["v",$.apteva.installed||"?"]},void 0,!0,void 0,this),$.apteva.updateAvailable&&z0.jsxDEV("div",{className:"text-sm text-[#f97316]",children:["→ v",$.apteva.latest]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.apteva.updateAvailable?z0.jsxDEV("div",{className:"bg-[#f97316]/10 border border-[#f97316]/30 rounded-lg p-4",children:[z0.jsxDEV("p",{className:"text-sm text-[#888] mb-3",children:"Update by running:"},void 0,!1,void 0,this),z0.jsxDEV("div",{className:"flex items-center gap-2",children:[z0.jsxDEV("code",{className:"flex-1 bg-[#0a0a0a] px-3 py-2 rounded font-mono text-sm text-[#888]",children:"npx apteva@latest"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:()=>V("npx apteva@latest","apteva"),className:"px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] rounded text-sm",children:_==="apteva"?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):z0.jsxDEV("div",{className:"flex items-center gap-2 text-green-400 text-sm",children:[z0.jsxDEV(S5,{className:"w-4 h-4"},void 0,!1,void 0,this),"Up to date"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-5",children:[z0.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[z0.jsxDEV("div",{children:[z0.jsxDEV("h3",{className:"font-medium text-lg",children:"Agent Binary"},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-sm text-[#666]",children:"The Go binary that runs agents"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z0.jsxDEV("div",{className:"text-right",children:[z0.jsxDEV("div",{className:"text-xl font-mono",children:["v",$.agent.installed||"?"]},void 0,!0,void 0,this),$.agent.updateAvailable&&z0.jsxDEV("div",{className:"text-sm text-[#f97316]",children:["→ v",$.agent.latest]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.agent.updateAvailable?z0.jsxDEV("div",{className:"bg-[#f97316]/10 border border-[#f97316]/30 rounded-lg p-4",children:[z0.jsxDEV("p",{className:"text-sm text-[#888] mb-3",children:"A new version is available. Stop all agents before updating."},void 0,!1,void 0,this),z0.jsxDEV("div",{className:"flex items-center gap-2",children:z0.jsxDEV("button",{onClick:d,disabled:G,className:"px-4 py-2 bg-[#f97316] text-black rounded font-medium text-sm disabled:opacity-50",children:G?"Updating...":"Update Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z0.jsxDEV("div",{className:"flex items-center gap-2 text-green-400 text-sm",children:[z0.jsxDEV(S5,{className:"w-4 h-4"},void 0,!1,void 0,this),"Up to date"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!o&&!T&&z0.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 flex items-center gap-2 text-green-400",children:[z0.jsxDEV(S5,{className:"w-5 h-5"},void 0,!1,void 0,this),"Everything is up to date!"]},void 0,!0,void 0,this),z0.jsxDEV("button",{onClick:R,disabled:B,className:"text-sm text-[#666] hover:text-[#888] disabled:opacity-50",children:B?"Checking...":"Check for updates"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function zM({provider:$,isEditing:U,apiKey:B,saving:L,testing:G,error:v,success:F,onStartEdit:P,onCancelEdit:T,onApiKeyChange:A,onSave:_,onDelete:k}){return z0.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${$.hasKey?"border-green-500/20":"border-[#1a1a1a]"}`,children:[z0.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[z0.jsxDEV("div",{children:[z0.jsxDEV("h3",{className:"font-medium",children:$.name},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-sm text-[#666]",children:[$.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.hasKey?z0.jsxDEV("span",{className:"text-green-400 text-xs flex items-center gap-1 bg-green-500/10 px-2 py-1 rounded",children:[z0.jsxDEV(S5,{className:"w-3 h-3"},void 0,!1,void 0,this),$.keyHint]},void 0,!0,void 0,this):z0.jsxDEV("span",{className:"text-[#666] text-xs bg-[#1a1a1a] px-2 py-1 rounded",children:"Not configured"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.hasKey?z0.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[z0.jsxDEV("a",{href:$.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"View docs"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:k,className:"text-red-400 hover:text-red-300 text-sm",children:"Remove key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z0.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:U?z0.jsxDEV("div",{className:"space-y-3",children:[z0.jsxDEV("input",{type:"password",value:B,onChange:(R)=>A(R.target.value),placeholder:"Enter API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),v&&z0.jsxDEV("p",{className:"text-red-400 text-sm",children:v},void 0,!1,void 0,this),F&&z0.jsxDEV("p",{className:"text-green-400 text-sm",children:F},void 0,!1,void 0,this),z0.jsxDEV("div",{className:"flex gap-2",children:[z0.jsxDEV("button",{onClick:T,className:"flex-1 px-3 py-1.5 border border-[#333] rounded text-sm hover:border-[#666]",children:"Cancel"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:_,disabled:!B||L,className:"flex-1 px-3 py-1.5 bg-[#f97316] text-black rounded text-sm font-medium disabled:opacity-50",children:G?"Validating...":L?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):z0.jsxDEV("div",{className:"flex items-center justify-between",children:[z0.jsxDEV("a",{href:$.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API key"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:P,className:"text-sm text-[#f97316] hover:text-[#fb923c]",children:"+ Add key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QM({provider:$,isEditing:U,apiKey:B,saving:L,testing:G,error:v,success:F,onStartEdit:P,onCancelEdit:T,onApiKeyChange:A,onSave:_,onDelete:k}){return z0.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${$.hasKey?"border-[#f97316]/20":"border-[#1a1a1a]"}`,children:[z0.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[z0.jsxDEV("div",{children:[z0.jsxDEV("h3",{className:"font-medium",children:$.name},void 0,!1,void 0,this),z0.jsxDEV("p",{className:"text-sm text-[#666]",children:$.description||"MCP integration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.hasKey?z0.jsxDEV("span",{className:"text-[#f97316] text-xs flex items-center gap-1 bg-[#f97316]/10 px-2 py-1 rounded",children:[z0.jsxDEV(S5,{className:"w-3 h-3"},void 0,!1,void 0,this),$.keyHint]},void 0,!0,void 0,this):z0.jsxDEV("span",{className:"text-[#666] text-xs bg-[#1a1a1a] px-2 py-1 rounded",children:"Not configured"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.hasKey?z0.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[z0.jsxDEV("a",{href:$.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"View docs"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:k,className:"text-red-400 hover:text-red-300 text-sm",children:"Remove key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z0.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:U?z0.jsxDEV("div",{className:"space-y-3",children:[z0.jsxDEV("input",{type:"password",value:B,onChange:(R)=>A(R.target.value),placeholder:"Enter API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),v&&z0.jsxDEV("p",{className:"text-red-400 text-sm",children:v},void 0,!1,void 0,this),F&&z0.jsxDEV("p",{className:"text-green-400 text-sm",children:F},void 0,!1,void 0,this),z0.jsxDEV("div",{className:"flex gap-2",children:[z0.jsxDEV("button",{onClick:T,className:"flex-1 px-3 py-1.5 border border-[#333] rounded text-sm hover:border-[#666]",children:"Cancel"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:_,disabled:!B||L,className:"flex-1 px-3 py-1.5 bg-[#f97316] text-black rounded text-sm font-medium disabled:opacity-50",children:G?"Validating...":L?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):z0.jsxDEV("div",{className:"flex items-center justify-between",children:[z0.jsxDEV("a",{href:$.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API key"},void 0,!1,void 0,this),z0.jsxDEV("button",{onClick:P,className:"text-sm text-[#f97316] hover:text-[#fb923c]",children:"+ Add key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var w4=$0(K1(),1),XM=[{key:"memory",icon:xb,label:"Memory"},{key:"tasks",icon:B5,label:"Tasks"},{key:"vision",icon:jb,label:"Vision"},{key:"operator",icon:ob,label:"Operator"},{key:"mcp",icon:O5,label:"MCP"},{key:"realtime",icon:pb,label:"Realtime"}];function yZ({agent:$,selected:U,onSelect:B,onToggle:L,onDelete:G}){let v=XM.filter((_)=>$.features?.[_.key]),F=$.mcpServerDetails||[],{isActive:P,category:T,type:A}=JG($.id);return w4.jsxDEV("div",{onClick:B,className:`bg-[#111] rounded p-5 border transition cursor-pointer ${U?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[w4.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[w4.jsxDEV("div",{className:"flex items-center gap-2",children:[$.status==="running"&&w4.jsxDEV("span",{className:`w-2 h-2 rounded-full transition-all ${P?"bg-green-400 animate-pulse":"bg-[#333]"}`,title:P?`${T}: ${A}`:"Idle"},void 0,!1,void 0,this),w4.jsxDEV("div",{children:[w4.jsxDEV("h3",{className:"font-semibold text-lg",children:$.name},void 0,!1,void 0,this),w4.jsxDEV("p",{className:"text-sm text-[#666]",children:[$.provider," / ",$.model,$.port&&w4.jsxDEV("span",{className:"text-[#444]",children:[" · :",$.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w4.jsxDEV(ZM,{status:$.status,isActive:P&&$.status==="running",activityType:A},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.length>0&&w4.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:v.map(({key:_,icon:k,label:R})=>w4.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[#f97316]/10 text-[#f97316]/70 text-xs",title:R,children:[w4.jsxDEV(k,{className:"w-3 h-3"},void 0,!1,void 0,this),R]},_,!0,void 0,this))},void 0,!1,void 0,this),F.length>0&&w4.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:F.map((_)=>w4.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${_.status==="running"?"bg-green-500/10 text-green-400":"bg-[#222] text-[#666]"}`,title:`MCP: ${_.name} (${_.status})`,children:[w4.jsxDEV(O5,{className:"w-3 h-3"},void 0,!1,void 0,this),_.name]},_.id,!0,void 0,this))},void 0,!1,void 0,this),w4.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4",children:$.systemPrompt},void 0,!1,void 0,this),w4.jsxDEV("div",{className:"flex gap-2",children:[w4.jsxDEV("button",{onClick:L,className:`flex-1 px-3 py-1.5 rounded text-sm font-medium transition ${$.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:$.status==="running"?"Stop":"Start"},void 0,!1,void 0,this),w4.jsxDEV("button",{onClick:G,className:"px-3 py-1.5 rounded text-sm font-medium bg-red-500/20 text-red-400 hover:bg-red-500/30 transition",children:"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ZM({status:$,isActive:U,activityType:B}){if($==="running"&&U&&B)return w4.jsxDEV("span",{className:"px-2 py-1 rounded text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",children:B},void 0,!1,void 0,this);return w4.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${$==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:$},void 0,!1,void 0,this)}var u1=$0(K1(),1),JM=[{key:"memory",label:"Memory",description:"Persistent recall",icon:xb},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:B5},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:jb},{key:"operator",label:"Operator",description:"Browser automation",icon:ob},{key:"mcp",label:"MCP",description:"External tools/services",icon:O5},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:pb}];function dZ({form:$,providers:U,configuredProviders:B,onFormChange:L,onProviderChange:G,onCreate:v,onClose:F,onGoToSettings:P}){let T=U.find((R)=>R.id===$.provider),A=B.map((R)=>({value:R.id,label:R.name})),_=T?.models.map((R)=>({value:R.value,label:R.label,recommended:R.recommended}))||[],k=(R)=>{L({...$,features:{...$.features,[R]:!$.features[R]}})};return u1.jsxDEV(hZ,{children:[u1.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),B.length===0?u1.jsxDEV($M,{onGoToSettings:P},void 0,!1,void 0,this):u1.jsxDEV(u1.Fragment,{children:[u1.jsxDEV("div",{className:"space-y-4",children:[u1.jsxDEV(JQ,{label:"Name",children:u1.jsxDEV("input",{type:"text",value:$.name,onChange:(R)=>L({...$,name:R.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),u1.jsxDEV(JQ,{label:"Provider",children:u1.jsxDEV(q5,{value:$.provider,options:A,onChange:G,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),u1.jsxDEV(JQ,{label:"Model",children:u1.jsxDEV(q5,{value:$.model,options:_,onChange:(R)=>L({...$,model:R}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),u1.jsxDEV(JQ,{label:"System Prompt",children:u1.jsxDEV("textarea",{value:$.systemPrompt,onChange:(R)=>L({...$,systemPrompt:R.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),u1.jsxDEV(JQ,{label:"Features",children:u1.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:JM.map(({key:R,label:d,description:V,icon:o})=>u1.jsxDEV("button",{type:"button",onClick:()=>k(R),className:`flex items-center gap-3 p-3 rounded border text-left transition ${$.features[R]?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[u1.jsxDEV(o,{className:`w-5 h-5 flex-shrink-0 ${$.features[R]?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),u1.jsxDEV("div",{className:"flex-1 min-w-0",children:[u1.jsxDEV("div",{className:`text-sm font-medium ${$.features[R]?"text-[#f97316]":""}`,children:d},void 0,!1,void 0,this),u1.jsxDEV("div",{className:"text-xs text-[#666]",children:V},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},R,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u1.jsxDEV("div",{className:"flex gap-3 mt-6",children:[u1.jsxDEV("button",{onClick:F,className:"flex-1 border border-[#333] hover:border-[#f97316] hover:text-[#f97316] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),u1.jsxDEV("button",{onClick:v,disabled:!$.name,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-4 py-2 rounded font-medium transition",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function JQ({label:$,children:U}){return u1.jsxDEV("div",{children:[u1.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:$},void 0,!1,void 0,this),U]},void 0,!0,void 0,this)}function $M({onGoToSettings:$}){return u1.jsxDEV("div",{className:"text-center py-6",children:[u1.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),u1.jsxDEV("button",{onClick:$,className:"bg-[#f97316] hover:bg-[#fb923c] text-black px-4 py-2 rounded font-medium transition",children:"Go to Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var z7=$0(E1(),1);var h1=$0(E1(),1),H3=$0(E1(),1),tb=$0(E1(),1);function aq($){var U,B,L="";if(typeof $=="string"||typeof $=="number")L+=$;else if(typeof $=="object")if(Array.isArray($)){var G=$.length;for(U=0;U<G;U++)$[U]&&(B=aq($[U]))&&(L&&(L+=" "),L+=B)}else for(B in $)$[B]&&(L&&(L+=" "),L+=B);return L}function lq(){for(var $,U,B=0,L="",G=arguments.length;B<G;B++)($=arguments[B])&&(U=aq($))&&(L&&(L+=" "),L+=U);return L}var HM=($)=>{let U=GM($),{conflictingClassGroups:B,conflictingClassGroupModifiers:L}=$;return{getClassGroupId:(F)=>{let P=F.split("-");if(P[0]===""&&P.length!==1)P.shift();return jq(P,U)||YM(F)},getConflictingClassGroupIds:(F,P)=>{let T=B[F]||[];if(P&&L[F])return[...T,...L[F]];return T}}},jq=($,U)=>{if($.length===0)return U.classGroupId;let B=$[0],L=U.nextPart.get(B),G=L?jq($.slice(1),L):void 0;if(G)return G;if(U.validators.length===0)return;let v=$.join("-");return U.validators.find(({validator:F})=>F(v))?.classGroupId},iq=/^\[(.+)\]$/,YM=($)=>{if(iq.test($)){let U=iq.exec($)[1],B=U?.substring(0,U.indexOf(":"));if(B)return"arbitrary.."+B}},GM=($)=>{let{theme:U,prefix:B}=$,L={nextPart:new Map,validators:[]};return UM(Object.entries($.classGroups),B).forEach(([v,F])=>{qG(F,L,v,U)}),L},qG=($,U,B,L)=>{$.forEach((G)=>{if(typeof G==="string"){let v=G===""?U:xq(U,G);v.classGroupId=B;return}if(typeof G==="function"){if(KM(G)){qG(G(L),U,B,L);return}U.validators.push({validator:G,classGroupId:B});return}Object.entries(G).forEach(([v,F])=>{qG(F,xq(U,v),B,L)})})},xq=($,U)=>{let B=$;return U.split("-").forEach((L)=>{if(!B.nextPart.has(L))B.nextPart.set(L,{nextPart:new Map,validators:[]});B=B.nextPart.get(L)}),B},KM=($)=>$.isThemeGetter,UM=($,U)=>{if(!U)return $;return $.map(([B,L])=>{let G=L.map((v)=>{if(typeof v==="string")return U+v;if(typeof v==="object")return Object.fromEntries(Object.entries(v).map(([F,P])=>[U+F,P]));return v});return[B,G]})},qM=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let U=0,B=new Map,L=new Map,G=(v,F)=>{if(B.set(v,F),U++,U>$)U=0,L=B,B=new Map};return{get(v){let F=B.get(v);if(F!==void 0)return F;if((F=L.get(v))!==void 0)return G(v,F),F},set(v,F){if(B.has(v))B.set(v,F);else G(v,F)}}};var BM=($)=>{let{separator:U,experimentalParseClassName:B}=$,L=U.length===1,G=U[0],v=U.length,F=(P)=>{let T=[],A=0,_=0,k;for(let D=0;D<P.length;D++){let E=P[D];if(A===0){if(E===G&&(L||P.slice(D,D+v)===U)){T.push(P.slice(_,D)),_=D+v;continue}if(E==="/"){k=D;continue}}if(E==="[")A++;else if(E==="]")A--}let R=T.length===0?P:P.substring(_),d=R.startsWith("!"),V=d?R.substring(1):R,o=k&&k>_?k-_:void 0;return{modifiers:T,hasImportantModifier:d,baseClassName:V,maybePostfixModifierPosition:o}};if(B)return(P)=>B({className:P,parseClassName:F});return F},OM=($)=>{if($.length<=1)return $;let U=[],B=[];return $.forEach((L)=>{if(L[0]==="[")U.push(...B.sort(),L),B=[];else B.push(L)}),U.push(...B.sort()),U},LM=($)=>({cache:qM($.cacheSize),parseClassName:BM($),...HM($)}),NM=/\s+/,WM=($,U)=>{let{parseClassName:B,getClassGroupId:L,getConflictingClassGroupIds:G}=U,v=[],F=$.trim().split(NM),P="";for(let T=F.length-1;T>=0;T-=1){let A=F[T],{modifiers:_,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:d}=B(A),V=Boolean(d),o=L(V?R.substring(0,d):R);if(!o){if(!V){P=A+(P.length>0?" "+P:P);continue}if(o=L(R),!o){P=A+(P.length>0?" "+P:P);continue}V=!1}let D=OM(_).join(":"),E=k?D+"!":D,N0=E+o;if(v.includes(N0))continue;v.push(N0);let p=G(o,V);for(let Z0=0;Z0<p.length;++Z0){let s=p[Z0];v.push(E+s)}P=A+(P.length>0?" "+P:P)}return P};function _M(){let $=0,U,B,L="";while($<arguments.length)if(U=arguments[$++]){if(B=oq(U))L&&(L+=" "),L+=B}return L}var oq=($)=>{if(typeof $==="string")return $;let U,B="";for(let L=0;L<$.length;L++)if($[L]){if(U=oq($[L]))B&&(B+=" "),B+=U}return B};function PM($,...U){let B,L,G,v=F;function F(T){let A=U.reduce((_,k)=>k(_),$());return B=LM(A),L=B.cache.get,G=B.cache.set,v=P,P(T)}function P(T){let A=L(T);if(A)return A;let _=WM(T,B);return G(T,_),_}return function(){return v(_M.apply(null,arguments))}}var B4=($)=>{let U=(B)=>B[$]||[];return U.isThemeGetter=!0,U},pq=/^\[(?:([a-z-]+):)?(.+)\]$/i,vM=/^\d+\/\d+$/,FM=new Set(["px","full","screen"]),RM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MM=/\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$/,kM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I7=($)=>Z3($)||FM.has($)||vM.test($),$b=($)=>J3($,"length",DM),Z3=($)=>Boolean($)&&!Number.isNaN(Number($)),UG=($)=>J3($,"number",Z3),$Q=($)=>Boolean($)&&Number.isInteger(Number($)),IM=($)=>$.endsWith("%")&&Z3($.slice(0,-1)),J1=($)=>pq.test($),Hb=($)=>RM.test($),fM=new Set(["length","size","percentage"]),TM=($)=>J3($,fM,rq),hM=($)=>J3($,"position",rq),CM=new Set(["image","url"]),SM=($)=>J3($,CM,uM),VM=($)=>J3($,"",EM),HQ=()=>!0,J3=($,U,B)=>{let L=pq.exec($);if(L){if(L[1])return typeof U==="string"?L[1]===U:U.has(L[1]);return B(L[2])}return!1},DM=($)=>MM.test($)&&!kM.test($),rq=()=>!1,EM=($)=>wM.test($),uM=($)=>AM.test($);var mM=()=>{let $=B4("colors"),U=B4("spacing"),B=B4("blur"),L=B4("brightness"),G=B4("borderColor"),v=B4("borderRadius"),F=B4("borderSpacing"),P=B4("borderWidth"),T=B4("contrast"),A=B4("grayscale"),_=B4("hueRotate"),k=B4("invert"),R=B4("gap"),d=B4("gradientColorStops"),V=B4("gradientColorStopPositions"),o=B4("inset"),D=B4("margin"),E=B4("opacity"),N0=B4("padding"),p=B4("saturate"),Z0=B4("scale"),s=B4("sepia"),l=B4("skew"),n=B4("space"),L0=B4("translate"),c=()=>["auto","contain","none"],Y0=()=>["auto","hidden","clip","visible","scroll"],R0=()=>["auto",J1,U],b0=()=>[J1,U],v0=()=>["",I7,$b],d0=()=>["auto",Z3,J1],h0=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V0=()=>["solid","dashed","dotted","double","none"],P1=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$1=()=>["start","end","center","between","around","evenly","stretch"],v1=()=>["","0",J1],i0=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H1=()=>[Z3,J1];return{cacheSize:500,separator:":",theme:{colors:[HQ],spacing:[I7,$b],blur:["none","",Hb,J1],brightness:H1(),borderColor:[$],borderRadius:["none","","full",Hb,J1],borderSpacing:b0(),borderWidth:v0(),contrast:H1(),grayscale:v1(),hueRotate:H1(),invert:v1(),gap:b0(),gradientColorStops:[$],gradientColorStopPositions:[IM,$b],inset:R0(),margin:R0(),opacity:H1(),padding:b0(),saturate:H1(),scale:H1(),sepia:v1(),skew:H1(),space:b0(),translate:b0()},classGroups:{aspect:[{aspect:["auto","square","video",J1]}],container:["container"],columns:[{columns:[Hb]}],"break-after":[{"break-after":i0()}],"break-before":[{"break-before":i0()}],"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:[...h0(),J1]}],overflow:[{overflow:Y0()}],"overflow-x":[{"overflow-x":Y0()}],"overflow-y":[{"overflow-y":Y0()}],overscroll:[{overscroll:c()}],"overscroll-x":[{"overscroll-x":c()}],"overscroll-y":[{"overscroll-y":c()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[o]}],"inset-x":[{"inset-x":[o]}],"inset-y":[{"inset-y":[o]}],start:[{start:[o]}],end:[{end:[o]}],top:[{top:[o]}],right:[{right:[o]}],bottom:[{bottom:[o]}],left:[{left:[o]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$Q,J1]}],basis:[{basis:R0()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J1]}],grow:[{grow:v1()}],shrink:[{shrink:v1()}],order:[{order:["first","last","none",$Q,J1]}],"grid-cols":[{"grid-cols":[HQ]}],"col-start-end":[{col:["auto",{span:["full",$Q,J1]},J1]}],"col-start":[{"col-start":d0()}],"col-end":[{"col-end":d0()}],"grid-rows":[{"grid-rows":[HQ]}],"row-start-end":[{row:["auto",{span:[$Q,J1]},J1]}],"row-start":[{"row-start":d0()}],"row-end":[{"row-end":d0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J1]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...$1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N0]}],px:[{px:[N0]}],py:[{py:[N0]}],ps:[{ps:[N0]}],pe:[{pe:[N0]}],pt:[{pt:[N0]}],pr:[{pr:[N0]}],pb:[{pb:[N0]}],pl:[{pl:[N0]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[n]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[n]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J1,U]}],"min-w":[{"min-w":[J1,U,"min","max","fit"]}],"max-w":[{"max-w":[J1,U,"none","full","min","max","fit","prose",{screen:[Hb]},Hb]}],h:[{h:[J1,U,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J1,U,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J1,U,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J1,U,"auto","min","max","fit"]}],"font-size":[{text:["base",Hb,$b]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",UG]}],"font-family":[{font:[HQ]}],"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",J1]}],"line-clamp":[{"line-clamp":["none",Z3,UG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I7,J1]}],"list-image":[{"list-image":["none",J1]}],"list-style-type":[{list:["none","disc","decimal",J1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I7,$b]}],"underline-offset":[{"underline-offset":["auto",I7,J1]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b0()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J1]}],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",J1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...h0(),hM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SM]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[V]}],"gradient-via-pos":[{via:[V]}],"gradient-to-pos":[{to:[V]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[v]}],"rounded-s":[{"rounded-s":[v]}],"rounded-e":[{"rounded-e":[v]}],"rounded-t":[{"rounded-t":[v]}],"rounded-r":[{"rounded-r":[v]}],"rounded-b":[{"rounded-b":[v]}],"rounded-l":[{"rounded-l":[v]}],"rounded-ss":[{"rounded-ss":[v]}],"rounded-se":[{"rounded-se":[v]}],"rounded-ee":[{"rounded-ee":[v]}],"rounded-es":[{"rounded-es":[v]}],"rounded-tl":[{"rounded-tl":[v]}],"rounded-tr":[{"rounded-tr":[v]}],"rounded-br":[{"rounded-br":[v]}],"rounded-bl":[{"rounded-bl":[v]}],"border-w":[{border:[P]}],"border-w-x":[{"border-x":[P]}],"border-w-y":[{"border-y":[P]}],"border-w-s":[{"border-s":[P]}],"border-w-e":[{"border-e":[P]}],"border-w-t":[{"border-t":[P]}],"border-w-r":[{"border-r":[P]}],"border-w-b":[{"border-b":[P]}],"border-w-l":[{"border-l":[P]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...V0(),"hidden"]}],"divide-x":[{"divide-x":[P]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[P]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:V0()}],"border-color":[{border:[G]}],"border-color-x":[{"border-x":[G]}],"border-color-y":[{"border-y":[G]}],"border-color-s":[{"border-s":[G]}],"border-color-e":[{"border-e":[G]}],"border-color-t":[{"border-t":[G]}],"border-color-r":[{"border-r":[G]}],"border-color-b":[{"border-b":[G]}],"border-color-l":[{"border-l":[G]}],"divide-color":[{divide:[G]}],"outline-style":[{outline:["",...V0()]}],"outline-offset":[{"outline-offset":[I7,J1]}],"outline-w":[{outline:[I7,$b]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:v0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[I7,$b]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",Hb,VM]}],"shadow-color":[{shadow:[HQ]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...P1(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P1()}],filter:[{filter:["","none"]}],blur:[{blur:[B]}],brightness:[{brightness:[L]}],contrast:[{contrast:[T]}],"drop-shadow":[{"drop-shadow":["","none",Hb,J1]}],grayscale:[{grayscale:[A]}],"hue-rotate":[{"hue-rotate":[_]}],invert:[{invert:[k]}],saturate:[{saturate:[p]}],sepia:[{sepia:[s]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[B]}],"backdrop-brightness":[{"backdrop-brightness":[L]}],"backdrop-contrast":[{"backdrop-contrast":[T]}],"backdrop-grayscale":[{"backdrop-grayscale":[A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[p]}],"backdrop-sepia":[{"backdrop-sepia":[s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[F]}],"border-spacing-x":[{"border-spacing-x":[F]}],"border-spacing-y":[{"border-spacing-y":[F]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J1]}],duration:[{duration:H1()}],ease:[{ease:["linear","in","out","in-out",J1]}],delay:[{delay:H1()}],animate:[{animate:["none","spin","ping","pulse","bounce",J1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z0]}],"scale-x":[{"scale-x":[Z0]}],"scale-y":[{"scale-y":[Z0]}],rotate:[{rotate:[$Q,J1]}],"translate-x":[{"translate-x":[L0]}],"translate-y":[{"translate-y":[L0]}],"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",J1]}],accent:[{accent:["auto",$]}],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",J1]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b0()}],"scroll-mx":[{"scroll-mx":b0()}],"scroll-my":[{"scroll-my":b0()}],"scroll-ms":[{"scroll-ms":b0()}],"scroll-me":[{"scroll-me":b0()}],"scroll-mt":[{"scroll-mt":b0()}],"scroll-mr":[{"scroll-mr":b0()}],"scroll-mb":[{"scroll-mb":b0()}],"scroll-ml":[{"scroll-ml":b0()}],"scroll-p":[{"scroll-p":b0()}],"scroll-px":[{"scroll-px":b0()}],"scroll-py":[{"scroll-py":b0()}],"scroll-ps":[{"scroll-ps":b0()}],"scroll-pe":[{"scroll-pe":b0()}],"scroll-pt":[{"scroll-pt":b0()}],"scroll-pr":[{"scroll-pr":b0()}],"scroll-pb":[{"scroll-pb":b0()}],"scroll-pl":[{"scroll-pl":b0()}],"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",J1]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[I7,$b,UG]}],stroke:[{stroke:[$,"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 nq=PM(mM);var ZB=$0(E1(),1),E5=$0(z4(),1),Y3=$0(E1(),1),W6=$0(z4(),1),JB=$0(z4(),1),_G=$0(z4(),1),G3=$0(E1(),1),A4=$0(z4(),1),$B=$0(E1(),1),o4=$0(z4(),1),GQ=$0(z4(),1),q0=$0(z4(),1),i6=$0(z4(),1),vG=$0(z4(),1),m0=$0(z4(),1),N4=$0(z4(),1),I1=$0(z4(),1),k0=$0(z4(),1),t0=$0(z4(),1),YQ=$0(z4(),1),b7=$0(E1(),1),o0=$0(z4(),1),T7=$0(E1(),1),T0=$0(z4(),1),u6=$0(z4(),1),Ak=$0(E1(),1),YB=$0(z4(),1),FG=$0(E1(),1),RG=$0(z4(),1),Ik=$0(E1(),1),GB=$0(z4(),1),KB=$0(E1(),1),UB=$0(z4(),1),fk=$0(E1(),1),qB=$0(z4(),1),BB=$0(z4(),1),OB=$0(z4(),1),yM=Object.defineProperty,dM=($,U,B)=>(U in $)?yM($,U,{enumerable:!0,configurable:!0,writable:!0,value:B}):$[U]=B,cM=($,U,B)=>dM($,typeof U!=="symbol"?U+"":U,B);function o1(...$){return nq(lq($))}var _I=[{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)}],PI=[{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 aM($=1000){return new Promise((U)=>{setTimeout(()=>{U({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})},$)})}function lM($){let U=$.toLowerCase();if(U.includes("analyze")||U.includes("analysis"))return`Analysis complete for "${$}". 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(U.includes("sales")||U.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(U.includes("report")||U.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(U.includes("data")||U.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(U.includes("customer")||U.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 iM($){let U=lM($),B=$.toLowerCase(),L=[],G;if(B.includes("sales")||B.includes("revenue")||B.includes("analyze"))L.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(B.includes("customer")||B.includes("user"))L.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(B.includes("task")||B.includes("todo")||B.includes("work")||B.includes("completed"))L.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:{}}]}),G={type:"update_database",payload:{table:"tasks",operation:"mark_as_viewed",taskIds:["task-1","task-2","task-3"],timestamp:new Date().toISOString()}};if(B.includes("analyze")||B.includes("analysis"))G={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:U,widgets:L,action:G}}function xM($,U,B,L,G=30){let{message:v,widgets:F}=iM($),P=v.split(" "),T=0,A=setInterval(()=>{try{if(T<P.length)U({type:"token",content:P[T]+" "}),T++;else{clearInterval(A),F.forEach((k)=>{U({type:"widget",widget:k})});let _=`mock_thread_${Date.now()}`;U({type:"complete"}),B(_)}}catch(_){clearInterval(A),L(_ instanceof Error?_:Error("Mock streaming error"))}},G)}function jM($){return new Promise((U,B)=>{let L=new FileReader;L.onload=()=>{let v=L.result.split(",")[1];U(v)},L.onerror=()=>B(Error("Failed to read file")),L.readAsDataURL($)})}function oM($){if($.startsWith("image/"))return"image";return"document"}function pM($){return["image/jpeg","image/png","image/gif","image/webp","application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes($.type)}async function rM($){let U=await jM($);return{type:oM($.type),source:{type:"base64",media_type:$.type,data:U}}}async function nM($){let U=Array.from($);return await Promise.all(U.map((L)=>rM(L)))}async function tq($,U){if(!U||U.length===0)return $;let B=[];if($.trim())B.push({type:"text",text:$.trim()});let L=await nM(U);return B.push(...L),B}function aZ($){if($<1024)return`${$} B`;if($<1048576)return`${($/1024).toFixed(1)} KB`;return`${($/1048576).toFixed(1)} MB`}var sq=10485760;function zB($){if(!pM($))return{valid:!1,error:`Unsupported file type: ${$.type}`};if($.size>sq)return{valid:!1,error:`File too large: ${aZ($.size)} (max ${aZ(sq)})`};return{valid:!0}}var tM=["list","table"];function sM($){let U=[],B=!1,L=$.match(/"items"\s*:\s*\[/);if(!L)return{items:U,isStreaming:!1};let G=$.indexOf("[",L.index);if(G===-1)return{items:U,isStreaming:!0};let v=0,F=!1,P=!1,T=-1;for(let k=G+1;k<$.length;k++){let R=$[k];if(P){P=!1;continue}if(R==="\\"&&F){P=!0;continue}if(R==='"'){F=!F;continue}if(F)continue;if(R==="{"){if(v===0)T=k;v++}else if(R==="}"){if(v--,v===0&&T!==-1){let d=$.slice(T,k+1);try{let V=JSON.parse(d);if(!V.id)V.id=`item-${U.length}-${NG(d)}`;U.push(V)}catch(V){}T=-1}}else if(R==="]"&&v===0){B=!1;break}}if(v>0||T!==-1)B=!0;let A=$.slice(G);if(WG(A,0)===-1)B=!0;return{items:U,isStreaming:B}}function NG($){let U=0;for(let B=0;B<$.length;B++){let L=$.charCodeAt(B);U=(U<<5)-U+L,U=U&U}return Math.abs(U).toString(36)}function WG($,U){let B=0,L=!1,G=!1;for(let v=U;v<$.length;v++){let F=$[v];if(G){G=!1;continue}if(F==="\\"&&L){G=!0;continue}if(F==='"'){L=!L;continue}if(L)continue;if(F==="["||F==="{")B++;else if(F==="]"||F==="}"){if(B--,B===0)return v}}return-1}function cZ($){let U=[],B=!1,L=!1,G=0,v=null,F=$,P=$.lastIndexOf("@ui:");if(P!==-1){let _=$.slice(P),k=_.match(/^@ui:(\w+)/);if(k){let R=k[1],d=_.indexOf("[");if(d===-1)F=$.slice(0,P),v=R,L=!0;else{let V=P+d;if(WG($,V)===-1)if(tM.includes(R)){let D=$.slice(V+1),{items:E,isStreaming:N0}=sM(D);if(E.length>0){F=$.slice(0,P);let p=`widget-${R}-streaming-${NG(D)}`,Z0=F.replace(/[\s:;\-–—\.]+$/g,"").trim();if(Z0)U.push({type:"text",content:Z0});U.push({type:"widget",widget:{type:R,id:p,props:R==="table"?{rows:E,columns:[]}:{items:E},isStreaming:N0}}),B=!0,L=!1,F=""}else F=$.slice(0,P),v=R,L=!0}else F=$.slice(0,P),v=R,L=!0}}}if(L)F=F.replace(/[\s:;\-–—\.]+$/g,"");let T=/@ui:(\w+)\[/g,A;while((A=T.exec(F))!==null){let _=A[1],k=A.index+A[0].length-1,R=WG(F,k);if(R===-1)continue;let d=F.slice(k+1,R);if(A.index>G){let V=F.slice(G,A.index).trim();if(V)U.push({type:"text",content:V})}try{let V=d.trim(),o=JSON.parse(V),D=`widget-${_}-${NG(V)}`,{metadata:E,actions:N0,...p}=o;U.push({type:"widget",widget:{type:_,id:D,props:p,...N0&&{actions:N0},...E&&{metadata:E}}}),B=!0}catch(V){}G=R+1,T.lastIndex=G}if(G<F.length){let _=F.slice(G).trim();if(_)U.push({type:"text",content:_})}if(U.length===0&&F.trim())U.push({type:"text",content:F.trim()});if(v)U.push({type:"widget_pending",pendingType:v});return{segments:U,hasWidgets:B,hasPendingWidget:L}}var QB={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"}]}]'}},eM=Object.keys(QB),bk=["flow"],XB=eM.filter(($)=>!bk.includes($));function zk($){let U=$||XB,B=`
176
+ ## UI Widgets
177
+ SYNTAX: @ui:type[{json}] - MUST use SQUARE BRACKETS [] around the JSON object.
178
+ CORRECT: @ui:list[{"items": [...]}]
179
+ WRONG: @ui:list{"items": [...]} (missing square brackets)
180
+
181
+ `;for(let L of U){let G=QB[L];if(!G)continue;B+=`${L}: ${G.schema} | ${G.example}
182
+ `}return B+=`
183
+ Per-item "metadata" is sent as payload on action click.
184
+ `,B}function Qk($){return`
185
+ Widgets: @ui:type[{json}] - MUST use square brackets []. Example: @ui:list[{"items": [...]}]. Types: ${($||XB).join(", ")}. Per-item "metadata" is sent as action payload.
186
+ `}function Xk({widget:$,onAction:U}){let{title:B,description:L,image:G,footer:v}=$.props;return E5.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[G&&E5.jsx("img",{src:G,alt:B,className:"w-full h-48 object-cover"}),E5.jsxs("div",{className:"p-4",children:[E5.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:B}),L&&E5.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:L})]}),(v||$.actions&&$.actions.length>0)&&E5.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[v&&E5.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:v}),$.actions&&$.actions.length>0&&E5.jsx("div",{className:"flex gap-2",children:$.actions.map((F,P)=>E5.jsx("button",{onClick:()=>U?.({type:F.type,payload:F.payload,widgetId:$.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:F.label},P))})]})]})}function Zk({widget:$,onAction:U}){let{items:B}=$.props,L=$.isStreaming??!1,G=Y3.useRef(new Set),[v,F]=Y3.useState(new Set);return Y3.useEffect(()=>{let P=new Set(B.map((A)=>A.id)),T=new Set;if(B.forEach((A)=>{if(!G.current.has(A.id))T.add(A.id)}),B.forEach((A)=>G.current.add(A.id)),T.size>0){F(T);let A=setTimeout(()=>{F(new Set)},500);return()=>clearTimeout(A)}},[B]),W6.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[B.map((P,T)=>{let A=v.has(P.id),_=T===B.length-1;return W6.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!_||L?"border-b border-neutral-200 dark:border-neutral-700":""} ${!P.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${A?"apteva-list-item-new":""}`,style:P.backgroundColor?{backgroundColor:P.backgroundColor}:void 0,children:[P.image&&W6.jsx("img",{src:P.image,alt:P.title,className:"w-16 h-16 rounded object-cover"}),W6.jsxs("div",{className:`flex-1 ${P.image?"ml-4":""}`,children:[W6.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:P.title}),P.subtitle&&W6.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:P.subtitle}),P.description&&W6.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:P.description})]}),$.actions&&$.actions.length>0&&W6.jsx("div",{className:"flex gap-2",children:$.actions.map((k,R)=>W6.jsx("button",{onClick:()=>U?.({type:k.type,payload:P.metadata||P,widgetId:$.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:k.label},R))})]},P.id)}),L&&W6.jsxs("div",{className:"apteva-list-streaming flex items-center gap-3 p-4 text-neutral-500 dark:text-neutral-400",children:[W6.jsxs("div",{className:"apteva-streaming-dots flex gap-1",children:[W6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),W6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),W6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),W6.jsx("span",{className:"text-sm",children:"Loading more..."})]})]})}function Jk({widget:$,onAction:U}){let{label:B,variant:L="primary",disabled:G=!1}=$.props;return JB.jsx("button",{onClick:()=>$.actions?.[0]&&U?.({type:$.actions[0].type,payload:$.actions[0].payload,widgetId:$.id,timestamp:new Date}),disabled:G,className:o1("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"}[L],{"opacity-50 cursor-not-allowed":G}),children:B})}function $k({widget:$,onAction:U}){let{layout:B="horizontal",buttons:L}=$.props,G={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"},v=(F)=>{return $.actions?.find((P)=>P.payload?.buttonId===F)||$.actions?.[0]};return _G.jsx("div",{className:o1("flex gap-2",B==="vertical"?"flex-col":"flex-row flex-wrap"),children:L.map((F)=>{let P=v(F.id);return _G.jsx("button",{onClick:()=>{if(P)U?.({type:P.type,payload:{...P.payload,buttonId:F.id},widgetId:$.id,timestamp:new Date})},className:o1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",G[F.variant||"secondary"]),children:F.label},F.id)})})}function Hk({widget:$,onAction:U}){let{columns:B,rows:L,caption:G,compact:v=!1,striped:F=!1}=$.props,P=$.isStreaming??!1,T=G3.useRef(new Set),[A,_]=G3.useState(new Set);G3.useEffect(()=>{let R=new Set;if(L.forEach((d,V)=>{let o=d.id||`row-${V}`;if(!T.current.has(o))R.add(o)}),L.forEach((d,V)=>{let o=d.id||`row-${V}`;T.current.add(o)}),R.size>0){_(R);let d=setTimeout(()=>{_(new Set)},500);return()=>clearTimeout(d)}},[L]);let k=(R)=>{switch(R){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return A4.jsx("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:A4.jsx("div",{className:"overflow-x-auto",children:A4.jsxs("table",{className:"w-full",children:[G&&A4.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:G}),A4.jsx("thead",{children:A4.jsx("tr",{className:"bg-neutral-50 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:B.map((R)=>A4.jsx("th",{className:o1("font-semibold text-neutral-900 dark:text-white",v?"px-3 py-2 text-xs":"px-4 py-3 text-sm",k(R.align)),style:R.width?{width:R.width}:void 0,children:R.label},R.key))})}),A4.jsxs("tbody",{children:[L.map((R,d)=>{let V=R.id||`row-${d}`,o=A.has(V);return A4.jsx("tr",{className:o1("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",F&&d%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",o&&"apteva-table-row-new"),onClick:()=>{if($.actions&&$.actions.length>0)U?.({type:$.actions[0].type,payload:R,widgetId:$.id,timestamp:new Date})},style:{cursor:$.actions?.length?"pointer":"default"},children:B.map((D)=>A4.jsx("td",{className:o1("text-neutral-700 dark:text-neutral-300",v?"px-3 py-2 text-xs":"px-4 py-3 text-sm",k(D.align)),children:R[D.key]??"—"},D.key))},V)}),L.length===0&&!P&&A4.jsx("tr",{children:A4.jsx("td",{colSpan:B.length||1,className:"px-4 py-8 text-center text-sm text-neutral-500 dark:text-neutral-400",children:"No data available"})}),P&&A4.jsx("tr",{className:"apteva-table-streaming",children:A4.jsx("td",{colSpan:B.length||1,className:"px-4 py-3 text-center",children:A4.jsxs("div",{className:"flex items-center justify-center gap-3 text-neutral-500 dark:text-neutral-400",children:[A4.jsxs("div",{className:"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 Yk({widget:$,onAction:U}){let{title:B,fields:L}=$.props,[G,v]=$B.useState(()=>{let _={};return L.forEach((k)=>{_[k.name]=k.defaultValue??(k.type==="checkbox"?!1:"")}),_}),F=(_,k)=>{v((R)=>({...R,[_]:k}))},P=(_)=>{if(_.preventDefault(),$.actions?.[0]&&U)U({type:$.actions[0].type,payload:{...$.actions[0].payload,formData:G},widgetId:$.id,timestamp:new Date})},T=(_)=>{switch(_.type){case"text":case"password":case"number":case"date":return o4.jsx("input",{type:_.type,name:_.name,value:G[_.name]||"",onChange:(R)=>F(_.name,_.type==="number"?Number(R.target.value):R.target.value),placeholder:_.placeholder,required:_.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 o4.jsx("textarea",{name:_.name,value:G[_.name]||"",onChange:(R)=>F(_.name,R.target.value),placeholder:_.placeholder,required:_.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 o4.jsxs("select",{name:_.name,value:G[_.name]||"",onChange:(R)=>F(_.name,R.target.value),required:_.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:[o4.jsx("option",{value:"",children:_.placeholder||"Select..."}),_.options?.map((R)=>o4.jsx("option",{value:R.value,children:R.label},R.value))]});case"checkbox":return o4.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[o4.jsx("input",{type:"checkbox",name:_.name,checked:G[_.name]||!1,onChange:(R)=>F(_.name,R.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),o4.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:_.label})]});default:return null}},A=$.actions?.find((_)=>_.type==="submit")||$.actions?.[0];return o4.jsxs("form",{onSubmit:P,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[o4.jsxs("div",{className:"p-4",children:[B&&o4.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:B}),o4.jsx("div",{className:"space-y-3",children:L.map((_)=>o4.jsxs("div",{className:_.type==="checkbox"?"":"space-y-1",children:[_.type!=="checkbox"&&o4.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[_.label,_.required&&o4.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),T(_)]},_.name))})]}),A&&o4.jsx("div",{className:"px-4 pb-4",children:o4.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:A.label||"Submit"})})]})}function Gk({widget:$}){let{src:U,alt:B,caption:L}=$.props;return GQ.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[GQ.jsx("img",{src:U,alt:B,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),L&&GQ.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:L})]})}function Kk({type:$,status:U}){if(U==="completed")return q0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(U==="error")return q0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(U==="active")return q0.jsx("div",{className:"w-3.5 h-3.5 rounded-full bg-current animate-pulse"});let B="w-4 h-4";if($==="time"||$==="schedule"||$==="clock")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})});if($==="recurring"||$==="repeat")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="agent"||$?.startsWith("@"))return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="email"||$==="mail")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="slack"||$==="message"||$==="chat")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="webhook"||$==="api")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="build"||$==="compile"||$==="package")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="test"||$==="check"||$==="verify")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="deploy"||$==="rocket"||$==="launch")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if($==="push"||$==="upload"||$==="cloud")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="generate"||$==="create"||$==="document"||$==="file")return q0.jsx("svg",{className:B,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"})});if($==="review"||$==="inspect"||$==="eye")return q0.jsxs("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),q0.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($==="analyze"||$==="research"||$==="chart")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="scrape"||$==="crawl"||$==="spider")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="data"||$==="database"||$==="storage")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="notification"||$==="bell"||$==="alert")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="transform"||$==="process"||$==="convert")return q0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return q0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function Uk({icon:$}){if($==="research"||$==="multi-agent"||$==="agents")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if($==="schedule"||$==="report"||$==="calendar")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="recurring"||$==="repeat"||$==="sync")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="analyze"||$==="analysis"||$==="chart")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="deploy"||$==="rocket"||$==="launch")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if($==="automation"||$==="workflow"||$==="process")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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($==="data"||$==="pipeline"||$==="etl")return q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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 q0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:q0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q0.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 qk(){return q0.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:q0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var D5={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 Bk($,U){if($.color&&D5[$.color])return D5[$.color];if(U==="time"||U==="schedule"||U==="clock")return D5.blue;if(U==="agent"||U?.startsWith("@"))return D5.purple;if(U==="email"||U==="slack"||U==="message"||U==="notification")return D5.cyan;if(U==="generate"||U==="document"||U==="create")return D5.amber;if(U==="deploy"||U==="rocket"||U==="launch")return D5.rose;if(U==="build"||U==="compile"||U==="package")return D5.indigo;if(U==="test"||U==="check"||U==="verify")return D5.emerald;if(U==="data"||U==="database"||U==="storage")return D5.orange;return D5.blue}function Ok({widget:$}){let{title:U,subtitle:B,icon:L,steps:G}=$.props;return q0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[q0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[q0.jsx(Uk,{icon:L}),q0.jsxs("div",{className:"flex-1 min-w-0",children:[q0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:U}),B&&q0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:B})]})]}),q0.jsx("div",{className:"px-4 pb-4",children:q0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:G.map((v,F)=>{let P=F===G.length-1,T=v.status==="active",A=v.status==="completed",_=v.status==="error",k=v.status==="skipped",R=v.label,d=v.type;if(!d)if(R.startsWith("@"))d="agent";else if(/^\d+[ap]m$/i.test(R)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(R))d="time";else{let D=R.toLowerCase();d={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"}[D]}let V,o="";if(T)V="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(A)V="bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-400 dark:border-emerald-400";else if(_)V="bg-red-100 dark:bg-red-900/40 !text-red-700 dark:!text-red-300 border-red-400 dark:border-red-400";else if(k)V="bg-neutral-100 dark:bg-neutral-800 !text-neutral-400 dark:!text-neutral-500 border-neutral-300 dark:border-neutral-600",o="line-through";else V=Bk(v,d);return q0.jsxs("div",{className:"flex items-center gap-2",children:[q0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${V} ${o}`,children:[q0.jsx(Kk,{type:d,status:v.status}),R]}),!P&&q0.jsx(qk,{})]},v.id)})})})]})}function PG({widget:$,onAction:U}){return i6.jsx("div",{className:"apteva-widget",children:(()=>{switch($.type){case"card":return i6.jsx(Xk,{widget:$,onAction:U});case"list":return i6.jsx(Zk,{widget:$,onAction:U});case"button":return i6.jsx(Jk,{widget:$,onAction:U});case"button_group":return i6.jsx($k,{widget:$,onAction:U});case"table":return i6.jsx(Hk,{widget:$,onAction:U});case"form":return i6.jsx(Yk,{widget:$,onAction:U});case"image":return i6.jsx(Gk,{widget:$});case"flow":return i6.jsx(Ok,{widget:$});default:return i6.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[i6.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",$.type]}),i6.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify($,null,2)})]})}})()})}function OG({widgets:$,onAction:U,onWidgetMount:B,layout:L="stack",spacing:G="normal",columns:v=3,className:F}){ZB.useEffect(()=>{$.forEach((A)=>{B?.(A.id)})},[$,B]);let P={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${v}`,masonry:"columns-1 md:columns-2 lg:columns-3"},T={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return vG.jsx("div",{className:o1(P[L],T[G],F),children:$.map((A)=>vG.jsx(PG,{widget:A,onAction:U},A.id))})}function eq({type:$,className:U}){switch($){case"card":return m0.jsx("div",{className:o1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",U),children:m0.jsxs("div",{className:"p-4 space-y-3",children:[m0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"}),m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"}),m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-5/6"})]})});case"list":return m0.jsx("div",{className:o1("apteva-widget-skeleton animate-pulse space-y-2",U),children:[1,2,3].map((B)=>m0.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-neutral-200 dark:border-neutral-800",children:[m0.jsx("div",{className:"w-10 h-10 bg-neutral-200 dark:bg-neutral-700 rounded-full flex-shrink-0"}),m0.jsxs("div",{className:"flex-1 space-y-2",children:[m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2"}),m0.jsx("div",{className:"h-2 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"})]})]},B))});case"button_group":return m0.jsxs("div",{className:o1("apteva-widget-skeleton animate-pulse flex gap-2",U),children:[m0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),m0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),m0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"})]});case"form":return m0.jsxs("div",{className:o1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",U),children:[m0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/3"}),m0.jsxs("div",{className:"space-y-3",children:[m0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"}),m0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"})]}),m0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})]});case"chart":return m0.jsxs("div",{className:o1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",U),children:[m0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/4 mb-4"}),m0.jsxs("div",{className:"flex items-end gap-2 h-32",children:[m0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/2"}),m0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-3/4"}),m0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/3"}),m0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-full"}),m0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-2/3"})]})]});case"image":return m0.jsx("div",{className:o1("apteva-widget-skeleton animate-pulse",U),children:m0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return m0.jsx("div",{className:o1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",U),children:[1,2,3].map((B)=>m0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},B))});case"map":return m0.jsx("div",{className:o1("apteva-widget-skeleton animate-pulse",U),children:m0.jsx("div",{className:"h-48 bg-neutral-200 dark:bg-neutral-700 rounded-lg flex items-center justify-center",children:m0.jsxs("svg",{className:"w-8 h-8 text-neutral-400 dark:text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[m0.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"}),m0.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 m0.jsxs("div",{className:o1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",U),children:[m0.jsxs("div",{className:"flex bg-neutral-100 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:[m0.jsx("div",{className:"flex-1 px-4 py-3",children:m0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-16"})}),m0.jsx("div",{className:"flex-1 px-4 py-3",children:m0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-20"})}),m0.jsx("div",{className:"flex-1 px-4 py-3",children:m0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-14"})})]}),[1,2,3].map((B)=>m0.jsxs("div",{className:"flex border-b border-neutral-200 dark:border-neutral-800 last:border-b-0",children:[m0.jsx("div",{className:"flex-1 px-4 py-3",children:m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})}),m0.jsx("div",{className:"flex-1 px-4 py-3",children:m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-16"})}),m0.jsx("div",{className:"flex-1 px-4 py-3",children:m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-20"})})]},B))]});default:return m0.jsxs("div",{className:o1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",U),children:[m0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2 mb-2"}),m0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"})]})}}function Lk($){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test($)}function nb($,U=""){let B=[],L=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,G=0,v,F=0;while((v=L.exec($))!==null){if(v.index>G)B.push($.slice(G,v.index));if(v[1]!==void 0||v[2]!==void 0){let P=v[1]||"",T=v[2];B.push(N4.jsx("img",{src:T,alt:P,className:"apteva-md-img"},`${U}img${F++}`))}else if(v[3]!==void 0||v[4]!==void 0){let P=v[3],T=v[4];if(Lk(T))B.push(N4.jsx("img",{src:T,alt:P,className:"apteva-md-img"},`${U}img${F++}`));else B.push(N4.jsx("a",{href:T,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:P},`${U}a${F++}`))}else if(v[5]!==void 0)B.push(N4.jsx("strong",{children:v[6]},`${U}b${F++}`));else if(v[7]!==void 0)B.push(N4.jsx("code",{className:"apteva-md-inline-code",children:v[7]},`${U}code${F++}`));G=v.index+v[0].length}if(G<$.length)B.push($.slice(G));return B.length>0?B:[$]}function Nk($){let U=$.split(`
187
+ `),B=[],L=0,G=0;while(G<U.length){let v=U[G],F=v.match(/^##\s+(.*)$/);if(F){B.push(N4.jsx("h2",{className:"apteva-md-h2",children:nb(F[1],`${L}`)},`h2${L++}`)),G++;continue}let P=v.match(/^###\s+(.*)$/);if(P){B.push(N4.jsx("h3",{className:"apteva-md-h3",children:nb(P[1],`${L}`)},`h3${L++}`)),G++;continue}let T=v.match(/^(\s*)([-*+])\s+(.*)$/);if(T){let k=[],R=T[1].length;while(G<U.length){let d=U[G].match(/^(\s*)([-*+])\s+(.*)$/);if(d&&d[1].length===R)k.push(N4.jsx("li",{className:"apteva-md-li",children:nb(d[3],`${L}`)},`li${L++}`)),G++;else break}B.push(N4.jsx("ul",{className:"apteva-md-ul",children:k},`ul${L++}`));continue}let A=v.match(/^(\s*)(\d+)\.\s+(.*)$/);if(A){let k=[],R=A[1].length;while(G<U.length){let d=U[G].match(/^(\s*)(\d+)\.\s+(.*)$/);if(d&&d[1].length===R)k.push(N4.jsx("li",{className:"apteva-md-li",children:nb(d[3],`${L}`)},`li${L++}`)),G++;else break}B.push(N4.jsx("ol",{className:"apteva-md-ol",children:k},`ol${L++}`));continue}if(v.match(/^\|(.+)\|$/)&&G+1<U.length){if(U[G+1].match(/^\|([\s:-]+\|)+$/)){let d=v.split("|").filter((o)=>o.trim()!=="").map((o)=>o.trim());G+=2;let V=[];while(G<U.length)if(U[G].match(/^\|(.+)\|$/)){let D=U[G].split("|").filter((E)=>E.trim()!=="").map((E)=>E.trim());V.push(D),G++}else break;B.push(N4.jsx("div",{className:"apteva-md-table-wrapper",children:N4.jsxs("table",{className:"apteva-md-table",children:[N4.jsx("thead",{children:N4.jsx("tr",{children:d.map((o,D)=>N4.jsx("th",{className:"apteva-md-th",children:nb(o,`th${L}${D}`)},`th${D}`))})}),N4.jsx("tbody",{children:V.map((o,D)=>N4.jsx("tr",{children:o.map((E,N0)=>N4.jsx("td",{className:"apteva-md-td",children:nb(E,`td${L}${D}${N0}`)},`td${N0}`))},`tr${D}`))})]})},`table-wrapper${L++}`));continue}}if(v==="")B.push(N4.jsx("br",{},`br${L++}`));else B.push(N4.jsxs("span",{children:[nb(v,`${L}`),G<U.length-1?`
188
+ `:""]},`p${L++}`));G++}return B}function f7({content:$,className:U=""}){return N4.jsx("div",{className:`apteva-md ${U}`,children:Nk($)})}function Wk({name:$,status:U,isReceiving:B=!1,inputLength:L=0,streamOutput:G}){if(U==="preparing")return I1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-preparing",children:[I1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[I1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),I1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),I1.jsxs("span",{className:"apteva-tool-label",children:[I1.jsx("strong",{children:$}),I1.jsx("span",{className:"apteva-tool-status-text",children:" preparing..."})]})]});if(U==="running")return I1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-running",children:[I1.jsxs("svg",{className:"apteva-tool-icon apteva-tool-icon-spin",fill:"none",viewBox:"0 0 24 24",children:[I1.jsx("circle",{className:"apteva-tool-spinner-track",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),I1.jsx("path",{className:"apteva-tool-spinner-fill",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),I1.jsxs("span",{className:"apteva-tool-label",children:[I1.jsx("strong",{children:$}),G?I1.jsx("span",{className:"apteva-tool-stream-separator",children:" · "}):null,G?I1.jsx("span",{className:"apteva-tool-stream-output",children:G}):I1.jsxs(I1.Fragment,{children:[I1.jsx("span",{className:"apteva-tool-status-text",children:" running"}),I1.jsxs("span",{className:"apteva-tool-dots",children:[I1.jsx("span",{children:"."}),I1.jsx("span",{children:"."}),I1.jsx("span",{children:"."})]})]})]})]});if(U==="completed")return I1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-completed",children:[I1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:I1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),I1.jsx("span",{className:"apteva-tool-label",children:$})]});return I1.jsxs("div",{className:"apteva-tool-card apteva-tool-card-error",children:[I1.jsx("svg",{className:"apteva-tool-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:I1.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),I1.jsxs("span",{className:"apteva-tool-label",children:[$," failed"]})]})}function _k({message:$,onAction:U,enableWidgets:B,onWidgetRender:L}){let G=$.role==="user",v=$.metadata?.content_segments,F=$.metadata?.isStreaming===!0,P=$.content||v&&v.length>0,T=tb.useRef(new Set),A=tb.useMemo(()=>{if(!B||G||!$.content)return[];return cZ($.content).segments.filter((Z0)=>Z0.type==="widget"&&!!Z0.widget).map((Z0)=>Z0.widget)},[B,G,$.content]);tb.useEffect(()=>{if(L&&$.widgets){for(let p of $.widgets)if(!T.current.has(p.id))T.current.add(p.id),L(p)}},[$.widgets,L]),tb.useEffect(()=>{if(L&&A.length>0){for(let p of A)if(!T.current.has(p.id))T.current.add(p.id),L(p)}},[A,L]);let _=(p)=>{if(!B||G)return k0.jsx(f7,{content:p});let s=cZ(p).segments.filter((l)=>l.type==="text"&&l.content).map((l)=>l.content).join("");if(!s.trim())return null;return k0.jsx(f7,{content:s})},k=()=>{if(!B||G||!$.content)return null;let p=cZ($.content),Z0=[],s="";if(p.segments.forEach((l,n)=>{if(l.type==="text"&&l.content)s+=l.content;else if(l.type==="widget"&&l.widget){if(s.trim())Z0.push(k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:s})})},`text-${n}`)),s="";Z0.push(k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(PG,{widget:l.widget,onAction:U})},`widget-${n}`))}else if(l.type==="widget_pending"&&l.pendingType){if(s.trim())Z0.push(k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:s})})},`text-${n}`)),s="";Z0.push(k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(eq,{type:l.pendingType})},`pending-${n}`))}}),s.trim())Z0.push(k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:s})})},"text-final"));return Z0.length>0?Z0:null},R=$.metadata?.attachments||[],d=R.length>0,V=()=>{if(!d)return null;return k0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:R.map((p,Z0)=>{let s=p.type.startsWith("image/"),l=p.type==="application/pdf";if(s&&p.preview)return k0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:k0.jsx("img",{src:p.preview,alt:p.name,className:"max-w-[150px] max-h-[150px] object-cover"})},Z0);return k0.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:[k0.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?k0.jsx("svg",{className:"w-5 h-5",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"})}):k0.jsx("svg",{className:"w-5 h-5",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"})})}),k0.jsxs("div",{className:"flex flex-col min-w-0",children:[k0.jsx("span",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate max-w-[180px]",children:p.name}),k0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[l?"PDF":"Document"," · ",aZ(p.size)]})]})]},Z0)})})},o=()=>{if(G)return k0.jsx("div",{className:"apteva-message-text",children:$.content});if(F&&!P)return k0.jsxs("div",{className:"apteva-typing-indicator",children:[k0.jsx("span",{}),k0.jsx("span",{}),k0.jsx("span",{})]});if(v&&v.length>0)return null;return _($.content)},D=(p,Z0)=>{if(!B)return k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:p})})},Z0);let s=cZ(p),l=[],n="";if(s.segments.forEach((L0,c)=>{if(L0.type==="text"&&L0.content)n+=L0.content;else if(L0.type==="widget"&&L0.widget){if(n.trim())l.push(k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:n})})},`${Z0}-text-${c}`)),n="";l.push(k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(PG,{widget:L0.widget,onAction:U})},`${Z0}-widget-${c}`))}else if(L0.type==="widget_pending"&&L0.pendingType){if(n.trim())l.push(k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:n})})},`${Z0}-text-${c}`)),n="";l.push(k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(eq,{type:L0.pendingType})},`${Z0}-pending-${c}`))}}),n.trim())l.push(k0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:k0.jsx("div",{className:"apteva-message-content-assistant",children:k0.jsx(f7,{content:n})})},`${Z0}-text-final`));return l},E=()=>{if(!v||v.length===0)return null;let p=[];return v.forEach((Z0,s)=>{if(Z0.type==="text"&&Z0.content){let l=D(Z0.content,`seg-${s}`);if(Array.isArray(l))p.push(...l);else p.push(l)}else if(Z0.type==="tool")p.push(k0.jsx("div",{className:"apteva-tool-call-standalone",children:k0.jsx(Wk,{name:Z0.name,status:Z0.status||(Z0.result!==void 0?"completed":"running"),isReceiving:Z0.isReceiving,inputLength:Z0.inputLength,streamOutput:Z0.streamOutput})},Z0.id))}),p};if(!G&&(v&&v.length>0))return k0.jsxs("div",{className:"apteva-message-segmented",children:[E(),$.widgets&&$.widgets.length>0&&k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(OG,{widgets:$.widgets,onAction:U,layout:"stack"})}),k0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let N0=k();if(!G&&B&&N0)return k0.jsxs("div",{className:"apteva-message-segmented",children:[N0,$.widgets&&$.widgets.length>0&&k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(OG,{widgets:$.widgets,onAction:U,layout:"stack"})}),k0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if(G&&d)return k0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[V(),$.content&&k0.jsx("div",{className:"apteva-message-bubble apteva-message-user",children:k0.jsx("div",{className:"apteva-message-content-user",children:k0.jsx("div",{className:"apteva-message-text",children:$.content})})}),k0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return k0.jsxs("div",{className:o1("apteva-message-bubble",G?"apteva-message-user":"apteva-message-assistant"),children:[k0.jsx("div",{className:G?"apteva-message-content-user":"apteva-message-content-assistant",children:o()}),$.widgets&&$.widgets.length>0&&k0.jsx("div",{className:"apteva-widget-standalone",children:k0.jsx(OG,{widgets:$.widgets,onAction:U,layout:"stack"})}),k0.jsx("div",{className:o1("apteva-message-timestamp",G?"apteva-message-timestamp-user":"apteva-message-timestamp-assistant"),suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})}var bB=()=>t0.jsx("svg",{className:"w-12 h-12 sm:w-16 sm:h-16",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t0.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"})}),LG=()=>t0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})});function Pk({title:$,subtitle:U,icon:B,prompts:L,variant:G="centered",chatVariant:v="default",onPromptClick:F}){let P=(L||[]).map((_)=>typeof _==="string"?{text:_}:_),T=P.length>0,A=$||U||B;if(!A&&!T)return t0.jsx("div",{className:"flex items-center justify-center h-full !text-neutral-500 dark:!text-neutral-400",children:t0.jsxs("div",{className:"text-center space-y-2",children:[t0.jsx("div",{className:"flex justify-center",children:t0.jsx(bB,{})}),t0.jsx("p",{className:"text-sm",children:"No messages yet. Start a conversation!"})]})});if(G==="minimal")return t0.jsxs("div",{className:"flex flex-col h-full px-4 py-4",children:[A&&t0.jsxs("div",{className:"mb-4",children:[$&&t0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:$}),U&&t0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:U})]}),T&&t0.jsx("div",{className:"flex-1 space-y-2",children:P.map((_,k)=>t0.jsx("button",{onClick:()=>F(_.text),className:o1("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:t0.jsxs("div",{className:"flex items-center gap-3",children:[t0.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:_.icon||t0.jsx(LG,{})}),t0.jsxs("div",{className:"flex-1 min-w-0",children:[t0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white truncate",children:_.text}),_.description&&t0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:_.description})]})]})},k))})]});return t0.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-4 py-6 sm:py-8",children:[t0.jsxs("div",{className:"text-center mb-6 sm:mb-8 max-w-md",children:[t0.jsx("div",{className:"mb-4 !text-neutral-400 dark:!text-neutral-500 flex justify-center",children:B||t0.jsx(bB,{})}),$&&t0.jsx("h1",{className:"text-xl sm:text-2xl font-semibold !text-neutral-900 dark:!text-white mb-2",children:$}),U&&t0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:U})]}),T&&t0.jsxs("div",{className:"w-full max-w-2xl",children:[t0.jsx("div",{className:"sm:hidden space-y-2",children:P.map((_,k)=>t0.jsx("button",{onClick:()=>F(_.text),className:o1("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:t0.jsxs("div",{className:"flex items-center gap-3",children:[t0.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:_.icon||t0.jsx(LG,{})}),t0.jsxs("div",{className:"flex-1 min-w-0",children:[t0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white",children:_.text}),_.description&&t0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:_.description})]}),t0.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:t0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},k))}),t0.jsx("div",{className:"hidden sm:grid sm:grid-cols-2 gap-3",children:P.map((_,k)=>t0.jsx("button",{onClick:()=>F(_.text),className:o1("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:t0.jsxs("div",{className:"flex items-start gap-3",children:[t0.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:_.icon||t0.jsx(LG,{})}),t0.jsxs("div",{className:"flex-1 min-w-0",children:[t0.jsx("p",{className:"text-sm font-medium !text-neutral-900 dark:!text-white leading-snug",children:_.text}),_.description&&t0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:_.description})]})]})},k))})]})]})}function vk({messages:$,onAction:U,welcomeTitle:B,welcomeSubtitle:L,welcomeIcon:G,suggestedPrompts:v,welcomeVariant:F,chatVariant:P,onPromptClick:T,enableWidgets:A,onWidgetRender:_}){let k=H3.useRef(null),R=H3.useRef(!0),d=H3.useRef(0),V=()=>{if(k.current){let{scrollTop:o,scrollHeight:D,clientHeight:E}=k.current;R.current=D-o-E<100}};return H3.useEffect(()=>{if(k.current&&R.current){let o=k.current.scrollHeight;if(o!==d.current)k.current.scrollTop=o,d.current=o}},[$]),YQ.jsx("div",{ref:k,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:V,children:$.length===0?YQ.jsx(Pk,{title:B,subtitle:L,icon:G,prompts:v,variant:F,chatVariant:P,onPromptClick:T||(()=>{})}):$.map((o)=>YQ.jsx("div",{className:o.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:YQ.jsx(_k,{message:o,onAction:U,enableWidgets:A,onWidgetRender:_})},o.id))})}function Fk({onSendMessage:$,placeholder:U="Type a message...",disabled:B=!1,isLoading:L=!1,onStop:G,onFileUpload:v,onSwitchMode:F}){let[P,T]=b7.useState(""),[A,_]=b7.useState(!1),[k,R]=b7.useState([]),[d,V]=b7.useState(null),[o,D]=b7.useState(!1),E=b7.useRef(null),N0=b7.useRef(null),p=b7.useRef(null),Z0=(Y0)=>{if(Y0.key==="Enter"&&!Y0.shiftKey)Y0.preventDefault(),s()},s=()=>{let Y0=P.trim(),R0=k.length>0;if((Y0||R0)&&!B){let b0=k.map((v0)=>v0.file);if($(P.trim(),b0.length>0?b0:void 0),T(""),R([]),V(null),D(!1),E.current)E.current.style.height="auto"}},l=(Y0)=>{T(Y0.target.value),Y0.target.style.height="auto";let R0=Y0.target.scrollHeight;Y0.target.style.height=`${R0}px`;let b0=Y0.target.value.includes(`
189
+ `),d0=R0>36;if(!o&&(b0||d0))D(!0);else if(o&&!b0&&!d0&&Y0.target.value.length<20)D(!1)},n=(Y0)=>{if(Y0.target.files&&Y0.target.files.length>0){let R0=Array.from(Y0.target.files),b0=[],v0=[];if(R0.forEach((d0)=>{let h0=zB(d0);if(h0.valid){let V0={file:d0};if(d0.type.startsWith("image/"))V0.preview=URL.createObjectURL(d0);b0.push(V0)}else v0.push(h0.error||"Invalid file")}),b0.length>0)R((d0)=>[...d0,...b0]);if(v0.length>0)V(v0.join(", ")),setTimeout(()=>V(null),5000);v?.(Y0.target.files),_(!1),Y0.target.value=""}},L0=(Y0)=>{R((R0)=>{let b0=R0[Y0];if(b0.preview)URL.revokeObjectURL(b0.preview);return R0.filter((v0,d0)=>d0!==Y0)})},c=(Y0)=>{if(Y0.startsWith("image/"))return o0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o0.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(Y0==="application/pdf")return o0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o0.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 o0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o0.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 o0.jsxs("div",{className:"px-4 py-3 relative",children:[d&&o0.jsx("div",{className:"absolute bottom-full left-4 right-4 mb-2 p-3 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg z-20",children:o0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-sm",children:[o0.jsx("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o0.jsx("span",{children:d})]})}),k.length>0&&o0.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:k.map((Y0,R0)=>o0.jsxs("div",{className:"relative group flex items-center gap-2 px-3 py-2 bg-neutral-100 dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:[Y0.preview?o0.jsx("img",{src:Y0.preview,alt:Y0.file.name,className:"w-8 h-8 object-cover rounded"}):o0.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-neutral-200 dark:bg-neutral-700 rounded !text-neutral-500 dark:!text-neutral-400",children:c(Y0.file.type)}),o0.jsxs("div",{className:"flex flex-col min-w-0",children:[o0.jsx("span",{className:"text-xs font-medium !text-neutral-700 dark:!text-neutral-300 truncate max-w-[120px]",children:Y0.file.name}),o0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:aZ(Y0.file.size)})]}),o0.jsx("button",{onClick:()=>L0(R0),className:"absolute -top-1.5 -right-1.5 w-5 h-5 bg-neutral-500 hover:bg-red-500 text-white rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",title:"Remove file",children:o0.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},R0))}),o0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:o?'"textarea textarea textarea" "plus . send"':'"plus textarea send"',alignItems:"end"},children:[o0.jsxs("div",{className:"relative flex-shrink-0 self-end",style:{gridArea:"plus"},children:[o0.jsx("button",{ref:p,onClick:()=>_(!A),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:o0.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),A&&o0.jsxs(o0.Fragment,{children:[o0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>_(!1)}),o0.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:p.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(p.current?.getBoundingClientRect().top??0)+8},children:[o0.jsxs("button",{onClick:()=>{N0.current?.click(),_(!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:[o0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o0.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)"})}),o0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),F&&o0.jsxs("button",{onClick:()=>{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:[o0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),o0.jsx("span",{className:"!text-sm font-medium",children:"Switch to command mode"})]})]})]})]}),o0.jsx("textarea",{ref:E,value:P,onChange:l,onKeyDown:Z0,placeholder:U,disabled:B,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}),o0.jsx("div",{className:"self-end",style:{gridArea:"send"},children:L&&G?o0.jsx("button",{onClick:G,className:"apteva-composer-stop-btn",title:"Stop generation",children:o0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}):o0.jsx("button",{onClick:s,disabled:!P.trim()&&k.length===0||B,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:o0.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o0.jsx("path",{d:"M8 3L8 13M8 3L4 7M8 3L12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),o0.jsx("input",{ref:N0,type:"file",multiple:!0,onChange:n,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function Rk({onExecute:$,state:U,response:B,error:L,plan:G,streamedContent:v,toolName:F,onApprove:P,onReject:T,onReset:A,onStop:_,onExpand:k,placeholder:R="Enter your command...",disabled:d=!1}){let[V,o]=T7.useState(""),[D,E]=T7.useState([]),[N0,p]=T7.useState(null),[Z0,s]=T7.useState(!1),l=T7.useRef(null),n=T7.useRef(null),L0=T7.useRef(null),c=()=>{let i0=V.trim(),H1=D.length>0;if((i0||H1)&&!d&&U==="idle"){let C1=D.map((W4)=>W4.file);$(V.trim(),C1.length>0?C1:void 0),o(""),E([])}},Y0=(i0)=>{if(i0.key==="Enter"&&!i0.shiftKey)i0.preventDefault(),c()},R0=()=>{A?.(),l.current?.focus()},b0=(i0)=>{if(o(i0),l.current)l.current.style.height="auto",l.current.style.height=`${Math.min(l.current.scrollHeight,120)}px`},v0=(i0)=>{if(i0.target.files&&i0.target.files.length>0){let H1=Array.from(i0.target.files),C1=[],W4=[];if(H1.forEach((H4)=>{let Q4=zB(H4);if(Q4.valid){let _4={file:H4};if(H4.type.startsWith("image/"))_4.preview=URL.createObjectURL(H4);C1.push(_4)}else W4.push(Q4.error||"Invalid file")}),C1.length>0)E((H4)=>[...H4,...C1]);if(W4.length>0)p(W4.join(", ")),setTimeout(()=>p(null),5000);s(!1),i0.target.value=""}},d0=(i0)=>{E((H1)=>{let C1=H1[i0];if(C1.preview)URL.revokeObjectURL(C1.preview);return H1.filter((W4,H4)=>H4!==i0)})},h0=(i0)=>{if(i0.startsWith("image/"))return T0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.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(i0==="application/pdf")return T0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.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 T0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.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"})})},V0=()=>{if(U==="loading"){if(F)return{text:F,isToolCall:!0};if(v)return{text:v,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(U==="success"&&B)return{text:B,isToolCall:!1};if(U==="error"&&L)return{text:L,isToolCall:!1};if(U==="plan-pending"&&G)return{text:G,isToolCall:!1};return{text:"",isToolCall:!1}},P1=U!=="idle",{text:$1,isToolCall:v1}=V0();return T0.jsxs("div",{className:"w-full relative",children:[N0&&T0.jsx("div",{className:"absolute -top-12 left-0 right-0 mx-3 p-2 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg z-30",children:T0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-xs",children:[T0.jsx("svg",{className:"w-3 h-3 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),T0.jsx("span",{children:N0})]})}),T0.jsxs("div",{className:o1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",U==="idle"&&"border-neutral-200 dark:border-neutral-700",U==="loading"&&"border-blue-400 dark:border-blue-500",U==="plan-pending"&&"border-amber-400 dark:border-amber-500",U==="success"&&"border-green-400 dark:border-green-500",U==="error"&&"border-red-400 dark:border-red-500"),children:[T0.jsxs("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:[U==="idle"&&T0.jsxs("div",{className:"relative",children:[T0.jsx("button",{ref:L0,onClick:()=>s(!Z0),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:T0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),Z0&&T0.jsxs(T0.Fragment,{children:[T0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>s(!1)}),T0.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:L0.current?.getBoundingClientRect().left??0,top:(L0.current?.getBoundingClientRect().bottom??0)+8},children:[T0.jsxs("button",{onClick:()=>{n.current?.click(),s(!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:[T0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T0.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)"})}),T0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),k&&T0.jsxs("button",{onClick:()=>{k(),s(!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:[T0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.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"})}),T0.jsx("span",{className:"!text-sm font-medium",children:"Expand to chat"})]})]})]})]}),U==="loading"&&!F&&T0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),U==="loading"&&F&&T0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),D.length>0&&U==="idle"&&T0.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:D.map((i0,H1)=>T0.jsxs("div",{className:"relative group flex items-center justify-center w-6 h-6 bg-neutral-100 dark:bg-neutral-800 rounded overflow-hidden",title:i0.file.name,children:[i0.preview?T0.jsx("img",{src:i0.preview,alt:i0.file.name,className:"w-6 h-6 object-cover"}):T0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:h0(i0.file.type)}),T0.jsx("button",{onClick:()=>d0(H1),className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center transition-opacity",title:"Remove",children:T0.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},H1))}),U==="idle"?T0.jsx("textarea",{ref:l,value:V,onChange:(i0)=>b0(i0.target.value),onKeyDown:Y0,placeholder:D.length>0?"Add a message...":R,disabled:d,rows:1,className:o1("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"}}):T0.jsx("div",{className:o1("flex-1 text-sm py-1 truncate flex items-center gap-2",U==="loading"&&!v1&&"!text-neutral-600 dark:!text-neutral-400",U==="loading"&&v1&&"!text-blue-600 dark:!text-blue-400",U==="success"&&"!text-neutral-900 dark:!text-neutral-100",U==="error"&&"!text-red-600 dark:!text-red-400",U==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:v1?T0.jsxs(T0.Fragment,{children:[T0.jsx("span",{className:"font-mono",children:$1}),T0.jsx("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Running..."})]}):$1}),T0.jsx("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:U==="plan-pending"?T0.jsxs("div",{className:"flex items-center gap-1",children:[T0.jsx("button",{onClick:P,className:"px-2 py-1 bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors text-xs font-medium",children:"Approve"}),T0.jsx("button",{onClick:T,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"})]}):T0.jsxs(T0.Fragment,{children:[U==="loading"&&_&&T0.jsx("button",{onClick:_,className:"apteva-composer-stop-btn",title:"Stop generation",children:T0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}),(U==="success"||U==="error")&&T0.jsx("button",{onClick:R0,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:T0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),U==="idle"&&T0.jsx("button",{onClick:c,disabled:!V.trim()&&D.length===0||d,className:o1("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",V.trim()||D.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:T0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M12 5l7 7-7 7"})})})]})})]}),T0.jsx("input",{ref:n,type:"file",multiple:!0,onChange:v0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var Mk="http://91.99.200.48:3000/agents",kk="agt_894abd5966bc9f1e9f8f17f2a6f6b5e0",wk=class{constructor(){cM(this,"config"),this.config={apiUrl:Mk,apiKey:kk}}configure($){if($.apiUrl)this.config.apiUrl=$.apiUrl;if($.apiKey)this.config.apiKey=$.apiKey}getConfig(){return{...this.config}}async chat($){try{console.log("[AptevaClient] Chat request:",{agent_id:$.agent_id,message:typeof $.message==="string"?$.message.substring(0,100)+"...":"[multi-part message]",system:$.system,stream:$.stream});let U=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify($)});if(!U.ok){let L=await U.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${U.status}`)}let B=await U.json();return{message:B.response||B.message||"",thread_id:B.thread_id,widgets:B.widgets}}catch(U){throw console.error("Chat API error:",U),U}}async chatStream($,U,B,L){try{console.log("[AptevaClient] Chat stream request:",{agent_id:$.agent_id,message:typeof $.message==="string"?$.message.substring(0,100)+"...":"[multi-part message]",system:$.system,stream:$.stream});let G=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({...$,stream:!0})});if(!G.ok){let A=await G.json().catch(()=>({error:"Request failed"}));throw Error(A.error||`Request failed with status ${G.status}`)}let v=G.body?.getReader();if(!v)throw Error("Response body is not readable");let F=new TextDecoder,P="",T="";while(!0){let{done:A,value:_}=await v.read();if(A)break;P+=F.decode(_,{stream:!0});let k=P.split(`
190
+ `);P=k.pop()||"";for(let R of k){if(!R.trim()||R.startsWith(":"))continue;if(R.startsWith("data: ")){let d=R.slice(6);if(d==="[DONE]"){B?.(T);return}try{let V=JSON.parse(d);if(V.thread_id)T=V.thread_id;U(V)}catch(V){console.warn("[AptevaClient] Failed to parse SSE data:",d)}}}}B?.(T)}catch(G){let v=G instanceof Error?G:Error("Unknown error");throw L?.(v),v}}async createThread($,U){let B=await fetch(`${this.config.apiUrl}/agents/${$}/threads`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify({metadata:U})});if(!B.ok){let G=await B.json().catch(()=>({error:"Request failed"}));throw Error(G.error||`Request failed with status ${B.status}`)}return(await B.json()).thread_id}async getThreadMessages($){let U=await fetch(`${this.config.apiUrl}/threads/${$}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!U.ok){let L=await U.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${U.status}`)}return(await U.json()).messages}async cancelRequest($,U){try{let B=await fetch(`${this.config.apiUrl}/agents/${$}/requests/${U}/cancel`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey}});if(!B.ok){let L=await B.json().catch(()=>({error:"Cancel request failed"}));throw Error(L.error||`Cancel request failed with status ${B.status}`)}}catch(B){throw console.error("[AptevaClient] Cancel request error:",B),B}}},$3=new wk,HB=h1.forwardRef(function({agentId:U,threadId:B,initialMessages:L=[],context:G,apiUrl:v,apiKey:F,useMock:P=!1,initialMode:T="chat",showModeToggle:A=!1,onModeChange:_,commandVariant:k="default",planMode:R=!1,onPlanModeChange:d,enableStreaming:V=!0,showProgress:o=!0,loadingText:D="Processing...",welcomeTitle:E,welcomeSubtitle:N0,welcomeIcon:p,suggestedPrompts:Z0,welcomeVariant:s,onThreadChange:l,onMessageSent:n,onAction:L0,onFileUpload:c,onComplete:Y0,onError:R0,onToolCall:b0,onToolResult:v0,variant:d0="default",placeholder:h0,showHeader:V0=!0,headerTitle:P1="Chat",enableWidgets:$1=!1,availableWidgets:v1,compactWidgetContext:i0=!1,onWidgetRender:H1,className:C1},W4){let[H4,Q4]=h1.useState(L),[_4,a1]=h1.useState(!1),[i1,Y4]=h1.useState(B||null),[E4,X4]=h1.useState(T),[u4,m4]=h1.useState(null),[x1,s0]=h1.useState("idle"),[h4,I4]=h1.useState(null),[G4,O4]=h1.useState(null),[L5,r1]=h1.useState(0),[X6,n1]=h1.useState(""),[Z6,Z4]=h1.useState(""),[K4,p4]=h1.useState(null),[_6,F4]=h1.useState(null),[C4,U0]=h1.useState(""),[u0,c0]=h1.useState(""),[N1,S1]=h1.useState(R),[L4,l1]=h1.useState(!1),f4=h1.useRef(null),z1=h1.useRef(null);h1.useImperativeHandle(W4,()=>({sendMessage:async(U1)=>{if(z1.current)await z1.current(U1)},sendSystemMessage:async(U1)=>{if(z1.current)await z1.current(U1,void 0,!0)},getMessages:()=>H4,clearMessages:()=>Q4([])}),[H4]);let e0=h1.useMemo(()=>{if(!$1)return G;let U1=i0?Qk(v1):zk(v1);return G?`${G}
191
+ ${U1}`:U1},[G,$1,v1,i0]);h1.useEffect(()=>{if(v||F)$3.configure({...v&&{apiUrl:v},...F&&{apiKey:F}})},[v,F]),h1.useEffect(()=>{if(B)l?.(B)},[B,l]),h1.useEffect(()=>{S1(R)},[R]),h1.useEffect(()=>{let U1=(V1)=>{let j1=V1.target;if(L4&&!j1.closest(".settings-menu-container"))l1(!1)};return document.addEventListener("mousedown",U1),()=>document.removeEventListener("mousedown",U1)},[L4]);let A6=(U1)=>{if(X4(U1),_?.(U1),U1==="command")s0("idle"),I4(null),O4(null)},r4=E4==="chat"?"Type a message...":"Enter your command...",I6=async(U1,V1,j1)=>{let R1=V1&&V1.length>0,M=R1?V1.map((x)=>({name:x.name,type:x.type,size:x.size,preview:x.type.startsWith("image/")?URL.createObjectURL(x):void 0})):[];if(!j1){let x={id:`msg-${Date.now()}`,role:"user",content:U1,timestamp:new Date,metadata:R1?{attachments:M}:void 0};Q4((Q0)=>[...Q0,x]),n?.(x)}a1(!0);try{let x=await tq(U1,V1);if(P){let Q0=await aM(1000);Q4((W)=>[...W,Q0])}else{let Q0=[],W="",h=[],t=i1,H0={},B0={},C0=`msg-${Date.now()}`,w0=()=>{let e=[...Q0];if(W){let K0=e[e.length-1];if(K0&&K0.type==="text")K0.content=W;else e.push({type:"text",content:W})}Q4((K0)=>{let D0=K0[K0.length-1];if(D0&&D0.role==="assistant")return[...K0.slice(0,-1),{...D0,content:W,widgets:h.length>0?h:void 0,metadata:{...D0.metadata,content_segments:e,isStreaming:!0}}];else return[...K0,{id:C0,role:"assistant",content:W,widgets:h.length>0?h:void 0,timestamp:new Date,metadata:{content_segments:e,isStreaming:!0}}]})};await $3.chatStream({agent_id:U,message:x,stream:!0,...i1&&{thread_id:i1},...e0&&{system:e0}},(e)=>{switch(e.type){case"thread_id":if(e.thread_id){if(t=e.thread_id,!i1)Y4(e.thread_id),l?.(e.thread_id)}break;case"request_id":if(e.request_id)F4(e.request_id);break;case"content":case"token":if(e.content)W+=e.content,w0();break;case"tool_call":if(e.tool_id&&e.tool_name){let K0=e.tool_display_name||e.tool_name;if(W)Q0.push({type:"text",content:W}),W="";Q0.push({type:"tool",id:e.tool_id,name:K0,status:"preparing"}),H0[e.tool_id]="",m4(K0),b0?.(e.tool_name,e.tool_id),w0()}break;case"tool_input_delta":if(e.tool_id&&e.content){let K0=e.tool_id;if(H0[K0]===void 0)H0[K0]="";H0[K0]+=e.content;let D0=Q0.find((q1)=>q1.type==="tool"&&q1.id===K0);if(D0){if(D0.isReceiving=!0,D0.inputLength=H0[K0].length,w0(),B0[K0])clearTimeout(B0[K0]);B0[K0]=setTimeout(()=>{if(D0.status==="preparing")D0.isReceiving=!1,w0()},150)}}break;case"tool_use":if(e.tool_id){let K0=Q0.find((D0)=>D0.type==="tool"&&D0.id===e.tool_id);if(K0&&K0.status==="preparing")K0.status="running",K0.isReceiving=!1,w0()}break;case"tool_stream":if(e.tool_id){let K0=Q0.find((D0)=>D0.type==="tool"&&D0.id===e.tool_id);if(K0){if(e.event==="chunk"&&e.content){if(K0.pendingReset)K0.streamOutput="",K0.pendingReset=!1;K0.streamOutput=(K0.streamOutput||"")+e.content,w0()}else if(e.event==="log"||e.event==="progress")K0.pendingReset=!0}}break;case"tool_result":if(e.tool_id){let K0=Q0.find((D0)=>D0.type==="tool"&&D0.id===e.tool_id);if(K0)K0.result=e.content,K0.status="completed",K0.isReceiving=!1,v0?.(K0.name,e.content);m4(null),w0()}break;case"widget":if(e.widget)h.push(e.widget),w0();break;case"error":throw Error(e.message||"Stream error")}},(e)=>{if(W){let K0=Q0[Q0.length-1];if(K0&&K0.type==="text")K0.content=W;else Q0.push({type:"text",content:W})}if(Q4((K0)=>{let D0=K0[K0.length-1];if(D0&&D0.role==="assistant")return[...K0.slice(0,-1),{...D0,content:W||"Response received",widgets:h.length>0?h:void 0,metadata:{thread_id:e,content_segments:Q0,isStreaming:!1}}];return K0}),e&&e!==i1)Y4(e),l?.(e);a1(!1),F4(null),m4(null)},(e)=>{let K0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${e.message}`,timestamp:new Date,metadata:{error:!0}};Q4((D0)=>{let q1=D0[D0.length-1];if(q1&&q1.id.includes("streaming"))return[...D0.slice(0,-1),K0];return[...D0,K0]}),a1(!1),F4(null),m4(null),R0?.(e)})}}catch(x){let Q0={id:`msg-${Date.now()}-error`,role:"assistant",content:x instanceof Error?`Error: ${x.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};Q4((W)=>[...W,Q0]),R0?.(x instanceof Error?x:Error("Unknown error"))}finally{a1(!1)}};z1.current=I6;let m5=async(U1,V1)=>{let j1=U1||X6;if(!j1.trim()&&(!V1||V1.length===0)){O4(Error("Please enter a command")),s0("error");return}if(N1&&x1!=="plan-pending"){if(s0("loading"),O4(null),n1(""),P)setTimeout(()=>{let R1=`1. Analyze the request: "${j1}"
192
+ 2. Process the data
193
+ 3. Generate response
194
+ 4. Return results`;U0(R1),c0(j1),s0("plan-pending")},800);else try{let M=e0?`${e0}
195
+
196
+ 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.",x=await $3.chat({agent_id:U,message:j1,stream:!1,system:M});U0(x.message),c0(j1),s0("plan-pending")}catch(R1){let M=R1 instanceof Error?R1:Error("Failed to generate plan");O4(M),s0("error"),R0?.(M)}return}s0("loading"),O4(null),r1(0),Z4(""),n1("");try{if(P)if(V){let R1="";xM(j1,(M)=>{if(M.type==="token"&&M.content){R1+=M.content,Z4(R1);let x=Math.min(Math.round(R1.length/10),90);r1(x)}},(M)=>{let x={success:!0,data:{summary:R1,thread_id:M},message:R1||"Command executed successfully"};I4(x),s0("success"),r1(100),Y0?.(x)},(M)=>{O4(M),s0("error"),R0?.(M)})}else{await new Promise((M)=>setTimeout(M,1500));let R1={success:!0,data:{summary:`Executed: ${j1}`},message:"Command executed successfully"};I4(R1),s0("success"),r1(100),Y0?.(R1)}else{let M=e0?`${e0}
197
+
198
+ 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.`,x=V1&&V1.length>0?await tq(j1,V1):j1;if(V){let Q0="",W="";await $3.chatStream({agent_id:U,message:x,stream:!0,...i1&&{thread_id:i1},system:M},(h)=>{if((h.type==="token"||h.type==="content")&&h.content){Q0+=h.content,Z4(Q0),p4(null);let t=Math.min(Math.round(Q0.length/10),90);r1(t)}else if(h.type==="tool_call"&&h.tool_name){let t=h.tool_display_name||h.tool_name;W=h.tool_name,p4(t),b0?.(h.tool_name,h.tool_id||""),Q0="",Z4("")}else if(h.type==="tool_result")v0?.(W,h.content),p4(null);else if(h.type==="thread_id"&&h.thread_id){if(!i1)Y4(h.thread_id),l?.(h.thread_id)}else if(h.type==="request_id"&&h.request_id)F4(h.request_id)},(h)=>{let t={success:!0,data:{summary:Q0,thread_id:h},message:Q0||"Command executed successfully"};I4(t),s0("success"),r1(100),F4(null),Y0?.(t)},(h)=>{O4(h),s0("error"),F4(null),R0?.(h)})}else{let Q0=await $3.chat({agent_id:U,message:x,stream:!1,...i1&&{thread_id:i1},system:M}),W={success:!0,data:{summary:Q0.message,thread_id:Q0.thread_id},widgets:Q0.widgets,message:Q0.message};I4(W),s0("success"),r1(100),Y0?.(W)}}}catch(R1){let M=R1 instanceof Error?R1:Error("Unknown error");O4(M),s0("error"),R0?.(M)}},N5=()=>{s0("idle"),I4(null),O4(null),r1(0),n1(""),U0(""),c0(""),Z4(""),p4(null)},g5=()=>{let U1=C4;U0(""),c0("");let V1=`Execute this plan now:
199
+
200
+ ${U1}`;m5(V1)},X5=()=>{n1(u0),U0(""),c0(""),s0("idle")},P6=async()=>{if(_6&&U)try{await $3.cancelRequest(U,_6)}catch(U1){console.error("Failed to cancel request:",U1)}if(a1(!1),x1==="loading")s0("idle"),Z4(""),p4(null),r1(0);F4(null)},W5=k==="compact";return u6.jsxs("div",{className:o1("apteva-chat flex flex-col h-full",d0!=="default"&&`apteva-chat-${d0}`,C1),children:[V0&&E4==="chat"&&u6.jsx("div",{className:"apteva-chat-header px-4 py-3 flex items-center justify-between",children:u6.jsxs("div",{children:[u6.jsx("div",{className:"apteva-chat-title",children:P1}),u6.jsx("div",{className:o1("apteva-chat-status",_4?u4?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:_4?u4?`Using ${u4}...`:"Thinking...":"Ready"})]})}),E4==="chat"&&u6.jsxs(u6.Fragment,{children:[u6.jsx(vk,{messages:H4,onAction:L0,welcomeTitle:E,welcomeSubtitle:N0,welcomeIcon:p,suggestedPrompts:Z0,welcomeVariant:s,chatVariant:d0,onPromptClick:(U1)=>I6(U1),enableWidgets:$1,onWidgetRender:H1}),u6.jsx(Fk,{onSendMessage:I6,placeholder:h0||r4,disabled:_4,isLoading:_4,onStop:P6,onFileUpload:c,onSwitchMode:A?()=>A6("command"):void 0})]}),E4==="command"&&u6.jsx("div",{className:"w-full",children:u6.jsx(Rk,{onExecute:(U1,V1)=>{n1(U1),m5(U1,V1)},state:x1,response:h4?.data?.summary||h4?.message,error:G4?.message,plan:C4,streamedContent:Z6,toolName:K4,onApprove:g5,onReject:X5,onReset:N5,onStop:P6,onExpand:A?()=>A6("chat"):void 0,placeholder:h0||"Enter your command..."})}),u6.jsx("style",{dangerouslySetInnerHTML:{__html:`
201
+ @keyframes pulse-border {
202
+ 0%, 100% { border-color: rgb(59, 130, 246); }
203
+ 50% { border-color: rgb(147, 197, 253); }
204
+ }
205
+ .animate-pulse-border {
206
+ animation: pulse-border 2s ease-in-out infinite;
207
+ }
208
+ .apteva-composer {
209
+ border-radius: var(--apteva-border-radius, 1rem) !important;
210
+ }
211
+ `}})]})});var y0=$0(K1(),1),Tk=[{key:"memory",label:"Memory",description:"Persistent recall",icon:xb},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:B5},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:jb},{key:"operator",label:"Operator",description:"Browser automation",icon:ob},{key:"mcp",label:"MCP",description:"External tools/services",icon:O5},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:pb}];function lZ({agent:$,providers:U,onClose:B,onStartAgent:L,onUpdateAgent:G,onDeleteAgent:v}){let[F,P]=z7.useState("chat");return y0.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[#0a0a0a] border-l border-[#1a1a1a]",children:[y0.jsxDEV("div",{className:"border-b border-[#1a1a1a] flex items-center justify-between px-4",children:[y0.jsxDEV("div",{className:"flex gap-1",children:[y0.jsxDEV(LB,{active:F==="chat",onClick:()=>P("chat"),children:"Chat"},void 0,!1,void 0,this),y0.jsxDEV(LB,{active:F==="settings",onClick:()=>P("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("button",{onClick:B,className:"text-[#666] hover:text-[#e0e0e0] transition p-2",children:y0.jsxDEV(Q3,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[F==="chat"&&y0.jsxDEV(hk,{agent:$,onStartAgent:L},void 0,!1,void 0,this),F==="settings"&&y0.jsxDEV(Ck,{agent:$,providers:U,onUpdateAgent:G,onDeleteAgent:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function LB({active:$,onClick:U,children:B}){return y0.jsxDEV("button",{onClick:U,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${$?"border-[#f97316] text-[#e0e0e0]":"border-transparent text-[#666] hover:text-[#888]"}`,children:B},void 0,!1,void 0,this)}function hk({agent:$,onStartAgent:U}){if($.status==="running"&&$.port)return y0.jsxDEV(HB,{agentId:"default",apiUrl:`/api/agents/${$.id}`,placeholder:"Message this agent...",context:$.systemPrompt,variant:"terminal",headerTitle:$.name},void 0,!1,void 0,this);return y0.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:y0.jsxDEV("div",{className:"text-center",children:[y0.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),y0.jsxDEV("button",{onClick:U,className:"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30 px-4 py-2 rounded font-medium transition",children:"Start Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Ck({agent:$,providers:U,onUpdateAgent:B,onDeleteAgent:L}){let[G,v]=z7.useState({name:$.name,provider:$.provider,model:$.model,systemPrompt:$.systemPrompt,features:{...$.features},mcpServers:[...$.mcpServers||[]]}),[F,P]=z7.useState(!1),[T,A]=z7.useState(!1),[_,k]=z7.useState(null),[R,d]=z7.useState([]);z7.useEffect(()=>{(async()=>{try{let L0=await(await fetch("/api/mcp/servers")).json();d(L0.servers||[])}catch(n){console.error("Failed to fetch MCP servers:",n)}})()},[]),z7.useEffect(()=>{v({name:$.name,provider:$.provider,model:$.model,systemPrompt:$.systemPrompt,features:{...$.features},mcpServers:[...$.mcpServers||[]]}),k(null)},[$.id]);let V=U.find((l)=>l.id===G.provider),o=U.filter((l)=>l.configured).map((l)=>({value:l.id,label:l.name})),D=V?.models.map((l)=>({value:l.value,label:l.label,recommended:l.recommended}))||[],E=(l)=>{let n=U.find((c)=>c.id===l),L0=n?.models.find((c)=>c.recommended)?.value||n?.models[0]?.value||"";v((c)=>({...c,provider:l,model:L0}))},N0=(l)=>{v((n)=>({...n,features:{...n.features,[l]:!n.features[l]}}))},p=(l)=>{v((n)=>({...n,mcpServers:n.mcpServers.includes(l)?n.mcpServers.filter((L0)=>L0!==l):[...n.mcpServers,l]}))},Z0=async()=>{P(!0),k(null);let l=await B(G);if(P(!1),l.error)k({type:"error",text:l.error});else k({type:"success",text:"Settings saved"}),setTimeout(()=>k(null),2000)},s=G.name!==$.name||G.provider!==$.provider||G.model!==$.model||G.systemPrompt!==$.systemPrompt||JSON.stringify(G.features)!==JSON.stringify($.features)||JSON.stringify(G.mcpServers.sort())!==JSON.stringify(($.mcpServers||[]).sort());return y0.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:y0.jsxDEV("div",{className:"space-y-4",children:[y0.jsxDEV(K3,{label:"Name",children:y0.jsxDEV("input",{type:"text",value:G.name,onChange:(l)=>v((n)=>({...n,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]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),y0.jsxDEV(K3,{label:"Provider",children:y0.jsxDEV(q5,{value:G.provider,options:o,onChange:E},void 0,!1,void 0,this)},void 0,!1,void 0,this),y0.jsxDEV(K3,{label:"Model",children:y0.jsxDEV(q5,{value:G.model,options:D,onChange:(l)=>v((n)=>({...n,model:l}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),y0.jsxDEV(K3,{label:"System Prompt",children:y0.jsxDEV("textarea",{value:G.systemPrompt,onChange:(l)=>v((n)=>({...n,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),y0.jsxDEV(K3,{label:"Features",children:y0.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Tk.map(({key:l,label:n,description:L0,icon:c})=>y0.jsxDEV("button",{type:"button",onClick:()=>N0(l),className:`flex items-center gap-3 p-3 rounded border text-left transition ${G.features[l]?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[y0.jsxDEV(c,{className:`w-5 h-5 flex-shrink-0 ${G.features[l]?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"flex-1 min-w-0",children:[y0.jsxDEV("div",{className:`text-sm font-medium ${G.features[l]?"text-[#f97316]":""}`,children:n},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"text-xs text-[#666]",children:L0},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),G.features.mcp&&y0.jsxDEV(K3,{label:"MCP Servers",children:R.length===0?y0.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):y0.jsxDEV("div",{className:"space-y-2",children:[R.map((l)=>y0.jsxDEV("button",{type:"button",onClick:()=>p(l.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${G.mcpServers.includes(l.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[y0.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${l.status==="running"?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"flex-1 min-w-0",children:[y0.jsxDEV("div",{className:`text-sm font-medium ${G.mcpServers.includes(l.id)?"text-[#f97316]":""}`,children:l.name},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"text-xs text-[#666]",children:[l.type," • ",l.package||l.command||"custom",l.status==="running"&&l.port&&` • :${l.port}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y0.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${l.status==="running"?"bg-green-500/20 text-green-400":"bg-[#222] text-[#666]"}`,children:l.status},void 0,!1,void 0,this)]},l.id,!0,void 0,this)),y0.jsxDEV("p",{className:"text-xs text-[#666] mt-2",children:"Only running servers will be connected to the agent."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),_&&y0.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${_.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:_.text},void 0,!1,void 0,this),y0.jsxDEV("button",{onClick:Z0,disabled:!s||F||!G.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:F?"Saving...":"Save Changes"},void 0,!1,void 0,this),$.status==="running"&&s&&y0.jsxDEV("p",{className:"text-xs text-[#666] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),y0.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[y0.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),T?y0.jsxDEV("div",{className:"flex gap-2",children:[y0.jsxDEV("button",{onClick:()=>A(!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),y0.jsxDEV("button",{onClick:L,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):y0.jsxDEV("button",{onClick:()=>A(!0),className:"w-full border border-red-500/30 text-red-400/70 hover:border-red-500/50 hover:text-red-400 px-4 py-2 rounded font-medium transition",children:"Delete Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function K3({label:$,children:U}){return y0.jsxDEV("div",{children:[y0.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:$},void 0,!1,void 0,this),U]},void 0,!0,void 0,this)}var z5=$0(K1(),1);function iZ({agents:$,loading:U,selectedAgent:B,providers:L,onSelectAgent:G,onCloseAgent:v,onToggleAgent:F,onDeleteAgent:P,onUpdateAgent:T}){return z5.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[z5.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:U?z5.jsxDEV(b3,{message:"Loading agents..."},void 0,!1,void 0,this):$.length===0?z5.jsxDEV(Sk,{},void 0,!1,void 0,this):z5.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:$.map((A)=>z5.jsxDEV(yZ,{agent:A,selected:B?.id===A.id,onSelect:()=>G(A),onToggle:(_)=>F(A,_),onDelete:(_)=>P(A.id,_)},A.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),B&&z5.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:v},void 0,!1,void 0,this),B&&z5.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-[600px] z-20",children:z5.jsxDEV(lZ,{agent:B,providers:L,onClose:v,onStartAgent:(A)=>F(B,A),onUpdateAgent:(A)=>T(B.id,A),onDeleteAgent:()=>P(B.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sk(){return z5.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[z5.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),z5.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)}var KQ=$0(E1(),1),_1=$0(K1(),1);function jZ({agents:$,loading:U,runningCount:B,configuredProviders:L,onNavigate:G,onSelectAgent:v}){let[F,P]=KQ.useState(null),[T,A]=KQ.useState([]);KQ.useEffect(()=>{_();let R=setInterval(_,1e4);return()=>clearInterval(R)},[]);let _=async()=>{try{let[R,d]=await Promise.all([fetch("/api/dashboard"),fetch("/api/tasks?status=all")]);if(R.ok){let V=await R.json();P(V)}if(d.ok){let V=await d.json();A((V.tasks||[]).slice(0,5))}}catch(R){console.error("Failed to fetch dashboard data:",R)}},k=F?.tasks||{total:0,pending:0,running:0,completed:0};return _1.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[_1.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[_1.jsxDEV(xZ,{label:"Agents",value:$.length,subValue:`${B} running`},void 0,!1,void 0,this),_1.jsxDEV(xZ,{label:"Tasks",value:k.total,subValue:`${k.pending} pending`},void 0,!1,void 0,this),_1.jsxDEV(xZ,{label:"Completed",value:k.completed,color:"text-green-400"},void 0,!1,void 0,this),_1.jsxDEV(xZ,{label:"Providers",value:L.length,color:"text-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[_1.jsxDEV(NB,{title:"Agents",actionLabel:"View All",onAction:()=>G("agents"),children:U?_1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):$.length===0?_1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"No agents yet"},void 0,!1,void 0,this):_1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:$.slice(0,5).map((R)=>_1.jsxDEV("div",{onClick:()=>v(R),className:"px-4 py-3 hover:bg-[#1a1a1a] cursor-pointer flex items-center justify-between",children:[_1.jsxDEV("div",{children:[_1.jsxDEV("p",{className:"font-medium",children:R.name},void 0,!1,void 0,this),_1.jsxDEV("p",{className:"text-sm text-[#666]",children:R.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV("span",{className:`w-2 h-2 rounded-full ${R.status==="running"?"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},R.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),_1.jsxDEV(NB,{title:"Recent Tasks",actionLabel:"View All",onAction:()=>G("tasks"),children:T.length===0?_1.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[_1.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),_1.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):_1.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:T.map((R)=>_1.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[_1.jsxDEV("div",{className:"flex-1 min-w-0",children:[_1.jsxDEV("p",{className:"font-medium truncate",children:R.title},void 0,!1,void 0,this),_1.jsxDEV("p",{className:"text-sm text-[#666]",children:R.agentName},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV(Vk,{status:R.status},void 0,!1,void 0,this)]},`${R.agentId}-${R.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 xZ({label:$,value:U,subValue:B,color:L}){return _1.jsxDEV("div",{className:"bg-[#111] rounded p-4 border border-[#1a1a1a]",children:[_1.jsxDEV("p",{className:"text-sm text-[#666] mb-1",children:$},void 0,!1,void 0,this),_1.jsxDEV("p",{className:`text-2xl font-semibold ${L||""}`,children:U},void 0,!1,void 0,this),B&&_1.jsxDEV("p",{className:"text-xs text-[#555] mt-1",children:B},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function NB({title:$,actionLabel:U,onAction:B,children:L}){return _1.jsxDEV("div",{className:"bg-[#111] rounded border border-[#1a1a1a] overflow-hidden",children:[_1.jsxDEV("div",{className:"px-4 py-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[_1.jsxDEV("h3",{className:"font-semibold",children:$},void 0,!1,void 0,this),_1.jsxDEV("button",{onClick:B,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L]},void 0,!0,void 0,this)}function Vk({status:$}){let U={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};return _1.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${U[$]||U.pending}`,children:$},void 0,!1,void 0,this)}var U3=$0(E1(),1);var p1=$0(K1(),1);function oZ({onSelectAgent:$}){let[U,B]=U3.useState([]),[L,G]=U3.useState(!0),[v,F]=U3.useState("all");U3.useEffect(()=>{P();let _=setInterval(P,1e4);return()=>clearInterval(_)},[v]);let P=async()=>{try{let k=await(await fetch(`/api/tasks?status=${v}`)).json();B(k.tasks||[])}catch(_){console.error("Failed to fetch tasks:",_)}finally{G(!1)}},T={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 p1.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:p1.jsxDEV("div",{className:"max-w-4xl mx-auto",children:[p1.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[p1.jsxDEV("div",{children:[p1.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Tasks"},void 0,!1,void 0,this),p1.jsxDEV("p",{className:"text-[#666]",children:"View tasks from all running agents"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p1.jsxDEV("div",{className:"flex gap-2",children:[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}].map((_)=>p1.jsxDEV("button",{onClick:()=>F(_.value),className:`px-3 py-1.5 rounded text-sm transition ${v===_.value?"bg-[#f97316] text-black":"bg-[#1a1a1a] hover:bg-[#222]"}`,children:_.label},_.value,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L?p1.jsxDEV("div",{className:"text-center py-12 text-[#666]",children:"Loading tasks..."},void 0,!1,void 0,this):U.length===0?p1.jsxDEV("div",{className:"text-center py-12",children:[p1.jsxDEV(B5,{className:"w-12 h-12 mx-auto mb-4 text-[#333]"},void 0,!1,void 0,this),p1.jsxDEV("p",{className:"text-[#666]",children:"No tasks found"},void 0,!1,void 0,this),p1.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Tasks will appear here when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):p1.jsxDEV("div",{className:"space-y-3",children:U.map((_)=>p1.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4 hover:border-[#333] transition",children:[p1.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[p1.jsxDEV("div",{className:"flex-1",children:[p1.jsxDEV("h3",{className:"font-medium",children:_.title},void 0,!1,void 0,this),p1.jsxDEV("p",{className:"text-sm text-[#666]",children:[_.agentName,_.execute_at&&p1.jsxDEV("span",{className:"ml-2",children:["· Scheduled: ",new Date(_.execute_at).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p1.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${T[_.status]||T.pending}`,children:_.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.description&&p1.jsxDEV("p",{className:"text-sm text-[#888] mb-2 line-clamp-2",children:_.description},void 0,!1,void 0,this),p1.jsxDEV("div",{className:"flex items-center gap-4 text-xs text-[#555]",children:[p1.jsxDEV("span",{children:["Type: ",_.type]},void 0,!0,void 0,this),p1.jsxDEV("span",{children:["Priority: ",_.priority]},void 0,!0,void 0,this),_.recurrence&&p1.jsxDEV("span",{children:["Recurrence: ",_.recurrence]},void 0,!0,void 0,this),p1.jsxDEV("span",{children:["Created: ",new Date(_.created_at).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${_.agentId}-${_.id}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var f1=$0(E1(),1);var y=$0(K1(),1);function pZ(){let[$,U]=f1.useState([]),[B,L]=f1.useState(!0),[G,v]=f1.useState(!1),[F,P]=f1.useState(null),[T,A]=f1.useState("servers"),_=async()=>{try{let o=await(await fetch("/api/mcp/servers")).json();U(o.servers||[])}catch(V){console.error("Failed to fetch MCP servers:",V)}L(!1)};f1.useEffect(()=>{_()},[]);let k=async(V)=>{try{await fetch(`/api/mcp/servers/${V}/start`,{method:"POST"}),_()}catch(o){console.error("Failed to start server:",o)}},R=async(V)=>{try{await fetch(`/api/mcp/servers/${V}/stop`,{method:"POST"}),_()}catch(o){console.error("Failed to stop server:",o)}},d=async(V)=>{if(!confirm("Delete this MCP server?"))return;try{if(await fetch(`/api/mcp/servers/${V}`,{method:"DELETE"}),F?.id===V)P(null);_()}catch(o){console.error("Failed to delete server:",o)}};return y.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[y.jsxDEV("div",{className:"max-w-6xl",children:[y.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[y.jsxDEV("div",{children:[y.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"MCP Servers"},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-[#666]",children:"Manage Model Context Protocol servers for tool integrations."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T==="servers"&&y.jsxDEV("button",{onClick:()=>v(!0),className:"bg-[#f97316] hover:bg-[#fb923c] text-black px-4 py-2 rounded font-medium transition",children:"+ Add Server"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"flex gap-1 mb-6 bg-[#111] border border-[#1a1a1a] rounded-lg p-1 w-fit",children:[y.jsxDEV("button",{onClick:()=>A("servers"),className:`px-4 py-2 rounded text-sm font-medium transition ${T==="servers"?"bg-[#1a1a1a] text-white":"text-[#666] hover:text-[#888]"}`,children:"My Servers"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:()=>A("registry"),className:`px-4 py-2 rounded text-sm font-medium transition ${T==="registry"?"bg-[#1a1a1a] text-white":"text-[#666] hover:text-[#888]"}`,children:"Browse Registry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T==="servers"&&y.jsxDEV(y.Fragment,{children:[B&&y.jsxDEV("div",{className:"text-center py-8 text-[#666]",children:"Loading..."},void 0,!1,void 0,this),!B&&$.length===0&&y.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-8 text-center",children:[y.jsxDEV(O5,{className:"w-12 h-12 text-[#333] mx-auto mb-4"},void 0,!1,void 0,this),y.jsxDEV("h3",{className:"text-lg font-medium mb-2",children:"No MCP servers configured"},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-[#666] mb-6 max-w-md mx-auto",children:"MCP servers extend your agents with tools like file access, web browsing, database connections, and more."},void 0,!1,void 0,this),y.jsxDEV("div",{className:"flex gap-3 justify-center",children:[y.jsxDEV("button",{onClick:()=>v(!0),className:"bg-[#f97316] hover:bg-[#fb923c] text-black px-4 py-2 rounded font-medium transition",children:"Add Manually"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:()=>A("registry"),className:"border border-[#333] hover:border-[#666] px-4 py-2 rounded font-medium transition",children:"Browse Registry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!B&&$.length>0&&y.jsxDEV("div",{className:"flex gap-6",children:[y.jsxDEV("div",{className:`space-y-3 ${F?"w-1/2":"w-full"}`,children:$.map((V)=>y.jsxDEV(Dk,{server:V,selected:F?.id===V.id,onSelect:()=>P(V.status==="running"?V:null),onStart:()=>k(V.id),onStop:()=>R(V.id),onDelete:()=>d(V.id)},V.id,!1,void 0,this))},void 0,!1,void 0,this),F&&y.jsxDEV("div",{className:"w-1/2",children:y.jsxDEV(Ek,{server:F,onClose:()=>P(null)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T==="registry"&&y.jsxDEV(mk,{onInstall:(V)=>{_(),A("servers")}},void 0,!1,void 0,this),T==="servers"&&y.jsxDEV("div",{className:"mt-8 p-4 bg-[#111] border border-[#1a1a1a] rounded-lg",children:[y.jsxDEV("h3",{className:"font-medium mb-2",children:"Quick Start"},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Add an MCP server by providing its npm package name. For example:"},void 0,!1,void 0,this),y.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[{name:"filesystem",pkg:"@modelcontextprotocol/server-filesystem"},{name:"fetch",pkg:"@modelcontextprotocol/server-fetch"},{name:"memory",pkg:"@modelcontextprotocol/server-memory"}].map((V)=>y.jsxDEV("code",{className:"text-xs bg-[#0a0a0a] px-2 py-1 rounded",children:V.pkg},V.name,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G&&y.jsxDEV(yk,{onClose:()=>v(!1),onAdded:()=>{v(!1),_()}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Dk({server:$,selected:U,onSelect:B,onStart:L,onStop:G,onDelete:v}){return y.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 cursor-pointer transition ${U?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,onClick:$.status==="running"?B:void 0,children:y.jsxDEV("div",{className:"flex items-center justify-between",children:[y.jsxDEV("div",{className:"flex items-center gap-3",children:[y.jsxDEV("div",{className:`w-2 h-2 rounded-full ${$.status==="running"?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),y.jsxDEV("div",{children:[y.jsxDEV("h3",{className:"font-medium",children:$.name},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-sm text-[#666]",children:[$.type," • ",$.package||$.command||"custom",$.status==="running"&&$.port&&` • :${$.port}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"flex items-center gap-2",children:[$.status==="running"?y.jsxDEV(y.Fragment,{children:[y.jsxDEV("button",{onClick:(F)=>{F.stopPropagation(),B()},className:"text-sm text-[#f97316] hover:text-[#fb923c] px-3 py-1 transition",children:"Tools"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:(F)=>{F.stopPropagation(),G()},className:"text-sm text-[#666] hover:text-red-400 px-3 py-1 transition",children:"Stop"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):y.jsxDEV("button",{onClick:(F)=>{F.stopPropagation(),L()},className:"text-sm text-[#666] hover:text-green-400 px-3 py-1 transition",children:"Start"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:(F)=>{F.stopPropagation(),v()},className:"text-sm text-[#666] hover:text-red-400 px-3 py-1 transition",children:"Delete"},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 Ek({server:$,onClose:U}){let[B,L]=f1.useState([]),[G,v]=f1.useState(null),[F,P]=f1.useState(!0),[T,A]=f1.useState(null),[_,k]=f1.useState(null);return f1.useEffect(()=>{(async()=>{P(!0),A(null);try{let d=await fetch(`/api/mcp/servers/${$.id}/tools`),V=await d.json();if(!d.ok){A(V.error||"Failed to fetch tools");return}L(V.tools||[]),v(V.serverInfo||null)}catch(d){A(`Failed to fetch tools: ${d}`)}finally{P(!1)}})()},[$.id]),y.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg overflow-hidden",children:[y.jsxDEV("div",{className:"p-4 border-b border-[#1a1a1a] flex items-center justify-between",children:[y.jsxDEV("div",{children:[y.jsxDEV("h3",{className:"font-medium",children:[$.name," Tools"]},void 0,!0,void 0,this),G&&y.jsxDEV("p",{className:"text-xs text-[#666]",children:[G.name," v",G.version]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("button",{onClick:U,className:"text-[#666] hover:text-[#888] text-xl leading-none",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"p-4 max-h-[500px] overflow-auto",children:[F&&y.jsxDEV("p",{className:"text-[#666]",children:"Loading tools..."},void 0,!1,void 0,this),T&&y.jsxDEV("div",{className:"text-red-400 text-sm p-3 bg-red-500/10 rounded",children:T},void 0,!1,void 0,this),!F&&!T&&B.length===0&&y.jsxDEV("p",{className:"text-[#666]",children:"No tools available from this server."},void 0,!1,void 0,this),!F&&!T&&B.length>0&&!_&&y.jsxDEV("div",{className:"space-y-2",children:B.map((R)=>y.jsxDEV("button",{onClick:()=>k(R),className:"w-full text-left p-3 bg-[#0a0a0a] hover:bg-[#1a1a1a] border border-[#222] hover:border-[#333] rounded transition",children:[y.jsxDEV("div",{className:"font-medium text-sm",children:R.name},void 0,!1,void 0,this),R.description&&y.jsxDEV("div",{className:"text-xs text-[#666] mt-1",children:R.description},void 0,!1,void 0,this)]},R.name,!0,void 0,this))},void 0,!1,void 0,this),_&&y.jsxDEV(uk,{serverId:$.id,tool:_,onBack:()=>k(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function uk({serverId:$,tool:U,onBack:B}){let[L,G]=f1.useState("{}"),[v,F]=f1.useState(null),[P,T]=f1.useState(null),[A,_]=f1.useState(!1);f1.useEffect(()=>{let R=U.inputSchema;if(R&&typeof R==="object"&&"properties"in R){let d=R.properties,V={};for(let[o,D]of Object.entries(d))if(D.default!==void 0)V[o]=D.default;else if(D.type==="string")V[o]="";else if(D.type==="number"||D.type==="integer")V[o]=0;else if(D.type==="boolean")V[o]=!1;else if(D.type==="array")V[o]=[];else if(D.type==="object")V[o]={};G(JSON.stringify(V,null,2))}},[U]);let k=async()=>{_(!0),T(null),F(null);try{let R=JSON.parse(L),d=await fetch(`/api/mcp/servers/${$}/tools/${encodeURIComponent(U.name)}/call`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({arguments:R})}),V=await d.json();if(!d.ok){T(V.error||"Failed to call tool");return}F(V.result)}catch(R){T(`Error: ${R}`)}finally{_(!1)}};return y.jsxDEV("div",{className:"space-y-4",children:[y.jsxDEV("div",{className:"flex items-center gap-2",children:[y.jsxDEV("button",{onClick:B,className:"text-[#666] hover:text-[#888] text-sm",children:"← Back"},void 0,!1,void 0,this),y.jsxDEV("span",{className:"text-[#444]",children:"/"},void 0,!1,void 0,this),y.jsxDEV("span",{className:"font-medium",children:U.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U.description&&y.jsxDEV("p",{className:"text-sm text-[#666]",children:U.description},void 0,!1,void 0,this),U.inputSchema&&y.jsxDEV("div",{className:"text-xs",children:y.jsxDEV("details",{className:"cursor-pointer",children:[y.jsxDEV("summary",{className:"text-[#666] hover:text-[#888]",children:"Input Schema"},void 0,!1,void 0,this),y.jsxDEV("pre",{className:"mt-2 p-2 bg-[#0a0a0a] rounded text-[#888] overflow-auto max-h-32",children:JSON.stringify(U.inputSchema,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),y.jsxDEV("div",{children:[y.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:"Arguments (JSON)"},void 0,!1,void 0,this),y.jsxDEV("textarea",{value:L,onChange:(R)=>G(R.target.value),className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 h-32 font-mono text-sm focus:outline-none focus:border-[#f97316] resize-none",placeholder:"{}"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("button",{onClick:k,disabled:A,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-4 py-2 rounded font-medium transition",children:A?"Calling...":"Call Tool"},void 0,!1,void 0,this),P&&y.jsxDEV("div",{className:"text-red-400 text-sm p-3 bg-red-500/10 rounded",children:P},void 0,!1,void 0,this),v&&y.jsxDEV("div",{className:"space-y-2",children:[y.jsxDEV("div",{className:"text-sm text-[#666]",children:["Result ",v.isError&&y.jsxDEV("span",{className:"text-red-400",children:"(error)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:`p-3 rounded text-sm ${v.isError?"bg-red-500/10":"bg-green-500/10"}`,children:v.content.map((R,d)=>y.jsxDEV("div",{className:"mb-2 last:mb-0",children:[R.type==="text"&&y.jsxDEV("pre",{className:"whitespace-pre-wrap font-mono text-xs",children:R.text},void 0,!1,void 0,this),R.type==="image"&&R.data&&y.jsxDEV("img",{src:`data:${R.mimeType||"image/png"};base64,${R.data}`,alt:"Tool result",className:"max-w-full rounded"},void 0,!1,void 0,this)]},d,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function mk({onInstall:$}){let[U,B]=f1.useState(""),[L,G]=f1.useState([]),[v,F]=f1.useState(!1),[P,T]=f1.useState(!1),[A,_]=f1.useState(null),[k,R]=f1.useState(null),d=async(D)=>{F(!0),R(null);try{let E=await fetch(`/api/mcp/registry?search=${encodeURIComponent(D)}&limit=20`),N0=await E.json();if(!E.ok)R(N0.error||"Failed to search registry"),G([]);else G(N0.servers||[])}catch(E){R(`Failed to search: ${E}`),G([])}finally{F(!1),T(!0)}},V=(D)=>{if(D.preventDefault(),U.trim())d(U.trim())};f1.useEffect(()=>{d("")},[]);let o=async(D)=>{if(!D.npmPackage){R("This server does not have an npm package");return}_(D.name),R(null);try{let E=await fetch("/api/mcp/servers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:D.name,type:"npm",package:D.npmPackage})});if(!E.ok){let N0=await E.json();R(N0.error||"Failed to add server");return}$(D)}catch(E){R(`Failed to add server: ${E}`)}finally{_(null)}};return y.jsxDEV("div",{className:"space-y-6",children:[y.jsxDEV("form",{onSubmit:V,className:"flex gap-2",children:[y.jsxDEV("input",{type:"text",value:U,onChange:(D)=>B(D.target.value),placeholder:"Search MCP servers (e.g., filesystem, github, slack...)",className:"flex-1 bg-[#111] border border-[#333] rounded-lg px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),y.jsxDEV("button",{type:"submit",disabled:v,className:"bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-6 py-3 rounded-lg font-medium transition",children:v?"...":"Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k&&y.jsxDEV("div",{className:"text-red-400 text-sm p-3 bg-red-500/10 border border-red-500/20 rounded-lg",children:k},void 0,!1,void 0,this),!v&&P&&L.length===0&&y.jsxDEV("div",{className:"text-center py-8 text-[#666]",children:"No servers found. Try a different search term."},void 0,!1,void 0,this),L.length>0&&y.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:L.map((D)=>y.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4 hover:border-[#333] transition",children:y.jsxDEV("div",{className:"flex items-start justify-between gap-3",children:[y.jsxDEV("div",{className:"flex-1 min-w-0",children:[y.jsxDEV("h3",{className:"font-medium truncate",children:D.name},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-sm text-[#666] mt-1 line-clamp-2",children:D.description||"No description"},void 0,!1,void 0,this),y.jsxDEV("div",{className:"flex items-center gap-3 mt-2 text-xs text-[#555]",children:[D.vendor&&y.jsxDEV("span",{children:["by ",D.vendor]},void 0,!0,void 0,this),D.githubStars!==null&&D.githubStars>0&&y.jsxDEV("span",{children:["★ ",D.githubStars.toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.npmPackage&&y.jsxDEV("code",{className:"text-xs text-[#666] bg-[#0a0a0a] px-2 py-0.5 rounded mt-2 inline-block truncate max-w-full",children:D.npmPackage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"flex-shrink-0",children:D.npmPackage?y.jsxDEV("button",{onClick:()=>o(D),disabled:A===D.name,className:"text-sm bg-[#1a1a1a] hover:bg-[#222] border border-[#333] hover:border-[#f97316] px-3 py-1.5 rounded transition disabled:opacity-50",children:A===D.name?"Adding...":"Add"},void 0,!1,void 0,this):y.jsxDEV("a",{href:D.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#666] hover:text-[#f97316] transition",children:"View →"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},D.name,!1,void 0,this))},void 0,!1,void 0,this),v&&y.jsxDEV("div",{className:"text-center py-8 text-[#666]",children:"Searching registry..."},void 0,!1,void 0,this),y.jsxDEV("div",{className:"p-4 bg-[#111] border border-[#1a1a1a] rounded-lg text-sm text-[#666]",children:y.jsxDEV("p",{children:["Servers are sourced from the"," ",y.jsxDEV("a",{href:"https://github.com/modelcontextprotocol/servers",target:"_blank",rel:"noopener noreferrer",className:"text-[#f97316] hover:underline",children:"official MCP registry"},void 0,!1,void 0,this),". Not all servers have npm packages - some require manual setup."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gk($){let U=[],B=$,L=null,G=$.match(/(?:npx\s+-y\s+)?(@?[\w-]+\/)?(@?[\w-]+)(?:@[\w.-]+)?/);if(G){let P=G[2]||G[1];if(P)L=P.replace(/^@/,"").replace(/-mcp$/,"").replace(/-server$/,"").replace(/^server-/,"").replace(/^mcp-/,"")}let v=/--(\w+[-\w]*)\s+(YOUR_\w+|<[\w_]+>|\{[\w_]+\}|\$[\w_]+|[\w_]*(?:TOKEN|KEY|SECRET|PASSWORD|USER|ID|APIKEY)[\w_]*)/gi,F;while((F=v.exec($))!==null){let P=F[1],T=F[2],A=P.toUpperCase().replace(/-/g,"_"),_=L?`${L.toUpperCase().replace(/-/g,"_")}_${A}`:A;U.push({key:_,flag:P}),B=B.replace(new RegExp(`(--${P}\\s+)${T.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"i"),`--${P} $${_}`)}return{cleanCommand:B,credentials:U,serverName:L}}function yk({onClose:$,onAdded:U}){let[B,L]=f1.useState("npm"),[G,v]=f1.useState(""),[F,P]=f1.useState(""),[T,A]=f1.useState(""),[_,k]=f1.useState([]),[R,d]=f1.useState(!1),[V,o]=f1.useState(null),D=()=>{k([..._,{key:"",value:""}])},E=(n,L0,c)=>{let Y0=[..._];Y0[n][L0]=c,k(Y0)},N0=(n)=>{k(_.filter((L0,c)=>c!==n))},p=(n)=>{if(A(n),n.includes("YOUR_")||n.includes("<")||n.includes("{")||/TOKEN|KEY|SECRET|PASSWORD/i.test(n)){let{cleanCommand:L0,credentials:c,serverName:Y0}=gk(n);if(!G&&Y0)v(Y0);if(c.length>0){let R0=new Set(_.map((v0)=>v0.key)),b0=c.filter((v0)=>!R0.has(v0.key)).map((v0)=>({key:v0.key,value:""}));if(b0.length>0)k([..._,...b0]),A(L0)}}},Z0=(n)=>{if(n.startsWith("npx ")||n.includes(" --")||n.includes("YOUR_")||n.includes("<")||/\s+(TOKEN|KEY|SECRET|PASSWORD)/i.test(n))L("command"),p(n);else if(P(n),!G&&n){let c=n.replace(/^@[\w-]+\//,"").replace(/@[\w.-]+$/,"").replace(/^server-/,"").replace(/-server$/,"").replace(/^mcp-/,"").replace(/-mcp$/,"");if(c&&c!==n)v(c)}},s=async()=>{if(!G){o("Name is required");return}if(B==="npm"&&!F){o("npm package is required");return}if(B==="command"&&!T){o("Command is required");return}d(!0),o(null);let n={};for(let{key:L0,value:c}of _)if(L0.trim())n[L0.trim()]=c;try{let L0={name:G};if(B==="npm")L0.type="npm",L0.package=F;else{let Y0=T.trim().split(/\s+/);L0.type="custom",L0.command=Y0[0],L0.args=Y0.slice(1).join(" ")}if(Object.keys(n).length>0)L0.env=n;let c=await fetch("/api/mcp/servers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L0)});if(!c.ok){let Y0=await c.json();o(Y0.error||"Failed to add server"),d(!1);return}U()}catch(L0){o("Failed to add server"),d(!1)}},l=(n,L0)=>{L("npm"),v(n),P(L0)};return y.jsxDEV("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] z-50 flex items-center justify-center p-4",children:y.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg w-full max-w-lg max-h-[90vh] overflow-y-auto",children:[y.jsxDEV("div",{className:"p-4 border-b border-[#1a1a1a] flex items-center justify-between sticky top-0 bg-[#111]",children:[y.jsxDEV("h2",{className:"text-lg font-semibold",children:"Add MCP Server"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:$,className:"text-[#666] hover:text-[#888]",children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"p-4 space-y-4",children:[y.jsxDEV("div",{children:[y.jsxDEV("p",{className:"text-sm text-[#666] mb-2",children:"Quick add:"},void 0,!1,void 0,this),y.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[{name:"filesystem",pkg:"@modelcontextprotocol/server-filesystem"},{name:"fetch",pkg:"@modelcontextprotocol/server-fetch"},{name:"memory",pkg:"@modelcontextprotocol/server-memory"},{name:"github",pkg:"@modelcontextprotocol/server-github"}].map((n)=>y.jsxDEV("button",{onClick:()=>l(n.name,n.pkg),className:"text-sm bg-[#1a1a1a] hover:bg-[#222] px-3 py-1 rounded transition",children:n.name},n.name,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"flex gap-1 bg-[#0a0a0a] border border-[#222] rounded p-1",children:[y.jsxDEV("button",{onClick:()=>L("npm"),className:`flex-1 px-3 py-1.5 rounded text-sm transition ${B==="npm"?"bg-[#1a1a1a] text-white":"text-[#666] hover:text-[#888]"}`,children:"npm Package"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:()=>L("command"),className:`flex-1 px-3 py-1.5 rounded text-sm transition ${B==="command"?"bg-[#1a1a1a] text-white":"text-[#666] hover:text-[#888]"}`,children:"Custom Command"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{children:[y.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:"Name"},void 0,!1,void 0,this),y.jsxDEV("input",{type:"text",value:G,onChange:(n)=>v(n.target.value),placeholder:"e.g., pushover",className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B==="npm"&&y.jsxDEV("div",{children:[y.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:"npm Package"},void 0,!1,void 0,this),y.jsxDEV("input",{type:"text",value:F,onChange:(n)=>Z0(n.target.value),placeholder:"e.g., @modelcontextprotocol/server-filesystem or paste full command",className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-xs text-[#555] mt-1",children:"Package name or paste a full npx command with credentials"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B==="command"&&y.jsxDEV("div",{children:[y.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:"Command"},void 0,!1,void 0,this),y.jsxDEV("input",{type:"text",value:T,onChange:(n)=>p(n.target.value),placeholder:"e.g., npx -y pushover-mcp@latest start --token YOUR_TOKEN",className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-3 py-2 font-mono text-sm focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),y.jsxDEV("p",{className:"text-xs text-[#555] mt-1",children:"Paste the full command - credentials like YOUR_TOKEN will be auto-extracted"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{children:[y.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[y.jsxDEV("label",{className:"text-sm text-[#666]",children:"Environment Variables / Credentials"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:D,className:"text-xs text-[#f97316] hover:text-[#fb923c] transition",children:"+ Add Variable"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.length===0&&y.jsxDEV("p",{className:"text-xs text-[#555] bg-[#0a0a0a] border border-[#222] rounded p-3",children:"Add environment variables for API tokens and credentials. These are stored encrypted and passed to the server at startup."},void 0,!1,void 0,this),_.length>0&&y.jsxDEV("div",{className:"space-y-2",children:_.map((n,L0)=>y.jsxDEV("div",{className:"flex gap-2",children:[y.jsxDEV("input",{type:"text",value:n.key,onChange:(c)=>E(L0,"key",c.target.value),placeholder:"KEY",className:"w-1/3 bg-[#0a0a0a] border border-[#333] rounded px-2 py-1.5 text-sm font-mono focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),y.jsxDEV("input",{type:"password",value:n.value,onChange:(c)=>E(L0,"value",c.target.value),placeholder:"value",className:"flex-1 bg-[#0a0a0a] border border-[#333] rounded px-2 py-1.5 text-sm font-mono focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:()=>N0(L0),className:"text-[#666] hover:text-red-400 px-2 transition",children:"✕"},void 0,!1,void 0,this)]},L0,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V&&y.jsxDEV("p",{className:"text-red-400 text-sm",children:V},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.jsxDEV("div",{className:"p-4 border-t border-[#1a1a1a] flex justify-end gap-2 sticky bottom-0 bg-[#111]",children:[y.jsxDEV("button",{onClick:$,className:"px-4 py-2 border border-[#333] hover:border-[#666] rounded transition",children:"Cancel"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:s,disabled:R||!G||(B==="npm"?!F:!T),className:"px-4 py-2 bg-[#f97316] hover:bg-[#fb923c] text-black rounded font-medium transition disabled:opacity-50",children:R?"Adding...":"Add Server"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Q5=$0(E1(),1);var A0=$0(K1(),1);function MG(){let{connected:$,events:U}=TZ(),[B,L]=Q5.useState(null),[G,v]=Q5.useState([]),[F,P]=Q5.useState([]),[T,A]=Q5.useState(!0),[_,k]=Q5.useState({category:"",level:"",agent_id:""}),[R,d]=Q5.useState([]),[V,o]=Q5.useState(null);Q5.useEffect(()=>{(async()=>{try{let R0=await(await fetch("/api/agents")).json();d(R0.agents||[])}catch(Y0){console.error("Failed to fetch agents:",Y0)}})()},[]);let D=async()=>{A(!0);try{let Y0=await(await fetch("/api/telemetry/stats")).json();L(Y0.stats);let R0=new URLSearchParams;if(_.category)R0.set("category",_.category);if(_.level)R0.set("level",_.level);if(_.agent_id)R0.set("agent_id",_.agent_id);R0.set("limit","50");let v0=await(await fetch(`/api/telemetry/events?${R0}`)).json();v(v0.events||[]);let h0=await(await fetch("/api/telemetry/usage?group_by=agent")).json();P(h0.usage||[])}catch(c){console.error("Failed to fetch telemetry:",c)}A(!1)};Q5.useEffect(()=>{D();let c=setInterval(D,60000);return()=>clearInterval(c)},[_]);let E=Q5.default.useMemo(()=>{let c=U;if(_.agent_id)c=c.filter((b0)=>b0.agent_id===_.agent_id);if(_.category)c=c.filter((b0)=>b0.category===_.category);if(_.level)c=c.filter((b0)=>b0.level===_.level);let Y0=new Set(c.map((b0)=>b0.id)),R0=[...c];for(let b0 of G)if(!Y0.has(b0.id))R0.push(b0),Y0.add(b0.id);return R0.sort((b0,v0)=>new Date(v0.timestamp).getTime()-new Date(b0.timestamp).getTime()),R0.slice(0,100)},[U,G,_]),N0=(c)=>{return R.find((R0)=>R0.id===c)?.name||c},p=(c)=>{if(c>=1e6)return(c/1e6).toFixed(1)+"M";if(c>=1000)return(c/1000).toFixed(1)+"K";return c.toString()},Z0={debug:"text-[#555]",info:"text-blue-400",warn:"text-yellow-400",error:"text-red-400"},s={LLM:"bg-purple-500/20 text-purple-400 border-purple-500/30",TOOL:"bg-blue-500/20 text-blue-400 border-blue-500/30",CHAT:"bg-green-500/20 text-green-400 border-green-500/30",ERROR:"bg-red-500/20 text-red-400 border-red-500/30",SYSTEM:"bg-gray-500/20 text-gray-400 border-gray-500/30",TASK:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30",MEMORY:"bg-cyan-500/20 text-cyan-400 border-cyan-500/30",MCP:"bg-orange-500/20 text-orange-400 border-orange-500/30"},l=[{value:"",label:"All Agents"},...R.map((c)=>({value:c.id,label:c.name}))],n=[{value:"",label:"All Categories"},{value:"LLM",label:"LLM"},{value:"TOOL",label:"Tool"},{value:"CHAT",label:"Chat"},{value:"TASK",label:"Task"},{value:"MEMORY",label:"Memory"},{value:"MCP",label:"MCP"},{value:"SYSTEM",label:"System"},{value:"ERROR",label:"Error"}],L0=[{value:"",label:"All Levels"},{value:"debug",label:"Debug"},{value:"info",label:"Info"},{value:"warn",label:"Warn"},{value:"error",label:"Error"}];return A0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:A0.jsxDEV("div",{className:"max-w-6xl",children:[A0.jsxDEV("div",{className:"mb-6 flex items-center justify-between",children:[A0.jsxDEV("div",{children:[A0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Telemetry"},void 0,!1,void 0,this),A0.jsxDEV("p",{className:"text-[#666]",children:"Monitor agent activity, token usage, and errors."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center gap-2",children:[A0.jsxDEV("span",{className:`w-2 h-2 rounded-full ${$?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"text-xs text-[#666]",children:$?"Live":"Reconnecting..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B&&A0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-6",children:[A0.jsxDEV(q3,{label:"Events",value:p(B.total_events)},void 0,!1,void 0,this),A0.jsxDEV(q3,{label:"LLM Calls",value:p(B.total_llm_calls)},void 0,!1,void 0,this),A0.jsxDEV(q3,{label:"Tool Calls",value:p(B.total_tool_calls)},void 0,!1,void 0,this),A0.jsxDEV(q3,{label:"Errors",value:p(B.total_errors),color:"red"},void 0,!1,void 0,this),A0.jsxDEV(q3,{label:"Input Tokens",value:p(B.total_input_tokens)},void 0,!1,void 0,this),A0.jsxDEV(q3,{label:"Output Tokens",value:p(B.total_output_tokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.length>0&&A0.jsxDEV("div",{className:"mb-6",children:[A0.jsxDEV("h2",{className:"text-lg font-medium mb-3",children:"Usage by Agent"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg overflow-hidden",children:A0.jsxDEV("table",{className:"w-full text-sm",children:[A0.jsxDEV("thead",{children:A0.jsxDEV("tr",{className:"border-b border-[#1a1a1a] text-[#666]",children:[A0.jsxDEV("th",{className:"text-left p-3",children:"Agent"},void 0,!1,void 0,this),A0.jsxDEV("th",{className:"text-right p-3",children:"LLM Calls"},void 0,!1,void 0,this),A0.jsxDEV("th",{className:"text-right p-3",children:"Tool Calls"},void 0,!1,void 0,this),A0.jsxDEV("th",{className:"text-right p-3",children:"Input Tokens"},void 0,!1,void 0,this),A0.jsxDEV("th",{className:"text-right p-3",children:"Output Tokens"},void 0,!1,void 0,this),A0.jsxDEV("th",{className:"text-right p-3",children:"Errors"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A0.jsxDEV("tbody",{children:F.map((c)=>A0.jsxDEV("tr",{className:"border-b border-[#1a1a1a] last:border-0",children:[A0.jsxDEV("td",{className:"p-3 font-medium",children:N0(c.agent_id)},void 0,!1,void 0,this),A0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:p(c.llm_calls)},void 0,!1,void 0,this),A0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:p(c.tool_calls)},void 0,!1,void 0,this),A0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:p(c.input_tokens)},void 0,!1,void 0,this),A0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:p(c.output_tokens)},void 0,!1,void 0,this),A0.jsxDEV("td",{className:"p-3 text-right",children:c.errors>0?A0.jsxDEV("span",{className:"text-red-400",children:c.errors},void 0,!1,void 0,this):A0.jsxDEV("span",{className:"text-[#444]",children:"0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},c.agent_id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center gap-3 mb-4",children:[A0.jsxDEV("div",{className:"w-56",children:A0.jsxDEV(q5,{value:_.agent_id,options:l,onChange:(c)=>k({..._,agent_id:c}),placeholder:"All Agents"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"w-48",children:A0.jsxDEV(q5,{value:_.category,options:n,onChange:(c)=>k({..._,category:c}),placeholder:"All Categories"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"w-40",children:A0.jsxDEV(q5,{value:_.level,options:L0,onChange:(c)=>k({..._,level:c}),placeholder:"All Levels"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A0.jsxDEV("button",{onClick:D,className:"px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] border border-[#333] rounded text-sm transition",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg",children:[A0.jsxDEV("div",{className:"p-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[A0.jsxDEV("h2",{className:"font-medium",children:"Recent Events"},void 0,!1,void 0,this),U.length>0&&A0.jsxDEV("span",{className:"text-xs text-[#666]",children:[U.length," new"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T&&E.length===0?A0.jsxDEV("div",{className:"p-8 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):E.length===0?A0.jsxDEV("div",{className:"p-8 text-center text-[#666]",children:"No telemetry events yet. Events will appear here in real-time once agents start sending data."},void 0,!1,void 0,this):A0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:E.map((c,Y0)=>{let R0=Y0<3&&U.some((b0)=>b0.id===c.id);return A0.jsxDEV("div",{className:`p-3 hover:bg-[#0a0a0a] transition cursor-pointer ${R0?"bg-[#0f1a0f]":""}`,onClick:()=>o(V===c.id?null:c.id),children:A0.jsxDEV("div",{className:"flex items-start gap-3",children:[A0.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs border ${s[c.category]||"bg-[#222] text-[#888] border-[#333]"}`,children:c.category},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"flex-1 min-w-0",children:[A0.jsxDEV("div",{className:"flex items-center gap-2",children:[A0.jsxDEV("span",{className:"font-medium text-sm",children:c.type},void 0,!1,void 0,this),A0.jsxDEV("span",{className:`text-xs ${Z0[c.level]||"text-[#666]"}`,children:c.level},void 0,!1,void 0,this),c.duration_ms&&A0.jsxDEV("span",{className:"text-xs text-[#555]",children:[c.duration_ms,"ms"]},void 0,!0,void 0,this),R0&&A0.jsxDEV("span",{className:"text-xs text-green-400",children:"new"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"text-xs text-[#555] mt-1",children:[N0(c.agent_id)," · ",new Date(c.timestamp).toLocaleString()]},void 0,!0,void 0,this),c.error&&A0.jsxDEV("div",{className:"text-xs text-red-400 mt-1 font-mono",children:c.error},void 0,!1,void 0,this),V===c.id&&c.data&&Object.keys(c.data).length>0&&A0.jsxDEV("pre",{className:"text-xs text-[#666] mt-2 p-2 bg-[#0a0a0a] rounded overflow-x-auto",children:JSON.stringify(c.data,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},c.id,!1,void 0,this)})},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 q3({label:$,value:U,color:B}){return A0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4",children:[A0.jsxDEV("div",{className:"text-[#666] text-xs mb-1",children:$},void 0,!1,void 0,this),A0.jsxDEV("div",{className:`text-2xl font-semibold ${B==="red"?"text-red-400":""}`,children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Q6=$0(K1(),1);function dk(){let{isComplete:$,setIsComplete:U}=YG(),{agents:B,loading:L,runningCount:G,fetchAgents:v,createAgent:F,updateAgent:P,deleteAgent:T,toggleAgent:A}=$G($===!0),{providers:_,configuredProviders:k,fetchProviders:R}=HG($===!0),[d,V]=u5.useState(!1),[o,D]=u5.useState(null),[E,N0]=u5.useState("dashboard"),[p,Z0]=u5.useState(null),[s,l]=u5.useState(0);u5.useEffect(()=>{if($!==!0)return;let V0=async()=>{try{let $1=await fetch("/api/tasks?status=pending");if($1.ok){let v1=await $1.json();l(v1.count||0)}}catch{}};V0();let P1=setInterval(V0,15000);return()=>clearInterval(P1)},[$]);let[n,L0]=u5.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...QG}});u5.useEffect(()=>{if(k.length>0&&!n.provider){let V0=k[0],P1=V0.models.find(($1)=>$1.recommended)?.value||V0.models[0]?.value||"";L0(($1)=>({...$1,provider:V0.id,model:P1}))}},[k,n.provider]),u5.useEffect(()=>{if(o){let V0=B.find((P1)=>P1.id===o.id);if(V0)D(V0);else D(null)}},[B,o]);let c=(V0)=>{let P1=_.find((v1)=>v1.id===V0),$1=P1?.models.find((v1)=>v1.recommended)?.value||P1?.models[0]?.value||"";L0((v1)=>({...v1,provider:V0,model:$1}))},Y0=async()=>{if(!n.name)return;await F(n);let V0=k[0],P1=V0?.models.find(($1)=>$1.recommended)?.value||V0?.models[0]?.value||"";L0({name:"",model:P1,provider:V0?.id||"",systemPrompt:"You are a helpful assistant.",features:{...QG}}),V(!1)},R0=async(V0,P1)=>{P1?.stopPropagation(),Z0(null);let $1=await A(V0);if($1.error)Z0($1.error)},b0=async(V0,P1)=>{if(P1?.stopPropagation(),o?.id===V0)D(null);await T(V0)},v0=(V0)=>{D(V0),Z0(null),N0("agents")},d0=(V0)=>{N0(V0),D(null)},h0=()=>{U(!0),R()};if($===null)return Q6.jsxDEV(b3,{fullScreen:!0},void 0,!1,void 0,this);if(!$)return Q6.jsxDEV(mZ,{onComplete:h0},void 0,!1,void 0,this);return Q6.jsxDEV("div",{className:"h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col overflow-hidden",children:[Q6.jsxDEV(DZ,{onNewAgent:()=>V(!0),canCreateAgent:k.length>0},void 0,!1,void 0,this),p&&Q6.jsxDEV(uZ,{message:p,onDismiss:()=>Z0(null)},void 0,!1,void 0,this),Q6.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Q6.jsxDEV(EZ,{route:E,agentCount:B.length,taskCount:s,onNavigate:d0},void 0,!1,void 0,this),Q6.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:[E==="settings"&&Q6.jsxDEV(gZ,{},void 0,!1,void 0,this),E==="agents"&&Q6.jsxDEV(iZ,{agents:B,loading:L,selectedAgent:o,providers:_,onSelectAgent:v0,onCloseAgent:()=>D(null),onToggleAgent:R0,onDeleteAgent:b0,onUpdateAgent:P},void 0,!1,void 0,this),E==="dashboard"&&Q6.jsxDEV(jZ,{agents:B,loading:L,runningCount:G,configuredProviders:k,onNavigate:d0,onSelectAgent:v0},void 0,!1,void 0,this),E==="tasks"&&Q6.jsxDEV(oZ,{},void 0,!1,void 0,this),E==="mcp"&&Q6.jsxDEV(pZ,{},void 0,!1,void 0,this),E==="telemetry"&&Q6.jsxDEV(MG,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),d&&Q6.jsxDEV(dZ,{form:n,providers:_,configuredProviders:k,onFormChange:L0,onProviderChange:c,onCreate:Y0,onClose:()=>V(!1),onGoToSettings:()=>{V(!1),N0("settings")}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ck=WB.createRoot(document.getElementById("root"));ck.render(Q6.jsxDEV(ZG,{children:Q6.jsxDEV(dk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this));
212
+
213
+ //# debugId=F6FC4241C6A8E17564756E2164756E21