apteva 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,213 @@
1
+ var yM=Object.create;var{getPrototypeOf:cM,defineProperty:Dq,getOwnPropertyNames:dM}=Object;var aM=Object.prototype.hasOwnProperty;var H0=($,K,B)=>{B=$!=null?yM(cM($)):{};let L=K||!$||!$.__esModule?Dq(B,"default",{value:$,enumerable:!0}):B;for(let G of dM($))if(!aM.call(L,G))Dq(L,G,{get:()=>$[G],enumerable:!0});return L};var lb=($,K)=>()=>(K||$((K={exports:{}}).exports,K),K.exports);var m1=lb((lM,hZ)=>{(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",K=Symbol.for("react.element"),B=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),c=Symbol.for("react.offscreen"),m=Symbol.iterator,x="@@iterator";function D(q){if(q===null||typeof q!=="object")return null;var A=m&&q[m]||q[x];if(typeof A==="function")return A;return null}var C={current:null},G0={transition:null},n={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Z0={current:null},j={},a=null;function s(q){a=q}j.setExtraStackFrame=function(q){a=q},j.getCurrentStack=null,j.getStackAddendum=function(){var q="";if(a)q+=a;var A=j.getCurrentStack;if(A)q+=A()||"";return q};var W0=!1,O0=!1,_0=!1,p=!1,e=!1,J0={ReactCurrentDispatcher:C,ReactCurrentBatchConfig:G0,ReactCurrentOwner:Z0};J0.ReactDebugCurrentFrame=j,J0.ReactCurrentActQueue=n;function P0(q){{for(var A=arguments.length,u=Array(A>1?A-1:0),l=1;l<A;l++)u[l-1]=arguments[l];f0("warn",q,u)}}function I0(q){{for(var A=arguments.length,u=Array(A>1?A-1:0),l=1;l<A;l++)u[l-1]=arguments[l];f0("error",q,u)}}function f0(q,A,u){{var l=J0.ReactDebugCurrentFrame,K0=l.getStackAddendum();if(K0!=="")A+="%s",u=u.concat([K0]);var o0=u.map(function(C0){return String(C0)});o0.unshift("Warning: "+A),Function.prototype.apply.call(console[q],console,o0)}}var H1={};function s0(q,A){{var u=q.constructor,l=u&&(u.displayName||u.name)||"ReactClass",K0=l+"."+A;if(H1[K0])return;I0("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.",A,l),H1[K0]=!0}}var O1={isMounted:function(q){return!1},enqueueForceUpdate:function(q,A,u){s0(q,"forceUpdate")},enqueueReplaceState:function(q,A,u,l){s0(q,"replaceState")},enqueueSetState:function(q,A,u,l){s0(q,"setState")}},i0=Object.assign,Y1={};Object.freeze(Y1);function C1(q,A,u){this.props=q,this.context=A,this.refs=Y1,this.updater=u||O1}C1.prototype.isReactComponent={},C1.prototype.setState=function(q,A){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,A,"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,A){Object.defineProperty(C1.prototype,q,{get:function(){P0("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1]);return}})};for(var Q4 in W4)if(W4.hasOwnProperty(Q4))H4(Q4,W4[Q4])}function _4(){}_4.prototype=C1.prototype;function a1(q,A,u){this.props=q,this.context=A,this.refs=Y1,this.updater=u||O1}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 u4=Array.isArray;function X4(q){return u4(q)}function E4(q){{var A=typeof Symbol==="function"&&Symbol.toStringTag,u=A&&q[Symbol.toStringTag]||q.constructor.name||"Object";return u}}function g4(q){try{return o1(q),!1}catch(A){return!0}}function o1(q){return""+q}function e0(q){if(g4(q))return I0("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",E4(q)),o1(q)}function h4(q,A,u){var l=q.displayName;if(l)return l;var K0=A.displayName||A.name||"";return K0!==""?u+"("+K0+")":u}function I4(q){return q.displayName||"Context"}function G4(q){if(q==null)return null;if(typeof q.tag==="number")I0("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 F:return"Profiler";case G:return"StrictMode";case k:return"Suspense";case P:return"SuspenseList"}if(typeof q==="object")switch(q.$$typeof){case _:var A=q;return I4(A)+".Consumer";case v:var u=q;return I4(u._context)+".Provider";case f:return h4(q,q.render,"ForwardRef");case w:var l=q.displayName||null;if(l!==null)return l;return G4(q.type)||"Memo";case R:{var K0=q,o0=K0._payload,C0=K0._init;try{return G4(C0(o0))}catch(p0){return null}}}return null}var O4=Object.prototype.hasOwnProperty,L5={key:!0,ref:!0,__self:!0,__source:!0},r1,Z6,n1;n1={};function J6(q){if(O4.call(q,"ref")){var A=Object.getOwnPropertyDescriptor(q,"ref").get;if(A&&A.isReactWarning)return!1}return q.ref!==void 0}function Z4(q){if(O4.call(q,"key")){var A=Object.getOwnPropertyDescriptor(q,"key").get;if(A&&A.isReactWarning)return!1}return q.key!==void 0}function K4(q,A){var u=function(){if(!r1)r1=!0,I0("%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)",A)};u.isReactWarning=!0,Object.defineProperty(q,"key",{get:u,configurable:!0})}function r4(q,A){var u=function(){if(!Z6)Z6=!0,I0("%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)",A)};u.isReactWarning=!0,Object.defineProperty(q,"ref",{get:u,configurable:!0})}function P6(q){if(typeof q.ref==="string"&&Z0.current&&q.__self&&Z0.current.stateNode!==q.__self){var A=G4(Z0.current.type);if(!n1[A])I0('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',A,q.ref),n1[A]=!0}}var v4=function(q,A,u,l,K0,o0,C0){var p0={$$typeof:K,type:q,key:A,ref:u,props:C0,_owner:o0};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:l}),Object.defineProperty(p0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K0}),Object.freeze)Object.freeze(p0.props),Object.freeze(p0);return p0};function C4(q,A,u){var l,K0={},o0=null,C0=null,p0=null,L1=null;if(A!=null){if(J6(A))C0=A.ref,P6(A);if(Z4(A))e0(A.key),o0=""+A.key;p0=A.__self===void 0?null:A.__self,L1=A.__source===void 0?null:A.__source;for(l in A)if(O4.call(A,l)&&!L5.hasOwnProperty(l))K0[l]=A[l]}var E1=arguments.length-2;if(E1===1)K0.children=u;else if(E1>1){var t1=Array(E1);for(var s1=0;s1<E1;s1++)t1[s1]=arguments[s1+2];if(Object.freeze)Object.freeze(t1);K0.children=t1}if(q&&q.defaultProps){var U4=q.defaultProps;for(l in U4)if(K0[l]===void 0)K0[l]=U4[l]}if(o0||C0){var M4=typeof q==="function"?q.displayName||q.name||"Unknown":q;if(o0)K4(K0,M4);if(C0)r4(K0,M4)}return v4(q,o0,C0,p0,L1,Z0.current,K0)}function q0(q,A){var u=v4(q.type,A,q.ref,q._self,q._source,q._owner,q.props);return u}function E0(q,A,u){if(q===null||q===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var l,K0=i0({},q.props),o0=q.key,C0=q.ref,p0=q._self,L1=q._source,E1=q._owner;if(A!=null){if(J6(A))C0=A.ref,E1=Z0.current;if(Z4(A))e0(A.key),o0=""+A.key;var t1;if(q.type&&q.type.defaultProps)t1=q.type.defaultProps;for(l in A)if(O4.call(A,l)&&!L5.hasOwnProperty(l))if(A[l]===void 0&&t1!==void 0)K0[l]=t1[l];else K0[l]=A[l]}var s1=arguments.length-2;if(s1===1)K0.children=u;else if(s1>1){var U4=Array(s1);for(var M4=0;M4<s1;M4++)U4[M4]=arguments[M4+2];K0.children=U4}return v4(q.type,o0,C0,p0,L1,E1,K0)}function d0(q){return typeof q==="object"&&q!==null&&q.$$typeof===K}var P1=".",S1=":";function L4(q){var A=/[=:]/g,u={"=":"=0",":":"=2"},l=q.replace(A,function(K0){return u[K0]});return"$"+l}var l1=!1,f4=/\/+/g;function Q1(q){return q.replace(f4,"$&/")}function b1(q,A){if(typeof q==="object"&&q!==null&&q.key!=null)return e0(q.key),L4(""+q.key);return A.toString(36)}function I6(q,A,u,l,K0){var o0=typeof q;if(o0==="undefined"||o0==="boolean")q=null;var C0=!1;if(q===null)C0=!0;else switch(o0){case"string":case"number":C0=!0;break;case"object":switch(q.$$typeof){case K:case B:C0=!0}}if(C0){var p0=q,L1=K0(p0),E1=l===""?P1+b1(p0,0):l;if(X4(L1)){var t1="";if(E1!=null)t1=Q1(E1)+"/";I6(L1,A,t1,"",function(bJ){return bJ})}else if(L1!=null){if(d0(L1)){if(L1.key&&(!p0||p0.key!==L1.key))e0(L1.key);L1=q0(L1,u+(L1.key&&(!p0||p0.key!==L1.key)?Q1(""+L1.key)+"/":"")+E1)}A.push(L1)}return 1}var s1,U4,M4=0,w1=l===""?P1:l+S1;if(X4(q))for(var qb=0;qb<q.length;qb++)s1=q[qb],U4=w1+b1(s1,qb),M4+=I6(s1,A,u,U4,K0);else{var X3=D(q);if(typeof X3==="function"){var A8=q;if(X3===A8.entries){if(!l1)P0("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");l1=!0}var eZ=X3.call(A8),J7,I8=0;while(!(J7=eZ.next()).done)s1=J7.value,U4=w1+b1(s1,I8++),M4+=I6(s1,A,u,U4,K0)}else if(o0==="object"){var f8=String(q);throw Error("Objects are not valid as a React child (found: "+(f8==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":f8)+"). If you meant to render a collection of children, use an array instead.")}}return M4}function n4(q,A,u){if(q==null)return q;var l=[],K0=0;return I6(q,l,"","",function(o0){return A.call(u,o0,K0++)}),l}function f6(q){var A=0;return n4(q,function(){A++}),A}function g5(q,A,u){n4(q,function(){A.apply(this,arguments)},u)}function N5(q){return n4(q,function(A){return A})||[]}function y5(q){if(!d0(q))throw Error("React.Children.only expected to receive a single React element child.");return q}function X5(q){var A={$$typeof:_,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:v,_context:A};var u=!1,l=!1,K0=!1;{var o0={$$typeof:_,_context:A};Object.defineProperties(o0,{Provider:{get:function(){if(!l)l=!0,I0("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 A.Provider},set:function(C0){A.Provider=C0}},_currentValue:{get:function(){return A._currentValue},set:function(C0){A._currentValue=C0}},_currentValue2:{get:function(){return A._currentValue2},set:function(C0){A._currentValue2=C0}},_threadCount:{get:function(){return A._threadCount},set:function(C0){A._threadCount=C0}},Consumer:{get:function(){if(!u)u=!0,I0("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 A.Consumer}},displayName:{get:function(){return A.displayName},set:function(C0){if(!K0)P0("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",C0),K0=!0}}}),A.Consumer=o0}return A._currentRenderer=null,A._currentRenderer2=null,A}var F6=-1,W5=0,q1=1,V1=2;function x1(q){if(q._status===F6){var A=q._result,u=A();if(u.then(function(o0){if(q._status===W5||q._status===F6){var C0=q;C0._status=q1,C0._result=o0}},function(o0){if(q._status===W5||q._status===F6){var C0=q;C0._status=V1,C0._result=o0}}),q._status===F6){var l=q;l._status=W5,l._result=u}}if(q._status===q1){var K0=q._result;if(K0===void 0)I0(`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?`,K0);if(!("default"in K0))I0(`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'))`,K0);return K0.default}else throw q._result}function M1(q){var A={_status:F6,_result:q},u={$$typeof:R,_payload:A,_init:x1};{var l,K0;Object.defineProperties(u,{defaultProps:{configurable:!0,get:function(){return l},set:function(o0){I0("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."),l=o0,Object.defineProperty(u,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return K0},set:function(o0){I0("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."),K0=o0,Object.defineProperty(u,"propTypes",{enumerable:!0})}}})}return u}function M(q){{if(q!=null&&q.$$typeof===w)I0("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof q!=="function")I0("forwardRef requires a render function but was given %s.",q===null?"null":typeof q);else if(q.length!==0&&q.length!==2)I0("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)I0("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var A={$$typeof:f,render:q};{var u;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(l){if(u=l,!q.name&&!q.displayName)q.displayName=l}})}return A}var i=Symbol.for("react.module.reference");function Q0(q){if(typeof q==="string"||typeof q==="function")return!0;if(q===L||q===F||e||q===G||q===k||q===P||p||q===c||W0||O0||_0)return!0;if(typeof q==="object"&&q!==null){if(q.$$typeof===R||q.$$typeof===w||q.$$typeof===v||q.$$typeof===_||q.$$typeof===f||q.$$typeof===i||q.getModuleId!==void 0)return!0}return!1}function W(q,A){if(!Q0(q))I0("memo: The first argument must be a component. Instead received: %s",q===null?"null":typeof q);var u={$$typeof:w,type:q,compare:A===void 0?null:A};{var l;Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return l},set:function(K0){if(l=K0,!q.name&&!q.displayName)q.displayName=K0}})}return u}function h(){var q=C.current;if(q===null)I0(`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 b0(q){var A=h();if(q._context!==void 0){var u=q._context;if(u.Consumer===q)I0("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)I0("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(q)}function Y0(q){var A=h();return A.useState(q)}function L0(q,A,u){var l=h();return l.useReducer(q,A,u)}function V0(q){var A=h();return A.useRef(q)}function A0(q,A){var u=h();return u.useEffect(q,A)}function z0(q,A){var u=h();return u.useInsertionEffect(q,A)}function U0(q,A){var u=h();return u.useLayoutEffect(q,A)}function m0(q,A){var u=h();return u.useCallback(q,A)}function B1(q,A){var u=h();return u.useMemo(q,A)}function D1(q,A,u){var l=h();return l.useImperativeHandle(q,A,u)}function T6(q,A){{var u=h();return u.useDebugValue(q,A)}}function x6(){var q=h();return q.useTransition()}function J4(q){var A=h();return A.useDeferredValue(q)}function J1(){var q=h();return q.useId()}function X7(q,A,u){var l=h();return l.useSyncExternalStore(q,A,u)}var c5=0,O8,L8,N8,W8,_8,P8,F8;function BQ(){}BQ.__reactDisabledLog=!0;function nZ(){{if(c5===0){O8=console.log,L8=console.info,N8=console.warn,W8=console.error,_8=console.group,P8=console.groupCollapsed,F8=console.groupEnd;var q={configurable:!0,enumerable:!0,value:BQ,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}c5++}}function v8(){{if(c5--,c5===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:i0({},q,{value:O8}),info:i0({},q,{value:L8}),warn:i0({},q,{value:N8}),error:i0({},q,{value:W8}),group:i0({},q,{value:_8}),groupCollapsed:i0({},q,{value:P8}),groupEnd:i0({},q,{value:F8})})}if(c5<0)I0("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gb=J0.ReactCurrentDispatcher,Z5;function C7(q,A,u){{if(Z5===void 0)try{throw Error()}catch(K0){var l=K0.stack.trim().match(/\n( *(at )?)/);Z5=l&&l[1]||""}return`
14
+ `+Z5+q}}var S7=!1,sb;{var M8=typeof WeakMap==="function"?WeakMap:Map;sb=new M8}function OQ(q,A){if(!q||S7)return"";{var u=sb.get(q);if(u!==void 0)return u}var l;S7=!0;var K0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var o0;o0=Gb.current,Gb.current=null,nZ();try{if(A){var C0=function(){throw Error()};if(Object.defineProperty(C0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(C0,[])}catch(w1){l=w1}Reflect.construct(q,[],C0)}else{try{C0.call()}catch(w1){l=w1}q.call(C0.prototype)}}else{try{throw Error()}catch(w1){l=w1}q()}}catch(w1){if(w1&&l&&typeof w1.stack==="string"){var p0=w1.stack.split(`
15
+ `),L1=l.stack.split(`
16
+ `),E1=p0.length-1,t1=L1.length-1;while(E1>=1&&t1>=0&&p0[E1]!==L1[t1])t1--;for(;E1>=1&&t1>=0;E1--,t1--)if(p0[E1]!==L1[t1]){if(E1!==1||t1!==1)do if(E1--,t1--,t1<0||p0[E1]!==L1[t1]){var s1=`
17
+ `+p0[E1].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(E1>=1&&t1>=0);break}}}finally{S7=!1,Gb.current=o0,v8(),Error.prepareStackTrace=K0}var U4=q?q.displayName||q.name:"",M4=U4?C7(U4):"";if(typeof q==="function")sb.set(q,M4);return M4}function R8(q,A,u){return OQ(q,!1)}function tZ(q){var A=q.prototype;return!!(A&&A.isReactComponent)}function V7(q,A,u){if(q==null)return"";if(typeof q==="function")return OQ(q,tZ(q));if(typeof q==="string")return C7(q);switch(q){case k:return C7("Suspense");case P:return C7("SuspenseList")}if(typeof q==="object")switch(q.$$typeof){case f:return R8(q.render);case w:return V7(q.type,A,u);case R:{var l=q,K0=l._payload,o0=l._init;try{return V7(o0(K0),A,u)}catch(C0){}}}return""}var LQ={},k8=J0.ReactDebugCurrentFrame;function eb(q){if(q){var A=q._owner,u=V7(q.type,q._source,A?A.type:null);k8.setExtraStackFrame(u)}else k8.setExtraStackFrame(null)}function NQ(q,A,u,l,K0){{var o0=Function.call.bind(O4);for(var C0 in q)if(o0(q,C0)){var p0=void 0;try{if(typeof q[C0]!=="function"){var L1=Error((l||"React class")+": "+u+" type `"+C0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[C0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L1.name="Invariant Violation",L1}p0=q[C0](A,C0,l,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E1){p0=E1}if(p0&&!(p0 instanceof Error))eb(K0),I0("%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).",l||"React class",u,C0,typeof p0),eb(null);if(p0 instanceof Error&&!(p0.message in LQ))LQ[p0.message]=!0,eb(K0),I0("Failed %s type: %s",u,p0.message),eb(null)}}}function v1(q){if(q){var A=q._owner,u=V7(q.type,q._source,A?A.type:null);s(u)}else s(null)}var WQ=!1;function w8(){if(Z0.current){var q=G4(Z0.current.type);if(q)return`
18
+
19
+ Check the render method of \``+q+"`."}return""}function X1(q){if(q!==void 0){var A=q.fileName.replace(/^.*[\\\/]/,""),u=q.lineNumber;return`
20
+
21
+ Check your code at `+A+":"+u+"."}return""}function _Q(q){if(q!==null&&q!==void 0)return X1(q.__source);return""}var v6={};function Kb(q){var A=w8();if(!A){var u=typeof q==="string"?q:q.displayName||q.name;if(u)A=`
22
+
23
+ Check the top-level render call using <`+u+">."}return A}function D7(q,A){if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var u=Kb(A);if(v6[u])return;v6[u]=!0;var l="";if(q&&q._owner&&q._owner!==Z0.current)l=" It was passed a child from "+G4(q._owner.type)+".";v1(q),I0('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,l),v1(null)}function PQ(q,A){if(typeof q!=="object")return;if(X4(q))for(var u=0;u<q.length;u++){var l=q[u];if(d0(l))D7(l,A)}else if(d0(q)){if(q._store)q._store.validated=!0}else if(q){var K0=D(q);if(typeof K0==="function"){if(K0!==q.entries){var o0=K0.call(q),C0;while(!(C0=o0.next()).done)if(d0(C0.value))D7(C0.value,A)}}}}function t4(q){{var A=q.type;if(A===null||A===void 0||typeof A==="string")return;var u;if(typeof A==="function")u=A.propTypes;else if(typeof A==="object"&&(A.$$typeof===f||A.$$typeof===w))u=A.propTypes;else return;if(u){var l=G4(A);NQ(u,q.props,"prop",l,q)}else if(A.PropTypes!==void 0&&!WQ){WQ=!0;var K0=G4(A);I0("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K0||"Unknown")}if(typeof A.getDefaultProps==="function"&&!A.getDefaultProps.isReactClassApproved)I0("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function P4(q){{var A=Object.keys(q.props);for(var u=0;u<A.length;u++){var l=A[u];if(l!=="children"&&l!=="key"){v1(q),I0("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),v1(null);break}}if(q.ref!==null)v1(q),I0("Invalid attribute `ref` supplied to `React.Fragment`."),v1(null)}}function FQ(q,A,u){var l=Q0(q);if(!l){var K0="";if(q===void 0||typeof q==="object"&&q!==null&&Object.keys(q).length===0)K0+=" 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 o0=_Q(A);if(o0)K0+=o0;else K0+=w8();var C0;if(q===null)C0="null";else if(X4(q))C0="array";else if(q!==void 0&&q.$$typeof===K)C0="<"+(G4(q.type)||"Unknown")+" />",K0=" Did you accidentally export a JSX literal instead of a component?";else C0=typeof q;I0("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C0,K0)}var p0=C4.apply(this,arguments);if(p0==null)return p0;if(l)for(var L1=2;L1<arguments.length;L1++)PQ(arguments[L1],q);if(q===L)P4(p0);else t4(p0);return p0}var j6=!1;function g6(q){var A=FQ.bind(null,q);A.type=q;{if(!j6)j6=!0,P0("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(A,"type",{enumerable:!1,get:function(){return P0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:q}),q}})}return A}function d5(q,A,u){var l=E0.apply(this,arguments);for(var K0=2;K0<arguments.length;K0++)PQ(arguments[K0],l.type);return t4(l),l}function sZ(q,A){var u=G0.transition;G0.transition={};var l=G0.transition;G0.transition._updatedFibers=new Set;try{q()}finally{if(G0.transition=u,u===null&&l._updatedFibers){var K0=l._updatedFibers.size;if(K0>10)P0("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.");l._updatedFibers.clear()}}}var b3=!1,Ub=null;function vQ(q){if(Ub===null)try{var A=("require"+Math.random()).slice(0,7),u=hZ&&hZ[A];Ub=u.call(hZ,"timers").setImmediate}catch(l){Ub=function(K0){if(b3===!1){if(b3=!0,typeof MessageChannel>"u")I0("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 o0=new MessageChannel;o0.port1.onmessage=K0,o0.port2.postMessage(void 0)}}return Ub(q)}var m7=0,MQ=!1;function RQ(q){{var A=m7;if(m7++,n.current===null)n.current=[];var u=n.isBatchingLegacy,l;try{if(n.isBatchingLegacy=!0,l=q(),!u&&n.didScheduleLegacyUpdate){var K0=n.current;if(K0!==null)n.didScheduleLegacyUpdate=!1,Q3(K0)}}catch(U4){throw Z7(A),U4}finally{n.isBatchingLegacy=u}if(l!==null&&typeof l==="object"&&typeof l.then==="function"){var o0=l,C0=!1,p0={then:function(U4,M4){C0=!0,o0.then(function(w1){if(Z7(A),m7===0)z3(w1,U4,M4);else U4(w1)},function(w1){Z7(A),M4(w1)})}};if(!MQ&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!C0)MQ=!0,I0("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 L1=l;if(Z7(A),m7===0){var E1=n.current;if(E1!==null)Q3(E1),n.current=null;var t1={then:function(U4,M4){if(n.current===null)n.current=[],z3(L1,U4,M4);else U4(L1)}};return t1}else{var s1={then:function(U4,M4){U4(L1)}};return s1}}}}function Z7(q){{if(q!==m7-1)I0("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");m7=q}}function z3(q,A,u){{var l=n.current;if(l!==null)try{Q3(l),vQ(function(){if(l.length===0)n.current=null,A(q);else z3(q,A,u)})}catch(K0){u(K0)}else A(q)}}var u7=!1;function Q3(q){if(!u7){u7=!0;var A=0;try{for(;A<q.length;A++){var u=q[A];do u=u(!0);while(u!==null)}q.length=0}catch(l){throw q=q.slice(A+1),l}finally{u7=!1}}}var kQ=FQ,wQ=d5,AQ=g6,IQ={map:n4,forEach:g5,count:f6,toArray:N5,only:y5};if(lM.Children=IQ,lM.Component=C1,lM.Fragment=L,lM.Profiler=F,lM.PureComponent=a1,lM.StrictMode=G,lM.Suspense=k,lM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J0,lM.act=RQ,lM.cloneElement=wQ,lM.createContext=X5,lM.createElement=kQ,lM.createFactory=AQ,lM.createRef=Y4,lM.forwardRef=M,lM.isValidElement=d0,lM.lazy=M1,lM.memo=W,lM.startTransition=sZ,lM.unstable_act=RQ,lM.useCallback=m0,lM.useContext=b0,lM.useDebugValue=T6,lM.useDeferredValue=J4,lM.useEffect=A0,lM.useId=J1,lM.useImperativeHandle=D1,lM.useInsertionEffect=z0,lM.useLayoutEffect=U0,lM.useMemo=B1,lM.useReducer=L0,lM.useRef=V0,lM.useState=Y0,lM.useSyncExternalStore=X7,lM.useTransition=x6,lM.version=$,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mq=lb((iM)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $=!1,K=!1,B=5;function L(q0,E0){var d0=q0.length;q0.push(E0),v(q0,E0,d0)}function G(q0){return q0.length===0?null:q0[0]}function F(q0){if(q0.length===0)return null;var E0=q0[0],d0=q0.pop();if(d0!==E0)q0[0]=d0,_(q0,d0,0);return E0}function v(q0,E0,d0){var P1=d0;while(P1>0){var S1=P1-1>>>1,L4=q0[S1];if(f(L4,E0)>0)q0[S1]=E0,q0[P1]=L4,P1=S1;else return}}function _(q0,E0,d0){var P1=d0,S1=q0.length,L4=S1>>>1;while(P1<L4){var l1=(P1+1)*2-1,f4=q0[l1],Q1=l1+1,b1=q0[Q1];if(f(f4,E0)<0)if(Q1<S1&&f(b1,f4)<0)q0[P1]=b1,q0[Q1]=E0,P1=Q1;else q0[P1]=f4,q0[l1]=E0,P1=l1;else if(Q1<S1&&f(b1,E0)<0)q0[P1]=b1,q0[Q1]=E0,P1=Q1;else return}}function f(q0,E0){var d0=q0.sortIndex-E0.sortIndex;return d0!==0?d0:q0.id-E0.id}var k=1,P=2,w=3,R=4,c=5;function m(q0,E0){}var x=typeof performance==="object"&&typeof performance.now==="function";if(x){var D=performance;iM.unstable_now=function(){return D.now()}}else{var C=Date,G0=C.now();iM.unstable_now=function(){return C.now()-G0}}var n=1073741823,Z0=-1,j=250,a=5000,s=1e4,W0=n,O0=[],_0=[],p=1,e=null,J0=w,P0=!1,I0=!1,f0=!1,H1=typeof setTimeout==="function"?setTimeout:null,s0=typeof clearTimeout==="function"?clearTimeout:null,O1=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 Y1(q0){var E0=G(_0);while(E0!==null){if(E0.callback===null)F(_0);else if(E0.startTime<=q0)F(_0),E0.sortIndex=E0.expirationTime,L(O0,E0);else return;E0=G(_0)}}function C1(q0){if(f0=!1,Y1(q0),!I0)if(G(O0)!==null)I0=!0,K4(W4);else{var E0=G(_0);if(E0!==null)r4(C1,E0.startTime-q0)}}function W4(q0,E0){if(I0=!1,f0)f0=!1,P6();P0=!0;var d0=J0;try{if(K)try{return H4(q0,E0)}catch(S1){if(e!==null){var P1=iM.unstable_now();m(e,P1),e.isQueued=!1}throw S1}else return H4(q0,E0)}finally{e=null,J0=d0,P0=!1}}function H4(q0,E0){var d0=E0;Y1(d0),e=G(O0);while(e!==null&&!$){if(e.expirationTime>d0&&(!q0||O4()))break;var P1=e.callback;if(typeof P1==="function"){e.callback=null,J0=e.priorityLevel;var S1=e.expirationTime<=d0,L4=P1(S1);if(d0=iM.unstable_now(),typeof L4==="function")e.callback=L4;else if(e===G(O0))F(O0);Y1(d0)}else F(O0);e=G(O0)}if(e!==null)return!0;else{var l1=G(_0);if(l1!==null)r4(C1,l1.startTime-d0);return!1}}function Q4(q0,E0){switch(q0){case k:case P:case w:case R:case c:break;default:q0=w}var d0=J0;J0=q0;try{return E0()}finally{J0=d0}}function _4(q0){var E0;switch(J0){case k:case P:case w:E0=w;break;default:E0=J0;break}var d0=J0;J0=E0;try{return q0()}finally{J0=d0}}function a1(q0){var E0=J0;return function(){var d0=J0;J0=E0;try{return q0.apply(this,arguments)}finally{J0=d0}}}function i1(q0,E0,d0){var P1=iM.unstable_now(),S1;if(typeof d0==="object"&&d0!==null){var L4=d0.delay;if(typeof L4==="number"&&L4>0)S1=P1+L4;else S1=P1}else S1=P1;var l1;switch(q0){case k:l1=Z0;break;case P:l1=j;break;case c:l1=W0;break;case R:l1=s;break;case w:default:l1=a;break}var f4=S1+l1,Q1={id:p++,callback:E0,priorityLevel:q0,startTime:S1,expirationTime:f4,sortIndex:-1};if(S1>P1){if(Q1.sortIndex=S1,L(_0,Q1),G(O0)===null&&Q1===G(_0)){if(f0)P6();else f0=!0;r4(C1,S1-P1)}}else if(Q1.sortIndex=f4,L(O0,Q1),!I0&&!P0)I0=!0,K4(W4);return Q1}function Y4(){}function u4(){if(!I0&&!P0)I0=!0,K4(W4)}function X4(){return G(O0)}function E4(q0){q0.callback=null}function g4(){return J0}var o1=!1,e0=null,h4=-1,I4=B,G4=-1;function O4(){var q0=iM.unstable_now()-G4;if(q0<I4)return!1;return!0}function L5(){}function r1(q0){if(q0<0||q0>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(q0>0)I4=Math.floor(1000/q0);else I4=B}var Z6=function(){if(e0!==null){var q0=iM.unstable_now();G4=q0;var E0=!0,d0=!0;try{d0=e0(E0,q0)}finally{if(d0)n1();else o1=!1,e0=null}}else o1=!1},n1;if(typeof O1==="function")n1=function(){O1(Z6)};else if(typeof MessageChannel<"u"){var J6=new MessageChannel,Z4=J6.port2;J6.port1.onmessage=Z6,n1=function(){Z4.postMessage(null)}}else n1=function(){H1(Z6,0)};function K4(q0){if(e0=q0,!o1)o1=!0,n1()}function r4(q0,E0){h4=H1(function(){q0(iM.unstable_now())},E0)}function P6(){s0(h4),h4=-1}var v4=L5,C4=null;if(iM.unstable_IdlePriority=c,iM.unstable_ImmediatePriority=k,iM.unstable_LowPriority=R,iM.unstable_NormalPriority=w,iM.unstable_Profiling=C4,iM.unstable_UserBlockingPriority=P,iM.unstable_cancelCallback=E4,iM.unstable_continueExecution=u4,iM.unstable_forceFrameRate=r1,iM.unstable_getCurrentPriorityLevel=g4,iM.unstable_getFirstCallbackNode=X4,iM.unstable_next=_4,iM.unstable_pauseExecution=Y4,iM.unstable_requestPaint=v4,iM.unstable_runWithPriority=Q4,iM.unstable_scheduleCallback=i1,iM.unstable_shouldYield=O4,iM.unstable_wrapCallback=a1,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uq=lb((oM)=>{var ZQ=H0(m1()),d1=H0(mq());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $=ZQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,K=!1;function B(b){K=b}function L(b){if(!K){for(var z=arguments.length,Q=Array(z>1?z-1:0),X=1;X<z;X++)Q[X-1]=arguments[X];F("warn",b,Q)}}function G(b){if(!K){for(var z=arguments.length,Q=Array(z>1?z-1:0),X=1;X<z;X++)Q[X-1]=arguments[X];F("error",b,Q)}}function F(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 v=0,_=1,f=2,k=3,P=4,w=5,R=6,c=7,m=8,x=9,D=10,C=11,G0=12,n=13,Z0=14,j=15,a=16,s=17,W0=18,O0=19,_0=21,p=22,e=23,J0=24,P0=25,I0=!0,f0=!1,H1=!1,s0=!1,O1=!1,i0=!0,Y1=!1,C1=!0,W4=!0,H4=!0,Q4=!0,_4=new Set,a1={},i1={};function Y4(b,z){u4(b,z),u4(b+"Capture",z)}function u4(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",E4=Object.prototype.hasOwnProperty;function g4(b){{var z=typeof Symbol==="function"&&Symbol.toStringTag,Q=z&&b[Symbol.toStringTag]||b.constructor.name||"Object";return Q}}function o1(b){try{return e0(b),!1}catch(z){return!0}}function e0(b){return""+b}function h4(b,z){if(o1(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,g4(b)),e0(b)}function I4(b){if(o1(b))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",g4(b)),e0(b)}function G4(b,z){if(o1(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,g4(b)),e0(b)}function O4(b,z){if(o1(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,g4(b)),e0(b)}function L5(b){if(o1(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.",g4(b)),e0(b)}function r1(b){if(o1(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.",g4(b)),e0(b)}var Z6=0,n1=1,J6=2,Z4=3,K4=4,r4=5,P6=6,v4=":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=v4+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",q0=new RegExp("^["+v4+"]["+C4+"]*$"),E0={},d0={};function P1(b){if(E4.call(d0,b))return!0;if(E4.call(E0,b))return!1;if(q0.test(b))return d0[b]=!0,!0;return E0[b]=!0,G("Invalid attribute name: `%s`",b),!1}function S1(b,z,Q){if(z!==null)return z.type===Z6;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===Z6)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 r4:return isNaN(z);case P6:return isNaN(z)||z<1}return!1}function f4(b){return b1.hasOwnProperty(b)?b1[b]:null}function Q1(b,z,Q,X,Z,J,H){this.acceptsBooleans=z===J6||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 b1={},I6=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];I6.forEach(function(b){b1[b]=new Q1(b,Z6,!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];b1[z]=new Q1(z,n1,!1,Q,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){b1[b]=new Q1(b,J6,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){b1[b]=new Q1(b,J6,!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){b1[b]=new Q1(b,Z4,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){b1[b]=new Q1(b,Z4,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){b1[b]=new Q1(b,K4,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){b1[b]=new Q1(b,P6,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){b1[b]=new Q1(b,r4,!1,b.toLowerCase(),null,!1,!1)});var n4=/[\-\:]([a-z])/g,f6=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(n4,f6);b1[z]=new Q1(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(n4,f6);b1[z]=new Q1(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(n4,f6);b1[z]=new Q1(z,n1,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){b1[b]=new Q1(b,n1,!1,b.toLowerCase(),null,!1,!1)});var g5="xlinkHref";b1[g5]=new Q1("xlinkHref",n1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){b1[b]=new Q1(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,y5=!1;function X5(b){if(!y5&&N5.test(b))y5=!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 F6(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(!P1(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 q1(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(P1(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 U=Z.type;b[Y]=U===Z4?!1:""}else b[Y]=Q;return}var{attributeName:O,attributeNamespace:N}=Z;if(Q===null)b.removeAttribute(O);else{var T=Z.type,I;if(T===Z4||T===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"),x1=Symbol.for("react.portal"),M1=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),Q0=Symbol.for("react.provider"),W=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),b0=Symbol.for("react.suspense"),Y0=Symbol.for("react.suspense_list"),L0=Symbol.for("react.memo"),V0=Symbol.for("react.lazy"),A0=Symbol.for("react.scope"),z0=Symbol.for("react.debug_trace_mode"),U0=Symbol.for("react.offscreen"),m0=Symbol.for("react.legacy_hidden"),B1=Symbol.for("react.cache"),D1=Symbol.for("react.tracing_marker"),T6=Symbol.iterator,x6="@@iterator";function J4(b){if(b===null||typeof b!=="object")return null;var z=T6&&b[T6]||b[x6];if(typeof z==="function")return z;return null}var J1=Object.assign,X7=0,c5,O8,L8,N8,W8,_8,P8;function F8(){}F8.__reactDisabledLog=!0;function BQ(){{if(X7===0){c5=console.log,O8=console.info,L8=console.warn,N8=console.error,W8=console.group,_8=console.groupCollapsed,P8=console.groupEnd;var b={configurable:!0,enumerable:!0,value:F8,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}X7++}}function nZ(){{if(X7--,X7===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J1({},b,{value:c5}),info:J1({},b,{value:O8}),warn:J1({},b,{value:L8}),error:J1({},b,{value:N8}),group:J1({},b,{value:W8}),groupCollapsed:J1({},b,{value:_8}),groupEnd:J1({},b,{value:P8})})}if(X7<0)G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var v8=$.ReactCurrentDispatcher,Gb;function Z5(b,z,Q){{if(Gb===void 0)try{throw Error()}catch(Z){var X=Z.stack.trim().match(/\n( *(at )?)/);Gb=X&&X[1]||""}return`
24
+ `+Gb+b}}var C7=!1,S7;{var sb=typeof WeakMap==="function"?WeakMap:Map;S7=new sb}function M8(b,z){if(!b||C7)return"";{var Q=S7.get(b);if(Q!==void 0)return Q}var X;C7=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=v8.current,v8.current=null,BQ();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
+ `),U=X.stack.split(`
26
+ `),O=Y.length-1,N=U.length-1;while(O>=1&&N>=0&&Y[O]!==U[N])N--;for(;O>=1&&N>=0;O--,N--)if(Y[O]!==U[N]){if(O!==1||N!==1)do if(O--,N--,N<0||Y[O]!==U[N]){var T=`
27
+ `+Y[O].replace(" at new "," at ");if(b.displayName&&T.includes("<anonymous>"))T=T.replace("<anonymous>",b.displayName);if(typeof b==="function")S7.set(b,T);return T}while(O>=1&&N>=0);break}}}finally{C7=!1,v8.current=J,nZ(),Error.prepareStackTrace=Z}var I=b?b.displayName||b.name:"",E=I?Z5(I):"";if(typeof b==="function")S7.set(b,E);return E}function OQ(b,z,Q){return M8(b,!0)}function R8(b,z,Q){return M8(b,!1)}function tZ(b){var z=b.prototype;return!!(z&&z.isReactComponent)}function V7(b,z,Q){if(b==null)return"";if(typeof b==="function")return M8(b,tZ(b));if(typeof b==="string")return Z5(b);switch(b){case b0:return Z5("Suspense");case Y0:return Z5("SuspenseList")}if(typeof b==="object")switch(b.$$typeof){case h:return R8(b.render);case L0:return V7(b.type,z,Q);case V0:{var X=b,Z=X._payload,J=X._init;try{return V7(J(Z),z,Q)}catch(H){}}}return""}function LQ(b){var z=b._debugOwner?b._debugOwner.type:null,Q=b._debugSource;switch(b.tag){case w:return Z5(b.type);case a:return Z5("Lazy");case n:return Z5("Suspense");case O0:return Z5("SuspenseList");case v:case f:case j:return R8(b.type);case C:return R8(b.type.render);case _:return OQ(b.type);default:return""}}function k8(b){try{var z="",Q=b;do z+=LQ(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 NQ(b){return b.displayName||"Context"}function v1(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 M1:return"Fragment";case x1:return"Portal";case i:return"Profiler";case M:return"StrictMode";case b0:return"Suspense";case Y0:return"SuspenseList"}if(typeof b==="object")switch(b.$$typeof){case W:var z=b;return NQ(z)+".Consumer";case Q0:var Q=b;return NQ(Q._context)+".Provider";case h:return eb(b,b.render,"ForwardRef");case L0:var X=b.displayName||null;if(X!==null)return X;return v1(b.type)||"Memo";case V0:{var Z=b,J=Z._payload,H=Z._init;try{return v1(H(J))}catch(Y){return null}}}return null}function WQ(b,z,Q){var X=z.displayName||z.name||"";return b.displayName||(X!==""?Q+"("+X+")":Q)}function w8(b){return b.displayName||"Context"}function X1(b){var{tag:z,type:Q}=b;switch(z){case J0:return"Cache";case x:var X=Q;return w8(X)+".Consumer";case D:var Z=Q;return w8(Z._context)+".Provider";case W0:return"DehydratedFragment";case C:return WQ(Q,Q.render,"ForwardRef");case c:return"Fragment";case w:return Q;case P:return"Portal";case k:return"Root";case R:return"Text";case a:return v1(Q);case m:if(Q===M)return"StrictMode";return"Mode";case p:return"Offscreen";case G0:return"Profiler";case _0:return"Scope";case n:return"Suspense";case O0:return"SuspenseList";case P0:return"TracingMarker";case _:case v:case s:case f:case Z0:case j:if(typeof Q==="function")return Q.displayName||Q.name||null;if(typeof Q==="string")return Q;break}return null}var _Q=$.ReactDebugCurrentFrame,v6=null,Kb=!1;function D7(){{if(v6===null)return null;var b=v6._debugOwner;if(b!==null&&typeof b<"u")return X1(b)}return null}function PQ(){{if(v6===null)return"";return k8(v6)}}function t4(){_Q.getCurrentStack=null,v6=null,Kb=!1}function P4(b){_Q.getCurrentStack=b===null?null:PQ,v6=b,Kb=!1}function FQ(){return v6}function j6(b){Kb=b}function g6(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 sZ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function b3(b,z){{if(!(sZ[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 Ub(b){var{type:z,nodeName:Q}=b;return Q&&Q.toLowerCase()==="input"&&(z==="checkbox"||z==="radio")}function vQ(b){return b._valueTracker}function m7(b){b._valueTracker=null}function MQ(b){var z="";if(!b)return z;if(Ub(b))z=b.checked?"true":"false";else z=b.value;return z}function RQ(b){var z=Ub(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(){m7(b),delete b[z]}};return H}function Z7(b){if(vQ(b))return;b._valueTracker=RQ(b)}function z3(b){if(!b)return!1;var z=vQ(b);if(!z)return!0;var Q=z.getValue(),X=MQ(b);if(X!==Q)return z.setValue(X),!0;return!1}function u7(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 Q3=!1,kQ=!1,wQ=!1,AQ=!1;function IQ(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=J1({},z,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:X!=null?X:Q._wrapperState.initialChecked});return Z}function A(b,z){{if(b3("input",z),z.checked!==void 0&&z.defaultChecked!==void 0&&!kQ)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",D7()||"A component",z.type),kQ=!0;if(z.value!==void 0&&z.defaultValue!==void 0&&!Q3)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",D7()||"A component",z.type),Q3=!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:IQ(z)}}function u(b,z){var Q=b,X=z.checked;if(X!=null)q1(Q,"checked",X,!1)}function l(b,z){var Q=b;{var X=IQ(z);if(!Q._wrapperState.controlled&&X&&!AQ)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"),AQ=!0;if(Q._wrapperState.controlled&&!X&&!wQ)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"),wQ=!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=g6(Z)}else if(Q.value!==g6(Z))Q.value=g6(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 K0(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=g6(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 o0(b,z){var Q=b;l(Q,z),C0(Q,z)}function C0(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=OX(H);if(!Y)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");z3(H),l(H,Y)}}}function p0(b,z,Q){if(z!=="number"||u7(b.ownerDocument)!==b){if(Q==null)b.defaultValue=g6(b._wrapperState.initialValue);else if(b.defaultValue!==g6(Q))b.defaultValue=g6(Q)}}var L1=!1,E1=!1,t1=!1;function s1(b,z){{if(z.value==null){if(typeof z.children==="object"&&z.children!==null)ZQ.Children.forEach(z.children,function(Q){if(Q==null)return;if(typeof Q==="string"||typeof Q==="number")return;if(!E1)E1=!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&&!L1)G("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),L1=!0}}function U4(b,z){if(z.value!=null)b.setAttribute("value",g6(d5(z.value)))}var M4=Array.isArray;function w1(b){return M4(b)}var qb=!1;function X3(){var b=D7();if(b)return`
30
+
31
+ Check the render method of \``+b+"`.";return""}var A8=["value","defaultValue"];function eZ(b){{b3("select",b);for(var z=0;z<A8.length;z++){var Q=A8[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,X3());else if(!b.multiple&&X)G("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Q,X3())}}}function J7(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 U=0;U<Z.length;U++){var O=H.hasOwnProperty("$"+Z[U].value);if(Z[U].selected!==O)Z[U].selected=O;if(O&&X)Z[U].defaultSelected=!0}}else{var N=g6(d5(Q)),T=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(T===null&&!Z[I].disabled)T=Z[I]}if(T!==null)T.selected=!0}}function I8(b,z){return J1({},z,{value:void 0})}function f8(b,z){var Q=b;if(eZ(z),Q._wrapperState={wasMultiple:!!z.multiple},z.value!==void 0&&z.defaultValue!==void 0&&!qb)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"),qb=!0}function bJ(b,z){var Q=b;Q.multiple=!!z.multiple;var X=z.value;if(X!=null)J7(Q,!!z.multiple,X,!1);else if(z.defaultValue!=null)J7(Q,!!z.multiple,z.defaultValue,!0)}function PB(b,z){var Q=b,X=Q._wrapperState.wasMultiple;Q._wrapperState.wasMultiple=!!z.multiple;var Z=z.value;if(Z!=null)J7(Q,!!z.multiple,Z,!1);else if(X!==!!z.multiple)if(z.defaultValue!=null)J7(Q,!!z.multiple,z.defaultValue,!0);else J7(Q,!!z.multiple,z.multiple?[]:"",!1)}function FB(b,z){var Q=b,X=z.value;if(X!=null)J7(Q,!!z.multiple,X,!1)}var wG=!1;function zJ(b,z){var Q=b;if(z.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var X=J1({},z,{value:void 0,defaultValue:void 0,children:g6(Q._wrapperState.initialValue)});return X}function AG(b,z){var Q=b;if(b3("textarea",z),z.value!==void 0&&z.defaultValue!==void 0&&!wG)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",D7()||"A component"),wG=!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 IG(b,z){var Q=b,X=d5(z.value),Z=d5(z.defaultValue);if(X!=null){var J=g6(X);if(J!==Q.value)Q.value=J;if(z.defaultValue==null&&Q.defaultValue!==J)Q.defaultValue=J}if(Z!=null)Q.defaultValue=g6(Z)}function fG(b,z){var Q=b,X=Q.textContent;if(X===Q._wrapperState.initialValue){if(X!==""&&X!==null)Q.value=X}}function vB(b,z){IG(b,z)}var $7="http://www.w3.org/1999/xhtml",MB="http://www.w3.org/1998/Math/MathML",QJ="http://www.w3.org/2000/svg";function XJ(b){switch(b){case"svg":return QJ;case"math":return MB;default:return $7}}function ZJ(b,z){if(b==null||b===$7)return XJ(z);if(b===QJ&&z==="foreignObject")return $7;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},fQ,TG=RB(function(b,z){if(b.namespaceURI===QJ){if(!("innerHTML"in b)){fQ=fQ||document.createElement("div"),fQ.innerHTML="<svg>"+z.valueOf().toString()+"</svg>";var Q=fQ.firstChild;while(b.firstChild)b.removeChild(b.firstChild);while(Q.firstChild)b.appendChild(Q.firstChild);return}}b.innerHTML=z}),y6=1,H7=3,S4=8,Y7=9,JJ=11,TQ=function(b,z){if(z){var Q=b.firstChild;if(Q&&Q===b.lastChild&&Q.nodeType===H7){Q.nodeValue=z;return}}b.textContent=z},kB={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"]},T8={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 wB(b,z){return b+z.charAt(0).toUpperCase()+z.substring(1)}var AB=["Webkit","ms","Moz","O"];Object.keys(T8).forEach(function(b){AB.forEach(function(z){T8[wB(z,b)]=T8[b]})});function $J(b,z,Q){var X=z==null||typeof z==="boolean"||z==="";if(X)return"";if(!Q&&typeof z==="number"&&z!==0&&!(T8.hasOwnProperty(b)&&T8[b]))return z+"px";return O4(z,b),(""+z).trim()}var IB=/([A-Z])/g,fB=/^ms-/;function TB(b){return b.replace(IB,"-$1").toLowerCase().replace(fB,"-ms-")}var hG=function(){};{var hB=/^(?:webkit|moz|o)[A-Z]/,CB=/^-ms-/,SB=/-(.)/g,CG=/;\s*$/,Z3={},HJ={},SG=!1,VG=!1,VB=function(b){return b.replace(SB,function(z,Q){return Q.toUpperCase()})},DB=function(b){if(Z3.hasOwnProperty(b)&&Z3[b])return;Z3[b]=!0,G("Unsupported style property %s. Did you mean %s?",b,VB(b.replace(CB,"ms-")))},mB=function(b){if(Z3.hasOwnProperty(b)&&Z3[b])return;Z3[b]=!0,G("Unsupported vendor-prefixed style property %s. Did you mean %s?",b,b.charAt(0).toUpperCase()+b.slice(1))},uB=function(b,z){if(HJ.hasOwnProperty(z)&&HJ[z])return;HJ[z]=!0,G(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,b,z.replace(CG,""))},EB=function(b,z){if(SG)return;SG=!0,G("`NaN` is an invalid value for the `%s` css style property.",b)},gB=function(b,z){if(VG)return;VG=!0,G("`Infinity` is an invalid value for the `%s` css style property.",b)};hG=function(b,z){if(b.indexOf("-")>-1)DB(b);else if(hB.test(b))mB(b);else if(CG.test(z))uB(b,z);if(typeof z==="number"){if(isNaN(z))EB(b,z);else if(!isFinite(z))gB(b,z)}}}var yB=hG;function cB(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:TB(X))+":",z+=$J(X,Z,J),Q=";"}}return z||null}}function DG(b,z){var Q=b.style;for(var X in z){if(!z.hasOwnProperty(X))continue;var Z=X.indexOf("--")===0;if(!Z)yB(X,z[X]);var J=$J(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 mG(b){var z={};for(var Q in b){var X=kB[Q]||[Q];for(var Z=0;Z<X.length;Z++)z[X[Z]]=Q}return z}function aB(b,z){{if(!z)return;var Q=mG(b),X=mG(z),Z={};for(var J in Q){var H=Q[J],Y=X[J];if(Y&&H!==Y){var U=H+","+Y;if(Z[U])continue;Z[U]=!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 lB={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},iB=J1({menuitem:!0},lB),oB="__html";function YJ(b,z){if(!z)return;if(iB[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"||!(oB 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 Bb(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 hQ={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"},uG={"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},J3={},xB=new RegExp("^(aria)-["+C4+"]*$"),jB=new RegExp("^(aria)[A-Z]["+C4+"]*$");function pB(b,z){{if(E4.call(J3,z)&&J3[z])return!0;if(jB.test(z)){var Q="aria-"+z.slice(4).toLowerCase(),X=uG.hasOwnProperty(Q)?Q:null;if(X==null)return G("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",z),J3[z]=!0,!0;if(z!==X)return G("Invalid ARIA attribute `%s`. Did you mean `%s`?",z,X),J3[z]=!0,!0}if(xB.test(z)){var Z=z.toLowerCase(),J=uG.hasOwnProperty(Z)?Z:null;if(J==null)return J3[z]=!0,!1;if(z!==J)return G("Unknown ARIA attribute `%s`. Did you mean `%s`?",z,J),J3[z]=!0,!0}}return!0}function rB(b,z){{var Q=[];for(var X in z){var Z=pB(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 nB(b,z){if(Bb(b,z))return;rB(b,z)}var EG=!1;function tB(b,z){{if(b!=="input"&&b!=="textarea"&&b!=="select")return;if(z!=null&&z.value===null&&!EG)if(EG=!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 gG=function(){};{var h6={},yG=/^on./,sB=/^on[^A-Z]/,eB=new RegExp("^(aria)-["+C4+"]*$"),bO=new RegExp("^(aria)[A-Z]["+C4+"]*$");gG=function(b,z,Q,X){if(E4.call(h6,z)&&h6[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."),h6[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),h6[z]=!0,!0;if(yG.test(z))return G("Unknown event handler property `%s`. It will be ignored.",z),h6[z]=!0,!0}else if(yG.test(z)){if(sB.test(z))G("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",z);return h6[z]=!0,!0}if(eB.test(z)||bO.test(z))return!0;if(Z==="innerhtml")return G("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),h6[z]=!0,!0;if(Z==="aria")return G("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),h6[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),h6[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),h6[z]=!0,!0;var U=f4(z),O=U!==null&&U.type===Z6;if(hQ.hasOwnProperty(Z)){var N=hQ[Z];if(N!==z)return G("Invalid DOM property `%s`. Did you mean `%s`?",z,N),h6[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),h6[z]=!0,!0;if(typeof Q==="boolean"&&L4(z,Q,U,!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 h6[z]=!0,!0}if(O)return!0;if(L4(z,Q,U,!1))return h6[z]=!0,!1;if((Q==="false"||Q==="true")&&U!==null&&U.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),h6[z]=!0,!0;return!0}}var zO=function(b,z,Q){{var X=[];for(var Z in z){var J=gG(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 QO(b,z,Q){if(Bb(b,z))return;zO(b,z,Q)}var cG=1,GJ=2,h8=4,XO=cG|GJ|h8,C8=null;function ZO(b){if(C8!==null)G("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");C8=b}function JO(){if(C8===null)G("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");C8=null}function $O(b){return b===C8}function KJ(b){var z=b.target||b.srcElement||window;if(z.correspondingUseElement)z=z.correspondingUseElement;return z.nodeType===H7?z.parentNode:z}var UJ=null,$3=null,H3=null;function dG(b){var z=i7(b);if(!z)return;if(typeof UJ!=="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=OX(Q);UJ(z.stateNode,z.type,X)}}function HO(b){UJ=b}function aG(b){if($3)if(H3)H3.push(b);else H3=[b];else $3=b}function YO(){return $3!==null||H3!==null}function lG(){if(!$3)return;var b=$3,z=H3;if($3=null,H3=null,dG(b),z)for(var Q=0;Q<z.length;Q++)dG(z[Q])}var iG=function(b,z){return b(z)},oG=function(){},qJ=!1;function GO(){var b=YO();if(b)oG(),lG()}function xG(b,z,Q){if(qJ)return b(z,Q);qJ=!0;try{return iG(b,z,Q)}finally{qJ=!1,GO()}}function KO(b,z,Q){iG=b,oG=Q}function UO(b){return b==="button"||b==="input"||b==="select"||b==="textarea"}function qO(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&&UO(z));default:return!1}}function S8(b,z){var Q=b.stateNode;if(Q===null)return null;var X=OX(Q);if(X===null)return null;var Z=X[z];if(qO(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 BJ=!1;if(X4)try{var V8={};Object.defineProperty(V8,"passive",{get:function(){BJ=!0}}),window.addEventListener("test",V8,V8),window.removeEventListener("test",V8,V8)}catch(b){BJ=!1}function jG(b,z,Q,X,Z,J,H,Y,U){var O=Array.prototype.slice.call(arguments,3);try{z.apply(Q,O)}catch(N){this.onError(N)}}var pG=jG;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var OJ=document.createElement("react");pG=function(z,Q,X,Z,J,H,Y,U,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"),T=!1,I=!0,E=window.event,g=Object.getOwnPropertyDescriptor(window,"event");function d(){if(OJ.removeEventListener(o,y0,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=E}var F0=Array.prototype.slice.call(arguments,3);function y0(){T=!0,d(),Q.apply(X,F0),I=!1}var D0,G1=!1,K1=!1;function S(V){if(D0=V.error,G1=!0,D0===null&&V.colno===0&&V.lineno===0)K1=!0;if(V.defaultPrevented){if(D0!=null&&typeof D0==="object")try{D0._suppressLogging=!0}catch($0){}}}var o="react-"+(z?z:"invokeguardedcallback");if(window.addEventListener("error",S),OJ.addEventListener(o,y0,!1),N.initEvent(o,!1,!1),OJ.dispatchEvent(N),g)Object.defineProperty(window,"event",g);if(T&&I){if(!G1)D0=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(K1)D0=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(D0)}if(window.removeEventListener("error",S),!T)return d(),jG.apply(this,arguments)}}var BO=pG,Y3=!1,CQ=null,SQ=!1,LJ=null,OO={onError:function(b){Y3=!0,CQ=b}};function NJ(b,z,Q,X,Z,J,H,Y,U){Y3=!1,CQ=null,BO.apply(OO,arguments)}function LO(b,z,Q,X,Z,J,H,Y,U){if(NJ.apply(this,arguments),Y3){var O=WJ();if(!SQ)SQ=!0,LJ=O}}function NO(){if(SQ){var b=LJ;throw SQ=!1,LJ=null,b}}function WO(){return Y3}function WJ(){if(Y3){var b=CQ;return Y3=!1,CQ=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 G3(b){return b._reactInternals}function _O(b){return b._reactInternals!==void 0}function PO(b,z){b._reactInternals=z}var l0=0,K3=1,V4=2,F1=4,Ob=16,D8=32,_J=64,A1=128,G7=256,E7=512,Lb=1024,_5=2048,K7=4096,Nb=8192,VQ=16384,FO=_5|F1|_J|E7|Lb|VQ,vO=32767,m8=32768,C6=65536,PJ=131072,rG=1048576,FJ=2097152,Wb=4194304,vJ=8388608,U7=16777216,DQ=33554432,MJ=F1|Lb|0,RJ=V4|F1|Ob|D8|E7|K7|Nb,u8=F1|_J|E7|Nb,U3=_5|Ob,q7=Wb|vJ|FJ,MO=$.ReactCurrentOwner;function _b(b){var z=b,Q=b;if(!b.alternate){var X=z;do{if(z=X,(z.flags&(V4|K7))!==l0)Q=z.return;X=z.return}while(X)}else while(z.return)z=z.return;if(z.tag===k)return Q;return null}function nG(b){if(b.tag===n){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 tG(b){return b.tag===k?b.stateNode.containerInfo:null}function RO(b){return _b(b)===b}function kO(b){{var z=MO.current;if(z!==null&&z.tag===_){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.",X1(Q)||"A component");X._warnedAboutRefsInRender=!0}}var Z=G3(b);if(!Z)return!1;return _b(Z)===Z}function sG(b){if(_b(b)!==b)throw Error("Unable to find node on an unmounted component.")}function eG(b){var z=b.alternate;if(!z){var Q=_b(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 U=J.child;while(U){if(U===X)return sG(J),b;if(U===Z)return sG(J),z;U=U.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!==k)throw Error("Unable to find node on an unmounted component.");if(X.stateNode.current===X)return b;return z}function b9(b){var z=eG(b);return z!==null?z9(z):null}function z9(b){if(b.tag===w||b.tag===R)return b;var z=b.child;while(z!==null){var Q=z9(z);if(Q!==null)return Q;z=z.sibling}return null}function wO(b){var z=eG(b);return z!==null?Q9(z):null}function Q9(b){if(b.tag===w||b.tag===R)return b;var z=b.child;while(z!==null){if(z.tag!==P){var Q=Q9(z);if(Q!==null)return Q}z=z.sibling}return null}var X9=d1.unstable_scheduleCallback,AO=d1.unstable_cancelCallback,IO=d1.unstable_shouldYield,fO=d1.unstable_requestPaint,s4=d1.unstable_now,TO=d1.unstable_getCurrentPriorityLevel,mQ=d1.unstable_ImmediatePriority,kJ=d1.unstable_UserBlockingPriority,Pb=d1.unstable_NormalPriority,hO=d1.unstable_LowPriority,wJ=d1.unstable_IdlePriority,CO=d1.unstable_yieldValue,SO=d1.unstable_setDisableYieldValue,Fb=null,$6=null,M0=null,a5=!1,P5=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function VO(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=J1({},b,{getLaneLabelMap:yO,injectProfilingHooks:gO});Fb=z.inject(b),$6=z}catch(Q){G("React instrumentation encountered an error: %s.",Q)}if(z.checkDCE)return!0;else return!1}function DO(b,z){if($6&&typeof $6.onScheduleFiberRoot==="function")try{$6.onScheduleFiberRoot(Fb,b,z)}catch(Q){if(!a5)a5=!0,G("React instrumentation encountered an error: %s",Q)}}function mO(b,z){if($6&&typeof $6.onCommitFiberRoot==="function")try{var Q=(b.current.flags&A1)===A1;if(H4){var X;switch(z){case n6:X=mQ;break;case O7:X=kJ;break;case L7:X=Pb;break;case lQ:X=wJ;break;default:X=Pb;break}$6.onCommitFiberRoot(Fb,b,X,Q)}else $6.onCommitFiberRoot(Fb,b,void 0,Q)}catch(Z){if(!a5)a5=!0,G("React instrumentation encountered an error: %s",Z)}}function uO(b){if($6&&typeof $6.onPostCommitFiberRoot==="function")try{$6.onPostCommitFiberRoot(Fb,b)}catch(z){if(!a5)a5=!0,G("React instrumentation encountered an error: %s",z)}}function EO(b){if($6&&typeof $6.onCommitFiberUnmount==="function")try{$6.onCommitFiberUnmount(Fb,b)}catch(z){if(!a5)a5=!0,G("React instrumentation encountered an error: %s",z)}}function e4(b){{if(typeof CO==="function")SO(b),B(b);if($6&&typeof $6.setStrictMode==="function")try{$6.setStrictMode(Fb,b)}catch(z){if(!a5)a5=!0,G("React instrumentation encountered an error: %s",z)}}}function gO(b){M0=b}function yO(){{var b=new Map,z=1;for(var Q=0;Q<IJ;Q++){var X=JL(z);b.set(z,X),z*=2}return b}}function cO(b){if(M0!==null&&typeof M0.markCommitStarted==="function")M0.markCommitStarted(b)}function Z9(){if(M0!==null&&typeof M0.markCommitStopped==="function")M0.markCommitStopped()}function E8(b){if(M0!==null&&typeof M0.markComponentRenderStarted==="function")M0.markComponentRenderStarted(b)}function q3(){if(M0!==null&&typeof M0.markComponentRenderStopped==="function")M0.markComponentRenderStopped()}function dO(b){if(M0!==null&&typeof M0.markComponentPassiveEffectMountStarted==="function")M0.markComponentPassiveEffectMountStarted(b)}function aO(){if(M0!==null&&typeof M0.markComponentPassiveEffectMountStopped==="function")M0.markComponentPassiveEffectMountStopped()}function lO(b){if(M0!==null&&typeof M0.markComponentPassiveEffectUnmountStarted==="function")M0.markComponentPassiveEffectUnmountStarted(b)}function iO(){if(M0!==null&&typeof M0.markComponentPassiveEffectUnmountStopped==="function")M0.markComponentPassiveEffectUnmountStopped()}function oO(b){if(M0!==null&&typeof M0.markComponentLayoutEffectMountStarted==="function")M0.markComponentLayoutEffectMountStarted(b)}function xO(){if(M0!==null&&typeof M0.markComponentLayoutEffectMountStopped==="function")M0.markComponentLayoutEffectMountStopped()}function J9(b){if(M0!==null&&typeof M0.markComponentLayoutEffectUnmountStarted==="function")M0.markComponentLayoutEffectUnmountStarted(b)}function $9(){if(M0!==null&&typeof M0.markComponentLayoutEffectUnmountStopped==="function")M0.markComponentLayoutEffectUnmountStopped()}function jO(b,z,Q){if(M0!==null&&typeof M0.markComponentErrored==="function")M0.markComponentErrored(b,z,Q)}function pO(b,z,Q){if(M0!==null&&typeof M0.markComponentSuspended==="function")M0.markComponentSuspended(b,z,Q)}function rO(b){if(M0!==null&&typeof M0.markLayoutEffectsStarted==="function")M0.markLayoutEffectsStarted(b)}function nO(){if(M0!==null&&typeof M0.markLayoutEffectsStopped==="function")M0.markLayoutEffectsStopped()}function tO(b){if(M0!==null&&typeof M0.markPassiveEffectsStarted==="function")M0.markPassiveEffectsStarted(b)}function sO(){if(M0!==null&&typeof M0.markPassiveEffectsStopped==="function")M0.markPassiveEffectsStopped()}function H9(b){if(M0!==null&&typeof M0.markRenderStarted==="function")M0.markRenderStarted(b)}function eO(){if(M0!==null&&typeof M0.markRenderYielded==="function")M0.markRenderYielded()}function Y9(){if(M0!==null&&typeof M0.markRenderStopped==="function")M0.markRenderStopped()}function bL(b){if(M0!==null&&typeof M0.markRenderScheduled==="function")M0.markRenderScheduled(b)}function zL(b,z){if(M0!==null&&typeof M0.markForceUpdateScheduled==="function")M0.markForceUpdateScheduled(b,z)}function AJ(b,z){if(M0!==null&&typeof M0.markStateUpdateScheduled==="function")M0.markStateUpdateScheduled(b,z)}var a0=0,N1=1,g1=2,R4=8,l5=16,G9=Math.clz32?Math.clz32:ZL,QL=Math.log,XL=Math.LN2;function ZL(b){var z=b>>>0;if(z===0)return 32;return 31-(QL(z)/XL|0)|0}var IJ=31,X0=0,b6=0,r0=1,B3=2,B7=4,vb=8,i5=16,g8=32,O3=4194240,y8=64,fJ=128,TJ=256,hJ=512,CJ=1024,SJ=2048,VJ=4096,DJ=8192,mJ=16384,uJ=32768,EJ=65536,gJ=131072,yJ=262144,cJ=524288,dJ=1048576,aJ=2097152,uQ=130023424,L3=4194304,lJ=8388608,iJ=16777216,oJ=33554432,xJ=67108864,K9=L3,c8=134217728,U9=268435455,d8=268435456,Mb=536870912,p6=1073741824;function JL(b){{if(b&r0)return"Sync";if(b&B3)return"InputContinuousHydration";if(b&B7)return"InputContinuous";if(b&vb)return"DefaultHydration";if(b&i5)return"Default";if(b&g8)return"TransitionHydration";if(b&O3)return"Transition";if(b&uQ)return"Retry";if(b&c8)return"SelectiveHydration";if(b&d8)return"IdleHydration";if(b&Mb)return"Idle";if(b&p6)return"Offscreen"}}var $4=-1,EQ=y8,gQ=L3;function a8(b){switch(Rb(b)){case r0:return r0;case B3:return B3;case B7:return B7;case vb:return vb;case i5:return i5;case g8:return g8;case y8:case fJ:case TJ:case hJ:case CJ:case SJ:case VJ:case DJ:case mJ:case uJ:case EJ:case gJ:case yJ:case cJ:case dJ:case aJ:return b&O3;case L3:case lJ:case iJ:case oJ:case xJ:return b&uQ;case c8:return c8;case d8:return d8;case Mb:return Mb;case p6:return p6;default:return G("Should have found matching lanes. This is a bug in React."),b}}function yQ(b,z){var Q=b.pendingLanes;if(Q===X0)return X0;var X=X0,Z=b.suspendedLanes,J=b.pingedLanes,H=Q&U9;if(H!==X0){var Y=H&~Z;if(Y!==X0)X=a8(Y);else{var U=H&J;if(U!==X0)X=a8(U)}}else{var O=Q&~Z;if(O!==X0)X=a8(O);else if(J!==X0)X=a8(J)}if(X===X0)return X0;if(z!==X0&&z!==X&&(z&Z)===X0){var N=Rb(X),T=Rb(z);if(N>=T||N===i5&&(T&O3)!==X0)return z}if((X&B7)!==X0)X|=Q&i5;var I=b.entangledLanes;if(I!==X0){var E=b.entanglements,g=X&I;while(g>0){var d=kb(g),F0=1<<d;X|=E[d],g&=~F0}}return X}function $L(b,z){var Q=b.eventTimes,X=$4;while(z>0){var Z=kb(z),J=1<<Z,H=Q[Z];if(H>X)X=H;z&=~J}return X}function HL(b,z){switch(b){case r0:case B3:case B7:return z+250;case vb:case i5:case g8:case y8:case fJ:case TJ:case hJ:case CJ:case SJ:case VJ:case DJ:case mJ:case uJ:case EJ:case gJ:case yJ:case cJ:case dJ:case aJ:return z+5000;case L3:case lJ:case iJ:case oJ:case xJ:return $4;case c8:case d8:case Mb:case p6:return $4;default:return G("Should have found matching lanes. This is a bug in React."),$4}}function YL(b,z){var{pendingLanes:Q,suspendedLanes:X,pingedLanes:Z,expirationTimes:J}=b,H=Q;while(H>0){var Y=kb(H),U=1<<Y,O=J[Y];if(O===$4){if((U&X)===X0||(U&Z)!==X0)J[Y]=HL(U,z)}else if(O<=z)b.expiredLanes|=U;H&=~U}}function GL(b){return a8(b.pendingLanes)}function jJ(b){var z=b.pendingLanes&~p6;if(z!==X0)return z;if(z&p6)return p6;return X0}function KL(b){return(b&r0)!==X0}function pJ(b){return(b&U9)!==X0}function q9(b){return(b&uQ)===b}function UL(b){var z=r0|B7|i5;return(b&z)===X0}function qL(b){return(b&O3)===b}function cQ(b,z){var Q=B3|B7|vb|i5;return(z&Q)!==X0}function BL(b,z){return(z&b.expiredLanes)!==X0}function B9(b){return(b&O3)!==X0}function O9(){var b=EQ;if(EQ<<=1,(EQ&O3)===X0)EQ=y8;return b}function OL(){var b=gQ;if(gQ<<=1,(gQ&uQ)===X0)gQ=L3;return b}function Rb(b){return b&-b}function l8(b){return Rb(b)}function kb(b){return 31-G9(b)}function rJ(b){return kb(b)}function r6(b,z){return(b&z)!==X0}function N3(b,z){return(b&z)===z}function Z1(b,z){return b|z}function dQ(b,z){return b&~z}function L9(b,z){return b&z}function aQ(b){return b}function LL(b,z){return b!==b6&&b<z?b:z}function nJ(b){var z=[];for(var Q=0;Q<IJ;Q++)z.push(b);return z}function i8(b,z,Q){if(b.pendingLanes|=z,z!==Mb)b.suspendedLanes=X0,b.pingedLanes=X0;var X=b.eventTimes,Z=rJ(z);X[Z]=Q}function NL(b,z){b.suspendedLanes|=z,b.pingedLanes&=~z;var Q=b.expirationTimes,X=z;while(X>0){var Z=kb(X),J=1<<Z;Q[Z]=$4,X&=~J}}function N9(b,z,Q){b.pingedLanes|=b.suspendedLanes&z}function WL(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=kb(H),U=1<<Y;X[Y]=X0,Z[Y]=$4,J[Y]=$4,H&=~U}}function tJ(b,z){var Q=b.entangledLanes|=z,X=b.entanglements,Z=Q;while(Z){var J=kb(Z),H=1<<J;if(H&z|X[J]&z)X[J]|=z;Z&=~H}}function _L(b,z){var Q=Rb(z),X;switch(Q){case B7:X=B3;break;case i5:X=vb;break;case y8:case fJ:case TJ:case hJ:case CJ:case SJ:case VJ:case DJ:case mJ:case uJ:case EJ:case gJ:case yJ:case cJ:case dJ:case aJ:case L3:case lJ:case iJ:case oJ:case xJ:X=g8;break;case Mb:X=d8;break;default:X=b6;break}if((X&(b.suspendedLanes|z))!==b6)return b6;return X}function W9(b,z,Q){if(!P5)return;var X=b.pendingUpdatersLaneMap;while(Q>0){var Z=rJ(Q),J=1<<Z,H=X[Z];H.add(z),Q&=~J}}function _9(b,z){if(!P5)return;var{pendingUpdatersLaneMap:Q,memoizedUpdaters:X}=b;while(z>0){var Z=rJ(z),J=1<<Z,H=Q[Z];if(H.size>0)H.forEach(function(Y){var U=Y.alternate;if(U===null||!X.has(U))X.add(Y)}),H.clear();z&=~J}}function P9(b,z){return null}var n6=r0,O7=B7,L7=i5,lQ=Mb,o8=b6;function F5(){return o8}function z6(b){o8=b}function PL(b,z){var Q=o8;try{return o8=b,z()}finally{o8=Q}}function FL(b,z){return b!==0&&b<z?b:z}function vL(b,z){return b===0||b>z?b:z}function sJ(b,z){return b!==0&&b<z}function F9(b){var z=Rb(b);if(!sJ(n6,z))return n6;if(!sJ(O7,z))return O7;if(pJ(z))return L7;return lQ}function iQ(b){var z=b.current.memoizedState;return z.isDehydrated}var v9;function ML(b){v9=b}function RL(b){v9(b)}var eJ;function kL(b){eJ=b}var M9;function wL(b){M9=b}var R9;function AL(b){R9=b}var k9;function IL(b){k9=b}var b$=!1,oQ=[],g7=null,y7=null,c7=null,x8=new Map,j8=new Map,d7=[],fL=["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 TL(b){return fL.indexOf(b)>-1}function hL(b,z,Q,X,Z){return{blockedOn:b,domEventName:z,eventSystemFlags:Q,nativeEvent:Z,targetContainers:[X]}}function w9(b,z){switch(b){case"focusin":case"focusout":g7=null;break;case"dragenter":case"dragleave":y7=null;break;case"mouseover":case"mouseout":c7=null;break;case"pointerover":case"pointerout":{var Q=z.pointerId;x8.delete(Q);break}case"gotpointercapture":case"lostpointercapture":{var X=z.pointerId;j8.delete(X);break}}}function p8(b,z,Q,X,Z,J){if(b===null||b.nativeEvent!==J){var H=hL(z,Q,X,Z,J);if(z!==null){var Y=i7(z);if(Y!==null)eJ(Y)}return H}b.eventSystemFlags|=X;var U=b.targetContainers;if(Z!==null&&U.indexOf(Z)===-1)U.push(Z);return b}function CL(b,z,Q,X,Z){switch(z){case"focusin":{var J=Z;return g7=p8(g7,b,z,Q,X,J),!0}case"dragenter":{var H=Z;return y7=p8(y7,b,z,Q,X,H),!0}case"mouseover":{var Y=Z;return c7=p8(c7,b,z,Q,X,Y),!0}case"pointerover":{var U=Z,O=U.pointerId;return x8.set(O,p8(x8.get(O)||null,b,z,Q,X,U)),!0}case"gotpointercapture":{var N=Z,T=N.pointerId;return j8.set(T,p8(j8.get(T)||null,b,z,Q,X,N)),!0}}return!1}function A9(b){var z=Ib(b.target);if(z!==null){var Q=_b(z);if(Q!==null){var X=Q.tag;if(X===n){var Z=nG(Q);if(Z!==null){b.blockedOn=Z,k9(b.priority,function(){M9(Q)});return}}else if(X===k){var J=Q.stateNode;if(iQ(J)){b.blockedOn=tG(Q);return}}}}b.blockedOn=null}function SL(b){var z=R9(),Q={blockedOn:null,target:b,priority:z},X=0;for(;X<d7.length;X++)if(!sJ(z,d7[X].priority))break;if(d7.splice(X,0,Q),X===0)A9(Q)}function xQ(b){if(b.blockedOn!==null)return!1;var z=b.targetContainers;while(z.length>0){var Q=z[0],X=X$(b.domEventName,b.eventSystemFlags,Q,b.nativeEvent);if(X===null){var Z=b.nativeEvent,J=new Z.constructor(Z.type,Z);ZO(J),Z.target.dispatchEvent(J),JO()}else{var H=i7(X);if(H!==null)eJ(H);return b.blockedOn=X,!1}z.shift()}return!0}function I9(b,z,Q){if(xQ(b))Q.delete(z)}function VL(){if(b$=!1,g7!==null&&xQ(g7))g7=null;if(y7!==null&&xQ(y7))y7=null;if(c7!==null&&xQ(c7))c7=null;x8.forEach(I9),j8.forEach(I9)}function r8(b,z){if(b.blockedOn===z){if(b.blockedOn=null,!b$)b$=!0,d1.unstable_scheduleCallback(d1.unstable_NormalPriority,VL)}}function n8(b){if(oQ.length>0){r8(oQ[0],b);for(var z=1;z<oQ.length;z++){var Q=oQ[z];if(Q.blockedOn===b)Q.blockedOn=null}}if(g7!==null)r8(g7,b);if(y7!==null)r8(y7,b);if(c7!==null)r8(c7,b);var X=function(Y){return r8(Y,b)};x8.forEach(X),j8.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(A9(H),H.blockedOn===null)d7.shift()}}var W3=$.ReactCurrentBatchConfig,z$=!0;function f9(b){z$=!!b}function DL(){return z$}function mL(b,z,Q){var X=T9(z),Z;switch(X){case n6:Z=uL;break;case O7:Z=EL;break;case L7:default:Z=Q$;break}return Z.bind(null,z,Q,b)}function uL(b,z,Q,X){var Z=F5(),J=W3.transition;W3.transition=null;try{z6(n6),Q$(b,z,Q,X)}finally{z6(Z),W3.transition=J}}function EL(b,z,Q,X){var Z=F5(),J=W3.transition;W3.transition=null;try{z6(O7),Q$(b,z,Q,X)}finally{z6(Z),W3.transition=J}}function Q$(b,z,Q,X){if(!z$)return;gL(b,z,Q,X)}function gL(b,z,Q,X){var Z=X$(b,z,Q,X);if(Z===null){W$(b,z,X,jQ,Q),w9(b,X);return}if(CL(Z,b,z,Q,X)){X.stopPropagation();return}if(w9(b,X),z&h8&&TL(b)){while(Z!==null){var J=i7(Z);if(J!==null)RL(J);var H=X$(b,z,Q,X);if(H===null)W$(b,z,X,jQ,Q);if(H===Z)break;Z=H}if(Z!==null)X.stopPropagation();return}W$(b,z,X,null,Q)}var jQ=null;function X$(b,z,Q,X){jQ=null;var Z=KJ(X),J=Ib(Z);if(J!==null){var H=_b(J);if(H===null)J=null;else{var Y=H.tag;if(Y===n){var U=nG(H);if(U!==null)return U;J=null}else if(Y===k){var O=H.stateNode;if(iQ(O))return tG(H);J=null}else if(H!==J)J=null}}return jQ=J,null}function T9(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 n6;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 O7;case"message":{var z=TO();switch(z){case mQ:return n6;case kJ:return O7;case Pb:case hO:return L7;case wJ:return lQ;default:return L7}}default:return L7}}function yL(b,z,Q){return b.addEventListener(z,Q,!1),Q}function cL(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 aL(b,z,Q,X){return b.addEventListener(z,Q,{passive:X}),Q}var t8=null,Z$=null,s8=null;function lL(b){return t8=b,Z$=C9(),!0}function iL(){t8=null,Z$=null,s8=null}function h9(){if(s8)return s8;var b,z=Z$,Q=z.length,X,Z=C9(),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 s8=Z.slice(b,Y),s8}function C9(){if("value"in t8)return t8.value;return t8.textContent}function pQ(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 rQ(){return!0}function S9(){return!1}function t6(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 U=b[Y];if(U)this[Y]=U(J);else this[Y]=J[Y]}var O=J.defaultPrevented!=null?J.defaultPrevented:J.returnValue===!1;if(O)this.isDefaultPrevented=rQ;else this.isDefaultPrevented=S9;return this.isPropagationStopped=S9,this}return J1(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=rQ},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=rQ},persist:function(){},isPersistent:rQ}),z}var _3={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(b){return b.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},J$=t6(_3),e8=J1({},_3,{view:0,detail:0}),oL=t6(e8),$$,H$,bz;function xL(b){if(b!==bz){if(bz&&b.type==="mousemove")$$=b.screenX-bz.screenX,H$=b.screenY-bz.screenY;else $$=0,H$=0;bz=b}}var nQ=J1({},e8,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:G$,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),$$},movementY:function(b){if("movementY"in b)return b.movementY;return H$}}),V9=t6(nQ),jL=J1({},nQ,{dataTransfer:0}),pL=t6(jL),rL=J1({},e8,{relatedTarget:0}),Y$=t6(rL),nL=J1({},_3,{animationName:0,elapsedTime:0,pseudoElement:0}),tL=t6(nL),sL=J1({},_3,{clipboardData:function(b){return"clipboardData"in b?b.clipboardData:window.clipboardData}}),eL=t6(sL),bN=J1({},_3,{data:0}),D9=t6(bN),zN=D9,QN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XN={"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 ZN(b){if(b.key){var z=QN[b.key]||b.key;if(z!=="Unidentified")return z}if(b.type==="keypress"){var Q=pQ(b);return Q===13?"Enter":String.fromCharCode(Q)}if(b.type==="keydown"||b.type==="keyup")return XN[b.keyCode]||"Unidentified";return""}var JN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $N(b){var z=this,Q=z.nativeEvent;if(Q.getModifierState)return Q.getModifierState(b);var X=JN[b];return X?!!Q[X]:!1}function G$(b){return $N}var HN=J1({},e8,{key:ZN,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:G$,charCode:function(b){if(b.type==="keypress")return pQ(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 pQ(b);if(b.type==="keydown"||b.type==="keyup")return b.keyCode;return 0}}),YN=t6(HN),GN=J1({},nQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),m9=t6(GN),KN=J1({},e8,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:G$}),UN=t6(KN),qN=J1({},_3,{propertyName:0,elapsedTime:0,pseudoElement:0}),BN=t6(qN),ON=J1({},nQ,{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}),LN=t6(ON),NN=[9,13,27,32],u9=229,K$=X4&&"CompositionEvent"in window,zz=null;if(X4&&"documentMode"in document)zz=document.documentMode;var WN=X4&&"TextEvent"in window&&!zz,E9=X4&&(!K$||zz&&zz>8&&zz<=11),g9=32,y9=String.fromCharCode(g9);function _N(){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 c9=!1;function PN(b){return(b.ctrlKey||b.altKey||b.metaKey)&&!(b.ctrlKey&&b.altKey)}function FN(b){switch(b){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function vN(b,z){return b==="keydown"&&z.keyCode===u9}function d9(b,z){switch(b){case"keyup":return NN.indexOf(z.keyCode)!==-1;case"keydown":return z.keyCode!==u9;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a9(b){var z=b.detail;if(typeof z==="object"&&"data"in z)return z.data;return null}function l9(b){return b.locale==="ko"}var P3=!1;function MN(b,z,Q,X,Z){var J,H;if(K$)J=FN(z);else if(!P3){if(vN(z,X))J="onCompositionStart"}else if(d9(z,X))J="onCompositionEnd";if(!J)return null;if(E9&&!l9(X)){if(!P3&&J==="onCompositionStart")P3=lL(Z);else if(J==="onCompositionEnd"){if(P3)H=h9()}}var Y=zX(Q,J);if(Y.length>0){var U=new D9(J,z,null,X,Z);if(b.push({event:U,listeners:Y}),H)U.data=H;else{var O=a9(X);if(O!==null)U.data=O}}}function RN(b,z){switch(b){case"compositionend":return a9(z);case"keypress":var Q=z.which;if(Q!==g9)return null;return c9=!0,y9;case"textInput":var X=z.data;if(X===y9&&c9)return null;return X;default:return null}}function kN(b,z){if(P3){if(b==="compositionend"||!K$&&d9(b,z)){var Q=h9();return iL(),P3=!1,Q}return null}switch(b){case"paste":return null;case"keypress":if(!PN(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 E9&&!l9(z)?null:z.data;default:return null}}function wN(b,z,Q,X,Z){var J;if(WN)J=RN(z,X);else J=kN(z,X);if(!J)return null;var H=zX(Q,"onBeforeInput");if(H.length>0){var Y=new zN("onBeforeInput","beforeinput",null,X,Z);b.push({event:Y,listeners:H}),Y.data=J}}function AN(b,z,Q,X,Z,J,H){MN(b,z,Q,X,Z),wN(b,z,Q,X,Z)}var IN={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 i9(b){var z=b&&b.nodeName&&b.nodeName.toLowerCase();if(z==="input")return!!IN[b.type];if(z==="textarea")return!0;return!1}function fN(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 TN(){Y4("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o9(b,z,Q,X){aG(X);var Z=zX(z,"onChange");if(Z.length>0){var J=new J$("onChange","change",null,Q,X);b.push({event:J,listeners:Z})}}var Qz=null,Xz=null;function hN(b){var z=b.nodeName&&b.nodeName.toLowerCase();return z==="select"||z==="input"&&b.type==="file"}function CN(b){var z=[];o9(z,Xz,b,KJ(b)),xG(SN,z)}function SN(b){GK(b,0)}function tQ(b){var z=w3(b);if(z3(z))return b}function VN(b,z){if(b==="change")return z}var x9=!1;if(X4)x9=fN("input")&&(!document.documentMode||document.documentMode>9);function DN(b,z){Qz=b,Xz=z,Qz.attachEvent("onpropertychange",p9)}function j9(){if(!Qz)return;Qz.detachEvent("onpropertychange",p9),Qz=null,Xz=null}function p9(b){if(b.propertyName!=="value")return;if(tQ(Xz))CN(b)}function mN(b,z,Q){if(b==="focusin")j9(),DN(z,Q);else if(b==="focusout")j9()}function uN(b,z){if(b==="selectionchange"||b==="keyup"||b==="keydown")return tQ(Xz)}function EN(b){var z=b.nodeName;return z&&z.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")}function gN(b,z){if(b==="click")return tQ(z)}function yN(b,z){if(b==="input"||b==="change")return tQ(z)}function cN(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?w3(Q):window,U,O;if(hN(Y))U=VN;else if(i9(Y))if(x9)U=yN;else U=uN,O=mN;else if(EN(Y))U=gN;if(U){var N=U(z,Q);if(N){o9(b,N,X,Z);return}}if(O)O(z,Y,Q);if(z==="focusout")cN(Y)}function aN(){u4("onMouseEnter",["mouseout","mouseover"]),u4("onMouseLeave",["mouseout","mouseover"]),u4("onPointerEnter",["pointerout","pointerover"]),u4("onPointerLeave",["pointerout","pointerover"])}function lN(b,z,Q,X,Z,J,H){var Y=z==="mouseover"||z==="pointerover",U=z==="mouseout"||z==="pointerout";if(Y&&!$O(X)){var O=X.relatedTarget||X.fromElement;if(O){if(Ib(O)||_z(O))return}}if(!U&&!Y)return;var N;if(Z.window===Z)N=Z;else{var T=Z.ownerDocument;if(T)N=T.defaultView||T.parentWindow;else N=window}var I,E;if(U){var g=X.relatedTarget||X.toElement;if(I=Q,E=g?Ib(g):null,E!==null){var d=_b(E);if(E!==d||E.tag!==w&&E.tag!==R)E=null}}else I=null,E=Q;if(I===E)return;var F0=V9,y0="onMouseLeave",D0="onMouseEnter",G1="mouse";if(z==="pointerout"||z==="pointerover")F0=m9,y0="onPointerLeave",D0="onPointerEnter",G1="pointer";var K1=I==null?N:w3(I),S=E==null?N:w3(E),o=new F0(y0,G1+"leave",I,X,Z);o.target=K1,o.relatedTarget=S;var V=null,$0=Ib(Z);if($0===Q){var k0=new F0(D0,G1+"enter",E,X,Z);k0.target=S,k0.relatedTarget=K1,V=k0}BW(b,o,V,I,E)}function iN(b,z){return b===z&&(b!==0||1/b===1/z)||b!==b&&z!==z}var s6=typeof Object.is==="function"?Object.is:iN;function Zz(b,z){if(s6(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(!E4.call(z,J)||!s6(b[J],z[J]))return!1}return!0}function r9(b){while(b&&b.firstChild)b=b.firstChild;return b}function oN(b){while(b){if(b.nextSibling)return b.nextSibling;b=b.parentNode}}function n9(b,z){var Q=r9(b),X=0,Z=0;while(Q){if(Q.nodeType===H7){if(Z=X+Q.textContent.length,X<=z&&Z>=z)return{node:Q,offset:z-X};X=Z}Q=r9(oN(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(U){return null}return jN(b,Z,J,H,Y)}function jN(b,z,Q,X,Z){var J=0,H=-1,Y=-1,U=0,O=0,N=b,T=null;b:while(!0){var I=null;while(!0){if(N===z&&(Q===0||N.nodeType===H7))H=J+Q;if(N===X&&(Z===0||N.nodeType===H7))Y=J+Z;if(N.nodeType===H7)J+=N.nodeValue.length;if((I=N.firstChild)===null)break;T=N,N=I}while(!0){if(N===b)break b;if(T===z&&++U===Q)H=J;if(T===X&&++O===Z)Y=J;if((I=N.nextSibling)!==null)break;N=T,T=N.parentNode}N=I}if(H===-1||Y===-1)return null;return{start:H,end:Y}}function pN(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 U=Y;Y=H,H=U}var O=n9(b,H),N=n9(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 T=Q.createRange();if(T.setStart(O.node,O.offset),Z.removeAllRanges(),H>Y)Z.addRange(T),Z.extend(N.node,N.offset);else T.setEnd(N.node,N.offset),Z.addRange(T)}}function t9(b){return b&&b.nodeType===H7}function s9(b,z){if(!b||!z)return!1;else if(b===z)return!0;else if(t9(b))return!1;else if(t9(z))return s9(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 rN(b){return b&&b.ownerDocument&&s9(b.ownerDocument.documentElement,b)}function nN(b){try{return typeof b.contentWindow.location.href==="string"}catch(z){return!1}}function e9(){var b=window,z=u7();while(z instanceof b.HTMLIFrameElement){if(nN(z))b=z.contentWindow;else return z;z=u7(b.document)}return z}function U$(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 tN(){var b=e9();return{focusedElem:b,selectionRange:U$(b)?eN(b):null}}function sN(b){var z=e9(),Q=b.focusedElem,X=b.selectionRange;if(z!==Q&&rN(Q)){if(X!==null&&U$(Q))bW(Q,X);var Z=[],J=Q;while(J=J.parentNode)if(J.nodeType===y6)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 eN(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 bW(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 pN(b,z)}var zW=X4&&"documentMode"in document&&document.documentMode<=11;function QW(){Y4("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var F3=null,q$=null,Jz=null,B$=!1;function XW(b){if("selectionStart"in b&&U$(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 ZW(b){return b.window===b?b.document:b.nodeType===Y7?b:b.ownerDocument}function bK(b,z,Q){var X=ZW(Q);if(B$||F3==null||F3!==u7(X))return;var Z=XW(F3);if(!Jz||!Zz(Jz,Z)){Jz=Z;var J=zX(q$,"onSelect");if(J.length>0){var H=new J$("onSelect","select",null,z,Q);b.push({event:H,listeners:J}),H.target=F3}}}function JW(b,z,Q,X,Z,J,H){var Y=Q?w3(Q):window;switch(z){case"focusin":if(i9(Y)||Y.contentEditable==="true")F3=Y,q$=Q,Jz=null;break;case"focusout":F3=null,q$=null,Jz=null;break;case"mousedown":B$=!0;break;case"contextmenu":case"mouseup":case"dragend":B$=!1,bK(b,X,Z);break;case"selectionchange":if(zW)break;case"keydown":case"keyup":bK(b,X,Z)}}function sQ(b,z){var Q={};return Q[b.toLowerCase()]=z.toLowerCase(),Q["Webkit"+b]="webkit"+z,Q["Moz"+b]="moz"+z,Q}var v3={animationend:sQ("Animation","AnimationEnd"),animationiteration:sQ("Animation","AnimationIteration"),animationstart:sQ("Animation","AnimationStart"),transitionend:sQ("Transition","TransitionEnd")},O$={},zK={};if(X4){if(zK=document.createElement("div").style,!("AnimationEvent"in window))delete v3.animationend.animation,delete v3.animationiteration.animation,delete v3.animationstart.animation;if(!("TransitionEvent"in window))delete v3.transitionend.transition}function eQ(b){if(O$[b])return O$[b];else if(!v3[b])return b;var z=v3[b];for(var Q in z)if(z.hasOwnProperty(Q)&&Q in zK)return O$[b]=z[Q];return b}var QK=eQ("animationend"),XK=eQ("animationiteration"),ZK=eQ("animationstart"),JK=eQ("transitionend"),$K=new Map,HK=["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 a7(b,z){$K.set(b,z),Y4(z,[b])}function $W(){for(var b=0;b<HK.length;b++){var z=HK[b],Q=z.toLowerCase(),X=z[0].toUpperCase()+z.slice(1);a7(Q,"on"+X)}a7(QK,"onAnimationEnd"),a7(XK,"onAnimationIteration"),a7(ZK,"onAnimationStart"),a7("dblclick","onDoubleClick"),a7("focusin","onFocus"),a7("focusout","onBlur"),a7(JK,"onTransitionEnd")}function HW(b,z,Q,X,Z,J,H){var Y=$K.get(z);if(Y===void 0)return;var U=J$,O=z;switch(z){case"keypress":if(pQ(X)===0)return;case"keydown":case"keyup":U=YN;break;case"focusin":O="focus",U=Y$;break;case"focusout":O="blur",U=Y$;break;case"beforeblur":case"afterblur":U=Y$;break;case"click":if(X.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=V9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=pL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=UN;break;case QK:case XK:case ZK:U=tL;break;case JK:U=BN;break;case"scroll":U=oL;break;case"wheel":U=LN;break;case"copy":case"cut":case"paste":U=eL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=m9;break}var N=(J&h8)!==0;{var T=!N&&z==="scroll",I=UW(Q,Y,X.type,N,T);if(I.length>0){var E=new U(Y,O,null,X,Z);b.push({event:E,listeners:I})}}}$W(),aN(),TN(),QW(),_N();function YW(b,z,Q,X,Z,J,H){HW(b,z,Q,X,Z,J);var Y=(J&XO)===0;if(Y)lN(b,z,Q,X,Z),dN(b,z,Q,X,Z),JW(b,z,Q,X,Z),AN(b,z,Q,X,Z)}var $z=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],L$=new Set(["cancel","close","invalid","load","scroll","toggle"].concat($z));function YK(b,z,Q){var X=b.type||"unknown-event";b.currentTarget=Q,LO(X,z,void 0,b),b.currentTarget=null}function GW(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,U=J.listener;if(H!==X&&b.isPropagationStopped())return;YK(b,U,Y),X=H}else for(var O=0;O<z.length;O++){var N=z[O],T=N.instance,I=N.currentTarget,E=N.listener;if(T!==X&&b.isPropagationStopped())return;YK(b,E,I),X=T}}function GK(b,z){var Q=(z&h8)!==0;for(var X=0;X<b.length;X++){var Z=b[X],J=Z.event,H=Z.listeners;GW(J,H,Q)}NO()}function KW(b,z,Q,X,Z){var J=KJ(Q),H=[];YW(H,b,X,Q,J,z),GK(H,z)}function q4(b,z){if(!L$.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=c_(z),Z=OW(b,Q);if(!X.has(Z))KK(z,b,GJ,Q),X.add(Z)}function N$(b,z,Q){if(L$.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|=h8;KK(Q,b,X,z)}var bX="_reactListening"+Math.random().toString(36).slice(2);function Hz(b){if(!b[bX]){b[bX]=!0,_4.forEach(function(Q){if(Q!=="selectionchange"){if(!L$.has(Q))N$(Q,!1,b);N$(Q,!0,b)}});var z=b.nodeType===Y7?b:b.ownerDocument;if(z!==null){if(!z[bX])z[bX]=!0,N$("selectionchange",!1,z)}}}function KK(b,z,Q,X,Z){var J=mL(b,z,Q),H=void 0;if(BJ){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=cL(b,z,J);else if(H!==void 0)Y=aL(b,z,J,H);else Y=yL(b,z,J)}function UK(b,z){return b===z||b.nodeType===S4&&b.parentNode===z}function W$(b,z,Q,X,Z){var J=X;if((z&cG)===0&&(z&GJ)===0){var H=Z;if(X!==null){var Y=X;b:while(!0){if(Y===null)return;var U=Y.tag;if(U===k||U===P){var O=Y.stateNode.containerInfo;if(UK(O,H))break;if(U===P){var N=Y.return;while(N!==null){var T=N.tag;if(T===k||T===P){var I=N.stateNode.containerInfo;if(UK(I,H))return}N=N.return}}while(O!==null){var E=Ib(O);if(E===null)return;var g=E.tag;if(g===w||g===R){Y=J=E;continue b}O=O.parentNode}}Y=Y.return}}}xG(function(){return KW(b,z,Q,J)})}function Yz(b,z,Q){return{instance:b,listener:z,currentTarget:Q}}function UW(b,z,Q,X,Z,J){var H=z!==null?z+"Capture":null,Y=X?H:z,U=[],O=b,N=null;while(O!==null){var T=O,I=T.stateNode,E=T.tag;if(E===w&&I!==null){if(N=I,Y!==null){var g=S8(O,Y);if(g!=null)U.push(Yz(O,g,N))}}if(Z)break;O=O.return}return U}function zX(b,z){var Q=z+"Capture",X=[],Z=b;while(Z!==null){var J=Z,H=J.stateNode,Y=J.tag;if(Y===w&&H!==null){var U=H,O=S8(Z,Q);if(O!=null)X.unshift(Yz(Z,O,U));var N=S8(Z,z);if(N!=null)X.push(Yz(Z,N,U))}Z=Z.return}return X}function M3(b){if(b===null)return null;do b=b.return;while(b&&b.tag!==w);if(b)return b;return null}function qW(b,z){var Q=b,X=z,Z=0;for(var J=Q;J;J=M3(J))Z++;var H=0;for(var Y=X;Y;Y=M3(Y))H++;while(Z-H>0)Q=M3(Q),Z--;while(H-Z>0)X=M3(X),H--;var U=Z;while(U--){if(Q===X||X!==null&&Q===X.alternate)return Q;Q=M3(Q),X=M3(X)}return null}function qK(b,z,Q,X,Z){var J=z._reactName,H=[],Y=Q;while(Y!==null){if(Y===X)break;var U=Y,O=U.alternate,N=U.stateNode,T=U.tag;if(O!==null&&O===X)break;if(T===w&&N!==null){var I=N;if(Z){var E=S8(Y,J);if(E!=null)H.unshift(Yz(Y,E,I))}else if(!Z){var g=S8(Y,J);if(g!=null)H.push(Yz(Y,g,I))}}Y=Y.return}if(H.length!==0)b.push({event:z,listeners:H})}function BW(b,z,Q,X,Z){var J=X&&Z?qW(X,Z):null;if(X!==null)qK(b,z,X,J,!1);if(Z!==null&&Q!==null)qK(b,Q,Z,J,!0)}function OW(b,z){return b+"__"+(z?"capture":"bubble")}var c6=!1,Gz="dangerouslySetInnerHTML",QX="suppressContentEditableWarning",l7="suppressHydrationWarning",BK="autoFocus",wb="children",Ab="style",XX="__html",_$,ZX,Kz,OK,JX,LK,NK;_$={dialog:!0,webview:!0},ZX=function(b,z){nB(b,z),tB(b,z),QO(b,z,{registrationNameDependencies:a1,possibleRegistrationNames:i1})},LK=X4&&!document.documentMode,Kz=function(b,z,Q){if(c6)return;var X=$X(Q),Z=$X(z);if(Z===X)return;c6=!0,G("Prop `%s` did not match. Server: %s Client: %s",b,JSON.stringify(Z),JSON.stringify(X))},OK=function(b){if(c6)return;c6=!0;var z=[];b.forEach(function(Q){z.push(Q)}),G("Extra attributes from the server: %s",z)},JX=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)},NK=function(b,z){var Q=b.namespaceURI===$7?b.ownerDocument.createElement(b.tagName):b.ownerDocument.createElementNS(b.namespaceURI,b.tagName);return Q.innerHTML=z,Q.innerHTML};var LW=/\r\n?/g,NW=/\u0000|\uFFFD/g;function $X(b){L5(b);var z=typeof b==="string"?b:""+b;return z.replace(LW,`
32
+ `).replace(NW,"")}function HX(b,z,Q,X){var Z=$X(z),J=$X(b);if(J===Z)return;if(X){if(!c6)c6=!0,G('Text content did not match. Server: "%s" Client: "%s"',J,Z)}if(Q&&I0)throw Error("Text content does not match server-rendered HTML.")}function WK(b){return b.nodeType===Y7?b:b.ownerDocument}function WW(){}function YX(b){b.onclick=WW}function _W(b,z,Q,X,Z){for(var J in X){if(!X.hasOwnProperty(J))continue;var H=X[J];if(J===Ab){if(H)Object.freeze(H);DG(z,H)}else if(J===Gz){var Y=H?H[XX]:void 0;if(Y!=null)TG(z,Y)}else if(J===wb){if(typeof H==="string"){var U=b!=="textarea"||H!=="";if(U)TQ(z,H)}else if(typeof H==="number")TQ(z,""+H)}else if(J===QX||J===l7);else if(J===BK);else if(a1.hasOwnProperty(J)){if(H!=null){if(typeof H!=="function")JX(J,H);if(J==="onScroll")q4("scroll",z)}}else if(H!=null)q1(z,J,H,Z)}}function PW(b,z,Q,X){for(var Z=0;Z<z.length;Z+=2){var J=z[Z],H=z[Z+1];if(J===Ab)DG(b,H);else if(J===Gz)TG(b,H);else if(J===wb)TQ(b,H);else q1(b,J,H,X)}}function FW(b,z,Q,X){var Z,J=WK(Q),H,Y=X;if(Y===$7)Y=XJ(b);if(Y===$7){if(Z=Bb(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 U=J.createElement("div");U.innerHTML="<script></script>";var O=U.firstChild;H=U.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===$7){if(!Z&&Object.prototype.toString.call(H)==="[object HTMLUnknownElement]"&&!E4.call(_$,b))_$[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 WK(z).createTextNode(b)}function MW(b,z,Q,X){var Z=Bb(z,Q);ZX(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<$z.length;H++)q4($z[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":A(b,Q),J=q(b,Q),q4("invalid",b);break;case"option":s1(b,Q),J=Q;break;case"select":f8(b,Q),J=I8(b,Q),q4("invalid",b);break;case"textarea":AG(b,Q),J=zJ(b,Q),q4("invalid",b);break;default:J=Q}switch(YJ(z,J),_W(z,b,X,J,Z),z){case"input":Z7(b),K0(b,Q,!1);break;case"textarea":Z7(b),fG(b);break;case"option":U4(b,Q);break;case"select":bJ(b,Q);break;default:if(typeof J.onClick==="function")YX(b);break}}function RW(b,z,Q,X,Z){ZX(z,X);var J=null,H,Y;switch(z){case"input":H=q(b,Q),Y=q(b,X),J=[];break;case"select":H=I8(b,Q),Y=I8(b,X),J=[];break;case"textarea":H=zJ(b,Q),Y=zJ(b,X),J=[];break;default:if(H=Q,Y=X,typeof H.onClick!=="function"&&typeof Y.onClick==="function")YX(b);break}YJ(z,Y);var U,O,N=null;for(U in H){if(Y.hasOwnProperty(U)||!H.hasOwnProperty(U)||H[U]==null)continue;if(U===Ab){var T=H[U];for(O in T)if(T.hasOwnProperty(O)){if(!N)N={};N[O]=""}}else if(U===Gz||U===wb);else if(U===QX||U===l7);else if(U===BK);else if(a1.hasOwnProperty(U)){if(!J)J=[]}else(J=J||[]).push(U,null)}for(U in Y){var I=Y[U],E=H!=null?H[U]:void 0;if(!Y.hasOwnProperty(U)||I===E||I==null&&E==null)continue;if(U===Ab){if(I)Object.freeze(I);if(E){for(O in E)if(E.hasOwnProperty(O)&&(!I||!I.hasOwnProperty(O))){if(!N)N={};N[O]=""}for(O in I)if(I.hasOwnProperty(O)&&E[O]!==I[O]){if(!N)N={};N[O]=I[O]}}else{if(!N){if(!J)J=[];J.push(U,N)}N=I}}else if(U===Gz){var g=I?I[XX]:void 0,d=E?E[XX]:void 0;if(g!=null){if(d!==g)(J=J||[]).push(U,g)}}else if(U===wb){if(typeof I==="string"||typeof I==="number")(J=J||[]).push(U,""+I)}else if(U===QX||U===l7);else if(a1.hasOwnProperty(U)){if(I!=null){if(typeof I!=="function")JX(U,I);if(U==="onScroll")q4("scroll",b)}if(!J&&E!==I)J=[]}else(J=J||[]).push(U,I)}if(N)aB(N,Y[Ab]),(J=J||[]).push(Ab,N);return J}function kW(b,z,Q,X,Z){if(Q==="input"&&Z.type==="radio"&&Z.name!=null)u(b,Z);var J=Bb(Q,X),H=Bb(Q,Z);switch(PW(b,z,J,H),Q){case"input":l(b,Z);break;case"textarea":IG(b,Z);break;case"select":PB(b,Z);break}}function wW(b){{var z=b.toLowerCase();if(!hQ.hasOwnProperty(z))return null;return hQ[z]||null}}function AW(b,z,Q,X,Z,J,H){var Y,U;switch(Y=Bb(z,Q),ZX(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<$z.length;O++)q4($z[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":A(b,Q),q4("invalid",b);break;case"option":s1(b,Q);break;case"select":f8(b,Q),q4("invalid",b);break;case"textarea":AG(b,Q),q4("invalid",b);break}YJ(z,Q);{U=new Set;var N=b.attributes;for(var T=0;T<N.length;T++){var I=N[T].name.toLowerCase();switch(I){case"value":break;case"checked":break;case"selected":break;default:U.add(N[T].name)}}}var E=null;for(var g in Q){if(!Q.hasOwnProperty(g))continue;var d=Q[g];if(g===wb){if(typeof d==="string"){if(b.textContent!==d){if(Q[l7]!==!0)HX(b.textContent,d,J,H);E=[wb,d]}}else if(typeof d==="number"){if(b.textContent!==""+d){if(Q[l7]!==!0)HX(b.textContent,d,J,H);E=[wb,""+d]}}}else if(a1.hasOwnProperty(g)){if(d!=null){if(typeof d!=="function")JX(g,d);if(g==="onScroll")q4("scroll",b)}}else if(H&&!0&&typeof Y==="boolean"){var F0=void 0,y0=Y&&Y1?null:f4(g);if(Q[l7]===!0);else if(g===QX||g===l7||g==="value"||g==="checked"||g==="selected");else if(g===Gz){var D0=b.innerHTML,G1=d?d[XX]:void 0;if(G1!=null){var K1=NK(b,G1);if(K1!==D0)Kz(g,D0,K1)}}else if(g===Ab){if(U.delete(g),LK){var S=cB(d);if(F0=b.getAttribute("style"),S!==F0)Kz(g,F0,S)}}else if(Y&&!Y1){if(U.delete(g.toLowerCase()),F0=W5(b,g,d),d!==F0)Kz(g,F0,d)}else if(!S1(g,y0,Y)&&!l1(g,d,y0,Y)){var o=!1;if(y0!==null)U.delete(y0.attributeName),F0=F6(b,g,d,y0);else{var V=X;if(V===$7)V=XJ(z);if(V===$7)U.delete(g.toLowerCase());else{var $0=wW(g);if($0!==null&&$0!==g)o=!0,U.delete($0);U.delete(g)}F0=W5(b,g,d)}var k0=Y1;if(!k0&&d!==F0&&!o)Kz(g,F0,d)}}}if(H){if(U.size>0&&Q[l7]!==!0)OK(U)}switch(z){case"input":Z7(b),K0(b,Q,!0);break;case"textarea":Z7(b),fG(b);break;case"select":case"option":break;default:if(typeof Q.onClick==="function")YX(b);break}return E}function IW(b,z,Q){var X=b.nodeValue!==z;return X}function P$(b,z){{if(c6)return;c6=!0,G("Did not expect server HTML to contain a <%s> in <%s>.",z.nodeName.toLowerCase(),b.nodeName.toLowerCase())}}function F$(b,z){{if(c6)return;c6=!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(c6)return;c6=!0,G("Expected server HTML to contain a matching <%s> in <%s>.",z,b.nodeName.toLowerCase())}}function M$(b,z){{if(z==="")return;if(c6)return;c6=!0,G('Expected server HTML to contain a matching text node for "%s" in <%s>.',z,b.nodeName.toLowerCase())}}function fW(b,z,Q){switch(z){case"input":o0(b,Q);return;case"textarea":vB(b,Q);return;case"select":FB(b,Q);return}}var Uz=function(){},qz=function(){};{var TW=["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"],_K=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],hW=_K.concat(["button"]),CW=["dd","dt","li","option","optgroup","p","rp","rt"],PK={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};qz=function(b,z){var Q=J1({},b||PK),X={tag:z};if(_K.indexOf(z)!==-1)Q.aTagInScope=null,Q.buttonTagInScope=null,Q.nobrTagInScope=null;if(hW.indexOf(z)!==-1)Q.pTagInButtonScope=null;if(TW.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 SW=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 CW.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},VW=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},FK={};Uz=function(b,z,Q){Q=Q||PK;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=SW(b,Z)?null:X,H=J?null:VW(b,Q),Y=J||H;if(!Y)return;var U=Y.tag,O=!!J+"|"+b+"|"+U;if(FK[O])return;FK[O]=!0;var N=b,T="";if(b==="#text")if(/\S/.test(z))N="Text nodes";else N="Whitespace text nodes",T=" 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(U==="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,U,T,I)}else G("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",N,U)}}var GX="suppressHydrationWarning",KX="$",UX="/$",Bz="$?",Oz="$!",DW="style",R$=null,k$=null;function mW(b){var z,Q,X=b.nodeType;switch(X){case Y7:case JJ:{z=X===Y7?"#document":"#fragment";var Z=b.documentElement;Q=Z?Z.namespaceURI:ZJ(null,"");break}default:{var J=X===S4?b.parentNode:b,H=J.namespaceURI||null;z=J.tagName,Q=ZJ(H,z);break}}{var Y=z.toLowerCase(),U=qz(null,Y);return{namespace:Q,ancestorInfo:U}}}function uW(b,z,Q){{var X=b,Z=ZJ(X.namespace,z),J=qz(X.ancestorInfo,z);return{namespace:Z,ancestorInfo:J}}}function w$(b){return b}function EW(b){R$=DL(),k$=tN();var z=null;return f9(!1),z}function gW(b){sN(k$),f9(R$),R$=null,k$=null}function yW(b,z,Q,X,Z){var J;{var H=X;if(Uz(b,null,H.ancestorInfo),typeof z.children==="string"||typeof z.children==="number"){var Y=""+z.children,U=qz(H.ancestorInfo,b);Uz(null,Y,U)}J=H.namespace}var O=FW(b,z,Q,J);return Wz(Z,O),V$(O,z),O}function cW(b,z){b.appendChild(z)}function dW(b,z,Q,X,Z){switch(MW(b,z,Q,X),z){case"button":case"input":case"select":case"textarea":return!!Q.autoFocus;case"img":return!0;default:return!1}}function aW(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,U=qz(H.ancestorInfo,z);Uz(null,Y,U)}}return RW(b,z,Q,X)}function A$(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 lW(b,z,Q,X){{var Z=Q;Uz(null,b,Z.ancestorInfo)}var J=vW(b,z);return Wz(X,J),J}function iW(){var b=window.event;if(b===void 0)return L7;return T9(b.type)}var I$=typeof setTimeout==="function"?setTimeout:void 0,oW=typeof clearTimeout==="function"?clearTimeout:void 0,f$=-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)}:I$;function jW(b){setTimeout(function(){throw b})}function pW(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 rW(b,z,Q,X,Z,J){kW(b,z,Q,X,Z),V$(b,Z)}function MK(b){TQ(b,"")}function nW(b,z,Q){b.nodeValue=Q}function tW(b,z){b.appendChild(z)}function sW(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)YX(Q)}function eW(b,z,Q){b.insertBefore(z,Q)}function b_(b,z,Q){if(b.nodeType===S4)b.parentNode.insertBefore(z,Q);else b.insertBefore(z,Q)}function z_(b,z){b.removeChild(z)}function Q_(b,z){if(b.nodeType===S4)b.parentNode.removeChild(z);else b.removeChild(z)}function T$(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===UX)if(X===0){b.removeChild(Z),n8(z);return}else X--;else if(J===KX||J===Bz||J===Oz)X++}Q=Z}while(Q);n8(z)}function X_(b,z){if(b.nodeType===S4)T$(b.parentNode,z);else if(b.nodeType===y6)T$(b,z);n8(b)}function Z_(b){b=b;var z=b.style;if(typeof z.setProperty==="function")z.setProperty("display","none","important");else z.display="none"}function J_(b){b.nodeValue=""}function $_(b,z){b=b;var Q=z[DW],X=Q!==void 0&&Q!==null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=$J("display",X)}function H_(b,z){b.nodeValue=z}function Y_(b){if(b.nodeType===y6)b.textContent="";else if(b.nodeType===Y7){if(b.documentElement)b.removeChild(b.documentElement)}}function G_(b,z,Q){if(b.nodeType!==y6||z.toLowerCase()!==b.nodeName.toLowerCase())return null;return b}function K_(b,z){if(z===""||b.nodeType!==H7)return null;return b}function U_(b){if(b.nodeType!==S4)return null;return b}function RK(b){return b.data===Bz}function h$(b){return b.data===Oz}function q_(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 B_(b,z){b._reactRetry=z}function qX(b){for(;b!=null;b=b.nextSibling){var z=b.nodeType;if(z===y6||z===H7)break;if(z===S4){var Q=b.data;if(Q===KX||Q===Oz||Q===Bz)break;if(Q===UX)return null}}return b}function Lz(b){return qX(b.nextSibling)}function O_(b){return qX(b.firstChild)}function L_(b){return qX(b.firstChild)}function N_(b){return qX(b.nextSibling)}function W_(b,z,Q,X,Z,J,H){Wz(J,b),V$(b,Q);var Y;{var U=Z;Y=U.namespace}var O=(J.mode&N1)!==a0;return AW(b,z,Q,Y,X,O,H)}function __(b,z,Q,X){Wz(Q,b);var Z=(Q.mode&N1)!==a0;return IW(b,z)}function P_(b,z){Wz(z,b)}function F_(b){var z=b.nextSibling,Q=0;while(z){if(z.nodeType===S4){var X=z.data;if(X===UX)if(Q===0)return Lz(z);else Q--;else if(X===KX||X===Oz||X===Bz)Q++}z=z.nextSibling}return null}function kK(b){var z=b.previousSibling,Q=0;while(z){if(z.nodeType===S4){var X=z.data;if(X===KX||X===Oz||X===Bz)if(Q===0)return z;else Q--;else if(X===UX)Q++}z=z.previousSibling}return null}function v_(b){n8(b)}function M_(b){n8(b)}function R_(b){return b!=="head"&&b!=="body"}function k_(b,z,Q,X){var Z=!0;HX(z.nodeValue,Q,X,Z)}function w_(b,z,Q,X,Z,J){if(z[GX]!==!0){var H=!0;HX(X.nodeValue,Z,J,H)}}function A_(b,z){if(z.nodeType===y6)P$(b,z);else if(z.nodeType===S4);else F$(b,z)}function I_(b,z){{var Q=b.parentNode;if(Q!==null)if(z.nodeType===y6)P$(Q,z);else if(z.nodeType===S4);else F$(Q,z)}}function f_(b,z,Q,X,Z){if(Z||z[GX]!==!0)if(X.nodeType===y6)P$(Q,X);else if(X.nodeType===S4);else F$(Q,X)}function T_(b,z,Q){v$(b,z)}function h_(b,z){M$(b,z)}function C_(b,z,Q){{var X=b.parentNode;if(X!==null)v$(X,z)}}function S_(b,z){{var Q=b.parentNode;if(Q!==null)M$(Q,z)}}function V_(b,z,Q,X,Z,J){if(J||z[GX]!==!0)v$(Q,X)}function D_(b,z,Q,X,Z){if(Z||z[GX]!==!0)M$(Q,X)}function m_(b){G("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",b.nodeName.toLowerCase())}function u_(b){Hz(b)}var R3=Math.random().toString(36).slice(2),k3="__reactFiber$"+R3,C$="__reactProps$"+R3,Nz="__reactContainer$"+R3,S$="__reactEvents$"+R3,E_="__reactListeners$"+R3,g_="__reactHandles$"+R3;function y_(b){delete b[k3],delete b[C$],delete b[S$],delete b[E_],delete b[g_]}function Wz(b,z){z[k3]=b}function BX(b,z){z[Nz]=b}function wK(b){b[Nz]=null}function _z(b){return!!b[Nz]}function Ib(b){var z=b[k3];if(z)return z;var Q=b.parentNode;while(Q){if(z=Q[Nz]||Q[k3],z){var X=z.alternate;if(z.child!==null||X!==null&&X.child!==null){var Z=kK(b);while(Z!==null){var J=Z[k3];if(J)return J;Z=kK(Z)}}return z}b=Q,Q=b.parentNode}return null}function i7(b){var z=b[k3]||b[Nz];if(z)if(z.tag===w||z.tag===R||z.tag===n||z.tag===k)return z;else return null;return null}function w3(b){if(b.tag===w||b.tag===R)return b.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function OX(b){return b[C$]||null}function V$(b,z){b[C$]=z}function c_(b){var z=b[S$];if(z===void 0)z=b[S$]=new Set;return z}var AK={},IK=$.ReactDebugCurrentFrame;function LX(b){if(b){var z=b._owner,Q=V7(b.type,b._source,z?z.type:null);IK.setExtraStackFrame(Q)}else IK.setExtraStackFrame(null)}function v5(b,z,Q,X,Z){{var J=Function.call.bind(E4);for(var H in b)if(J(b,H)){var Y=void 0;try{if(typeof b[H]!=="function"){var U=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 U.name="Invariant Violation",U}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))LX(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),LX(null);if(Y instanceof Error&&!(Y.message in AK))AK[Y.message]=!0,LX(Z),G("Failed %s type: %s",Q,Y.message),LX(null)}}}var D$=[],NX;NX=[];var N7=-1;function o7(b){return{current:b}}function M6(b,z){if(N7<0){G("Unexpected pop.");return}if(z!==NX[N7])G("Unexpected Fiber popped.");b.current=D$[N7],D$[N7]=null,NX[N7]=null,N7--}function R6(b,z,Q){N7++,D$[N7]=b.current,NX[N7]=Q,b.current=z}var fK={},e6={};Object.freeze(e6);var W7=o7(e6),o5=o7(!1),m$=e6;function A3(b,z,Q){{if(Q&&x5(z))return m$;return W7.current}}function TK(b,z,Q){{var X=b.stateNode;X.__reactInternalMemoizedUnmaskedChildContext=z,X.__reactInternalMemoizedMaskedChildContext=Q}}function I3(b,z){{var Q=b.type,X=Q.contextTypes;if(!X)return e6;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=X1(b)||"Unknown";v5(X,J,"context",Y)}if(Z)TK(b,z,J);return J}}function WX(){return o5.current}function x5(b){{var z=b.childContextTypes;return z!==null&&z!==void 0}}function _X(b){M6(o5,b),M6(W7,b)}function u$(b){M6(o5,b),M6(W7,b)}function hK(b,z,Q){{if(W7.current!==e6)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");R6(W7,z,b),R6(o5,Q,b)}}function CK(b,z,Q){{var X=b.stateNode,Z=z.childContextTypes;if(typeof X.getChildContext!=="function"){{var J=X1(b)||"Unknown";if(!fK[J])fK[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((X1(b)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var U=X1(b)||"Unknown";v5(Z,H,"child context",U)}return J1({},Q,H)}}function PX(b){{var z=b.stateNode,Q=z&&z.__reactInternalMemoizedMergedChildContext||e6;return m$=W7.current,R6(W7,Q,b),R6(o5,o5.current,b),!0}}function SK(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=CK(b,z,m$);X.__reactInternalMemoizedMergedChildContext=Z,M6(o5,b),M6(W7,b),R6(W7,Z,b),R6(o5,Q,b)}else M6(o5,b),R6(o5,Q,b)}}function d_(b){{if(!RO(b)||b.tag!==_)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 k:return z.stateNode.context;case _:{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,FX=1,_7=null,E$=!1,g$=!1;function VK(b){if(_7===null)_7=[b];else _7.push(b)}function a_(b){E$=!0,VK(b)}function DK(){if(E$)j7()}function j7(){if(!g$&&_7!==null){g$=!0;var b=0,z=F5();try{var Q=!0,X=_7;z6(n6);for(;b<X.length;b++){var Z=X[b];do Z=Z(Q);while(Z!==null)}_7=null,E$=!1}catch(J){if(_7!==null)_7=_7.slice(b+1);throw X9(mQ,j7),J}finally{z6(z),g$=!1}}return null}var f3=[],T3=0,vX=null,MX=0,J5=[],$5=0,fb=null,P7=1,F7="";function l_(b){return hb(),(b.flags&rG)!==l0}function i_(b){return hb(),MX}function o_(){var b=F7,z=P7,Q=z&~x_(z);return Q.toString(32)+b}function Tb(b,z){hb(),f3[T3++]=MX,f3[T3++]=vX,vX=b,MX=z}function mK(b,z,Q){hb(),J5[$5++]=P7,J5[$5++]=F7,J5[$5++]=fb,fb=b;var X=P7,Z=F7,J=RX(X)-1,H=X&~(1<<J),Y=Q+1,U=RX(z)+J;if(U>30){var O=J-J%5,N=(1<<O)-1,T=(H&N).toString(32),I=H>>O,E=J-O,g=RX(z)+E,d=Y<<E,F0=d|I,y0=T+Z;P7=1<<g|F0,F7=y0}else{var D0=Y<<J,G1=D0|H,K1=Z;P7=1<<U|G1,F7=K1}}function y$(b){hb();var z=b.return;if(z!==null){var Q=1,X=0;Tb(b,Q),mK(b,Q,X)}}function RX(b){return 32-G9(b)}function x_(b){return 1<<RX(b)-1}function c$(b){while(b===vX)vX=f3[--T3],f3[T3]=null,MX=f3[--T3],f3[T3]=null;while(b===fb)fb=J5[--$5],J5[$5]=null,F7=J5[--$5],J5[$5]=null,P7=J5[--$5],J5[$5]=null}function j_(){if(hb(),fb!==null)return{id:P7,overflow:F7};else return null}function p_(b,z){hb(),J5[$5++]=P7,J5[$5++]=F7,J5[$5++]=fb,P7=z.id,F7=z.overflow,fb=b}function hb(){if(!Y6())G("Expected to be hydrating. This is a bug in React. Please file an issue.")}var H6=null,H5=null,M5=!1,Cb=!1,p7=null;function r_(){if(M5)G("We should not be hydrating here. This is a bug in React. Please file a bug.")}function uK(){Cb=!0}function n_(){return Cb}function t_(b){var z=b.stateNode.containerInfo;return H5=L_(z),H6=b,M5=!0,p7=null,Cb=!1,!0}function s_(b,z,Q){if(H5=N_(z),H6=b,M5=!0,p7=null,Cb=!1,Q!==null)p_(b,Q);return!0}function EK(b,z){switch(b.tag){case k:{A_(b.stateNode.containerInfo,z);break}case w:{var Q=(b.mode&N1)!==a0;f_(b.type,b.memoizedProps,b.stateNode,z,Q);break}case n:{var X=b.memoizedState;if(X.dehydrated!==null)I_(X.dehydrated,z);break}}}function gK(b,z){EK(b,z);var Q=$M();Q.stateNode=z,Q.return=b;var X=b.deletions;if(X===null)b.deletions=[Q],b.flags|=Ob;else X.push(Q)}function d$(b,z){{if(Cb)return;switch(b.tag){case k:{var Q=b.stateNode.containerInfo;switch(z.tag){case w:var{type:X,pendingProps:Z}=z;T_(Q,X);break;case R:var J=z.pendingProps;h_(Q,J);break}break}case w:{var{type:H,memoizedProps:Y,stateNode:U}=b;switch(z.tag){case w:{var{type:O,pendingProps:N}=z,T=(b.mode&N1)!==a0;V_(H,Y,U,O,N,T);break}case R:{var I=z.pendingProps,E=(b.mode&N1)!==a0;D_(H,Y,U,I,E);break}}break}case n:{var g=b.memoizedState,d=g.dehydrated;if(d!==null)switch(z.tag){case w:var{type:F0,pendingProps:y0}=z;C_(d,F0);break;case R:var D0=z.pendingProps;S_(d,D0);break}break}default:return}}}function yK(b,z){z.flags=z.flags&~K7|V4,d$(b,z)}function cK(b,z){switch(b.tag){case w:{var{type:Q,pendingProps:X}=b,Z=G_(z,Q);if(Z!==null)return b.stateNode=Z,H6=b,H5=O_(Z),!0;return!1}case R:{var J=b.pendingProps,H=K_(z,J);if(H!==null)return b.stateNode=H,H6=b,H5=null,!0;return!1}case n:{var Y=U_(z);if(Y!==null){var U={dehydrated:Y,treeContext:j_(),retryLane:p6};b.memoizedState=U;var O=HM(Y);return O.return=b,b.child=O,H6=b,H5=null,!0}return!1}default:return!1}}function a$(b){return(b.mode&N1)!==a0&&(b.flags&A1)===l0}function l$(b){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function i$(b){if(!M5)return;var z=H5;if(!z){if(a$(b))d$(H6,b),l$();yK(H6,b),M5=!1,H6=b;return}var Q=z;if(!cK(b,z)){if(a$(b))d$(H6,b),l$();z=Lz(Q);var X=H6;if(!z||!cK(b,z)){yK(H6,b),M5=!1,H6=b;return}gK(X,Q)}}function e_(b,z,Q){var X=b.stateNode,Z=!Cb,J=W_(X,b.type,b.memoizedProps,z,Q,b,Z);if(b.updateQueue=J,J!==null)return!0;return!1}function bP(b){var{stateNode:z,memoizedProps:Q}=b,X=__(z,Q,b);if(X){var Z=H6;if(Z!==null)switch(Z.tag){case k:{var J=Z.stateNode.containerInfo,H=(Z.mode&N1)!==a0;k_(J,z,Q,H);break}case w:{var{type:Y,memoizedProps:U,stateNode:O}=Z,N=(Z.mode&N1)!==a0;w_(Y,U,O,z,Q,N);break}}}return X}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.");P_(Q,b)}function QP(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 F_(Q)}function dK(b){var z=b.return;while(z!==null&&z.tag!==w&&z.tag!==k&&z.tag!==n)z=z.return;H6=z}function kX(b){if(b!==H6)return!1;if(!M5)return dK(b),M5=!0,!1;if(b.tag!==k&&(b.tag!==w||R_(b.type)&&!A$(b.type,b.memoizedProps))){var z=H5;if(z)if(a$(b))aK(b),l$();else while(z)gK(b,z),z=Lz(z)}if(dK(b),b.tag===n)H5=QP(b);else H5=H6?Lz(b.stateNode):null;return!0}function XP(){return M5&&H5!==null}function aK(b){var z=H5;while(z)EK(b,z),z=Lz(z)}function h3(){H6=null,H5=null,M5=!1,Cb=!1}function lK(){if(p7!==null)E2(p7),p7=null}function Y6(){return M5}function o$(b){if(p7===null)p7=[b];else p7.push(b)}var ZP=$.ReactCurrentBatchConfig,JP=null;function $P(){return ZP.transition}var R5={recordUnsafeLifecycleWarnings:function(b,z){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(b,z){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var HP=function(b){var z=null,Q=b;while(Q!==null){if(Q.mode&R4)z=Q;Q=Q.return}return z},Sb=function(b){var z=[];return b.forEach(function(Q){z.push(Q)}),z.sort().join(", ")},Pz=[],Fz=[],vz=[],Mz=[],Rz=[],kz=[],Vb=new Set;R5.recordUnsafeLifecycleWarnings=function(b,z){if(Vb.has(b.type))return;if(typeof z.componentWillMount==="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0)Pz.push(b);if(b.mode&R4&&typeof z.UNSAFE_componentWillMount==="function")Fz.push(b);if(typeof z.componentWillReceiveProps==="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0)vz.push(b);if(b.mode&R4&&typeof z.UNSAFE_componentWillReceiveProps==="function")Mz.push(b);if(typeof z.componentWillUpdate==="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0)Rz.push(b);if(b.mode&R4&&typeof z.UNSAFE_componentWillUpdate==="function")kz.push(b)},R5.flushPendingUnsafeLifecycleWarnings=function(){var b=new Set;if(Pz.length>0)Pz.forEach(function(I){b.add(X1(I)||"Component"),Vb.add(I.type)}),Pz=[];var z=new Set;if(Fz.length>0)Fz.forEach(function(I){z.add(X1(I)||"Component"),Vb.add(I.type)}),Fz=[];var Q=new Set;if(vz.length>0)vz.forEach(function(I){Q.add(X1(I)||"Component"),Vb.add(I.type)}),vz=[];var X=new Set;if(Mz.length>0)Mz.forEach(function(I){X.add(X1(I)||"Component"),Vb.add(I.type)}),Mz=[];var Z=new Set;if(Rz.length>0)Rz.forEach(function(I){Z.add(X1(I)||"Component"),Vb.add(I.type)}),Rz=[];var J=new Set;if(kz.length>0)kz.forEach(function(I){J.add(X1(I)||"Component"),Vb.add(I.type)}),kz=[];if(z.size>0){var H=Sb(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=Sb(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 U=Sb(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`,U)}if(b.size>0){var O=Sb(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=Sb(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 T=Sb(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`,T)}};var wX=new Map,iK=new Set;R5.recordLegacyContextWarning=function(b,z){var Q=HP(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(iK.has(b.type))return;var X=wX.get(Q);if(b.type.contextTypes!=null||b.type.childContextTypes!=null||z!==null&&typeof z.getChildContext==="function"){if(X===void 0)X=[],wX.set(Q,X);X.push(b)}},R5.flushLegacyContextWarning=function(){wX.forEach(function(b,z){if(b.length===0)return;var Q=b[0],X=new Set;b.forEach(function(J){X.add(X1(J)||"Component"),iK.add(J.type)});var Z=Sb(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{t4()}})},R5.discardPendingWarnings=function(){Pz=[],Fz=[],vz=[],Mz=[],Rz=[],kz=[],wX=new Map}}var x$,j$,p$,r$,n$,oK=function(b,z){};x$=!1,j$=!1,p$={},r$={},n$={},oK=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=X1(z)||"Component";if(r$[Q])return;r$[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 YP(b){return b.prototype&&b.prototype.isReactComponent}function wz(b,z,Q){var X=Q.ref;if(X!==null&&typeof X!=="function"&&typeof X!=="object"){if((b.mode&R4||C1)&&!(Q._owner&&Q._self&&Q._owner.stateNode!==Q._self)&&!(Q._owner&&Q._owner.tag!==_)&&!(typeof Q.type==="function"&&!YP(Q.type))&&Q._owner){var Z=X1(b)||"Component";if(!p$[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),p$[Z]=!0}if(Q._owner){var J=Q._owner,H;if(J){var Y=J;if(Y.tag!==_)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 U=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(T){var I=U.refs;if(T===null)delete I[O];else I[O]=T};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 AX(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 IX(b){{var z=X1(b)||"Component";if(n$[z])return;n$[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(S,o){if(!b)return;var V=S.deletions;if(V===null)S.deletions=[o],S.flags|=Ob;else V.push(o)}function Q(S,o){if(!b)return null;var V=o;while(V!==null)z(S,V),V=V.sibling;return null}function X(S,o){var V=new Map,$0=o;while($0!==null){if($0.key!==null)V.set($0.key,$0);else V.set($0.index,$0);$0=$0.sibling}return V}function Z(S,o){var V=ab(S,o);return V.index=0,V.sibling=null,V}function J(S,o,V){if(S.index=V,!b)return S.flags|=rG,o;var $0=S.alternate;if($0!==null){var k0=$0.index;if(k0<o)return S.flags|=V4,o;else return k0}else return S.flags|=V4,o}function H(S){if(b&&S.alternate===null)S.flags|=V4;return S}function Y(S,o,V,$0){if(o===null||o.tag!==R){var k0=jY(V,S.mode,$0);return k0.return=S,k0}else{var v0=Z(o,V);return v0.return=S,v0}}function U(S,o,V,$0){var k0=V.type;if(k0===M1)return N(S,o,V.props.children,$0,V.key);if(o!==null){if(o.elementType===k0||e2(o,V)||typeof k0==="object"&&k0!==null&&k0.$$typeof===V0&&xK(k0)===o.type){var v0=Z(o,V.props);return v0.ref=wz(S,o,V),v0.return=S,v0._debugSource=V._source,v0._debugOwner=V._owner,v0}}var x0=xY(V,S.mode,$0);return x0.ref=wz(S,o,V),x0.return=S,x0}function O(S,o,V,$0){if(o===null||o.tag!==P||o.stateNode.containerInfo!==V.containerInfo||o.stateNode.implementation!==V.implementation){var k0=pY(V,S.mode,$0);return k0.return=S,k0}else{var v0=Z(o,V.children||[]);return v0.return=S,v0}}function N(S,o,V,$0,k0){if(o===null||o.tag!==c){var v0=Jb(V,S.mode,$0,k0);return v0.return=S,v0}else{var x0=Z(o,V);return x0.return=S,x0}}function T(S,o,V){if(typeof o==="string"&&o!==""||typeof o==="number"){var $0=jY(""+o,S.mode,V);return $0.return=S,$0}if(typeof o==="object"&&o!==null){switch(o.$$typeof){case V1:{var k0=xY(o,S.mode,V);return k0.ref=wz(S,null,o),k0.return=S,k0}case x1:{var v0=pY(o,S.mode,V);return v0.return=S,v0}case V0:{var{_payload:x0,_init:z1}=o;return T(S,z1(x0),V)}}if(w1(o)||J4(o)){var c1=Jb(o,S.mode,V,null);return c1.return=S,c1}AX(S,o)}if(typeof o==="function")IX(S);return null}function I(S,o,V,$0){var k0=o!==null?o.key:null;if(typeof V==="string"&&V!==""||typeof V==="number"){if(k0!==null)return null;return Y(S,o,""+V,$0)}if(typeof V==="object"&&V!==null){switch(V.$$typeof){case V1:if(V.key===k0)return U(S,o,V,$0);else return null;case x1:if(V.key===k0)return O(S,o,V,$0);else return null;case V0:{var{_payload:v0,_init:x0}=V;return I(S,o,x0(v0),$0)}}if(w1(V)||J4(V)){if(k0!==null)return null;return N(S,o,V,$0,null)}AX(S,V)}if(typeof V==="function")IX(S);return null}function E(S,o,V,$0,k0){if(typeof $0==="string"&&$0!==""||typeof $0==="number"){var v0=S.get(V)||null;return Y(o,v0,""+$0,k0)}if(typeof $0==="object"&&$0!==null){switch($0.$$typeof){case V1:{var x0=S.get($0.key===null?V:$0.key)||null;return U(o,x0,$0,k0)}case x1:{var z1=S.get($0.key===null?V:$0.key)||null;return O(o,z1,$0,k0)}case V0:var{_payload:c1,_init:R1}=$0;return E(S,o,V,R1(c1),k0)}if(w1($0)||J4($0)){var T4=S.get(V)||null;return N(o,T4,$0,k0,null)}AX(o,$0)}if(typeof $0==="function")IX(o);return null}function g(S,o,V){{if(typeof S!=="object"||S===null)return o;switch(S.$$typeof){case V1:case x1:oK(S,V);var $0=S.key;if(typeof $0!=="string")break;if(o===null){o=new Set,o.add($0);break}if(!o.has($0)){o.add($0);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.",$0);break;case V0:var{_payload:k0,_init:v0}=S;g(v0(k0),o,V);break}}return o}function d(S,o,V,$0){{var k0=null;for(var v0=0;v0<V.length;v0++){var x0=V[v0];k0=g(x0,k0,S)}}var z1=null,c1=null,R1=o,T4=0,k1=0,k4=null;for(;R1!==null&&k1<V.length;k1++){if(R1.index>k1)k4=R1,R1=null;else k4=R1.sibling;var w6=I(S,R1,V[k1],$0);if(w6===null){if(R1===null)R1=k4;break}if(b){if(R1&&w6.alternate===null)z(S,R1)}if(T4=J(w6,T4,k1),c1===null)z1=w6;else c1.sibling=w6;c1=w6,R1=k4}if(k1===V.length){if(Q(S,R1),Y6()){var L6=k1;Tb(S,L6)}return z1}if(R1===null){for(;k1<V.length;k1++){var z5=T(S,V[k1],$0);if(z5===null)continue;if(T4=J(z5,T4,k1),c1===null)z1=z5;else c1.sibling=z5;c1=z5}if(Y6()){var m6=k1;Tb(S,m6)}return z1}var u6=X(S,R1);for(;k1<V.length;k1++){var A6=E(u6,S,k1,V[k1],$0);if(A6!==null){if(b){if(A6.alternate!==null)u6.delete(A6.key===null?k1:A6.key)}if(T4=J(A6,T4,k1),c1===null)z1=A6;else c1.sibling=A6;c1=A6}}if(b)u6.forEach(function(r3){return z(S,r3)});if(Y6()){var I7=k1;Tb(S,I7)}return z1}function F0(S,o,V,$0){var k0=J4(V);if(typeof k0!=="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"&&V[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(V.entries===k0){if(!x$)G("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");x$=!0}var v0=k0.call(V);if(v0){var x0=null,z1=v0.next();for(;!z1.done;z1=v0.next()){var c1=z1.value;x0=g(c1,x0,S)}}}var R1=k0.call(V);if(R1==null)throw Error("An iterable object provided no iterator.");var T4=null,k1=null,k4=o,w6=0,L6=0,z5=null,m6=R1.next();for(;k4!==null&&!m6.done;L6++,m6=R1.next()){if(k4.index>L6)z5=k4,k4=null;else z5=k4.sibling;var u6=I(S,k4,m6.value,$0);if(u6===null){if(k4===null)k4=z5;break}if(b){if(k4&&u6.alternate===null)z(S,k4)}if(w6=J(u6,w6,L6),k1===null)T4=u6;else k1.sibling=u6;k1=u6,k4=z5}if(m6.done){if(Q(S,k4),Y6()){var A6=L6;Tb(S,A6)}return T4}if(k4===null){for(;!m6.done;L6++,m6=R1.next()){var I7=T(S,m6.value,$0);if(I7===null)continue;if(w6=J(I7,w6,L6),k1===null)T4=I7;else k1.sibling=I7;k1=I7}if(Y6()){var r3=L6;Tb(S,r3)}return T4}var XQ=X(S,k4);for(;!m6.done;L6++,m6=R1.next()){var b7=E(XQ,S,L6,m6.value,$0);if(b7!==null){if(b){if(b7.alternate!==null)XQ.delete(b7.key===null?L6:b7.key)}if(w6=J(b7,w6,L6),k1===null)T4=b7;else k1.sibling=b7;k1=b7}}if(b)XQ.forEach(function(gM){return z(S,gM)});if(Y6()){var EM=L6;Tb(S,EM)}return T4}function y0(S,o,V,$0){if(o!==null&&o.tag===R){Q(S,o.sibling);var k0=Z(o,V);return k0.return=S,k0}Q(S,o);var v0=jY(V,S.mode,$0);return v0.return=S,v0}function D0(S,o,V,$0){var k0=V.key,v0=o;while(v0!==null){if(v0.key===k0){var x0=V.type;if(x0===M1){if(v0.tag===c){Q(S,v0.sibling);var z1=Z(v0,V.props.children);return z1.return=S,z1._debugSource=V._source,z1._debugOwner=V._owner,z1}}else if(v0.elementType===x0||e2(v0,V)||typeof x0==="object"&&x0!==null&&x0.$$typeof===V0&&xK(x0)===v0.type){Q(S,v0.sibling);var c1=Z(v0,V.props);return c1.ref=wz(S,v0,V),c1.return=S,c1._debugSource=V._source,c1._debugOwner=V._owner,c1}Q(S,v0);break}else z(S,v0);v0=v0.sibling}if(V.type===M1){var R1=Jb(V.props.children,S.mode,$0,V.key);return R1.return=S,R1}else{var T4=xY(V,S.mode,$0);return T4.ref=wz(S,o,V),T4.return=S,T4}}function G1(S,o,V,$0){var k0=V.key,v0=o;while(v0!==null){if(v0.key===k0)if(v0.tag===P&&v0.stateNode.containerInfo===V.containerInfo&&v0.stateNode.implementation===V.implementation){Q(S,v0.sibling);var x0=Z(v0,V.children||[]);return x0.return=S,x0}else{Q(S,v0);break}else z(S,v0);v0=v0.sibling}var z1=pY(V,S.mode,$0);return z1.return=S,z1}function K1(S,o,V,$0){var k0=typeof V==="object"&&V!==null&&V.type===M1&&V.key===null;if(k0)V=V.props.children;if(typeof V==="object"&&V!==null){switch(V.$$typeof){case V1:return H(D0(S,o,V,$0));case x1:return H(G1(S,o,V,$0));case V0:var{_payload:v0,_init:x0}=V;return K1(S,o,x0(v0),$0)}if(w1(V))return d(S,o,V,$0);if(J4(V))return F0(S,o,V,$0);AX(S,V)}if(typeof V==="string"&&V!==""||typeof V==="number")return H(y0(S,o,""+V,$0));if(typeof V==="function")IX(S);return Q(S,o)}return K1}var C3=jK(!0),pK=jK(!1);function GP(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=ab(Q,Q.pendingProps);z.child=X,X.return=z;while(Q.sibling!==null)Q=Q.sibling,X=X.sibling=ab(Q,Q.pendingProps),X.return=z;X.sibling=null}function KP(b,z){var Q=b.child;while(Q!==null)zM(Q,z),Q=Q.sibling}var t$=o7(null),s$;s$={};var fX=null,S3=null,e$=null,TX=!1;function hX(){fX=null,S3=null,e$=null,TX=!1}function rK(){TX=!0}function nK(){TX=!1}function tK(b,z,Q){{R6(t$,z._currentValue,b),z._currentValue=Q;{if(z._currentRenderer!==void 0&&z._currentRenderer!==null&&z._currentRenderer!==s$)G("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");z._currentRenderer=s$}}}function bH(b,z){var Q=t$.current;M6(t$,z),b._currentValue=Q}function zH(b,z,Q){var X=b;while(X!==null){var Z=X.alternate;if(!N3(X.childLanes,z)){if(X.childLanes=Z1(X.childLanes,z),Z!==null)Z.childLanes=Z1(Z.childLanes,z)}else if(Z!==null&&!N3(Z.childLanes,z))Z.childLanes=Z1(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 UP(b,z,Q){qP(b,z,Q)}function qP(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===_){var Y=l8(Q),U=v7($4,Y);U.tag=SX;var O=X.updateQueue;if(O===null);else{var N=O.shared,T=N.pending;if(T===null)U.next=U;else U.next=T.next,T.next=U;N.pending=U}}X.lanes=Z1(X.lanes,Q);var I=X.alternate;if(I!==null)I.lanes=Z1(I.lanes,Q);zH(X.return,Q,b),J.lanes=Z1(J.lanes,Q);break}H=H.next}}else if(X.tag===D)Z=X.type===b.type?null:X.child;else if(X.tag===W0){var E=X.return;if(E===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");E.lanes=Z1(E.lanes,Q);var g=E.alternate;if(g!==null)g.lanes=Z1(g.lanes,Q);zH(E,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 d=Z.sibling;if(d!==null){d.return=Z.return,Z=d;break}Z=Z.return}}X=Z}}function V3(b,z){fX=b,S3=null,e$=null;var Q=b.dependencies;if(Q!==null){var X=Q.firstContext;if(X!==null){if(r6(Q.lanes,z))cz();Q.firstContext=null}}}function D4(b){if(TX)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(e$===b);else{var Q={context:b,memoizedValue:z,next:null};if(S3===null){if(fX===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().");S3=Q,fX.dependencies={lanes:X0,firstContext:Q}}else S3=S3.next=Q}return z}var Db=null;function QH(b){if(Db===null)Db=[b];else Db.push(b)}function BP(){if(Db!==null){for(var b=0;b<Db.length;b++){var z=Db[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}}Db=null}}function sK(b,z,Q,X){var Z=z.interleaved;if(Z===null)Q.next=Q,QH(z);else Q.next=Z.next,Z.next=Q;return z.interleaved=Q,CX(b,X)}function OP(b,z,Q,X){var Z=z.interleaved;if(Z===null)Q.next=Q,QH(z);else Q.next=Z.next,Z.next=Q;z.interleaved=Q}function LP(b,z,Q,X){var Z=z.interleaved;if(Z===null)Q.next=Q,QH(z);else Q.next=Z.next,Z.next=Q;return z.interleaved=Q,CX(b,X)}function d6(b,z){return CX(b,z)}var NP=CX;function CX(b,z){b.lanes=Z1(b.lanes,z);var Q=b.alternate;if(Q!==null)Q.lanes=Z1(Q.lanes,z);if(Q===null&&(b.flags&(V4|K7))!==l0)r2(b);var X=b,Z=b.return;while(Z!==null){if(Z.childLanes=Z1(Z.childLanes,z),Q=Z.alternate,Q!==null)Q.childLanes=Z1(Q.childLanes,z);else if((Z.flags&(V4|K7))!==l0)r2(b);X=Z,Z=Z.return}if(X.tag===k){var J=X.stateNode;return J}else return null}var eK=0,bU=1,SX=2,XH=3,VX=!1,ZH,DX;ZH=!1,DX=null;function JH(b){var z={baseState:b.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:X0},effects:null};b.updateQueue=z}function zU(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:eK,payload:null,callback:null,next:null};return Q}function r7(b,z,Q){var X=b.updateQueue;if(X===null)return null;var Z=X.shared;if(DX===Z&&!ZH)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."),ZH=!0;if(_v()){var J=Z.pending;if(J===null)z.next=z;else z.next=J.next,J.next=z;return Z.pending=z,NP(b,Q)}else return LP(b,Z,z,Q)}function mX(b,z,Q){var X=z.updateQueue;if(X===null)return;var Z=X.shared;if(B9(Q)){var J=Z.lanes;J=L9(J,b.pendingLanes);var H=Z1(J,Q);Z.lanes=H,tJ(b,H)}}function $H(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 U=Y;do{var O={eventTime:U.eventTime,lane:U.lane,tag:U.tag,payload:U.payload,callback:U.callback,next:null};if(H===null)J=H=O;else H.next=O,H=O;U=U.next}while(U!==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 WP(b,z,Q,X,Z,J){switch(Q.tag){case bU:{var H=Q.payload;if(typeof H==="function"){rK();var Y=H.call(J,X,Z);{if(b.mode&R4){e4(!0);try{H.call(J,X,Z)}finally{e4(!1)}}nK()}return Y}return H}case XH:b.flags=b.flags&~C6|A1;case eK:{var U=Q.payload,O;if(typeof U==="function"){rK(),O=U.call(J,X,Z);{if(b.mode&R4){e4(!0);try{U.call(J,X,Z)}finally{e4(!1)}}nK()}}else O=U;if(O===null||O===void 0)return X;return J1({},X,O)}case SX:return VX=!0,X}return X}function uX(b,z,Q,X){var Z=b.updateQueue;VX=!1,DX=Z.shared;var{firstBaseUpdate:J,lastBaseUpdate:H}=Z,Y=Z.shared.pending;if(Y!==null){Z.shared.pending=null;var U=Y,O=U.next;if(U.next=null,H===null)J=O;else H.next=O;H=U;var N=b.alternate;if(N!==null){var T=N.updateQueue,I=T.lastBaseUpdate;if(I!==H){if(I===null)T.firstBaseUpdate=O;else I.next=O;T.lastBaseUpdate=U}}}if(J!==null){var E=Z.baseState,g=X0,d=null,F0=null,y0=null,D0=J;do{var{lane:G1,eventTime:K1}=D0;if(!N3(X,G1)){var S={eventTime:K1,lane:G1,tag:D0.tag,payload:D0.payload,callback:D0.callback,next:null};if(y0===null)F0=y0=S,d=E;else y0=y0.next=S;g=Z1(g,G1)}else{if(y0!==null){var o={eventTime:K1,lane:b6,tag:D0.tag,payload:D0.payload,callback:D0.callback,next:null};y0=y0.next=o}E=WP(b,Z,D0,E,z,Q);var V=D0.callback;if(V!==null&&D0.lane!==b6){b.flags|=_J;var $0=Z.effects;if($0===null)Z.effects=[D0];else $0.push(D0)}}if(D0=D0.next,D0===null)if(Y=Z.shared.pending,Y===null)break;else{var k0=Y,v0=k0.next;k0.next=null,D0=v0,Z.lastBaseUpdate=k0,Z.shared.pending=null}}while(!0);if(y0===null)d=E;Z.baseState=d,Z.firstBaseUpdate=F0,Z.lastBaseUpdate=y0;var x0=Z.shared.interleaved;if(x0!==null){var z1=x0;do g=Z1(g,z1.lane),z1=z1.next;while(z1!==x0)}else if(J===null)Z.shared.lanes=X0;sz(g),b.lanes=g,b.memoizedState=E}DX=null}function _P(b,z){if(typeof b!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+b));b.call(z)}function QU(){VX=!1}function EX(){return VX}function XU(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,_P(H,Q)}}var Az={},n7=o7(Az),Iz=o7(Az),gX=o7(Az);function yX(b){if(b===Az)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return b}function ZU(){var b=yX(gX.current);return b}function HH(b,z){R6(gX,z,b),R6(Iz,b,b),R6(n7,Az,b);var Q=mW(z);M6(n7,b),R6(n7,Q,b)}function D3(b){M6(n7,b),M6(Iz,b),M6(gX,b)}function YH(){var b=yX(n7.current);return b}function JU(b){var z=yX(gX.current),Q=yX(n7.current),X=uW(Q,b.type);if(Q===X)return;R6(Iz,b,b),R6(n7,X,b)}function GH(b){if(Iz.current!==b)return;M6(n7,b),M6(Iz,b)}var PP=0,$U=1,HU=1,fz=2,k5=o7(PP);function KH(b,z){return(b&z)!==0}function m3(b){return b&$U}function UH(b,z){return b&$U|z}function FP(b,z){return b|z}function t7(b,z){R6(k5,z,b)}function u3(b){M6(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 cX(b){var z=b;while(z!==null){if(z.tag===n){var Q=z.memoizedState;if(Q!==null){var X=Q.dehydrated;if(X===null||RK(X)||h$(X))return z}}else if(z.tag===O0&&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 a6=0,y4=1,j5=2,c4=4,G6=8,qH=[];function BH(){for(var b=0;b<qH.length;b++){var z=qH[b];z._workInProgressVersionPrimary=null}qH.length=0}function MP(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:R0,ReactCurrentBatchConfig:Tz}=$,OH,E3;OH=new Set;var mb=X0,y1=null,d4=null,a4=null,dX=!1,hz=!1,Cz=0,RP=0,kP=25,t=null,Y5=null,s7=-1,LH=!1;function T1(){{var b=t;if(Y5===null)Y5=[b];else Y5.push(b)}}function N0(){{var b=t;if(Y5!==null){if(s7++,Y5[s7]!==b)wP(b)}}}function g3(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.",t,typeof b)}function wP(b){{var z=X1(y1);if(!OH.has(z)){if(OH.add(z),Y5!==null){var Q="",X=30;for(var Z=0;Z<=s7;Z++){var J=Y5[Z],H=Z===s7?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 k6(){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 NH(b,z){if(LH)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.",t),!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`,t,"["+z.join(", ")+"]","["+b.join(", ")+"]");for(var Q=0;Q<z.length&&Q<b.length;Q++){if(s6(b[Q],z[Q]))continue;return!1}return!0}function y3(b,z,Q,X,Z,J){if(mb=J,y1=z,Y5=b!==null?b._debugHookTypes:null,s7=-1,LH=b!==null&&b.type!==z.type,z.memoizedState=null,z.updateQueue=null,z.lanes=X0,b!==null&&b.memoizedState!==null)R0.current=TU;else if(Y5!==null)R0.current=fU;else R0.current=IU;var H=Q(X,Z);if(hz){var Y=0;do{if(hz=!1,Cz=0,Y>=kP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");Y+=1,LH=!1,d4=null,a4=null,z.updateQueue=null,s7=-1,R0.current=hU,H=Q(X,Z)}while(hz)}R0.current=QZ,z._debugHookTypes=Y5;var U=d4!==null&&d4.next!==null;if(mb=X0,y1=null,d4=null,a4=null,t=null,Y5=null,s7=-1,b!==null&&(b.flags&q7)!==(z.flags&q7)&&(b.mode&N1)!==a0)G("Internal React error: Expected static flag was missing. Please notify the React team.");if(dX=!1,U)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return H}function c3(){var b=Cz!==0;return Cz=0,b}function YU(b,z,Q){if(z.updateQueue=b.updateQueue,(z.mode&l5)!==a0)z.flags&=~(DQ|U7|_5|F1);else z.flags&=~(_5|F1);b.lanes=dQ(b.lanes,Q)}function GU(){if(R0.current=QZ,dX){var b=y1.memoizedState;while(b!==null){var z=b.queue;if(z!==null)z.pending=null;b=b.next}dX=!1}mb=X0,y1=null,d4=null,a4=null,Y5=null,s7=-1,t=null,MU=!1,hz=!1,Cz=0}function p5(){var b={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(a4===null)y1.memoizedState=a4=b;else a4=a4.next=b;return a4}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(a4===null)Q=y1.memoizedState;else Q=a4.next;if(Q!==null)a4=Q,Q=a4.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(a4===null)y1.memoizedState=a4=X;else a4=a4.next=X}return a4}function KU(){return{lastEffect:null,stores:null}}function WH(b,z){return typeof z==="function"?z(b):z}function _H(b,z,Q){var X=p5(),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=fP.bind(null,y1,J);return[X.memoizedState,H]}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 J=d4,H=J.baseQueue,Y=Z.pending;if(Y!==null){if(H!==null){var U=H.next,O=Y.next;H.next=O,Y.next=U}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,T=J.baseState,I=null,E=null,g=null,d=N;do{var F0=d.lane;if(!N3(mb,F0)){var y0={lane:F0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};if(g===null)E=g=y0,I=T;else g=g.next=y0;y1.lanes=Z1(y1.lanes,F0),sz(F0)}else{if(g!==null){var D0={lane:b6,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};g=g.next=D0}if(d.hasEagerState)T=d.eagerState;else{var G1=d.action;T=b(T,G1)}}d=d.next}while(d!==null&&d!==N);if(g===null)I=T;else g.next=E;if(!s6(T,X.memoizedState))cz();X.memoizedState=T,X.baseState=I,X.baseQueue=g,Z.lastRenderedState=T}var K1=Z.interleaved;if(K1!==null){var S=K1;do{var o=S.lane;y1.lanes=Z1(y1.lanes,o),sz(o),S=S.next}while(S!==K1)}else if(H===null)Z.lanes=X0;var V=Z.dispatch;return[X.memoizedState,V]}function FH(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 U=H.next,O=U;do{var N=O.action;Y=b(Y,N),O=O.next}while(O!==U);if(!s6(Y,X.memoizedState))cz();if(X.memoizedState=Y,X.baseQueue===null)X.baseState=Y;Z.lastRenderedState=Y}return[Y,J]}function vH(b,z,Q){return}function aX(b,z,Q){return}function MH(b,z,Q){var X=y1,Z=p5(),J,H=Y6();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(),!E3){if(J!==Q())G("The result of getServerSnapshot should be cached to avoid an infinite loop"),E3=!0}}else{if(J=z(),!E3){var Y=z();if(!s6(J,Y))G("The result of getSnapshot should be cached to avoid an infinite loop"),E3=!0}var U=vZ();if(U===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!cQ(U,mb))UU(X,z,J)}Z.memoizedState=J;var O={value:J,getSnapshot:z};return Z.queue=O,jX(BU.bind(null,X,O,b),[b]),X.flags|=_5,Sz(y4|G6,qU.bind(null,X,O,J,z),void 0,null),J}function lX(b,z,Q){var X=y1,Z=G5(),J=z();if(!E3){var H=z();if(!s6(J,H))G("The result of getSnapshot should be cached to avoid an infinite loop"),E3=!0}var Y=Z.memoizedState,U=!s6(Y,J);if(U)Z.memoizedState=J,cz();var O=Z.queue;if(Dz(BU.bind(null,X,O,b),[b]),O.getSnapshot!==z||U||a4!==null&&a4.memoizedState.tag&y4){X.flags|=_5,Sz(y4|G6,qU.bind(null,X,O,J,z),void 0,null);var N=vZ();if(N===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!cQ(N,mb))UU(X,z,J)}return J}function UU(b,z,Q){b.flags|=VQ;var X={getSnapshot:z,value:Q},Z=y1.updateQueue;if(Z===null)Z=KU(),y1.updateQueue=Z,Z.stores=[X];else{var J=Z.stores;if(J===null)Z.stores=[X];else J.push(X)}}function qU(b,z,Q,X){if(z.value=Q,z.getSnapshot=X,OU(z))LU(b)}function BU(b,z,Q){var X=function(){if(OU(z))LU(b)};return Q(X)}function OU(b){var{getSnapshot:z,value:Q}=b;try{var X=z();return!s6(Q,X)}catch(Z){return!0}}function LU(b){var z=d6(b,r0);if(z!==null)x4(z,b,r0,$4)}function iX(b){var z=p5();if(typeof b==="function")b=b();z.memoizedState=z.baseState=b;var Q={pending:null,interleaved:null,lanes:X0,dispatch:null,lastRenderedReducer:WH,lastRenderedState:b};z.queue=Q;var X=Q.dispatch=TP.bind(null,y1,Q);return[z.memoizedState,X]}function RH(b){return PH(WH)}function kH(b){return FH(WH)}function Sz(b,z,Q,X){var Z={tag:b,create:z,destroy:Q,deps:X,next:null},J=y1.updateQueue;if(J===null)J=KU(),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 wH(b){var z=p5();{var Q={current:b};return z.memoizedState=Q,Q}}function oX(b){var z=G5();return z.memoizedState}function Vz(b,z,Q,X){var Z=p5(),J=X===void 0?null:X;y1.flags|=b,Z.memoizedState=Sz(y4|z,Q,void 0,J)}function xX(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 U=Y.deps;if(NH(J,U)){Z.memoizedState=Sz(z,Q,H,J);return}}}y1.flags|=b,Z.memoizedState=Sz(y4|z,Q,H,J)}function jX(b,z){if((y1.mode&l5)!==a0)return Vz(DQ|_5|vJ,G6,b,z);else return Vz(_5|vJ,G6,b,z)}function Dz(b,z){return xX(_5,G6,b,z)}function AH(b,z){return Vz(F1,j5,b,z)}function pX(b,z){return xX(F1,j5,b,z)}function IH(b,z){var Q=F1;if(Q|=Wb,(y1.mode&l5)!==a0)Q|=U7;return Vz(Q,c4,b,z)}function rX(b,z){return xX(F1,c4,b,z)}function NU(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 fH(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=F1;if(Z|=Wb,(y1.mode&l5)!==a0)Z|=U7;return Vz(Z,c4,NU.bind(null,z,b),X)}function nX(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 xX(F1,c4,NU.bind(null,z,b),X)}function tX(b,z){}var sX=tX;function TH(b,z){var Q=p5(),X=z===void 0?null:z;return Q.memoizedState=[b,X],b}function eX(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(NH(X,J))return Z[0]}}return Q.memoizedState=[b,X],b}function hH(b,z){var Q=p5(),X=z===void 0?null:z,Z=b();return Q.memoizedState=[Z,X],Z}function bZ(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(NH(X,J))return Z[0]}}var H=b();return Q.memoizedState=[H,X],H}function CH(b){var z=p5();return z.memoizedState=b,b}function WU(b){var z=G5(),Q=d4,X=Q.memoizedState;return PU(z,X,b)}function _U(b){var z=G5();if(d4===null)return z.memoizedState=b,b;else{var Q=d4.memoizedState;return PU(z,Q,b)}}function PU(b,z,Q){var X=!UL(mb);if(X){if(!s6(Q,z)){var Z=O9();y1.lanes=Z1(y1.lanes,Z),sz(Z),b.baseState=!0}return z}else{if(b.baseState)b.baseState=!1,cz();return b.memoizedState=Q,Q}}function AP(b,z,Q){var X=F5();z6(FL(X,O7)),b(!0);var Z=Tz.transition;Tz.transition={};var J=Tz.transition;Tz.transition._updatedFibers=new Set;try{b(!1),z()}finally{if(z6(X),Tz.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 SH(){var b=iX(!1),z=b[0],Q=b[1],X=AP.bind(null,Q),Z=p5();return Z.memoizedState=X,[z,X]}function FU(){var b=RH(),z=b[0],Q=G5(),X=Q.memoizedState;return[z,X]}function vU(){var b=kH(),z=b[0],Q=G5(),X=Q.memoizedState;return[z,X]}var MU=!1;function IP(){return MU}function VH(){var b=p5(),z=vZ(),Q=z.identifierPrefix,X;if(Y6()){var Z=o_();X=":"+Q+"R"+Z;var J=Cz++;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 zZ(){var b=G5(),z=b.memoizedState;return z}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=Xb(b),Z={lane:X,action:Q,hasEagerState:!1,eagerState:null,next:null};if(RU(b))kU(z,Z);else{var J=sK(b,z,Z,X);if(J!==null){var H=D6();x4(J,b,X,H),wU(J,z,X)}}AU(b,X)}function TP(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=Xb(b),Z={lane:X,action:Q,hasEagerState:!1,eagerState:null,next:null};if(RU(b))kU(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=R0.current,R0.current=w5;try{var U=z.lastRenderedState,O=H(U,Q);if(Z.hasEagerState=!0,Z.eagerState=O,s6(O,U)){OP(b,z,Z,X);return}}catch(I){}finally{R0.current=Y}}}var N=sK(b,z,Z,X);if(N!==null){var T=D6();x4(N,b,X,T),wU(N,z,X)}}AU(b,X)}function RU(b){var z=b.alternate;return b===y1||z!==null&&z===y1}function kU(b,z){hz=dX=!0;var Q=b.pending;if(Q===null)z.next=z;else z.next=Q.next,Q.next=z;b.pending=z}function wU(b,z,Q){if(B9(Q)){var X=z.lanes;X=L9(X,b.pendingLanes);var Z=Z1(X,Q);z.lanes=Z,tJ(b,Z)}}function AU(b,z,Q){AJ(b,z)}var QZ={readContext:D4,useCallback:k6,useContext:k6,useEffect:k6,useImperativeHandle:k6,useInsertionEffect:k6,useLayoutEffect:k6,useMemo:k6,useReducer:k6,useRef:k6,useState:k6,useDebugValue:k6,useDeferredValue:k6,useTransition:k6,useMutableSource:k6,useSyncExternalStore:k6,useId:k6,unstable_isNewReconciler:f0},IU=null,fU=null,TU=null,hU=null,r5=null,w5=null,XZ=null;{var DH=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")};IU={readContext:function(b){return D4(b)},useCallback:function(b,z){return t="useCallback",T1(),g3(z),TH(b,z)},useContext:function(b){return t="useContext",T1(),D4(b)},useEffect:function(b,z){return t="useEffect",T1(),g3(z),jX(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",T1(),g3(Q),fH(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",T1(),g3(z),AH(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",T1(),g3(z),IH(b,z)},useMemo:function(b,z){t="useMemo",T1(),g3(z);var Q=R0.current;R0.current=r5;try{return hH(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",T1();var X=R0.current;R0.current=r5;try{return _H(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",T1(),wH(b)},useState:function(b){t="useState",T1();var z=R0.current;R0.current=r5;try{return iX(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",T1(),tX()},useDeferredValue:function(b){return t="useDeferredValue",T1(),CH(b)},useTransition:function(){return t="useTransition",T1(),SH()},useMutableSource:function(b,z,Q){return t="useMutableSource",T1(),vH()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",T1(),MH(b,z,Q)},useId:function(){return t="useId",T1(),VH()},unstable_isNewReconciler:f0},fU={readContext:function(b){return D4(b)},useCallback:function(b,z){return t="useCallback",N0(),TH(b,z)},useContext:function(b){return t="useContext",N0(),D4(b)},useEffect:function(b,z){return t="useEffect",N0(),jX(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",N0(),fH(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",N0(),AH(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",N0(),IH(b,z)},useMemo:function(b,z){t="useMemo",N0();var Q=R0.current;R0.current=r5;try{return hH(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",N0();var X=R0.current;R0.current=r5;try{return _H(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",N0(),wH(b)},useState:function(b){t="useState",N0();var z=R0.current;R0.current=r5;try{return iX(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",N0(),tX()},useDeferredValue:function(b){return t="useDeferredValue",N0(),CH(b)},useTransition:function(){return t="useTransition",N0(),SH()},useMutableSource:function(b,z,Q){return t="useMutableSource",N0(),vH()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",N0(),MH(b,z,Q)},useId:function(){return t="useId",N0(),VH()},unstable_isNewReconciler:f0},TU={readContext:function(b){return D4(b)},useCallback:function(b,z){return t="useCallback",N0(),eX(b,z)},useContext:function(b){return t="useContext",N0(),D4(b)},useEffect:function(b,z){return t="useEffect",N0(),Dz(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",N0(),nX(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",N0(),pX(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",N0(),rX(b,z)},useMemo:function(b,z){t="useMemo",N0();var Q=R0.current;R0.current=w5;try{return bZ(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",N0();var X=R0.current;R0.current=w5;try{return PH(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",N0(),oX()},useState:function(b){t="useState",N0();var z=R0.current;R0.current=w5;try{return RH(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",N0(),sX()},useDeferredValue:function(b){return t="useDeferredValue",N0(),WU(b)},useTransition:function(){return t="useTransition",N0(),FU()},useMutableSource:function(b,z,Q){return t="useMutableSource",N0(),aX()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",N0(),lX(b,z)},useId:function(){return t="useId",N0(),zZ()},unstable_isNewReconciler:f0},hU={readContext:function(b){return D4(b)},useCallback:function(b,z){return t="useCallback",N0(),eX(b,z)},useContext:function(b){return t="useContext",N0(),D4(b)},useEffect:function(b,z){return t="useEffect",N0(),Dz(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",N0(),nX(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",N0(),pX(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",N0(),rX(b,z)},useMemo:function(b,z){t="useMemo",N0();var Q=R0.current;R0.current=XZ;try{return bZ(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",N0();var X=R0.current;R0.current=XZ;try{return FH(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",N0(),oX()},useState:function(b){t="useState",N0();var z=R0.current;R0.current=XZ;try{return kH(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",N0(),sX()},useDeferredValue:function(b){return t="useDeferredValue",N0(),_U(b)},useTransition:function(){return t="useTransition",N0(),vU()},useMutableSource:function(b,z,Q){return t="useMutableSource",N0(),aX()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",N0(),lX(b,z)},useId:function(){return t="useId",N0(),zZ()},unstable_isNewReconciler:f0},r5={readContext:function(b){return DH(),D4(b)},useCallback:function(b,z){return t="useCallback",n0(),T1(),TH(b,z)},useContext:function(b){return t="useContext",n0(),T1(),D4(b)},useEffect:function(b,z){return t="useEffect",n0(),T1(),jX(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",n0(),T1(),fH(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",n0(),T1(),AH(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",n0(),T1(),IH(b,z)},useMemo:function(b,z){t="useMemo",n0(),T1();var Q=R0.current;R0.current=r5;try{return hH(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",n0(),T1();var X=R0.current;R0.current=r5;try{return _H(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",n0(),T1(),wH(b)},useState:function(b){t="useState",n0(),T1();var z=R0.current;R0.current=r5;try{return iX(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",n0(),T1(),tX()},useDeferredValue:function(b){return t="useDeferredValue",n0(),T1(),CH(b)},useTransition:function(){return t="useTransition",n0(),T1(),SH()},useMutableSource:function(b,z,Q){return t="useMutableSource",n0(),T1(),vH()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",n0(),T1(),MH(b,z,Q)},useId:function(){return t="useId",n0(),T1(),VH()},unstable_isNewReconciler:f0},w5={readContext:function(b){return DH(),D4(b)},useCallback:function(b,z){return t="useCallback",n0(),N0(),eX(b,z)},useContext:function(b){return t="useContext",n0(),N0(),D4(b)},useEffect:function(b,z){return t="useEffect",n0(),N0(),Dz(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",n0(),N0(),nX(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",n0(),N0(),pX(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",n0(),N0(),rX(b,z)},useMemo:function(b,z){t="useMemo",n0(),N0();var Q=R0.current;R0.current=w5;try{return bZ(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",n0(),N0();var X=R0.current;R0.current=w5;try{return PH(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",n0(),N0(),oX()},useState:function(b){t="useState",n0(),N0();var z=R0.current;R0.current=w5;try{return RH(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",n0(),N0(),sX()},useDeferredValue:function(b){return t="useDeferredValue",n0(),N0(),WU(b)},useTransition:function(){return t="useTransition",n0(),N0(),FU()},useMutableSource:function(b,z,Q){return t="useMutableSource",n0(),N0(),aX()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",n0(),N0(),lX(b,z)},useId:function(){return t="useId",n0(),N0(),zZ()},unstable_isNewReconciler:f0},XZ={readContext:function(b){return DH(),D4(b)},useCallback:function(b,z){return t="useCallback",n0(),N0(),eX(b,z)},useContext:function(b){return t="useContext",n0(),N0(),D4(b)},useEffect:function(b,z){return t="useEffect",n0(),N0(),Dz(b,z)},useImperativeHandle:function(b,z,Q){return t="useImperativeHandle",n0(),N0(),nX(b,z,Q)},useInsertionEffect:function(b,z){return t="useInsertionEffect",n0(),N0(),pX(b,z)},useLayoutEffect:function(b,z){return t="useLayoutEffect",n0(),N0(),rX(b,z)},useMemo:function(b,z){t="useMemo",n0(),N0();var Q=R0.current;R0.current=w5;try{return bZ(b,z)}finally{R0.current=Q}},useReducer:function(b,z,Q){t="useReducer",n0(),N0();var X=R0.current;R0.current=w5;try{return FH(b,z,Q)}finally{R0.current=X}},useRef:function(b){return t="useRef",n0(),N0(),oX()},useState:function(b){t="useState",n0(),N0();var z=R0.current;R0.current=w5;try{return kH(b)}finally{R0.current=z}},useDebugValue:function(b,z){return t="useDebugValue",n0(),N0(),sX()},useDeferredValue:function(b){return t="useDeferredValue",n0(),N0(),_U(b)},useTransition:function(){return t="useTransition",n0(),N0(),vU()},useMutableSource:function(b,z,Q){return t="useMutableSource",n0(),N0(),aX()},useSyncExternalStore:function(b,z,Q){return t="useSyncExternalStore",n0(),N0(),lX(b,z)},useId:function(){return t="useId",n0(),N0(),zZ()},unstable_isNewReconciler:f0}}var e7=d1.unstable_now,CU=0,ZZ=-1,mz=-1,JZ=-1,mH=!1,$Z=!1;function SU(){return mH}function hP(){$Z=!0}function CP(){mH=!1,$Z=!1}function SP(){mH=$Z,$Z=!1}function VU(){return CU}function DU(){CU=e7()}function uH(b){if(mz=e7(),b.actualStartTime<0)b.actualStartTime=e7()}function mU(b){mz=-1}function HZ(b,z){if(mz>=0){var Q=e7()-mz;if(b.actualDuration+=Q,z)b.selfBaseDuration=Q;mz=-1}}function n5(b){if(ZZ>=0){var z=e7()-ZZ;ZZ=-1;var Q=b.return;while(Q!==null){switch(Q.tag){case k:var X=Q.stateNode;X.effectDuration+=z;return;case G0:var Z=Q.stateNode;Z.effectDuration+=z;return}Q=Q.return}}}function EH(b){if(JZ>=0){var z=e7()-JZ;JZ=-1;var Q=b.return;while(Q!==null){switch(Q.tag){case k:var X=Q.stateNode;if(X!==null)X.passiveEffectDuration+=z;return;case G0:var Z=Q.stateNode;if(Z!==null)Z.passiveEffectDuration+=z;return}Q=Q.return}}}function t5(){ZZ=e7()}function gH(){JZ=e7()}function yH(b){var z=b.child;while(z)b.actualDuration+=z.actualDuration,z=z.sibling}function A5(b,z){if(b&&b.defaultProps){var Q=J1({},z),X=b.defaultProps;for(var Z in X)if(Q[Z]===void 0)Q[Z]=X[Z];return Q}return z}var cH={},dH,aH,lH,iH,oH,uU,YZ,xH,jH,pH,uz;{dH=new Set,aH=new Set,lH=new Set,iH=new Set,xH=new Set,oH=new Set,jH=new Set,pH=new Set,uz=new Set;var EU=new Set;YZ=function(b,z){if(b===null||typeof b==="function")return;var Q=z+"_"+b;if(!EU.has(Q))EU.add(Q),G("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",z,b)},uU=function(b,z){if(z===void 0){var Q=v1(b)||"Component";if(!oH.has(Q))oH.add(Q),G("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Q)}},Object.defineProperty(cH,"_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(cH)}function rH(b,z,Q,X){var Z=b.memoizedState,J=Q(X,Z);{if(b.mode&R4){e4(!0);try{J=Q(X,Z)}finally{e4(!1)}}uU(z,J)}var H=J===null||J===void 0?Z:J1({},Z,J);if(b.memoizedState=H,b.lanes===X0){var Y=b.updateQueue;Y.baseState=H}}var nH={isMounted:kO,enqueueSetState:function(b,z,Q){var X=G3(b),Z=D6(),J=Xb(X),H=v7(Z,J);if(H.payload=z,Q!==void 0&&Q!==null)YZ(Q,"setState"),H.callback=Q;var Y=r7(X,H,J);if(Y!==null)x4(Y,X,J,Z),mX(Y,X,J);AJ(X,J)},enqueueReplaceState:function(b,z,Q){var X=G3(b),Z=D6(),J=Xb(X),H=v7(Z,J);if(H.tag=bU,H.payload=z,Q!==void 0&&Q!==null)YZ(Q,"replaceState"),H.callback=Q;var Y=r7(X,H,J);if(Y!==null)x4(Y,X,J,Z),mX(Y,X,J);AJ(X,J)},enqueueForceUpdate:function(b,z){var Q=G3(b),X=D6(),Z=Xb(Q),J=v7(X,Z);if(J.tag=SX,z!==void 0&&z!==null)YZ(z,"forceUpdate"),J.callback=z;var H=r7(Q,J,Z);if(H!==null)x4(H,Q,Z,X),mX(H,Q,Z);zL(Q,Z)}};function gU(b,z,Q,X,Z,J,H){var Y=b.stateNode;if(typeof Y.shouldComponentUpdate==="function"){var U=Y.shouldComponentUpdate(X,J,H);{if(b.mode&R4){e4(!0);try{U=Y.shouldComponentUpdate(X,J,H)}finally{e4(!1)}}if(U===void 0)G("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",v1(z)||"Component")}return U}if(z.prototype&&z.prototype.isPureReactComponent)return!Zz(Q,X)||!Zz(Z,J);return!0}function VP(b,z,Q){var X=b.stateNode;{var Z=v1(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&&!uz.has(z)&&(b.mode&R4)===a0)uz.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&&!uz.has(z)&&(b.mode&R4)===a0)uz.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.",v1(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"&&!lH.has(z))lH.add(z),G("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",v1(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 yU(b,z){z.updater=nH,b.stateNode=z,PO(z,b),z._reactInternalInstance=cH}function cU(b,z,Q){var X=!1,Z=e6,J=e6,H=z.contextType;if("contextType"in z){var Y=H===null||H!==void 0&&H.$$typeof===W&&H._context===void 0;if(!Y&&!pH.has(z)){pH.add(z);var U="";if(H===void 0)U=" 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")U=" However, it is set to a "+typeof H+".";else if(H.$$typeof===Q0)U=" Did you accidentally pass the Context.Provider instead?";else if(H._context!==void 0)U=" Did you accidentally pass the Context.Consumer instead?";else U=" 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",v1(z)||"Component",U)}}if(typeof H==="object"&&H!==null)J=D4(H);else{Z=A3(b,z,!0);var O=z.contextTypes;X=O!==null&&O!==void 0,J=X?I3(b,Z):e6}var N=new z(Q,J);if(b.mode&R4){e4(!0);try{N=new z(Q,J)}finally{e4(!1)}}var T=b.memoizedState=N.state!==null&&N.state!==void 0?N.state:null;yU(b,N);{if(typeof z.getDerivedStateFromProps==="function"&&T===null){var I=v1(z)||"Component";if(!aH.has(I))aH.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 E=null,g=null,d=null;if(typeof N.componentWillMount==="function"&&N.componentWillMount.__suppressDeprecationWarning!==!0)E="componentWillMount";else if(typeof N.UNSAFE_componentWillMount==="function")E="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)d="componentWillUpdate";else if(typeof N.UNSAFE_componentWillUpdate==="function")d="UNSAFE_componentWillUpdate";if(E!==null||g!==null||d!==null){var F0=v1(z)||"Component",y0=typeof z.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!iH.has(F0))iH.add(F0),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`,F0,y0,E!==null?`
94
+ `+E:"",g!==null?`
95
+ `+g:"",d!==null?`
96
+ `+d:"")}}}if(X)TK(b,Z,J);return N}function DP(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.",X1(b)||"Component"),nH.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=X1(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)}nH.enqueueReplaceState(z,z.state,null)}}function tH(b,z,Q,X){VP(b,z,Q);var Z=b.stateNode;Z.props=Q,Z.state=b.memoizedState,Z.refs={},JH(b);var J=z.contextType;if(typeof J==="object"&&J!==null)Z.context=D4(J);else{var H=A3(b,z,!0);Z.context=I3(b,H)}{if(Z.state===Q){var Y=v1(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&R4)R5.recordLegacyContextWarning(b,Z);R5.recordUnsafeLifecycleWarnings(b,Z)}Z.state=b.memoizedState;var U=z.getDerivedStateFromProps;if(typeof U==="function")rH(b,z,U,Q),Z.state=b.memoizedState;if(typeof z.getDerivedStateFromProps!=="function"&&typeof Z.getSnapshotBeforeUpdate!=="function"&&(typeof Z.UNSAFE_componentWillMount==="function"||typeof Z.componentWillMount==="function"))DP(b,Z),uX(b,Q,Z,X),Z.state=b.memoizedState;if(typeof Z.componentDidMount==="function"){var O=F1;if(O|=Wb,(b.mode&l5)!==a0)O|=U7;b.flags|=O}}function mP(b,z,Q,X){var{stateNode:Z,memoizedProps:J}=b;Z.props=J;var H=Z.context,Y=z.contextType,U=e6;if(typeof Y==="object"&&Y!==null)U=D4(Y);else{var O=A3(b,z,!0);U=I3(b,O)}var N=z.getDerivedStateFromProps,T=typeof N==="function"||typeof Z.getSnapshotBeforeUpdate==="function";if(!T&&(typeof Z.UNSAFE_componentWillReceiveProps==="function"||typeof Z.componentWillReceiveProps==="function")){if(J!==Q||H!==U)dU(b,Z,Q,U)}QU();var I=b.memoizedState,E=Z.state=I;if(uX(b,Q,Z,X),E=b.memoizedState,J===Q&&I===E&&!WX()&&!EX()){if(typeof Z.componentDidMount==="function"){var g=F1;if(g|=Wb,(b.mode&l5)!==a0)g|=U7;b.flags|=g}return!1}if(typeof N==="function")rH(b,z,N,Q),E=b.memoizedState;var d=EX()||gU(b,z,J,Q,I,E,U);if(d){if(!T&&(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 F0=F1;if(F0|=Wb,(b.mode&l5)!==a0)F0|=U7;b.flags|=F0}}else{if(typeof Z.componentDidMount==="function"){var y0=F1;if(y0|=Wb,(b.mode&l5)!==a0)y0|=U7;b.flags|=y0}b.memoizedProps=Q,b.memoizedState=E}return Z.props=Q,Z.state=E,Z.context=U,d}function uP(b,z,Q,X,Z){var J=z.stateNode;zU(b,z);var H=z.memoizedProps,Y=z.type===z.elementType?H:A5(z.type,H);J.props=Y;var U=z.pendingProps,O=J.context,N=Q.contextType,T=e6;if(typeof N==="object"&&N!==null)T=D4(N);else{var I=A3(z,Q,!0);T=I3(z,I)}var E=Q.getDerivedStateFromProps,g=typeof E==="function"||typeof J.getSnapshotBeforeUpdate==="function";if(!g&&(typeof J.UNSAFE_componentWillReceiveProps==="function"||typeof J.componentWillReceiveProps==="function")){if(H!==U||O!==T)dU(z,J,X,T)}QU();var d=z.memoizedState,F0=J.state=d;if(uX(z,X,J,Z),F0=z.memoizedState,H===U&&d===F0&&!WX()&&!EX()&&!H1){if(typeof J.componentDidUpdate==="function"){if(H!==b.memoizedProps||d!==b.memoizedState)z.flags|=F1}if(typeof J.getSnapshotBeforeUpdate==="function"){if(H!==b.memoizedProps||d!==b.memoizedState)z.flags|=Lb}return!1}if(typeof E==="function")rH(z,Q,E,X),F0=z.memoizedState;var y0=EX()||gU(z,Q,Y,X,d,F0,T)||H1;if(y0){if(!g&&(typeof J.UNSAFE_componentWillUpdate==="function"||typeof J.componentWillUpdate==="function")){if(typeof J.componentWillUpdate==="function")J.componentWillUpdate(X,F0,T);if(typeof J.UNSAFE_componentWillUpdate==="function")J.UNSAFE_componentWillUpdate(X,F0,T)}if(typeof J.componentDidUpdate==="function")z.flags|=F1;if(typeof J.getSnapshotBeforeUpdate==="function")z.flags|=Lb}else{if(typeof J.componentDidUpdate==="function"){if(H!==b.memoizedProps||d!==b.memoizedState)z.flags|=F1}if(typeof J.getSnapshotBeforeUpdate==="function"){if(H!==b.memoizedProps||d!==b.memoizedState)z.flags|=Lb}z.memoizedProps=X,z.memoizedState=F0}return J.props=X,J.state=F0,J.context=T,y0}function ub(b,z){return{value:b,source:z,stack:k8(z),digest:null}}function sH(b,z,Q){return{value:b,source:null,stack:Q!=null?Q:null,digest:z!=null?z:null}}function EP(b,z){return!0}function eH(b,z){try{var Q=EP(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===_)return;console.error(X)}var Y=Z?X1(Z):null,U=Y?"The above error occurred in the <"+Y+"> component:":"The above error occurred in one of your React components:",O;if(b.tag===k)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=X1(b)||"Anonymous";O="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+N+".")}var T=U+`
98
+ `+H+`
99
+
100
+ `+(""+O);console.error(T)}catch(I){setTimeout(function(){throw I})}}var gP=typeof WeakMap==="function"?WeakMap:Map;function aU(b,z,Q){var X=v7($4,Q);X.tag=XH,X.payload={element:null};var Z=z.value;return X.callback=function(){mv(Z),eH(b,z)},X}function bY(b,z,Q){var X=v7($4,Q);X.tag=XH;var Z=b.type.getDerivedStateFromError;if(typeof Z==="function"){var J=z.value;X.payload=function(){return Z(J)},X.callback=function(){bq(b),eH(b,z)}}var H=b.stateNode;if(H!==null&&typeof H.componentDidCatch==="function")X.callback=function(){if(bq(b),eH(b,z),typeof Z!=="function")Vv(this);var{value:U,stack:O}=z;if(this.componentDidCatch(U,{componentStack:O!==null?O:""}),typeof Z!=="function"){if(!r6(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.",X1(b)||"Unknown")}};return X}function lU(b,z,Q){var X=b.pingCache,Z;if(X===null)X=b.pingCache=new gP,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=uv.bind(null,b,z,Q);if(P5)ez(b,Q);z.then(J,J)}}function yP(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 cP(b,z){var Q=b.tag;if((b.mode&N1)===a0&&(Q===v||Q===C||Q===j)){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 iU(b){var z=b;do{if(z.tag===n&&vP(z))return z;z=z.return}while(z!==null);return null}function oU(b,z,Q,X,Z){if((b.mode&N1)===a0){if(b===z)b.flags|=C6;else{if(b.flags|=A1,Q.flags|=PJ,Q.flags&=~(FO|m8),Q.tag===_){var J=Q.alternate;if(J===null)Q.tag=s;else{var H=v7($4,r0);H.tag=SX,r7(Q,H,r0)}}Q.lanes=Z1(Q.lanes,r0)}return b}return b.flags|=C6,b.lanes=Z,b}function dP(b,z,Q,X,Z){if(Q.flags|=m8,P5)ez(b,Z);if(X!==null&&typeof X==="object"&&typeof X.then==="function"){var J=X;if(cP(Q),Y6()&&Q.mode&N1)uK();var H=iU(z);if(H!==null){if(H.flags&=~G7,oU(H,z,Q,b,Z),H.mode&N1)lU(b,J,Z);yP(H,b,J);return}else{if(!KL(Z)){lU(b,J,Z),DY();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(Y6()&&Q.mode&N1){uK();var U=iU(z);if(U!==null){if((U.flags&C6)===l0)U.flags|=G7;oU(U,z,Q,b,Z),o$(ub(X,Q));return}}X=ub(X,Q),wv(X);var O=z;do{switch(O.tag){case k:{var N=X;O.flags|=C6;var T=l8(Z);O.lanes=Z1(O.lanes,T);var I=aU(O,N,T);$H(O,I);return}case _:var E=X,g=O.type,d=O.stateNode;if((O.flags&A1)===l0&&(typeof g.getDerivedStateFromError==="function"||d!==null&&typeof d.componentDidCatch==="function"&&!o2(d))){O.flags|=C6;var F0=l8(Z);O.lanes=Z1(O.lanes,F0);var y0=bY(O,E,F0);$H(O,y0);return}break}O=O.return}while(O!==null)}function aP(){return null}var Ez=$.ReactCurrentOwner,I5=!1,zY,gz,QY,XY,ZY,Eb,JY,GZ,yz;zY={},gz={},QY={},XY={},ZY={},Eb=!1,JY={},GZ={},yz={};function S6(b,z,Q,X){if(b===null)z.child=pK(z,null,Q,X);else z.child=C3(z,b.child,Q,X)}function lP(b,z,Q,X){z.child=C3(z,b.child,null,X),z.child=C3(z,null,Q,X)}function xU(b,z,Q,X,Z){if(z.type!==z.elementType){var J=Q.propTypes;if(J)v5(J,X,"prop",v1(Q))}var H=Q.render,Y=z.ref,U,O;V3(z,Z),E8(z);{if(Ez.current=z,j6(!0),U=y3(b,z,H,X,Y,Z),O=c3(),z.mode&R4){e4(!0);try{U=y3(b,z,H,X,Y,Z),O=c3()}finally{e4(!1)}}j6(!1)}if(q3(),b!==null&&!I5)return YU(b,z,Z),M7(b,z,Z);if(Y6()&&O)y$(z);return z.flags|=K3,S6(b,z,U,Z),z.child}function jU(b,z,Q,X,Z){if(b===null){var J=Q.type;if(ev(J)&&Q.compare===null&&Q.defaultProps===void 0){var H=J;return H=p3(J),z.tag=j,z.type=H,YY(z,J),pU(b,z,H,X,Z)}{var Y=J.propTypes;if(Y)v5(Y,X,"prop",v1(J));if(Q.defaultProps!==void 0){var U=v1(J)||"Unknown";if(!yz[U])G("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",U),yz[U]=!0}}var O=oY(Q.type,null,X,z,z.mode,Z);return O.ref=z.ref,O.return=z,z.child=O,O}{var N=Q.type,T=N.propTypes;if(T)v5(T,X,"prop",v1(N))}var I=b.child,E=OY(b,Z);if(!E){var g=I.memoizedProps,d=Q.compare;if(d=d!==null?d:Zz,d(g,X)&&b.ref===z.ref)return M7(b,z,Z)}z.flags|=K3;var F0=ab(I,X);return F0.ref=z.ref,F0.return=z,z.child=F0,F0}function pU(b,z,Q,X,Z){if(z.type!==z.elementType){var J=z.elementType;if(J.$$typeof===V0){var H=J,Y=H._payload,U=H._init;try{J=U(Y)}catch(T){J=null}var O=J&&J.propTypes;if(O)v5(O,X,"prop",v1(J))}}if(b!==null){var N=b.memoizedProps;if(Zz(N,X)&&b.ref===z.ref&&z.type===b.type){if(I5=!1,z.pendingProps=X=N,!OY(b,Z))return z.lanes=b.lanes,M7(b,z,Z);else if((b.flags&PJ)!==l0)I5=!0}}return $Y(b,z,Q,X,Z)}function rU(b,z,Q){var X=z.pendingProps,Z=X.children,J=b!==null?b.memoizedState:null;if(X.mode==="hidden"||s0)if((z.mode&N1)===a0){var H={baseLanes:X0,cachePool:null,transitions:null};z.memoizedState=H,MZ(z,Q)}else if(!r6(Q,p6)){var Y=null,U;if(J!==null){var O=J.baseLanes;U=Z1(O,Q)}else U=Q;z.lanes=z.childLanes=aQ(p6);var N={baseLanes:U,cachePool:Y,transitions:null};return z.memoizedState=N,z.updateQueue=null,MZ(z,U),null}else{var T={baseLanes:X0,cachePool:null,transitions:null};z.memoizedState=T;var I=J!==null?J.baseLanes:Q;MZ(z,I)}else{var E;if(J!==null)E=Z1(J.baseLanes,Q),z.memoizedState=null;else E=Q;MZ(z,E)}return S6(b,z,Z,Q),z.child}function iP(b,z,Q){var X=z.pendingProps;return S6(b,z,X,Q),z.child}function oP(b,z,Q){var X=z.pendingProps.children;return S6(b,z,X,Q),z.child}function xP(b,z,Q){{z.flags|=F1;{var X=z.stateNode;X.effectDuration=0,X.passiveEffectDuration=0}}var Z=z.pendingProps,J=Z.children;return S6(b,z,J,Q),z.child}function nU(b,z){var Q=z.ref;if(b===null&&Q!==null||b!==null&&b.ref!==Q)z.flags|=E7,z.flags|=FJ}function $Y(b,z,Q,X,Z){if(z.type!==z.elementType){var J=Q.propTypes;if(J)v5(J,X,"prop",v1(Q))}var H;{var Y=A3(z,Q,!0);H=I3(z,Y)}var U,O;V3(z,Z),E8(z);{if(Ez.current=z,j6(!0),U=y3(b,z,Q,X,H,Z),O=c3(),z.mode&R4){e4(!0);try{U=y3(b,z,Q,X,H,Z),O=c3()}finally{e4(!1)}}j6(!1)}if(q3(),b!==null&&!I5)return YU(b,z,Z),M7(b,z,Z);if(Y6()&&O)y$(z);return z.flags|=K3,S6(b,z,U,Z),z.child}function tU(b,z,Q,X,Z){{switch(OM(z)){case!1:{var{stateNode:J,type:H}=z,Y=new H(z.memoizedProps,J.context),U=Y.state;J.updater.enqueueSetState(J,U,null);break}case!0:{z.flags|=A1,z.flags|=C6;var O=Error("Simulated error coming from DevTools"),N=l8(Z);z.lanes=Z1(z.lanes,N);var T=bY(z,ub(O,z),N);$H(z,T);break}}if(z.type!==z.elementType){var I=Q.propTypes;if(I)v5(I,X,"prop",v1(Q))}}var E;if(x5(Q))E=!0,PX(z);else E=!1;V3(z,Z);var g=z.stateNode,d;if(g===null)UZ(b,z),cU(z,Q,X),tH(z,Q,X,Z),d=!0;else if(b===null)d=mP(z,Q,X,Z);else d=uP(b,z,Q,X,Z);var F0=HY(b,z,Q,d,E,Z);{var y0=z.stateNode;if(d&&y0.props!==X){if(!Eb)G("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X1(z)||"a component");Eb=!0}}return F0}function HY(b,z,Q,X,Z,J){nU(b,z);var H=(z.flags&A1)!==l0;if(!X&&!H){if(Z)SK(z,Q,!1);return M7(b,z,J)}var Y=z.stateNode;Ez.current=z;var U;if(H&&typeof Q.getDerivedStateFromError!=="function")U=null,mU();else{E8(z);{if(j6(!0),U=Y.render(),z.mode&R4){e4(!0);try{Y.render()}finally{e4(!1)}}j6(!1)}q3()}if(z.flags|=K3,b!==null&&H)lP(b,z,U,J);else S6(b,z,U,J);if(z.memoizedState=Y.state,Z)SK(z,Q,!0);return z.child}function sU(b){var z=b.stateNode;if(z.pendingContext)hK(b,z.pendingContext,z.pendingContext!==z.context);else if(z.context)hK(b,z.context,!1);HH(b,z.containerInfo)}function jP(b,z,Q){if(sU(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;zU(b,z),uX(z,X,null,Q);var{memoizedState:H,stateNode:Y}=z,U=H.element;if(Z.isDehydrated){var O={element:U,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},N=z.updateQueue;if(N.baseState=O,z.memoizedState=O,z.flags&G7){var T=ub(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 eU(b,z,U,Q,T)}else if(U!==J){var I=ub(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),z);return eU(b,z,U,Q,I)}else{t_(z);var E=pK(z,null,U,Q);z.child=E;var g=E;while(g)g.flags=g.flags&~V4|K7,g=g.sibling}}else{if(h3(),U===J)return M7(b,z,Q);S6(b,z,U,Q)}return z.child}function eU(b,z,Q,X,Z){return h3(),o$(Z),z.flags|=G7,S6(b,z,Q,X),z.child}function pP(b,z,Q){if(JU(z),b===null)i$(z);var{type:X,pendingProps:Z}=z,J=b!==null?b.memoizedProps:null,H=Z.children,Y=A$(X,Z);if(Y)H=null;else if(J!==null&&A$(X,J))z.flags|=D8;return nU(b,z),S6(b,z,H,Q),z.child}function rP(b,z){if(b===null)i$(z);return null}function nP(b,z,Q,X){UZ(b,z);var Z=z.pendingProps,J=Q,H=J._payload,Y=J._init,U=Y(H);z.type=U;var O=z.tag=bM(U),N=A5(U,Z),T;switch(O){case v:return YY(z,U),z.type=U=p3(U),T=$Y(null,z,U,N,X),T;case _:return z.type=U=yY(U),T=tU(null,z,U,N,X),T;case C:return z.type=U=cY(U),T=xU(null,z,U,N,X),T;case Z0:{if(z.type!==z.elementType){var I=U.propTypes;if(I)v5(I,N,"prop",v1(U))}return T=jU(null,z,U,A5(U.type,N),X),T}}var E="";if(U!==null&&typeof U==="object"&&U.$$typeof===V0)E=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+U+". "+("Lazy element type must resolve to a class or function."+E))}function tP(b,z,Q,X,Z){UZ(b,z),z.tag=_;var J;if(x5(Q))J=!0,PX(z);else J=!1;return V3(z,Z),cU(z,Q,X),tH(z,Q,X,Z),HY(null,z,Q,!0,J,Z)}function sP(b,z,Q,X){UZ(b,z);var Z=z.pendingProps,J;{var H=A3(z,Q,!1);J=I3(z,H)}V3(z,X);var Y,U;E8(z);{if(Q.prototype&&typeof Q.prototype.render==="function"){var O=v1(Q)||"Unknown";if(!zY[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),zY[O]=!0}if(z.mode&R4)R5.recordLegacyContextWarning(z,null);j6(!0),Ez.current=z,Y=y3(null,z,Q,Z,J,X),U=c3(),j6(!1)}if(q3(),z.flags|=K3,typeof Y==="object"&&Y!==null&&typeof Y.render==="function"&&Y.$$typeof===void 0){var N=v1(Q)||"Unknown";if(!gz[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),gz[N]=!0}if(typeof Y==="object"&&Y!==null&&typeof Y.render==="function"&&Y.$$typeof===void 0){{var T=v1(Q)||"Unknown";if(!gz[T])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.",T,T,T),gz[T]=!0}z.tag=_,z.memoizedState=null,z.updateQueue=null;var I=!1;if(x5(Q))I=!0,PX(z);else I=!1;return z.memoizedState=Y.state!==null&&Y.state!==void 0?Y.state:null,JH(z),yU(z,Y),tH(z,Q,Z,X),HY(null,z,Q,!0,I,X)}else{if(z.tag=v,z.mode&R4){e4(!0);try{Y=y3(null,z,Q,Z,J,X),U=c3()}finally{e4(!1)}}if(Y6()&&U)y$(z);return S6(null,z,Y,X),YY(z,Q),z.child}}function YY(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=D7();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(!ZY[Z])ZY[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=v1(z)||"Unknown";if(!yz[H])G("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",H),yz[H]=!0}if(typeof z.getDerivedStateFromProps==="function"){var Y=v1(z)||"Unknown";if(!XY[Y])G("%s: Function components do not support getDerivedStateFromProps.",Y),XY[Y]=!0}if(typeof z.contextType==="object"&&z.contextType!==null){var U=v1(z)||"Unknown";if(!QY[U])G("%s: Function components do not support contextType.",U),QY[U]=!0}}}var GY={dehydrated:null,treeContext:null,retryLane:b6};function KY(b){return{baseLanes:b,cachePool:aP(),transitions:null}}function eP(b,z){var Q=null;return{baseLanes:Z1(b.baseLanes,z),cachePool:Q,transitions:b.transitions}}function bF(b,z,Q,X){if(z!==null){var Z=z.memoizedState;if(Z===null)return!1}return KH(b,fz)}function zF(b,z){return dQ(b.childLanes,z)}function b2(b,z,Q){var X=z.pendingProps;if(LM(z))z.flags|=A1;var Z=k5.current,J=!1,H=(z.flags&A1)!==l0;if(H||bF(Z,b))J=!0,z.flags&=~A1;else if(b===null||b.memoizedState!==null)Z=FP(Z,HU);if(Z=m3(Z),t7(z,Z),b===null){i$(z);var Y=z.memoizedState;if(Y!==null){var U=Y.dehydrated;if(U!==null)return $F(z,U)}var{children:O,fallback:N}=X;if(J){var T=QF(z,O,N,Q),I=z.child;return I.memoizedState=KY(Q),z.memoizedState=GY,T}else return UY(z,O)}else{var E=b.memoizedState;if(E!==null){var g=E.dehydrated;if(g!==null)return HF(b,z,H,X,g,E,Q)}if(J){var{fallback:d,children:F0}=X,y0=ZF(b,z,F0,d,Q),D0=z.child,G1=b.child.memoizedState;return D0.memoizedState=G1===null?KY(Q):eP(G1,Q),D0.childLanes=zF(b,Q),z.memoizedState=GY,y0}else{var K1=X.children,S=XF(b,z,K1,Q);return z.memoizedState=null,S}}}function UY(b,z,Q){var X=b.mode,Z={mode:"visible",children:z},J=qY(Z,X);return J.return=b,b.child=J,J}function QF(b,z,Q,X){var{mode:Z,child:J}=b,H={mode:"hidden",children:z},Y,U;if((Z&N1)===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;U=Jb(Q,Z,X,null)}else Y=qY(H,Z),U=Jb(Q,Z,X,null);return Y.return=b,U.return=b,Y.sibling=U,b.child=Y,U}function qY(b,z,Q){return Qq(b,z,X0,null)}function z2(b,z){return ab(b,z)}function XF(b,z,Q,X){var Z=b.child,J=Z.sibling,H=z2(Z,{mode:"visible",children:Q});if((z.mode&N1)===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|=Ob;else Y.push(J)}return z.child=H,H}function ZF(b,z,Q,X,Z){var J=z.mode,H=b.child,Y=H.sibling,U={mode:"hidden",children:Q},O;if((J&N1)===a0&&z.child!==H){var N=z.child;if(O=N,O.childLanes=X0,O.pendingProps=U,z.mode&g1)O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=H.selfBaseDuration,O.treeBaseDuration=H.treeBaseDuration;z.deletions=null}else O=z2(H,U),O.subtreeFlags=H.subtreeFlags&q7;var T;if(Y!==null)T=ab(Y,X);else T=Jb(X,J,Z,null),T.flags|=V4;return T.return=z,O.return=z,O.sibling=T,z.child=O,T}function KZ(b,z,Q,X){if(X!==null)o$(X);C3(z,b.child,null,Q);var Z=z.pendingProps,J=Z.children,H=UY(z,J);return H.flags|=V4,z.memoizedState=null,H}function JF(b,z,Q,X,Z){var J=z.mode,H={mode:"visible",children:Q},Y=qY(H,J),U=Jb(X,J,Z,null);if(U.flags|=V4,Y.return=z,U.return=z,Y.sibling=U,z.child=Y,(z.mode&N1)!==a0)C3(z,b.child,null,Z);return U}function $F(b,z,Q){if((b.mode&N1)===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=aQ(r0);else if(h$(z))b.lanes=aQ(vb);else b.lanes=aQ(p6);return null}function HF(b,z,Q,X,Z,J,H){if(!Q){if(r_(),(z.mode&N1)===a0)return KZ(b,z,H,null);if(h$(Z)){var Y,U,O;{var N=q_(Z);Y=N.digest,U=N.message,O=N.stack}var T;if(U)T=Error(U);else T=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var I=sH(T,Y,O);return KZ(b,z,H,I)}var E=r6(H,b.childLanes);if(I5||E){var g=vZ();if(g!==null){var d=_L(g,H);if(d!==b6&&d!==J.retryLane){J.retryLane=d;var F0=$4;d6(b,d),x4(g,b,d,F0)}}DY();var y0=sH(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 KZ(b,z,H,y0)}else if(RK(Z)){z.flags|=A1,z.child=b.child;var D0=Ev.bind(null,b);return B_(Z,D0),null}else{s_(z,Z,J.treeContext);var G1=X.children,K1=UY(z,G1);return K1.flags|=K7,K1}}else if(z.flags&G7){z.flags&=~G7;var S=sH(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return KZ(b,z,H,S)}else if(z.memoizedState!==null)return z.child=b.child,z.flags|=A1,null;else{var{children:o,fallback:V}=X,$0=JF(b,z,o,V,H),k0=z.child;return k0.memoizedState=KY(H),z.memoizedState=GY,$0}}function Q2(b,z,Q){b.lanes=Z1(b.lanes,z);var X=b.alternate;if(X!==null)X.lanes=Z1(X.lanes,z);zH(b.return,z,Q)}function YF(b,z,Q){var X=z;while(X!==null){if(X.tag===n){var Z=X.memoizedState;if(Z!==null)Q2(X,Q,b)}else if(X.tag===O0)Q2(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 GF(b){var z=b,Q=null;while(z!==null){var X=z.alternate;if(X!==null&&cX(X)===null)Q=z;z=z.sibling}return Q}function KF(b){if(b!==void 0&&b!=="forwards"&&b!=="backwards"&&b!=="together"&&!JY[b])if(JY[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 UF(b,z){if(b!==void 0&&!GZ[b]){if(b!=="collapsed"&&b!=="hidden")GZ[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")GZ[b]=!0,G('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',b)}}function X2(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 qF(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(!X2(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(!X2(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 BY(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 Z2(b,z,Q){var X=z.pendingProps,Z=X.revealOrder,J=X.tail,H=X.children;KF(Z),UF(J,Z),qF(H,Z),S6(b,z,H,Q);var Y=k5.current,U=KH(Y,fz);if(U)Y=UH(Y,fz),z.flags|=A1;else{var O=b!==null&&(b.flags&A1)!==l0;if(O)YF(z,z.child,Q);Y=m3(Y)}if(t7(z,Y),(z.mode&N1)===a0)z.memoizedState=null;else switch(Z){case"forwards":{var N=GF(z.child),T;if(N===null)T=z.child,z.child=null;else T=N.sibling,N.sibling=null;BY(z,!1,T,N,J);break}case"backwards":{var I=null,E=z.child;z.child=null;while(E!==null){var g=E.alternate;if(g!==null&&cX(g)===null){z.child=E;break}var d=E.sibling;E.sibling=I,I=E,E=d}BY(z,!0,I,null,J);break}case"together":{BY(z,!1,null,null,void 0);break}default:z.memoizedState=null}return z.child}function BF(b,z,Q){HH(z,z.stateNode.containerInfo);var X=z.pendingProps;if(b===null)z.child=C3(z,null,X,Q);else S6(b,z,X,Q);return z.child}var J2=!1;function OF(b,z,Q){var X=z.type,Z=X._context,J=z.pendingProps,H=z.memoizedProps,Y=J.value;{if(!("value"in J)){if(!J2)J2=!0,G("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var U=z.type.propTypes;if(U)v5(U,J,"prop","Context.Provider")}if(tK(z,Z,Y),H!==null){var O=H.value;if(s6(O,Y)){if(H.children===J.children&&!WX())return M7(b,z,Q)}else UP(z,Z,Q)}var N=J.children;return S6(b,z,N,Q),z.child}var $2=!1;function LF(b,z,Q){var X=z.type;if(X._context===void 0){if(X!==X.Consumer){if(!$2)$2=!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.");V3(z,Q);var H=D4(X);E8(z);var Y;return Ez.current=z,j6(!0),Y=J(H),j6(!1),q3(),z.flags|=K3,S6(b,z,Y,Q),z.child}function cz(){I5=!0}function UZ(b,z){if((z.mode&N1)===a0){if(b!==null)b.alternate=null,z.alternate=null,z.flags|=V4}}function M7(b,z,Q){if(b!==null)z.dependencies=b.dependencies;if(mU(),sz(z.lanes),!r6(Q,z.childLanes))return null;return GP(b,z),z.child}function NF(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|=Ob;else J.push(b);return Q.flags|=V4,Q}}function OY(b,z){var Q=b.lanes;if(r6(Q,z))return!0;return!1}function WF(b,z,Q){switch(z.tag){case k:sU(z);var X=z.stateNode;h3();break;case w:JU(z);break;case _:{var Z=z.type;if(x5(Z))PX(z);break}case P:HH(z,z.stateNode.containerInfo);break;case D:{var J=z.memoizedProps.value,H=z.type._context;tK(z,H,J);break}case G0:{var Y=r6(Q,z.childLanes);if(Y)z.flags|=F1;{var U=z.stateNode;U.effectDuration=0,U.passiveEffectDuration=0}}break;case n:{var O=z.memoizedState;if(O!==null){if(O.dehydrated!==null)return t7(z,m3(k5.current)),z.flags|=A1,null;var N=z.child,T=N.childLanes;if(r6(Q,T))return b2(b,z,Q);else{t7(z,m3(k5.current));var I=M7(b,z,Q);if(I!==null)return I.sibling;else return null}}else t7(z,m3(k5.current));break}case O0:{var E=(b.flags&A1)!==l0,g=r6(Q,z.childLanes);if(E){if(g)return Z2(b,z,Q);z.flags|=A1}var d=z.memoizedState;if(d!==null)d.rendering=null,d.tail=null,d.lastEffect=null;if(t7(z,k5.current),g)break;else return null}case p:case e:return z.lanes=X0,rU(b,z,Q)}return M7(b,z,Q)}function H2(b,z,Q){if(z._debugNeedsRemount&&b!==null)return NF(b,z,oY(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||WX()||z.type!==b.type)I5=!0;else{var J=OY(b,Q);if(!J&&(z.flags&A1)===l0)return I5=!1,WF(b,z,Q);if((b.flags&PJ)!==l0)I5=!0;else I5=!1}}else if(I5=!1,Y6()&&l_(z)){var H=z.index,Y=i_();mK(z,Y,H)}switch(z.lanes=X0,z.tag){case f:return sP(b,z,z.type,Q);case a:{var U=z.elementType;return nP(b,z,U,Q)}case v:{var{type:O,pendingProps:N}=z,T=z.elementType===O?N:A5(O,N);return $Y(b,z,O,T,Q)}case _:{var{type:I,pendingProps:E}=z,g=z.elementType===I?E:A5(I,E);return tU(b,z,I,g,Q)}case k:return jP(b,z,Q);case w:return pP(b,z,Q);case R:return rP(b,z);case n:return b2(b,z,Q);case P:return BF(b,z,Q);case C:{var{type:d,pendingProps:F0}=z,y0=z.elementType===d?F0:A5(d,F0);return xU(b,z,d,y0,Q)}case c:return iP(b,z,Q);case m:return oP(b,z,Q);case G0:return xP(b,z,Q);case D:return OF(b,z,Q);case x:return LF(b,z,Q);case Z0:{var{type:D0,pendingProps:G1}=z,K1=A5(D0,G1);if(z.type!==z.elementType){var S=D0.propTypes;if(S)v5(S,K1,"prop",v1(D0))}return K1=A5(D0.type,K1),jU(b,z,D0,K1,Q)}case j:return pU(b,z,z.type,z.pendingProps,Q);case s:{var{type:o,pendingProps:V}=z,$0=z.elementType===o?V:A5(o,V);return tP(b,z,o,$0,Q)}case O0:return Z2(b,z,Q);case _0:break;case p:return rU(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 d3(b){b.flags|=F1}function Y2(b){b.flags|=E7,b.flags|=FJ}var G2,LY,K2,U2;G2=function(b,z,Q,X){var Z=z.child;while(Z!==null){if(Z.tag===w||Z.tag===R)cW(b,Z.stateNode);else if(Z.tag===P);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}},LY=function(b,z){},K2=function(b,z,Q,X,Z){var J=b.memoizedProps;if(J===X)return;var H=z.stateNode,Y=YH(),U=aW(H,Q,J,X,Z,Y);if(z.updateQueue=U,U)d3(z)},U2=function(b,z,Q,X){if(Q!==X)d3(z)};function dz(b,z){if(Y6())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 K6(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=Z1(Q,Z1(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=Z1(Q,Z1(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:U,child:O}=b;while(O!==null)Q=Z1(Q,Z1(O.lanes,O.childLanes)),X|=O.subtreeFlags&q7,X|=O.flags&q7,U+=O.treeBaseDuration,O=O.sibling;b.treeBaseDuration=U}else{var N=b.child;while(N!==null)Q=Z1(Q,Z1(N.lanes,N.childLanes)),X|=N.subtreeFlags&q7,X|=N.flags&q7,N.return=b,N=N.sibling}b.subtreeFlags|=X}return b.childLanes=Q,z}function _F(b,z,Q){if(XP()&&(z.mode&N1)!==a0&&(z.flags&A1)===l0)return aK(z),h3(),z.flags|=G7|m8|C6,!1;var X=kX(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(zP(z),K6(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(h3(),(z.flags&A1)===l0)z.memoizedState=null;if(z.flags|=F1,K6(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 lK(),!0}function q2(b,z,Q){var X=z.pendingProps;switch(c$(z),z.tag){case f:case a:case j:case v:case C:case c:case m:case G0:case x:case Z0:return K6(z),null;case _:{var Z=z.type;if(x5(Z))_X(z);return K6(z),null}case k:{var J=z.stateNode;if(D3(z),u$(z),BH(),J.pendingContext)J.context=J.pendingContext,J.pendingContext=null;if(b===null||b.child===null){var H=kX(z);if(H)d3(z);else if(b!==null){var Y=b.memoizedState;if(!Y.isDehydrated||(z.flags&G7)!==l0)z.flags|=Lb,lK()}}return LY(b,z),K6(z),null}case w:{GH(z);var U=ZU(),O=z.type;if(b!==null&&z.stateNode!=null){if(K2(b,z,O,X,U),b.ref!==z.ref)Y2(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 K6(z),null}var N=YH(),T=kX(z);if(T){if(e_(z,U,N))d3(z)}else{var I=yW(O,X,U,N,z);if(G2(I,z,!1,!1),z.stateNode=I,dW(I,O,X,U))d3(z)}if(z.ref!==null)Y2(z)}return K6(z),null}case R:{var E=X;if(b&&z.stateNode!=null){var g=b.memoizedProps;U2(b,z,g,E)}else{if(typeof E!=="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 d=ZU(),F0=YH(),y0=kX(z);if(y0){if(bP(z))d3(z)}else z.stateNode=lW(E,d,F0,z)}return K6(z),null}case n:{u3(z);var D0=z.memoizedState;if(b===null||b.memoizedState!==null&&b.memoizedState.dehydrated!==null){var G1=_F(b,z,D0);if(!G1)if(z.flags&C6)return z;else return null}if((z.flags&A1)!==l0){if(z.lanes=Q,(z.mode&g1)!==a0)yH(z);return z}var K1=D0!==null,S=b!==null&&b.memoizedState!==null;if(K1!==S){if(K1){var o=z.child;if(o.flags|=Nb,(z.mode&N1)!==a0){var V=b===null&&(z.memoizedProps.unstable_avoidThisFallback!==!0||!O1);if(V||KH(k5.current,HU))kv();else DY()}}}var $0=z.updateQueue;if($0!==null)z.flags|=F1;if(K6(z),(z.mode&g1)!==a0){if(K1){var k0=z.child;if(k0!==null)z.treeBaseDuration-=k0.treeBaseDuration}}return null}case P:if(D3(z),LY(b,z),b===null)u_(z.stateNode.containerInfo);return K6(z),null;case D:var v0=z.type._context;return bH(v0,z),K6(z),null;case s:{var x0=z.type;if(x5(x0))_X(z);return K6(z),null}case O0:{u3(z);var z1=z.memoizedState;if(z1===null)return K6(z),null;var c1=(z.flags&A1)!==l0,R1=z1.rendering;if(R1===null)if(!c1){var T4=Av()&&(b===null||(b.flags&A1)===l0);if(!T4){var k1=z.child;while(k1!==null){var k4=cX(k1);if(k4!==null){c1=!0,z.flags|=A1,dz(z1,!1);var w6=k4.updateQueue;if(w6!==null)z.updateQueue=w6,z.flags|=F1;return z.subtreeFlags=l0,KP(z,Q),t7(z,UH(k5.current,fz)),z.child}k1=k1.sibling}}if(z1.tail!==null&&s4()>D2())z.flags|=A1,c1=!0,dz(z1,!1),z.lanes=K9}else dz(z1,!1);else{if(!c1){var L6=cX(R1);if(L6!==null){z.flags|=A1,c1=!0;var z5=L6.updateQueue;if(z5!==null)z.updateQueue=z5,z.flags|=F1;if(dz(z1,!0),z1.tail===null&&z1.tailMode==="hidden"&&!R1.alternate&&!Y6())return K6(z),null}else if(s4()*2-z1.renderingStartTime>D2()&&Q!==p6)z.flags|=A1,c1=!0,dz(z1,!1),z.lanes=K9}if(z1.isBackwards)R1.sibling=z.child,z.child=R1;else{var m6=z1.last;if(m6!==null)m6.sibling=R1;else z.child=R1;z1.last=R1}}if(z1.tail!==null){var u6=z1.tail;z1.rendering=u6,z1.tail=u6.sibling,z1.renderingStartTime=s4(),u6.sibling=null;var A6=k5.current;if(c1)A6=UH(A6,fz);else A6=m3(A6);return t7(z,A6),u6}return K6(z),null}case _0:break;case p:case e:{VY(z);var I7=z.memoizedState,r3=I7!==null;if(b!==null){var XQ=b.memoizedState,b7=XQ!==null;if(b7!==r3&&!s0)z.flags|=Nb}if(!r3||(z.mode&N1)===a0)K6(z);else if(r6(e5,p6)){if(K6(z),z.subtreeFlags&(V4|F1))z.flags|=Nb}return null}case J0:return null;case P0: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 PF(b,z,Q){switch(c$(z),z.tag){case _:{var X=z.type;if(x5(X))_X(z);var Z=z.flags;if(Z&C6){if(z.flags=Z&~C6|A1,(z.mode&g1)!==a0)yH(z);return z}return null}case k:{var J=z.stateNode;D3(z),u$(z),BH();var H=z.flags;if((H&C6)!==l0&&(H&A1)===l0)return z.flags=H&~C6|A1,z;return null}case w:return GH(z),null;case n:{u3(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.");h3()}var U=z.flags;if(U&C6){if(z.flags=U&~C6|A1,(z.mode&g1)!==a0)yH(z);return z}return null}case O0:return u3(z),null;case P:return D3(z),null;case D:var O=z.type._context;return bH(O,z),null;case p:case e:return VY(z),null;case J0:return null;default:return null}}function B2(b,z,Q){switch(c$(z),z.tag){case _:{var X=z.type.childContextTypes;if(X!==null&&X!==void 0)_X(z);break}case k:{var Z=z.stateNode;D3(z),u$(z),BH();break}case w:{GH(z);break}case P:D3(z);break;case n:u3(z);break;case O0:u3(z);break;case D:var J=z.type._context;bH(J,z);break;case p:case e:VY(z);break}}var O2=null;O2=new Set;var qZ=!1,U6=!1,FF=typeof WeakSet==="function"?WeakSet:Set,T0=null,a3=null,l3=null;function vF(b){NJ(null,function(){throw b}),WJ()}var MF=function(b,z){if(z.props=b.memoizedProps,z.state=b.memoizedState,b.mode&g1)try{t5(),z.componentWillUnmount()}finally{n5(b)}else z.componentWillUnmount()};function L2(b,z){try{bb(c4,b)}catch(Q){e1(b,z,Q)}}function NY(b,z,Q){try{MF(b,Q)}catch(X){e1(b,z,X)}}function RF(b,z,Q){try{Q.componentDidMount()}catch(X){e1(b,z,X)}}function N2(b,z){try{P2(b)}catch(Q){e1(b,z,Q)}}function i3(b,z){var Q=b.ref;if(Q!==null)if(typeof Q==="function"){var X;try{if(H4&&Q4&&b.mode&g1)try{t5(),X=Q(null)}finally{n5(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.",X1(b))}else Q.current=null}function BZ(b,z,Q){try{Q()}catch(X){e1(b,z,X)}}var W2=null,_2=!1;function kF(b,z){W2=EW(b.containerInfo),T0=z,wF();var Q=_2;return _2=!1,W2=null,Q}function wF(){while(T0!==null){var b=T0,z=b.child;if((b.subtreeFlags&MJ)!==l0&&z!==null)z.return=b,T0=z;else AF()}}function AF(){while(T0!==null){var b=T0;P4(b);try{IF(b)}catch(Q){e1(b,b.return,Q)}t4();var z=b.sibling;if(z!==null){z.return=b.return,T0=z;return}T0=b.return}}function IF(b){var{alternate:z,flags:Q}=b;if((Q&Lb)!==l0){switch(P4(b),b.tag){case v:case C:case j:break;case _:{if(z!==null){var{memoizedProps:X,memoizedState:Z}=z,J=b.stateNode;if(b.type===b.elementType&&!Eb){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.",X1(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.",X1(b)||"instance")}var H=J.getSnapshotBeforeUpdate(b.elementType===b.type?X:A5(b.type,X),Z);{var Y=O2;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.",X1(b))}J.__reactInternalSnapshotBeforeUpdate=H}break}case k:{{var U=b.stateNode;Y_(U.containerInfo)}break}case w:case R:case P:case s: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.")}t4()}}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&G6)!==a6)lO(z);else if((b&c4)!==a6)J9(z);if((b&j5)!==a6)bQ(!0);if(BZ(z,Q,Y),(b&j5)!==a6)bQ(!1);if((b&G6)!==a6)iO();else if((b&c4)!==a6)$9()}}H=H.next}while(H!==J)}}function bb(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&G6)!==a6)dO(z);else if((b&c4)!==a6)oO(z);var H=J.create;if((b&j5)!==a6)bQ(!0);if(J.destroy=H(),(b&j5)!==a6)bQ(!1);if((b&G6)!==a6)aO();else if((b&c4)!==a6)xO();{var Y=J.destroy;if(Y!==void 0&&typeof Y!=="function"){var U=void 0;if((J.tag&c4)!==l0)U="useLayoutEffect";else if((J.tag&j5)!==l0)U="useInsertionEffect";else U="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 `+U+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
105
+
106
+ `+U+`(() => {
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",U,O)}}}J=J.next}while(J!==Z)}}function fF(b,z){if((z.flags&F1)!==l0)switch(z.tag){case G0:{var Q=z.stateNode.passiveEffectDuration,X=z.memoizedProps,Z=X.id,J=X.onPostCommit,H=VU(),Y=z.alternate===null?"mount":"update";if(SU())Y="nested-update";if(typeof J==="function")J(Z,Y,Q,H);var U=z.return;b:while(U!==null){switch(U.tag){case k:var O=U.stateNode;O.passiveEffectDuration+=Q;break b;case G0:var N=U.stateNode;N.passiveEffectDuration+=Q;break b}U=U.return}break}}}function TF(b,z,Q,X){if((Q.flags&u8)!==l0)switch(Q.tag){case v:case C:case j:{if(!U6)if(Q.mode&g1)try{t5(),bb(c4|y4,Q)}finally{n5(Q)}else bb(c4|y4,Q);break}case _:{var Z=Q.stateNode;if(Q.flags&F1){if(!U6)if(z===null){if(Q.type===Q.elementType&&!Eb){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.",X1(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.",X1(Q)||"instance")}if(Q.mode&g1)try{t5(),Z.componentDidMount()}finally{n5(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&&!Eb){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.",X1(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.",X1(Q)||"instance")}if(Q.mode&g1)try{t5(),Z.componentDidUpdate(J,H,Z.__reactInternalSnapshotBeforeUpdate)}finally{n5(Q)}else Z.componentDidUpdate(J,H,Z.__reactInternalSnapshotBeforeUpdate)}}var Y=Q.updateQueue;if(Y!==null){if(Q.type===Q.elementType&&!Eb){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.",X1(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.",X1(Q)||"instance")}XU(Q,Y,Z)}break}case k:{var U=Q.updateQueue;if(U!==null){var O=null;if(Q.child!==null)switch(Q.child.tag){case w:O=w$(Q.child.stateNode);break;case _:O=Q.child.stateNode;break}XU(Q,U,O)}break}case w:{var N=Q.stateNode;if(z===null&&Q.flags&F1){var{type:T,memoizedProps:I}=Q;pW(N,T,I)}break}case R:break;case P:break;case G0:{{var E=Q.memoizedProps,g=E.onCommit,d=E.onRender,F0=Q.stateNode.effectDuration,y0=VU(),D0=z===null?"mount":"update";if(SU())D0="nested-update";if(typeof d==="function")d(Q.memoizedProps.id,D0,Q.actualDuration,Q.treeBaseDuration,Q.actualStartTime,y0);{if(typeof g==="function")g(Q.memoizedProps.id,D0,F0,y0);Cv(Q);var G1=Q.return;b:while(G1!==null){switch(G1.tag){case k:var K1=G1.stateNode;K1.effectDuration+=F0;break b;case G0:var S=G1.stateNode;S.effectDuration+=F0;break b}G1=G1.return}}}break}case n:{EF(b,Q);break}case O0:case s:case _0:case p:case e:case P0: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(!U6){if(Q.flags&E7)P2(Q)}}function hF(b){switch(b.tag){case v:case C:case j:{if(b.mode&g1)try{t5(),L2(b,b.return)}finally{n5(b)}else L2(b,b.return);break}case _:{var z=b.stateNode;if(typeof z.componentDidMount==="function")RF(b,b.return,z);N2(b,b.return);break}case w:{N2(b,b.return);break}}}function CF(b,z){var Q=null;{var X=b;while(!0){if(X.tag===w){if(Q===null){Q=X;try{var Z=X.stateNode;if(z)Z_(Z);else $_(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)J_(J);else H_(J,X.memoizedProps)}catch(H){e1(b,b.return,H)}}else if((X.tag===p||X.tag===e)&&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 P2(b){var z=b.ref;if(z!==null){var Q=b.stateNode,X;switch(b.tag){case w:X=w$(Q);break;default:X=Q}if(typeof z==="function"){var Z;if(b.mode&g1)try{t5(),Z=z(X)}finally{n5(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.",X1(b))}else{if(!z.hasOwnProperty("current"))G("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X1(b));z.current=X}}}function SF(b){var z=b.alternate;if(z!==null)z.return=null;b.return=null}function F2(b){var z=b.alternate;if(z!==null)b.alternate=null,F2(z);{if(b.child=null,b.deletions=null,b.sibling=null,b.tag===w){var Q=b.stateNode;if(Q!==null)y_(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 VF(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===w||b.tag===k||b.tag===P}function M2(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!==w&&z.tag!==R&&z.tag!==W0){if(z.flags&V4)continue b;if(z.child===null||z.tag===P)continue b;else z.child.return=z,z=z.child}if(!(z.flags&V4))return z.stateNode}}function DF(b){var z=VF(b);switch(z.tag){case w:{var Q=z.stateNode;if(z.flags&D8)MK(Q),z.flags&=~D8;var X=M2(b);_Y(b,X,Q);break}case k:case P:{var Z=z.stateNode.containerInfo,J=M2(b);WY(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 WY(b,z,Q){var X=b.tag,Z=X===w||X===R;if(Z){var J=b.stateNode;if(z)b_(Q,J,z);else sW(Q,J)}else if(X===P);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}}}function _Y(b,z,Q){var X=b.tag,Z=X===w||X===R;if(Z){var J=b.stateNode;if(z)eW(Q,J,z);else tW(Q,J)}else if(X===P);else{var H=b.child;if(H!==null){_Y(H,z,Q);var Y=H.sibling;while(Y!==null)_Y(Y,z,Q),Y=Y.sibling}}}var q6=null,T5=!1;function mF(b,z,Q){{var X=z;b:while(X!==null){switch(X.tag){case w:{q6=X.stateNode,T5=!1;break b}case k:{q6=X.stateNode.containerInfo,T5=!0;break b}case P:{q6=X.stateNode.containerInfo,T5=!0;break b}}X=X.return}if(q6===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),q6=null,T5=!1}SF(Q)}function zb(b,z,Q){var X=Q.child;while(X!==null)R2(b,z,X),X=X.sibling}function R2(b,z,Q){switch(EO(Q),Q.tag){case w:if(!U6)i3(Q,z);case R:{{var X=q6,Z=T5;if(q6=null,zb(b,z,Q),q6=X,T5=Z,q6!==null)if(T5)Q_(q6,Q.stateNode);else z_(q6,Q.stateNode)}return}case W0:{if(q6!==null)if(T5)X_(q6,Q.stateNode);else T$(q6,Q.stateNode);return}case P:{{var J=q6,H=T5;q6=Q.stateNode.containerInfo,T5=!0,zb(b,z,Q),q6=J,T5=H}return}case v:case C:case Z0:case j:{if(!U6){var Y=Q.updateQueue;if(Y!==null){var U=Y.lastEffect;if(U!==null){var O=U.next,N=O;do{var T=N,I=T.destroy,E=T.tag;if(I!==void 0){if((E&j5)!==a6)BZ(Q,z,I);else if((E&c4)!==a6){if(J9(Q),Q.mode&g1)t5(),BZ(Q,z,I),n5(Q);else BZ(Q,z,I);$9()}}N=N.next}while(N!==O)}}}zb(b,z,Q);return}case _:{if(!U6){i3(Q,z);var g=Q.stateNode;if(typeof g.componentWillUnmount==="function")NY(Q,z,g)}zb(b,z,Q);return}case _0:{zb(b,z,Q);return}case p:{if(Q.mode&N1){var d=U6;U6=d||Q.memoizedState!==null,zb(b,z,Q),U6=d}else zb(b,z,Q);break}default:{zb(b,z,Q);return}}}function uF(b){var z=b.memoizedState}function EF(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)M_(J)}}}}function k2(b){var z=b.updateQueue;if(z!==null){b.updateQueue=null;var Q=b.stateNode;if(Q===null)Q=b.stateNode=new FF;z.forEach(function(X){var Z=gv.bind(null,b,X);if(!Q.has(X)){if(Q.add(X),P5)if(a3!==null&&l3!==null)ez(l3,a3);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");X.then(Z,Z)}})}}function gF(b,z,Q){a3=Q,l3=b,P4(z),w2(z,b),P4(z),a3=null,l3=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{mF(b,z,J)}catch(U){e1(J,z,U)}}var H=FQ();if(z.subtreeFlags&RJ){var Y=z.child;while(Y!==null)P4(Y),w2(Y,b),Y=Y.sibling}P4(H)}function w2(b,z,Q){var{alternate:X,flags:Z}=b;switch(b.tag){case v:case C:case Z0:case j:{if(h5(z,b),s5(b),Z&F1){try{f5(j5|y4,b,b.return),bb(j5|y4,b)}catch(x0){e1(b,b.return,x0)}if(b.mode&g1){try{t5(),f5(c4|y4,b,b.return)}catch(x0){e1(b,b.return,x0)}n5(b)}else try{f5(c4|y4,b,b.return)}catch(x0){e1(b,b.return,x0)}}return}case _:{if(h5(z,b),s5(b),Z&E7){if(X!==null)i3(X,X.return)}return}case w:{if(h5(z,b),s5(b),Z&E7){if(X!==null)i3(X,X.return)}{if(b.flags&D8){var J=b.stateNode;try{MK(J)}catch(x0){e1(b,b.return,x0)}}if(Z&F1){var H=b.stateNode;if(H!=null){var Y=b.memoizedProps,U=X!==null?X.memoizedProps:Y,O=b.type,N=b.updateQueue;if(b.updateQueue=null,N!==null)try{rW(H,N,O,U,Y,b)}catch(x0){e1(b,b.return,x0)}}}}return}case R:{if(h5(z,b),s5(b),Z&F1){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:T,memoizedProps:I}=b,E=X!==null?X.memoizedProps:I;try{nW(T,E,I)}catch(x0){e1(b,b.return,x0)}}return}case k:{if(h5(z,b),s5(b),Z&F1){if(X!==null){var g=X.memoizedState;if(g.isDehydrated)try{v_(z.containerInfo)}catch(x0){e1(b,b.return,x0)}}}return}case P:{h5(z,b),s5(b);return}case n:{h5(z,b),s5(b);var d=b.child;if(d.flags&Nb){var{stateNode:F0,memoizedState:y0}=d,D0=y0!==null;if(F0.isHidden=D0,D0){var G1=d.alternate!==null&&d.alternate.memoizedState!==null;if(!G1)Rv()}}if(Z&F1){try{uF(b)}catch(x0){e1(b,b.return,x0)}k2(b)}return}case p:{var K1=X!==null&&X.memoizedState!==null;if(b.mode&N1){var S=U6;U6=S||K1,h5(z,b),U6=S}else h5(z,b);if(s5(b),Z&Nb){var{stateNode:o,memoizedState:V}=b,$0=V!==null,k0=b;if(o.isHidden=$0,$0){if(!K1){if((k0.mode&N1)!==a0){T0=k0;var v0=k0.child;while(v0!==null)T0=v0,cF(v0),v0=v0.sibling}}}CF(k0,$0)}return}case O0:{if(h5(z,b),s5(b),Z&F1)k2(b);return}case _0:return;default:{h5(z,b),s5(b);return}}}function s5(b){var z=b.flags;if(z&V4){try{DF(b)}catch(Q){e1(b,b.return,Q)}b.flags&=~V4}if(z&K7)b.flags&=~K7}function yF(b,z,Q){a3=Q,l3=z,T0=b,A2(b,z,Q),a3=null,l3=null}function A2(b,z,Q){var X=(b.mode&N1)!==a0;while(T0!==null){var Z=T0,J=Z.child;if(Z.tag===p&&X){var H=Z.memoizedState!==null,Y=H||qZ;if(Y){PY(b,z,Q);continue}else{var U=Z.alternate,O=U!==null&&U.memoizedState!==null,N=O||U6,T=qZ,I=U6;if(qZ=Y,U6=N,U6&&!I)T0=Z,dF(Z);var E=J;while(E!==null)T0=E,A2(E,z,Q),E=E.sibling;T0=Z,qZ=T,U6=I,PY(b,z,Q);continue}}if((Z.subtreeFlags&u8)!==l0&&J!==null)J.return=Z,T0=J;else PY(b,z,Q)}}function PY(b,z,Q){while(T0!==null){var X=T0;if((X.flags&u8)!==l0){var Z=X.alternate;P4(X);try{TF(z,Z,X,Q)}catch(H){e1(X,X.return,H)}t4()}if(X===b){T0=null;return}var J=X.sibling;if(J!==null){J.return=X.return,T0=J;return}T0=X.return}}function cF(b){while(T0!==null){var z=T0,Q=z.child;switch(z.tag){case v:case C:case Z0:case j:{if(z.mode&g1)try{t5(),f5(c4,z,z.return)}finally{n5(z)}else f5(c4,z,z.return);break}case _:{i3(z,z.return);var X=z.stateNode;if(typeof X.componentWillUnmount==="function")NY(z,z.return,X);break}case w:{i3(z,z.return);break}case p:{var Z=z.memoizedState!==null;if(Z){I2(b);continue}break}}if(Q!==null)Q.return=z,T0=Q;else I2(b)}}function I2(b){while(T0!==null){var z=T0;if(z===b){T0=null;return}var Q=z.sibling;if(Q!==null){Q.return=z.return,T0=Q;return}T0=z.return}}function dF(b){while(T0!==null){var z=T0,Q=z.child;if(z.tag===p){var X=z.memoizedState!==null;if(X){f2(b);continue}}if(Q!==null)Q.return=z,T0=Q;else f2(b)}}function f2(b){while(T0!==null){var z=T0;P4(z);try{hF(z)}catch(X){e1(z,z.return,X)}if(t4(),z===b){T0=null;return}var Q=z.sibling;if(Q!==null){Q.return=z.return,T0=Q;return}T0=z.return}}function aF(b,z,Q,X){T0=z,lF(z,b,Q,X)}function lF(b,z,Q,X){while(T0!==null){var Z=T0,J=Z.child;if((Z.subtreeFlags&U3)!==l0&&J!==null)J.return=Z,T0=J;else iF(b,z,Q,X)}}function iF(b,z,Q,X){while(T0!==null){var Z=T0;if((Z.flags&_5)!==l0){P4(Z);try{oF(z,Z,Q,X)}catch(H){e1(Z,Z.return,H)}t4()}if(Z===b){T0=null;return}var J=Z.sibling;if(J!==null){J.return=Z.return,T0=J;return}T0=Z.return}}function oF(b,z,Q,X){switch(z.tag){case v:case C:case j:{if(z.mode&g1){gH();try{bb(G6|y4,z)}finally{EH(z)}}else bb(G6|y4,z);break}}}function xF(b){T0=b,jF()}function jF(){while(T0!==null){var b=T0,z=b.child;if((T0.flags&Ob)!==l0){var Q=b.deletions;if(Q!==null){for(var X=0;X<Q.length;X++){var Z=Q[X];T0=Z,nF(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)}}}T0=b}}if((b.subtreeFlags&U3)!==l0&&z!==null)z.return=b,T0=z;else pF()}}function pF(){while(T0!==null){var b=T0;if((b.flags&_5)!==l0)P4(b),rF(b),t4();var z=b.sibling;if(z!==null){z.return=b.return,T0=z;return}T0=b.return}}function rF(b){switch(b.tag){case v:case C:case j:{if(b.mode&g1)gH(),f5(G6|y4,b,b.return),EH(b);else f5(G6|y4,b,b.return);break}}}function nF(b,z){while(T0!==null){var Q=T0;P4(Q),sF(Q,z),t4();var X=Q.child;if(X!==null)X.return=Q,T0=X;else tF(b)}}function tF(b){while(T0!==null){var z=T0,Q=z.sibling,X=z.return;if(F2(z),z===b){T0=null;return}if(Q!==null){Q.return=X,T0=Q;return}T0=X}}function sF(b,z){switch(b.tag){case v:case C:case j:{if(b.mode&g1)gH(),f5(G6,b,z),EH(b);else f5(G6,b,z);break}}}function eF(b){switch(b.tag){case v:case C:case j:{try{bb(c4|y4,b)}catch(Q){e1(b,b.return,Q)}break}case _:{var z=b.stateNode;try{z.componentDidMount()}catch(Q){e1(b,b.return,Q)}break}}}function bv(b){switch(b.tag){case v:case C:case j:{try{bb(G6|y4,b)}catch(z){e1(b,b.return,z)}break}}}function zv(b){switch(b.tag){case v:case C:case j:{try{f5(c4|y4,b,b.return)}catch(Q){e1(b,b.return,Q)}break}case _:{var z=b.stateNode;if(typeof z.componentWillUnmount==="function")NY(b,b.return,z);break}}}function Qv(b){switch(b.tag){case v:case C:case j:try{f5(G6|y4,b,b.return)}catch(z){e1(b,b.return,z)}}}var Xv=0,Zv=1,Jv=2,$v=3,Hv=4;if(typeof Symbol==="function"&&Symbol.for){var az=Symbol.for;Xv=az("selector.component"),Zv=az("selector.has_pseudo_class"),Jv=az("selector.role"),$v=az("selector.test_id"),Hv=az("selector.text")}var Yv=[];function Gv(){Yv.forEach(function(b){return b()})}var Kv=$.ReactCurrentActQueue;function Uv(b){{var z=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,Q=typeof jest<"u";return Q&&z!==!1}}function T2(){{var b=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!b&&Kv.current!==null)G("The current testing environment is not configured to support act(...)");return b}}var qv=Math.ceil,FY=$.ReactCurrentDispatcher,vY=$.ReactCurrentOwner,B6=$.ReactCurrentBatchConfig,C5=$.ReactCurrentActQueue,l4=0,h2=1,O6=2,K5=4,R7=0,lz=1,gb=2,OZ=3,iz=4,C2=5,MY=6,W1=l4,V6=null,F4=null,i4=X0,e5=X0,RY=o7(X0),o4=R7,oz=null,kY=X0,LZ=X0,xz=X0,NZ=X0,jz=null,l6=null,wY=0,S2=500,V2=1/0,Bv=500,k7=null;function pz(){V2=s4()+Bv}function D2(){return V2}var WZ=!1,AY=null,o3=null,yb=!1,Qb=null,rz=X0,IY=[],fY=null,Ov=50,nz=0,TY=null,hY=!1,_Z=!1,Lv=50,x3=0,PZ=null,tz=$4,FZ=X0,m2=!1;function vZ(){return V6}function D6(){if((W1&(O6|K5))!==l4)return s4();if(tz!==$4)return tz;return tz=s4(),tz}function Xb(b){var z=b.mode;if((z&N1)===a0)return r0;else if((W1&O6)!==l4&&i4!==X0)return l8(i4);var Q=$P()!==JP;if(Q){if(B6.transition!==null){var X=B6.transition;if(!X._updatedFibers)X._updatedFibers=new Set;X._updatedFibers.add(b)}if(FZ===b6)FZ=O9();return FZ}var Z=F5();if(Z!==b6)return Z;var J=iW();return J}function Nv(b){var z=b.mode;if((z&N1)===a0)return r0;return OL()}function x4(b,z,Q,X){if(cv(),m2)G("useInsertionEffect must not schedule updates.");if(hY)_Z=!0;if(i8(b,Q,X),(W1&O6)!==X0&&b===V6)lv(z);else{if(P5)W9(b,z,Q);if(iv(z),b===V6){if((W1&O6)===l4)xz=Z1(xz,Q);if(o4===iz)Zb(b,i4)}if(i6(b,X),Q===r0&&W1===l4&&(z.mode&N1)===a0&&!C5.isBatchingLegacy)pz(),DK()}}function Wv(b,z,Q){var X=b.current;X.lanes=z,i8(b,z,Q),i6(b,Q)}function _v(b){return(W1&O6)!==l4}function i6(b,z){var Q=b.callbackNode;YL(b,z);var X=yQ(b,b===V6?i4:X0);if(X===X0){if(Q!==null)t2(Q);b.callbackNode=null,b.callbackPriority=b6;return}var Z=Rb(X),J=b.callbackPriority;if(J===Z&&!(C5.current!==null&&Q!==EY)){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)t2(Q);var H;if(Z===r0){if(b.tag===x7){if(C5.isBatchingLegacy!==null)C5.didScheduleLegacyUpdate=!0;a_(g2.bind(null,b))}else VK(g2.bind(null,b));if(C5.current!==null)C5.current.push(j7);else xW(function(){if((W1&(O6|K5))===l4)j7()});H=null}else{var Y;switch(F9(X)){case n6:Y=mQ;break;case O7:Y=kJ;break;case L7:Y=Pb;break;case lQ:Y=wJ;break;default:Y=Pb;break}H=gY(Y,u2.bind(null,b))}b.callbackPriority=Z,b.callbackNode=H}function u2(b,z){if(CP(),tz=$4,FZ=X0,(W1&(O6|K5))!==l4)throw Error("Should not already be working.");var Q=b.callbackNode,X=A7();if(X){if(b.callbackNode!==Q)return null}var Z=yQ(b,b===V6?i4:X0);if(Z===X0)return null;var J=!cQ(b,Z)&&!BL(b,Z)&&!z,H=J?fv(b,Z):RZ(b,Z);if(H!==R7){if(H===gb){var Y=jJ(b);if(Y!==X0)Z=Y,H=CY(b,Y)}if(H===lz){var U=oz;throw cb(b,X0),Zb(b,Z),i6(b,s4()),U}if(H===MY)Zb(b,Z);else{var O=!cQ(b,Z),N=b.current.alternate;if(O&&!Fv(N)){if(H=RZ(b,Z),H===gb){var T=jJ(b);if(T!==X0)Z=T,H=CY(b,T)}if(H===lz){var I=oz;throw cb(b,X0),Zb(b,Z),i6(b,s4()),I}}b.finishedWork=N,b.finishedLanes=Z,Pv(b,H,Z)}}if(i6(b,s4()),b.callbackNode===Q)return u2.bind(null,b);return null}function CY(b,z){var Q=jz;if(iQ(b)){var X=cb(b,z);X.flags|=G7,m_(b.containerInfo)}var Z=RZ(b,z);if(Z!==gb){var J=l6;if(l6=Q,J!==null)E2(J)}return Z}function E2(b){if(l6===null)l6=b;else l6.push.apply(l6,b)}function Pv(b,z,Q){switch(z){case R7:case lz:throw Error("Root did not complete. This is a bug in React.");case gb:{db(b,l6,k7);break}case OZ:{if(Zb(b,Q),q9(Q)&&!s2()){var X=wY+S2-s4();if(X>10){var Z=yQ(b,X0);if(Z!==X0)break;var J=b.suspendedLanes;if(!N3(J,Q)){var H=D6();N9(b,J);break}b.timeoutHandle=I$(db.bind(null,b,l6,k7),X);break}}db(b,l6,k7);break}case iz:{if(Zb(b,Q),qL(Q))break;if(!s2()){var Y=$L(b,Q),U=Y,O=s4()-U,N=yv(O)-O;if(N>10){b.timeoutHandle=I$(db.bind(null,b,l6,k7),N);break}}db(b,l6,k7);break}case C2:{db(b,l6,k7);break}default:throw Error("Unknown root exit status.")}}function Fv(b){var z=b;while(!0){if(z.flags&VQ){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(!s6(H(),Y))return!1}catch(O){return!1}}}}var U=z.child;if(z.subtreeFlags&VQ&&U!==null){U.return=z,z=U;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 Zb(b,z){z=dQ(z,NZ),z=dQ(z,xz),NL(b,z)}function g2(b){if(SP(),(W1&(O6|K5))!==l4)throw Error("Should not already be working.");A7();var z=yQ(b,X0);if(!r6(z,r0))return i6(b,s4()),null;var Q=RZ(b,z);if(b.tag!==x7&&Q===gb){var X=jJ(b);if(X!==X0)z=X,Q=CY(b,X)}if(Q===lz){var Z=oz;throw cb(b,X0),Zb(b,z),i6(b,s4()),Z}if(Q===MY)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,l6,k7),i6(b,s4()),null}function vv(b,z){if(z!==X0){if(tJ(b,Z1(z,r0)),i6(b,s4()),(W1&(O6|K5))===l4)pz(),j7()}}function SY(b,z){var Q=W1;W1|=h2;try{return b(z)}finally{if(W1=Q,W1===l4&&!C5.isBatchingLegacy)pz(),DK()}}function Mv(b,z,Q,X,Z){var J=F5(),H=B6.transition;try{return B6.transition=null,z6(n6),b(z,Q,X,Z)}finally{if(z6(J),B6.transition=H,W1===l4)pz()}}function w7(b){if(Qb!==null&&Qb.tag===x7&&(W1&(O6|K5))===l4)A7();var z=W1;W1|=h2;var Q=B6.transition,X=F5();try{if(B6.transition=null,z6(n6),b)return b();else return}finally{if(z6(X),B6.transition=Q,W1=z,(W1&(O6|K5))===l4)j7()}}function y2(){return(W1&(O6|K5))!==l4}function MZ(b,z){R6(RY,e5,b),e5=Z1(e5,z),kY=Z1(kY,z)}function VY(b){e5=RY.current,M6(RY,b)}function cb(b,z){b.finishedWork=null,b.finishedLanes=X0;var Q=b.timeoutHandle;if(Q!==f$)b.timeoutHandle=f$,oW(Q);if(F4!==null){var X=F4.return;while(X!==null){var Z=X.alternate;B2(Z,X),X=X.return}}V6=b;var J=ab(b.current,null);return F4=J,i4=e5=kY=z,o4=R7,oz=null,LZ=X0,xz=X0,NZ=X0,jz=null,l6=null,BP(),R5.discardPendingWarnings(),J}function c2(b,z){do{var Q=F4;try{if(hX(),GU(),t4(),vY.current=null,Q===null||Q.return===null){o4=lz,oz=z,F4=null;return}if(H4&&Q.mode&g1)HZ(Q,!0);if(W4)if(q3(),z!==null&&typeof z==="object"&&typeof z.then==="function"){var X=z;pO(Q,X,i4)}else jO(Q,z,i4);dP(b,Q.return,Q,z,i4),i2(Q)}catch(Z){if(z=Z,F4===Q&&Q!==null)Q=Q.return,F4=Q;else Q=F4;continue}return}while(!0)}function d2(){var b=FY.current;if(FY.current=QZ,b===null)return QZ;else return b}function a2(b){FY.current=b}function Rv(){wY=s4()}function sz(b){LZ=Z1(b,LZ)}function kv(){if(o4===R7)o4=OZ}function DY(){if(o4===R7||o4===OZ||o4===gb)o4=iz;if(V6!==null&&(pJ(LZ)||pJ(xz)))Zb(V6,i4)}function wv(b){if(o4!==iz)o4=gb;if(jz===null)jz=[b];else jz.push(b)}function Av(){return o4===R7}function RZ(b,z){var Q=W1;W1|=O6;var X=d2();if(V6!==b||i4!==z){if(P5){var Z=b.memoizedUpdaters;if(Z.size>0)ez(b,i4),Z.clear();_9(b,z)}k7=P9(),cb(b,z)}H9(z);do try{Iv();break}catch(J){c2(b,J)}while(!0);if(hX(),W1=Q,a2(X),F4!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Y9(),V6=null,i4=X0,o4}function Iv(){while(F4!==null)l2(F4)}function fv(b,z){var Q=W1;W1|=O6;var X=d2();if(V6!==b||i4!==z){if(P5){var Z=b.memoizedUpdaters;if(Z.size>0)ez(b,i4),Z.clear();_9(b,z)}k7=P9(),pz(),cb(b,z)}H9(z);do try{Tv();break}catch(J){c2(b,J)}while(!0);if(hX(),a2(X),W1=Q,F4!==null)return eO(),R7;else return Y9(),V6=null,i4=X0,o4}function Tv(){while(F4!==null&&!IO())l2(F4)}function l2(b){var z=b.alternate;P4(b);var Q;if((b.mode&g1)!==a0)uH(b),Q=mY(z,b,e5),HZ(b,!0);else Q=mY(z,b,e5);if(t4(),b.memoizedProps=b.pendingProps,Q===null)i2(b);else F4=Q;vY.current=null}function i2(b){var z=b;do{var{alternate:Q,return:X}=z;if((z.flags&m8)===l0){P4(z);var Z=void 0;if((z.mode&g1)===a0)Z=q2(Q,z,e5);else uH(z),Z=q2(Q,z,e5),HZ(z,!1);if(t4(),Z!==null){F4=Z;return}}else{var J=PF(Q,z);if(J!==null){J.flags&=vO,F4=J;return}if((z.mode&g1)!==a0){HZ(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|=m8,X.subtreeFlags=l0,X.deletions=null;else{o4=MY,F4=null;return}}var U=z.sibling;if(U!==null){F4=U;return}z=X,F4=z}while(z!==null);if(o4===R7)o4=C2}function db(b,z,Q){var X=F5(),Z=B6.transition;try{B6.transition=null,z6(n6),hv(b,z,Q,X)}finally{B6.transition=Z,z6(X)}return null}function hv(b,z,Q,X){do A7();while(Qb!==null);if(dv(),(W1&(O6|K5))!==l4)throw Error("Should not already be working.");var{finishedWork:Z,finishedLanes:J}=b;if(cO(J),Z===null)return Z9(),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=b6;var H=Z1(Z.lanes,Z.childLanes);if(WL(b,H),b===V6)V6=null,F4=null,i4=X0;if((Z.subtreeFlags&U3)!==l0||(Z.flags&U3)!==l0){if(!yb)yb=!0,fY=Q,gY(Pb,function(){return A7(),null})}var Y=(Z.subtreeFlags&(MJ|RJ|u8|U3))!==l0,U=(Z.flags&(MJ|RJ|u8|U3))!==l0;if(Y||U){var O=B6.transition;B6.transition=null;var N=F5();z6(n6);var T=W1;W1|=K5,vY.current=null;var I=kF(b,Z);DU(),gF(b,Z,J),gW(b.containerInfo),b.current=Z,rO(J),yF(Z,b,J),nO(),fO(),W1=T,z6(N),B6.transition=O}else b.current=Z,DU();var E=yb;if(yb)yb=!1,Qb=b,rz=J;else x3=0,PZ=null;if(H=b.pendingLanes,H===X0)o3=null;if(!E)p2(b.current,!1);if(mO(Z.stateNode,X),P5)b.memoizedUpdaters.clear();if(Gv(),i6(b,s4()),z!==null){var g=b.onRecoverableError;for(var d=0;d<z.length;d++){var F0=z[d],y0=F0.stack,D0=F0.digest;g(F0.value,{componentStack:y0,digest:D0})}}if(WZ){WZ=!1;var G1=AY;throw AY=null,G1}if(r6(rz,r0)&&b.tag!==x7)A7();if(H=b.pendingLanes,r6(H,r0))if(hP(),b===TY)nz++;else nz=0,TY=b;else nz=0;return j7(),Z9(),null}function A7(){if(Qb!==null){var b=F9(rz),z=vL(L7,b),Q=B6.transition,X=F5();try{return B6.transition=null,z6(z),Sv()}finally{z6(X),B6.transition=Q}}return!1}function Cv(b){if(IY.push(b),!yb)yb=!0,gY(Pb,function(){return A7(),null})}function Sv(){if(Qb===null)return!1;var b=fY;fY=null;var z=Qb,Q=rz;if(Qb=null,rz=X0,(W1&(O6|K5))!==l4)throw Error("Cannot flush passive effects while already rendering.");hY=!0,_Z=!1,tO(Q);var X=W1;W1|=K5,xF(z.current),aF(z,z.current,Q,b);{var Z=IY;IY=[];for(var J=0;J<Z.length;J++){var H=Z[J];fF(z,H)}}sO(),p2(z.current,!0),W1=X,j7();{if(_Z)if(z===PZ)x3++;else x3=0,PZ=z;else x3=0;hY=!1,_Z=!1}uO(z);{var Y=z.current.stateNode;Y.effectDuration=0,Y.passiveEffectDuration=0}return!0}function o2(b){return o3!==null&&o3.has(b)}function Vv(b){if(o3===null)o3=new Set([b]);else o3.add(b)}function Dv(b){if(!WZ)WZ=!0,AY=b}var mv=Dv;function x2(b,z,Q){var X=ub(Q,z),Z=aU(b,X,r0),J=r7(b,Z,r0),H=D6();if(J!==null)i8(J,r0,H),i6(J,H)}function e1(b,z,Q){if(vF(Q),bQ(!1),b.tag===k){x2(b,b,Q);return}var X=null;X=z;while(X!==null){if(X.tag===k){x2(X,b,Q);return}else if(X.tag===_){var{type:Z,stateNode:J}=X;if(typeof Z.getDerivedStateFromError==="function"||typeof J.componentDidCatch==="function"&&!o2(J)){var H=ub(Q,b),Y=bY(X,H,r0),U=r7(X,Y,r0),O=D6();if(U!==null)i8(U,r0,O),i6(U,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 uv(b,z,Q){var X=b.pingCache;if(X!==null)X.delete(z);var Z=D6();if(N9(b,Q),ov(b),V6===b&&N3(i4,Q))if(o4===iz||o4===OZ&&q9(i4)&&s4()-wY<S2)cb(b,X0);else NZ=Z1(NZ,Q);i6(b,Z)}function j2(b,z){if(z===b6)z=Nv(b);var Q=D6(),X=d6(b,z);if(X!==null)i8(X,z,Q),i6(X,Q)}function Ev(b){var z=b.memoizedState,Q=b6;if(z!==null)Q=z.retryLane;j2(b,Q)}function gv(b,z){var Q=b6,X;switch(b.tag){case n:X=b.stateNode;var Z=b.memoizedState;if(Z!==null)Q=Z.retryLane;break;case O0: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 yv(b){return b<120?120:b<480?480:b<1080?1080:b<1920?1920:b<3000?3000:b<4320?4320:qv(b/1960)*1960}function cv(){if(nz>Ov)throw nz=0,TY=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(x3>Lv)x3=0,PZ=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 dv(){R5.flushLegacyContextWarning(),R5.flushPendingUnsafeLifecycleWarnings()}function p2(b,z){{if(P4(b),kZ(b,U7,zv),z)kZ(b,DQ,Qv);if(kZ(b,U7,eF),z)kZ(b,DQ,bv);t4()}}function kZ(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 wZ=null;function r2(b){{if((W1&O6)!==l4)return;if(!(b.mode&N1))return;var z=b.tag;if(z!==f&&z!==k&&z!==_&&z!==v&&z!==C&&z!==Z0&&z!==j)return;var Q=X1(b)||"ReactComponent";if(wZ!==null){if(wZ.has(Q))return;wZ.add(Q)}else wZ=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 t4()}}}var mY;{var av=null;mY=function(b,z,Q){var X=Xq(av,z);try{return H2(b,z,Q)}catch(J){if(n_()||J!==null&&typeof J==="object"&&typeof J.then==="function")throw J;if(hX(),GU(),B2(b,z),Xq(z,X),z.mode&g1)uH(z);if(NJ(null,H2,null,b,z,Q),WO()){var Z=WJ();if(typeof Z==="object"&&Z!==null&&Z._suppressLogging&&typeof J==="object"&&J!==null&&!J._suppressLogging)J._suppressLogging=!0}throw J}}}var n2=!1,uY;uY=new Set;function lv(b){if(Kb&&!IP())switch(b.tag){case v:case C:case j:{var z=F4&&X1(F4)||"Unknown",Q=z;if(!uY.has(Q)){uY.add(Q);var X=X1(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 _:{if(!n2)G("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),n2=!0;break}}}function ez(b,z){if(P5){var Q=b.memoizedUpdaters;Q.forEach(function(X){W9(b,X,z)})}}var EY={};function gY(b,z){{var Q=C5.current;if(Q!==null)return Q.push(z),EY;else return X9(b,z)}}function t2(b){if(b===EY)return;return AO(b)}function s2(){return C5.current!==null}function iv(b){{if(b.mode&N1){if(!T2())return}else{if(!Uv())return;if(W1!==l4)return;if(b.tag!==v&&b.tag!==C&&b.tag!==j)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`,X1(b))}finally{if(z)P4(b);else t4()}}}}function ov(b){if(b.tag!==x7&&T2()&&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 bQ(b){m2=b}var U5=null,j3=null,xv=function(b){U5=b};function p3(b){{if(U5===null)return b;var z=U5(b);if(z===void 0)return b;return z.current}}function yY(b){return p3(b)}function cY(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=p3(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 e2(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 _:{if(typeof X==="function")Z=!0;break}case v:{if(typeof X==="function")Z=!0;else if(J===V0)Z=!0;break}case C:{if(J===h)Z=!0;else if(J===V0)Z=!0;break}case Z0:case j:{if(J===L0)Z=!0;else if(J===V0)Z=!0;break}default:return!1}if(Z){var H=U5(Q);if(H!==void 0&&H===U5(X))return!0}return!1}}function bq(b){{if(U5===null)return;if(typeof WeakSet!=="function")return;if(j3===null)j3=new WeakSet;j3.add(b)}}var jv=function(b,z){{if(U5===null)return;var{staleFamilies:Q,updatedFamilies:X}=z;A7(),w7(function(){dY(b.current,X,Q)})}},pv=function(b,z){{if(b.context!==e6)return;A7(),w7(function(){zQ(z,b,null,null)})}};function dY(b,z,Q){{var{alternate:X,child:Z,sibling:J,tag:H,type:Y}=b,U=null;switch(H){case v:case j:case _:U=Y;break;case C:U=Y.render;break}if(U5===null)throw Error("Expected resolveFamily to be set during hot reload.");var O=!1,N=!1;if(U!==null){var T=U5(U);if(T!==void 0){if(Q.has(T))N=!0;else if(z.has(T))if(H===_)N=!0;else O=!0}}if(j3!==null){if(j3.has(b)||X!==null&&j3.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 rv=function(b,z){{var Q=new Set,X=new Set(z.map(function(Z){return Z.current}));return aY(b.current,X,Q),Q}};function aY(b,z,Q){{var{child:X,sibling:Z,tag:J,type:H}=b,Y=null;switch(J){case v:case j:case _:Y=H;break;case C:Y=H.render;break}var U=!1;if(Y!==null){if(z.has(Y))U=!0}if(U)nv(b,Q);else if(X!==null)aY(X,z,Q);if(Z!==null)aY(Z,z,Q)}}function nv(b,z){{var Q=tv(b,z);if(Q)return;var X=b;while(!0){switch(X.tag){case w:z.add(X.stateNode);return;case P:z.add(X.stateNode.containerInfo);return;case k:z.add(X.stateNode.containerInfo);return}if(X.return===null)throw Error("Expected to reach root first.");X=X.return}}}function tv(b,z){{var Q=b,X=!1;while(!0){if(Q.tag===w)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 lY;{lY=!1;try{var zq=Object.preventExtensions({})}catch(b){lY=!0}}function sv(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,!lY&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var b5=function(b,z,Q,X){return new sv(b,z,Q,X)};function iY(b){var z=b.prototype;return!!(z&&z.isReactComponent)}function ev(b){return typeof b==="function"&&!iY(b)&&b.defaultProps===void 0}function bM(b){if(typeof b==="function")return iY(b)?_:v;else if(b!==void 0&&b!==null){var z=b.$$typeof;if(z===h)return C;if(z===L0)return Z0}return f}function ab(b,z){var Q=b.alternate;if(Q===null)Q=b5(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&q7,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 f:case v:case j:Q.type=p3(b.type);break;case _:Q.type=yY(b.type);break;case C:Q.type=cY(b.type);break}return Q}function zM(b,z){b.flags&=q7|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 QM(b,z,Q){var X;if(b===FX){if(X=N1,z===!0)X|=R4,X|=l5}else X=a0;if(P5)X|=g1;return b5(k,null,null,X)}function oY(b,z,Q,X,Z,J){var H=f,Y=b;if(typeof b==="function")if(iY(b))H=_,Y=yY(Y);else Y=p3(Y);else if(typeof b==="string")H=w;else b:switch(b){case M1:return Jb(Q.children,Z,J,z);case M:if(H=m,Z|=R4,(Z&N1)!==a0)Z|=l5;break;case i:return XM(Q,Z,J,z);case b0:return ZM(Q,Z,J,z);case Y0:return JM(Q,Z,J,z);case U0:return Qq(Q,Z,J,z);case m0:case A0:case B1:case D1:case z0:default:{if(typeof b==="object"&&b!==null)switch(b.$$typeof){case Q0:H=D;break b;case W:H=x;break b;case h:H=C,Y=cY(Y);break b;case L0:H=Z0;break b;case V0:H=a,Y=null;break b}var U="";{if(b===void 0||typeof b==="object"&&b!==null&&Object.keys(b).length===0)U+=" 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?X1(X):null;if(O)U+=`
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)+"."+U))}}var N=b5(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=oY(Z,J,H,X,z,Q);return Y._debugSource=b._source,Y._debugOwner=b._owner,Y}function Jb(b,z,Q,X){var Z=b5(c,b,X,z);return Z.lanes=Q,Z}function XM(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=b5(G0,b,X,z|g1);return Z.elementType=i,Z.lanes=Q,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z}function ZM(b,z,Q,X){var Z=b5(n,b,X,z);return Z.elementType=b0,Z.lanes=Q,Z}function JM(b,z,Q,X){var Z=b5(O0,b,X,z);return Z.elementType=Y0,Z.lanes=Q,Z}function Qq(b,z,Q,X){var Z=b5(p,b,X,z);Z.elementType=U0,Z.lanes=Q;var J={isHidden:!1};return Z.stateNode=J,Z}function jY(b,z,Q){var X=b5(R,b,null,z);return X.lanes=Q,X}function $M(){var b=b5(w,null,null,a0);return b.elementType="DELETED",b}function HM(b){var z=b5(W0,null,null,a0);return z.stateNode=b,z}function pY(b,z,Q){var X=b.children!==null?b.children:[],Z=b5(P,X,b.key,z);return Z.lanes=Q,Z.stateNode={containerInfo:b.containerInfo,pendingChildren:null,implementation:b.implementation},Z}function Xq(b,z){if(b===null)b=b5(f,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 YM(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=f$,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=b6,this.eventTimes=nJ(X0),this.expirationTimes=nJ($4),this.pendingLanes=X0,this.suspendedLanes=X0,this.pingedLanes=X0,this.expiredLanes=X0,this.mutableReadLanes=X0,this.finishedLanes=X0,this.entangledLanes=X0,this.entanglements=nJ(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<IJ;H++)J.push(new Set)}switch(z){case FX:this._debugRootType=Q?"hydrateRoot()":"createRoot()";break;case x7:this._debugRootType=Q?"hydrate()":"render()";break}}function Zq(b,z,Q,X,Z,J,H,Y,U,O){var N=new YM(b,z,Q,Y,U),T=QM(z,J);N.current=T,T.stateNode=N;{var I={element:X,isDehydrated:Q,cache:null,transitions:null,pendingSuspenseBoundaries:null};T.memoizedState=I}return JH(T),N}var rY="18.3.1";function GM(b,z,Q){var X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return I4(X),{$$typeof:x1,key:X==null?null:""+X,children:b,containerInfo:z,implementation:Q}}var nY,tY;nY=!1,tY={};function Jq(b){if(!b)return e6;var z=G3(b),Q=d_(z);if(z.tag===_){var X=z.type;if(x5(X))return CK(z,X,Q)}return Q}function KM(b,z){{var Q=G3(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=b9(Q);if(Z===null)return null;if(Z.mode&R4){var J=X1(Q)||"Component";if(!tY[J]){tY[J]=!0;var H=v6;try{if(P4(Z),Q.mode&R4)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 t4()}}}return Z.stateNode}}function $q(b,z,Q,X,Z,J,H,Y){var U=!1,O=null;return Zq(b,z,U,O,Q,X,Z,J,H)}function Hq(b,z,Q,X,Z,J,H,Y,U,O){var N=!0,T=Zq(Q,X,N,b,Z,J,H,Y,U);T.context=Jq(null);var I=T.current,E=D6(),g=Xb(I),d=v7(E,g);return d.callback=z!==void 0&&z!==null?z:null,r7(I,d,g),Wv(T,g,E),T}function zQ(b,z,Q,X){DO(z,b);var Z=z.current,J=D6(),H=Xb(Z);bL(H);var Y=Jq(Q);if(z.context===null)z.context=Y;else z.pendingContext=Y;if(Kb&&v6!==null&&!nY)nY=!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.`,X1(v6)||"Unknown");var U=v7(J,H);if(U.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);U.callback=X}var O=r7(Z,U,H);if(O!==null)x4(O,Z,H,J),mX(O,Z,H);return H}function AZ(b){var z=b.current;if(!z.child)return null;switch(z.child.tag){case w:return w$(z.child.stateNode);default:return z.child.stateNode}}function UM(b){switch(b.tag){case k:{var z=b.stateNode;if(iQ(z)){var Q=GL(z);vv(z,Q)}break}case n:{w7(function(){var Z=d6(b,r0);if(Z!==null){var J=D6();x4(Z,b,r0,J)}});var X=r0;sY(b,X);break}}}function Yq(b,z){var Q=b.memoizedState;if(Q!==null&&Q.dehydrated!==null)Q.retryLane=LL(Q.retryLane,z)}function sY(b,z){Yq(b,z);var Q=b.alternate;if(Q)Yq(Q,z)}function qM(b){if(b.tag!==n)return;var z=c8,Q=d6(b,z);if(Q!==null){var X=D6();x4(Q,b,z,X)}sY(b,z)}function BM(b){if(b.tag!==n)return;var z=Xb(b),Q=d6(b,z);if(Q!==null){var X=D6();x4(Q,b,z,X)}sY(b,z)}function Gq(b){var z=wO(b);if(z===null)return null;return z.stateNode}var Kq=function(b){return null};function OM(b){return Kq(b)}var Uq=function(b){return!1};function LM(b){return Uq(b)}var qq=null,Bq=null,Oq=null,Lq=null,Nq=null,Wq=null,_q=null,Pq=null,Fq=null;{var vq=function(b,z,Q){var X=z[Q],Z=w1(b)?b.slice():J1({},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},Mq=function(b,z){return vq(b,z,0)},Rq=function(b,z,Q,X){var Z=z[X],J=w1(b)?b.slice():J1({},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},kq=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)},wq=function(b,z,Q,X){if(Q>=z.length)return X;var Z=z[Q],J=w1(b)?b.slice():J1({},b);return J[Z]=wq(b[Z],z,Q+1,X),J},Aq=function(b,z,Q){return wq(b,z,0,Q)},eY=function(b,z){var Q=b.memoizedState;while(Q!==null&&z>0)Q=Q.next,z--;return Q};qq=function(b,z,Q,X){var Z=eY(b,z);if(Z!==null){var J=Aq(Z.memoizedState,Q,X);Z.memoizedState=J,Z.baseState=J,b.memoizedProps=J1({},b.memoizedProps);var H=d6(b,r0);if(H!==null)x4(H,b,r0,$4)}},Bq=function(b,z,Q){var X=eY(b,z);if(X!==null){var Z=Mq(X.memoizedState,Q);X.memoizedState=Z,X.baseState=Z,b.memoizedProps=J1({},b.memoizedProps);var J=d6(b,r0);if(J!==null)x4(J,b,r0,$4)}},Oq=function(b,z,Q,X){var Z=eY(b,z);if(Z!==null){var J=kq(Z.memoizedState,Q,X);Z.memoizedState=J,Z.baseState=J,b.memoizedProps=J1({},b.memoizedProps);var H=d6(b,r0);if(H!==null)x4(H,b,r0,$4)}},Lq=function(b,z,Q){if(b.pendingProps=Aq(b.memoizedProps,z,Q),b.alternate)b.alternate.pendingProps=b.pendingProps;var X=d6(b,r0);if(X!==null)x4(X,b,r0,$4)},Nq=function(b,z){if(b.pendingProps=Mq(b.memoizedProps,z),b.alternate)b.alternate.pendingProps=b.pendingProps;var Q=d6(b,r0);if(Q!==null)x4(Q,b,r0,$4)},Wq=function(b,z,Q){if(b.pendingProps=kq(b.memoizedProps,z,Q),b.alternate)b.alternate.pendingProps=b.pendingProps;var X=d6(b,r0);if(X!==null)x4(X,b,r0,$4)},_q=function(b){var z=d6(b,r0);if(z!==null)x4(z,b,r0,$4)},Pq=function(b){Kq=b},Fq=function(b){Uq=b}}function NM(b){var z=b9(b);if(z===null)return null;return z.stateNode}function WM(b){return null}function _M(){return v6}function PM(b){var z=b.findFiberByHostInstance,Q=$.ReactCurrentDispatcher;return VO({bundleType:b.bundleType,version:b.version,rendererPackageName:b.rendererPackageName,rendererConfig:b.rendererConfig,overrideHookState:qq,overrideHookStateDeletePath:Bq,overrideHookStateRenamePath:Oq,overrideProps:Lq,overridePropsDeletePath:Nq,overridePropsRenamePath:Wq,setErrorHandler:Pq,setSuspenseHandler:Fq,scheduleUpdate:_q,currentDispatcherRef:Q,findHostInstanceByFiber:NM,findFiberByHostInstance:z||WM,findHostInstancesForRefresh:rv,scheduleRefresh:jv,scheduleRoot:pv,setRefreshHandler:xv,getCurrentFiber:_M,reconcilerVersion:rY})}var Iq=typeof reportError==="function"?reportError:function(b){console.error(b)};function bG(b){this._internalRoot=b}IZ.prototype.render=bG.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(fZ(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=Gq(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.")}}}zQ(b,z,null,null)},IZ.prototype.unmount=bG.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(y2())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.");w7(function(){zQ(null,b,null,null)}),wK(z)}};function FM(b,z){if(!fZ(b))throw Error("createRoot(...): Target container is not a DOM element.");fq(b);var Q=!1,X=!1,Z="",J=Iq,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=$q(b,FX,null,Q,X,Z,J);BX(Y.current,b);var U=b.nodeType===S4?b.parentNode:b;return Hz(U),new bG(Y)}function IZ(b){this._internalRoot=b}function vM(b){if(b)SL(b)}IZ.prototype.unstable_scheduleHydration=vM;function MM(b,z,Q){if(!fZ(b))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(fq(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="",U=Iq;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)U=Q.onRecoverableError}var O=Hq(z,null,b,FX,X,J,H,Y,U);if(BX(O.current,b),Hz(b),Z)for(var N=0;N<Z.length;N++){var T=Z[N];MP(O,T)}return new IZ(O)}function fZ(b){return!!(b&&(b.nodeType===y6||b.nodeType===Y7||b.nodeType===JJ||!i0))}function QQ(b){return!!(b&&(b.nodeType===y6||b.nodeType===Y7||b.nodeType===JJ||b.nodeType===S4&&b.nodeValue===" react-mount-point-unstable "))}function fq(b){{if(b.nodeType===y6&&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(_z(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 RM=$.ReactCurrentOwner,Tq;Tq=function(b){if(b._reactRootContainer&&b.nodeType!==S4){var z=Gq(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=zG(b),Z=!!(X&&i7(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===y6&&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 zG(b){if(!b)return null;if(b.nodeType===Y7)return b.documentElement;else return b.firstChild}function hq(){}function kM(b,z,Q,X,Z){if(Z){if(typeof X==="function"){var J=X;X=function(){var I=AZ(H);J.call(I)}}var H=Hq(z,X,b,x7,null,!1,!1,"",hq);b._reactRootContainer=H,BX(H.current,b);var Y=b.nodeType===S4?b.parentNode:b;return Hz(Y),w7(),H}else{var U;while(U=b.lastChild)b.removeChild(U);if(typeof X==="function"){var O=X;X=function(){var I=AZ(N);O.call(I)}}var N=$q(b,x7,null,!1,!1,"",hq);b._reactRootContainer=N,BX(N.current,b);var T=b.nodeType===S4?b.parentNode:b;return Hz(T),w7(function(){zQ(z,N,Q,X)}),N}}function wM(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 TZ(b,z,Q,X,Z){Tq(Q),wM(Z===void 0?null:Z,"render");var J=Q._reactRootContainer,H;if(!J)H=kM(Q,z,b,Z,X);else{if(H=J,typeof Z==="function"){var Y=Z;Z=function(){var U=AZ(H);Y.call(U)}}zQ(z,H,b,Z)}return AZ(H)}var Cq=!1;function AM(b){{if(!Cq)Cq=!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=RM.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.",v1(z.type)||"A component");z.stateNode._warnedAboutRefsInRender=!0}}if(b==null)return null;if(b.nodeType===y6)return b;return KM(b,"findDOMNode")}function IM(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"),!QQ(z))throw Error("Target container is not a DOM element.");{var X=_z(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 TZ(null,b,z,!0,Q)}function fM(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"),!QQ(z))throw Error("Target container is not a DOM element.");{var X=_z(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 TZ(null,b,z,!1,Q)}function TM(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"),!QQ(Q))throw Error("Target container is not a DOM element.");if(b==null||!_O(b))throw Error("parentComponent must be a valid React Component");return TZ(b,z,Q,!1,X)}var Sq=!1;function hM(b){if(!Sq)Sq=!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(!QQ(b))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var z=_z(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=zG(b),X=Q&&!i7(Q);if(X)G("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return w7(function(){TZ(null,null,b,!1,function(){b._reactRootContainer=null,wK(b)})}),!0}else{{var Z=zG(b),J=!!(Z&&i7(Z)),H=b.nodeType===y6&&QQ(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(ML(UM),kL(qM),wL(BM),AL(F5),IL(PL),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");HO(fW),KO(SY,Mv,w7);function CM(b,z){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!fZ(z))throw Error("Target container is not a DOM element.");return GM(b,z,null,Q)}function SM(b,z,Q,X){return TM(b,z,Q,X)}var QG={usingClientEntryPoint:!1,Events:[i7,w3,OX,aG,lG,SY]};function VM(b,z){if(!QG.usingClientEntryPoint)G('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return FM(b,z)}function DM(b,z,Q){if(!QG.usingClientEntryPoint)G('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return MM(b,z,Q)}function mM(b){if(y2())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 w7(b)}var uM=PM({findFiberByHostInstance:Ib,bundleType:1,version:rY,rendererPackageName:"react-dom"});if(!uM&&X4&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var Vq=window.location.protocol;if(/^(https?|file):$/.test(Vq))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(Vq==="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(oM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QG,oM.createPortal=CM,oM.createRoot=VM,oM.findDOMNode=AM,oM.flushSync=mM,oM.hydrate=IM,oM.hydrateRoot=DM,oM.render=fM,oM.unmountComponentAtNode=hM,oM.unstable_batchedUpdates=SY,oM.unstable_renderSubtreeIntoContainer=SM,oM.version=rY,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var gq=lb((YA,Eq)=>{var xM=H0(uq());Eq.exports=xM});var yq=lb((jM)=>{var t3=H0(gq());n3=t3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jM.createRoot=function($,K){n3.usingClientEntryPoint=!0;try{return t3.createRoot($,K)}finally{n3.usingClientEntryPoint=!1}},jM.hydrateRoot=function($,K,B){n3.usingClientEntryPoint=!0;try{return t3.hydrateRoot($,K,B)}finally{n3.usingClientEntryPoint=!1}};var n3});var U1=lb((pM)=>{var ZG=H0(m1());(function(){var $=Symbol.for("react.element"),K=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),v=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),c=Symbol.iterator,m="@@iterator";function x(M){if(M===null||typeof M!=="object")return null;var i=c&&M[c]||M[m];if(typeof i==="function")return i;return null}var D=ZG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(M){{for(var i=arguments.length,Q0=Array(i>1?i-1:0),W=1;W<i;W++)Q0[W-1]=arguments[W];G0("error",M,Q0)}}function G0(M,i,Q0){{var W=D.ReactDebugCurrentFrame,h=W.getStackAddendum();if(h!=="")i+="%s",Q0=Q0.concat([h]);var b0=Q0.map(function(Y0){return String(Y0)});b0.unshift("Warning: "+i),Function.prototype.apply.call(console[M],console,b0)}}var n=!1,Z0=!1,j=!1,a=!1,s=!1,W0;W0=Symbol.for("react.module.reference");function O0(M){if(typeof M==="string"||typeof M==="function")return!0;if(M===B||M===G||s||M===L||M===f||M===k||a||M===R||n||Z0||j)return!0;if(typeof M==="object"&&M!==null){if(M.$$typeof===w||M.$$typeof===P||M.$$typeof===F||M.$$typeof===v||M.$$typeof===_||M.$$typeof===W0||M.getModuleId!==void 0)return!0}return!1}function _0(M,i,Q0){var W=M.displayName;if(W)return W;var h=i.displayName||i.name||"";return h!==""?Q0+"("+h+")":Q0}function p(M){return M.displayName||"Context"}function e(M){if(M==null)return null;if(typeof M.tag==="number")C("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 K:return"Portal";case G:return"Profiler";case L:return"StrictMode";case f:return"Suspense";case k:return"SuspenseList"}if(typeof M==="object")switch(M.$$typeof){case v:var i=M;return p(i)+".Consumer";case F:var Q0=M;return p(Q0._context)+".Provider";case _:return _0(M,M.render,"ForwardRef");case P:var W=M.displayName||null;if(W!==null)return W;return e(M.type)||"Memo";case w:{var h=M,b0=h._payload,Y0=h._init;try{return e(Y0(b0))}catch(L0){return null}}}return null}var J0=Object.assign,P0=0,I0,f0,H1,s0,O1,i0,Y1;function C1(){}C1.__reactDisabledLog=!0;function W4(){{if(P0===0){I0=console.log,f0=console.info,H1=console.warn,s0=console.error,O1=console.group,i0=console.groupCollapsed,Y1=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})}P0++}}function H4(){{if(P0--,P0===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J0({},M,{value:I0}),info:J0({},M,{value:f0}),warn:J0({},M,{value:H1}),error:J0({},M,{value:s0}),group:J0({},M,{value:O1}),groupCollapsed:J0({},M,{value:i0}),groupEnd:J0({},M,{value:Y1})})}if(P0<0)C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q4=D.ReactCurrentDispatcher,_4;function a1(M,i,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 u4=typeof WeakMap==="function"?WeakMap:Map;Y4=new u4}function X4(M,i){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 b0;b0=Q4.current,Q4.current=null,W4();try{if(i){var Y0=function(){throw Error()};if(Object.defineProperty(Y0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(Y0,[])}catch(D1){W=D1}Reflect.construct(M,[],Y0)}else{try{Y0.call()}catch(D1){W=D1}M.call(Y0.prototype)}}else{try{throw Error()}catch(D1){W=D1}M()}}catch(D1){if(D1&&W&&typeof D1.stack==="string"){var L0=D1.stack.split(`
147
+ `),V0=W.stack.split(`
148
+ `),A0=L0.length-1,z0=V0.length-1;while(A0>=1&&z0>=0&&L0[A0]!==V0[z0])z0--;for(;A0>=1&&z0>=0;A0--,z0--)if(L0[A0]!==V0[z0]){if(A0!==1||z0!==1)do if(A0--,z0--,z0<0||L0[A0]!==V0[z0]){var U0=`
149
+ `+L0[A0].replace(" at new "," at ");if(M.displayName&&U0.includes("<anonymous>"))U0=U0.replace("<anonymous>",M.displayName);if(typeof M==="function")Y4.set(M,U0);return U0}while(A0>=1&&z0>=0);break}}}finally{i1=!1,Q4.current=b0,H4(),Error.prepareStackTrace=h}var m0=M?M.displayName||M.name:"",B1=m0?a1(m0):"";if(typeof M==="function")Y4.set(M,B1);return B1}function E4(M,i,Q0){return X4(M,!1)}function g4(M){var i=M.prototype;return!!(i&&i.isReactComponent)}function o1(M,i,Q0){if(M==null)return"";if(typeof M==="function")return X4(M,g4(M));if(typeof M==="string")return a1(M);switch(M){case f:return a1("Suspense");case k:return a1("SuspenseList")}if(typeof M==="object")switch(M.$$typeof){case _:return E4(M.render);case P:return o1(M.type,i,Q0);case w:{var W=M,h=W._payload,b0=W._init;try{return o1(b0(h),i,Q0)}catch(Y0){}}}return""}var e0=Object.prototype.hasOwnProperty,h4={},I4=D.ReactDebugCurrentFrame;function G4(M){if(M){var i=M._owner,Q0=o1(M.type,M._source,i?i.type:null);I4.setExtraStackFrame(Q0)}else I4.setExtraStackFrame(null)}function O4(M,i,Q0,W,h){{var b0=Function.call.bind(e0);for(var Y0 in M)if(b0(M,Y0)){var L0=void 0;try{if(typeof M[Y0]!=="function"){var V0=Error((W||"React class")+": "+Q0+" type `"+Y0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[Y0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V0.name="Invariant Violation",V0}L0=M[Y0](i,Y0,W,Q0,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A0){L0=A0}if(L0&&!(L0 instanceof Error))G4(h),C("%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,Y0,typeof L0),G4(null);if(L0 instanceof Error&&!(L0.message in h4))h4[L0.message]=!0,G4(h),C("Failed %s type: %s",Q0,L0.message),G4(null)}}}var L5=Array.isArray;function r1(M){return L5(M)}function Z6(M){{var i=typeof Symbol==="function"&&Symbol.toStringTag,Q0=i&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Q0}}function n1(M){try{return J6(M),!1}catch(i){return!0}}function J6(M){return""+M}function Z4(M){if(n1(M))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Z6(M)),J6(M)}var K4=D.ReactCurrentOwner,r4={key:!0,ref:!0,__self:!0,__source:!0},P6,v4,C4;C4={};function q0(M){if(e0.call(M,"ref")){var i=Object.getOwnPropertyDescriptor(M,"ref").get;if(i&&i.isReactWarning)return!1}return M.ref!==void 0}function E0(M){if(e0.call(M,"key")){var i=Object.getOwnPropertyDescriptor(M,"key").get;if(i&&i.isReactWarning)return!1}return M.key!==void 0}function d0(M,i){if(typeof M.ref==="string"&&K4.current&&i&&K4.current.stateNode!==i){var Q0=e(K4.current.type);if(!C4[Q0])C('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',e(K4.current.type),M.ref),C4[Q0]=!0}}function P1(M,i){{var Q0=function(){if(!P6)P6=!0,C("%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)",i)};Q0.isReactWarning=!0,Object.defineProperty(M,"key",{get:Q0,configurable:!0})}}function S1(M,i){{var Q0=function(){if(!v4)v4=!0,C("%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)",i)};Q0.isReactWarning=!0,Object.defineProperty(M,"ref",{get:Q0,configurable:!0})}}var L4=function(M,i,Q0,W,h,b0,Y0){var L0={$$typeof:$,type:M,key:i,ref:Q0,props:Y0,_owner:b0};if(L0._store={},Object.defineProperty(L0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(L0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze)Object.freeze(L0.props),Object.freeze(L0);return L0};function l1(M,i,Q0,W,h){{var b0,Y0={},L0=null,V0=null;if(Q0!==void 0)Z4(Q0),L0=""+Q0;if(E0(i))Z4(i.key),L0=""+i.key;if(q0(i))V0=i.ref,d0(i,h);for(b0 in i)if(e0.call(i,b0)&&!r4.hasOwnProperty(b0))Y0[b0]=i[b0];if(M&&M.defaultProps){var A0=M.defaultProps;for(b0 in A0)if(Y0[b0]===void 0)Y0[b0]=A0[b0]}if(L0||V0){var z0=typeof M==="function"?M.displayName||M.name||"Unknown":M;if(L0)P1(Y0,z0);if(V0)S1(Y0,z0)}return L4(M,L0,V0,h,W,K4.current,Y0)}}var{ReactCurrentOwner:f4,ReactDebugCurrentFrame:Q1}=D;function b1(M){if(M){var i=M._owner,Q0=o1(M.type,M._source,i?i.type:null);Q1.setExtraStackFrame(Q0)}else Q1.setExtraStackFrame(null)}var I6=!1;function n4(M){return typeof M==="object"&&M!==null&&M.$$typeof===$}function f6(){{if(f4.current){var M=e(f4.current.type);if(M)return`
150
+
151
+ Check the render method of \``+M+"`."}return""}}function g5(M){{if(M!==void 0){var i=M.fileName.replace(/^.*[\\\/]/,""),Q0=M.lineNumber;return`
152
+
153
+ Check your code at `+i+":"+Q0+"."}return""}}var N5={};function y5(M){{var i=f6();if(!i){var Q0=typeof M==="string"?M:M.displayName||M.name;if(Q0)i=`
154
+
155
+ Check the top-level render call using <`+Q0+">."}return i}}function X5(M,i){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var Q0=y5(i);if(N5[Q0])return;N5[Q0]=!0;var W="";if(M&&M._owner&&M._owner!==f4.current)W=" It was passed a child from "+e(M._owner.type)+".";b1(M),C('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),b1(null)}}function F6(M,i){{if(typeof M!=="object")return;if(r1(M))for(var Q0=0;Q0<M.length;Q0++){var W=M[Q0];if(n4(W))X5(W,i)}else if(n4(M)){if(M._store)M._store.validated=!0}else if(M){var h=x(M);if(typeof h==="function"){if(h!==M.entries){var b0=h.call(M),Y0;while(!(Y0=b0.next()).done)if(n4(Y0.value))X5(Y0.value,i)}}}}}function W5(M){{var i=M.type;if(i===null||i===void 0||typeof i==="string")return;var Q0;if(typeof i==="function")Q0=i.propTypes;else if(typeof i==="object"&&(i.$$typeof===_||i.$$typeof===P))Q0=i.propTypes;else return;if(Q0){var W=e(i);O4(Q0,M.props,"prop",W,M)}else if(i.PropTypes!==void 0&&!I6){I6=!0;var h=e(i);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}if(typeof i.getDefaultProps==="function"&&!i.getDefaultProps.isReactClassApproved)C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function q1(M){{var i=Object.keys(M.props);for(var Q0=0;Q0<i.length;Q0++){var W=i[Q0];if(W!=="children"&&W!=="key"){b1(M),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),b1(null);break}}if(M.ref!==null)b1(M),C("Invalid attribute `ref` supplied to `React.Fragment`."),b1(null)}}var V1={};function x1(M,i,Q0,W,h,b0){{var Y0=O0(M);if(!Y0){var L0="";if(M===void 0||typeof M==="object"&&M!==null&&Object.keys(M).length===0)L0+=" 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 V0=g5(h);if(V0)L0+=V0;else L0+=f6();var A0;if(M===null)A0="null";else if(r1(M))A0="array";else if(M!==void 0&&M.$$typeof===$)A0="<"+(e(M.type)||"Unknown")+" />",L0=" Did you accidentally export a JSX literal instead of a component?";else A0=typeof M;C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A0,L0)}var z0=l1(M,i,Q0,h,b0);if(z0==null)return z0;if(Y0){var U0=i.children;if(U0!==void 0)if(W)if(r1(U0)){for(var m0=0;m0<U0.length;m0++)F6(U0[m0],M);if(Object.freeze)Object.freeze(U0)}else C("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 F6(U0,M)}if(e0.call(i,"key")){var B1=e(M),D1=Object.keys(i).filter(function(J4){return J4!=="key"}),T6=D1.length>0?"{key: someKey, "+D1.join(": ..., ")+": ...}":"{key: someKey}";if(!V1[B1+T6]){var x6=D1.length>0?"{"+D1.join(": ..., ")+": ...}":"{}";C(`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} />`,T6,B1,x6,B1),V1[B1+T6]=!0}}if(M===B)q1(z0);else W5(z0);return z0}}var M1=x1;pM.Fragment=B,pM.jsxDEV=M1})()});var z4=lb((cR)=>{var OG=H0(m1());(function(){var $=Symbol.for("react.element"),K=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),v=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),c=Symbol.iterator,m="@@iterator";function x(W){if(W===null||typeof W!=="object")return null;var h=c&&W[c]||W[m];if(typeof h==="function")return h;return null}var D=OG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(W){{for(var h=arguments.length,b0=Array(h>1?h-1:0),Y0=1;Y0<h;Y0++)b0[Y0-1]=arguments[Y0];G0("error",W,b0)}}function G0(W,h,b0){{var Y0=D.ReactDebugCurrentFrame,L0=Y0.getStackAddendum();if(L0!=="")h+="%s",b0=b0.concat([L0]);var V0=b0.map(function(A0){return String(A0)});V0.unshift("Warning: "+h),Function.prototype.apply.call(console[W],console,V0)}}var n=!1,Z0=!1,j=!1,a=!1,s=!1,W0;W0=Symbol.for("react.module.reference");function O0(W){if(typeof W==="string"||typeof W==="function")return!0;if(W===B||W===G||s||W===L||W===f||W===k||a||W===R||n||Z0||j)return!0;if(typeof W==="object"&&W!==null){if(W.$$typeof===w||W.$$typeof===P||W.$$typeof===F||W.$$typeof===v||W.$$typeof===_||W.$$typeof===W0||W.getModuleId!==void 0)return!0}return!1}function _0(W,h,b0){var Y0=W.displayName;if(Y0)return Y0;var L0=h.displayName||h.name||"";return L0!==""?b0+"("+L0+")":b0}function p(W){return W.displayName||"Context"}function e(W){if(W==null)return null;if(typeof W.tag==="number")C("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 K:return"Portal";case G:return"Profiler";case L:return"StrictMode";case f:return"Suspense";case k:return"SuspenseList"}if(typeof W==="object")switch(W.$$typeof){case v:var h=W;return p(h)+".Consumer";case F:var b0=W;return p(b0._context)+".Provider";case _:return _0(W,W.render,"ForwardRef");case P:var Y0=W.displayName||null;if(Y0!==null)return Y0;return e(W.type)||"Memo";case w:{var L0=W,V0=L0._payload,A0=L0._init;try{return e(A0(V0))}catch(z0){return null}}}return null}var J0=Object.assign,P0=0,I0,f0,H1,s0,O1,i0,Y1;function C1(){}C1.__reactDisabledLog=!0;function W4(){{if(P0===0){I0=console.log,f0=console.info,H1=console.warn,s0=console.error,O1=console.group,i0=console.groupCollapsed,Y1=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})}P0++}}function H4(){{if(P0--,P0===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J0({},W,{value:I0}),info:J0({},W,{value:f0}),warn:J0({},W,{value:H1}),error:J0({},W,{value:s0}),group:J0({},W,{value:O1}),groupCollapsed:J0({},W,{value:i0}),groupEnd:J0({},W,{value:Y1})})}if(P0<0)C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q4=D.ReactCurrentDispatcher,_4;function a1(W,h,b0){{if(_4===void 0)try{throw Error()}catch(L0){var Y0=L0.stack.trim().match(/\n( *(at )?)/);_4=Y0&&Y0[1]||""}return`
161
+ `+_4+W}}var i1=!1,Y4;{var u4=typeof WeakMap==="function"?WeakMap:Map;Y4=new u4}function X4(W,h){if(!W||i1)return"";{var b0=Y4.get(W);if(b0!==void 0)return b0}var Y0;i1=!0;var L0=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V0;V0=Q4.current,Q4.current=null,W4();try{if(h){var A0=function(){throw Error()};if(Object.defineProperty(A0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(A0,[])}catch(J4){Y0=J4}Reflect.construct(W,[],A0)}else{try{A0.call()}catch(J4){Y0=J4}W.call(A0.prototype)}}else{try{throw Error()}catch(J4){Y0=J4}W()}}catch(J4){if(J4&&Y0&&typeof J4.stack==="string"){var z0=J4.stack.split(`
162
+ `),U0=Y0.stack.split(`
163
+ `),m0=z0.length-1,B1=U0.length-1;while(m0>=1&&B1>=0&&z0[m0]!==U0[B1])B1--;for(;m0>=1&&B1>=0;m0--,B1--)if(z0[m0]!==U0[B1]){if(m0!==1||B1!==1)do if(m0--,B1--,B1<0||z0[m0]!==U0[B1]){var D1=`
164
+ `+z0[m0].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(m0>=1&&B1>=0);break}}}finally{i1=!1,Q4.current=V0,H4(),Error.prepareStackTrace=L0}var T6=W?W.displayName||W.name:"",x6=T6?a1(T6):"";if(typeof W==="function")Y4.set(W,x6);return x6}function E4(W,h,b0){return X4(W,!1)}function g4(W){var h=W.prototype;return!!(h&&h.isReactComponent)}function o1(W,h,b0){if(W==null)return"";if(typeof W==="function")return X4(W,g4(W));if(typeof W==="string")return a1(W);switch(W){case f:return a1("Suspense");case k:return a1("SuspenseList")}if(typeof W==="object")switch(W.$$typeof){case _:return E4(W.render);case P:return o1(W.type,h,b0);case w:{var Y0=W,L0=Y0._payload,V0=Y0._init;try{return o1(V0(L0),h,b0)}catch(A0){}}}return""}var e0=Object.prototype.hasOwnProperty,h4={},I4=D.ReactDebugCurrentFrame;function G4(W){if(W){var h=W._owner,b0=o1(W.type,W._source,h?h.type:null);I4.setExtraStackFrame(b0)}else I4.setExtraStackFrame(null)}function O4(W,h,b0,Y0,L0){{var V0=Function.call.bind(e0);for(var A0 in W)if(V0(W,A0)){var z0=void 0;try{if(typeof W[A0]!=="function"){var U0=Error((Y0||"React class")+": "+b0+" type `"+A0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof W[A0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U0.name="Invariant Violation",U0}z0=W[A0](h,A0,Y0,b0,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m0){z0=m0}if(z0&&!(z0 instanceof Error))G4(L0),C("%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).",Y0||"React class",b0,A0,typeof z0),G4(null);if(z0 instanceof Error&&!(z0.message in h4))h4[z0.message]=!0,G4(L0),C("Failed %s type: %s",b0,z0.message),G4(null)}}}var L5=Array.isArray;function r1(W){return L5(W)}function Z6(W){{var h=typeof Symbol==="function"&&Symbol.toStringTag,b0=h&&W[Symbol.toStringTag]||W.constructor.name||"Object";return b0}}function n1(W){try{return J6(W),!1}catch(h){return!0}}function J6(W){return""+W}function Z4(W){if(n1(W))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Z6(W)),J6(W)}var K4=D.ReactCurrentOwner,r4={key:!0,ref:!0,__self:!0,__source:!0},P6,v4,C4;C4={};function q0(W){if(e0.call(W,"ref")){var h=Object.getOwnPropertyDescriptor(W,"ref").get;if(h&&h.isReactWarning)return!1}return W.ref!==void 0}function E0(W){if(e0.call(W,"key")){var h=Object.getOwnPropertyDescriptor(W,"key").get;if(h&&h.isReactWarning)return!1}return W.key!==void 0}function d0(W,h){if(typeof W.ref==="string"&&K4.current&&h&&K4.current.stateNode!==h){var b0=e(K4.current.type);if(!C4[b0])C('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',e(K4.current.type),W.ref),C4[b0]=!0}}function P1(W,h){{var b0=function(){if(!P6)P6=!0,C("%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)};b0.isReactWarning=!0,Object.defineProperty(W,"key",{get:b0,configurable:!0})}}function S1(W,h){{var b0=function(){if(!v4)v4=!0,C("%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)};b0.isReactWarning=!0,Object.defineProperty(W,"ref",{get:b0,configurable:!0})}}var L4=function(W,h,b0,Y0,L0,V0,A0){var z0={$$typeof:$,type:W,key:h,ref:b0,props:A0,_owner:V0};if(z0._store={},Object.defineProperty(z0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y0}),Object.defineProperty(z0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:L0}),Object.freeze)Object.freeze(z0.props),Object.freeze(z0);return z0};function l1(W,h,b0,Y0,L0){{var V0,A0={},z0=null,U0=null;if(b0!==void 0)Z4(b0),z0=""+b0;if(E0(h))Z4(h.key),z0=""+h.key;if(q0(h))U0=h.ref,d0(h,L0);for(V0 in h)if(e0.call(h,V0)&&!r4.hasOwnProperty(V0))A0[V0]=h[V0];if(W&&W.defaultProps){var m0=W.defaultProps;for(V0 in m0)if(A0[V0]===void 0)A0[V0]=m0[V0]}if(z0||U0){var B1=typeof W==="function"?W.displayName||W.name||"Unknown":W;if(z0)P1(A0,B1);if(U0)S1(A0,B1)}return L4(W,z0,U0,L0,Y0,K4.current,A0)}}var{ReactCurrentOwner:f4,ReactDebugCurrentFrame:Q1}=D;function b1(W){if(W){var h=W._owner,b0=o1(W.type,W._source,h?h.type:null);Q1.setExtraStackFrame(b0)}else Q1.setExtraStackFrame(null)}var I6=!1;function n4(W){return typeof W==="object"&&W!==null&&W.$$typeof===$}function f6(){{if(f4.current){var W=e(f4.current.type);if(W)return`
165
+
166
+ Check the render method of \``+W+"`."}return""}}function g5(W){{if(W!==void 0){var h=W.fileName.replace(/^.*[\\\/]/,""),b0=W.lineNumber;return`
167
+
168
+ Check your code at `+h+":"+b0+"."}return""}}var N5={};function y5(W){{var h=f6();if(!h){var b0=typeof W==="string"?W:W.displayName||W.name;if(b0)h=`
169
+
170
+ Check the top-level render call using <`+b0+">."}return h}}function X5(W,h){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var b0=y5(h);if(N5[b0])return;N5[b0]=!0;var Y0="";if(W&&W._owner&&W._owner!==f4.current)Y0=" It was passed a child from "+e(W._owner.type)+".";b1(W),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b0,Y0),b1(null)}}function F6(W,h){{if(typeof W!=="object")return;if(r1(W))for(var b0=0;b0<W.length;b0++){var Y0=W[b0];if(n4(Y0))X5(Y0,h)}else if(n4(W)){if(W._store)W._store.validated=!0}else if(W){var L0=x(W);if(typeof L0==="function"){if(L0!==W.entries){var V0=L0.call(W),A0;while(!(A0=V0.next()).done)if(n4(A0.value))X5(A0.value,h)}}}}}function W5(W){{var h=W.type;if(h===null||h===void 0||typeof h==="string")return;var b0;if(typeof h==="function")b0=h.propTypes;else if(typeof h==="object"&&(h.$$typeof===_||h.$$typeof===P))b0=h.propTypes;else return;if(b0){var Y0=e(h);O4(b0,W.props,"prop",Y0,W)}else if(h.PropTypes!==void 0&&!I6){I6=!0;var L0=e(h);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",L0||"Unknown")}if(typeof h.getDefaultProps==="function"&&!h.getDefaultProps.isReactClassApproved)C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function q1(W){{var h=Object.keys(W.props);for(var b0=0;b0<h.length;b0++){var Y0=h[b0];if(Y0!=="children"&&Y0!=="key"){b1(W),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y0),b1(null);break}}if(W.ref!==null)b1(W),C("Invalid attribute `ref` supplied to `React.Fragment`."),b1(null)}}var V1={};function x1(W,h,b0,Y0,L0,V0){{var A0=O0(W);if(!A0){var z0="";if(W===void 0||typeof W==="object"&&W!==null&&Object.keys(W).length===0)z0+=" 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 U0=g5(L0);if(U0)z0+=U0;else z0+=f6();var m0;if(W===null)m0="null";else if(r1(W))m0="array";else if(W!==void 0&&W.$$typeof===$)m0="<"+(e(W.type)||"Unknown")+" />",z0=" Did you accidentally export a JSX literal instead of a component?";else m0=typeof W;C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m0,z0)}var B1=l1(W,h,b0,L0,V0);if(B1==null)return B1;if(A0){var D1=h.children;if(D1!==void 0)if(Y0)if(r1(D1)){for(var T6=0;T6<D1.length;T6++)F6(D1[T6],W);if(Object.freeze)Object.freeze(D1)}else C("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 F6(D1,W)}if(e0.call(h,"key")){var x6=e(W),J4=Object.keys(h).filter(function(c5){return c5!=="key"}),J1=J4.length>0?"{key: someKey, "+J4.join(": ..., ")+": ...}":"{key: someKey}";if(!V1[x6+J1]){var X7=J4.length>0?"{"+J4.join(": ..., ")+": ...}":"{}";C(`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} />`,J1,x6,X7,x6),V1[x6+J1]=!0}}if(W===B)q1(B1);else W5(B1);return B1}}function M1(W,h,b0){return x1(W,h,b0,!0)}function M(W,h,b0){return x1(W,h,b0,!1)}var i=M,Q0=M1;cR.Fragment=B,cR.jsx=i,cR.jsxs=Q0})()});var E5=H0(m1(),1),_B=H0(yq(),1);var XG={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1};var j4=H0(m1(),1),dq=H0(U1(),1),cq=j4.createContext(null),rM=200;function JG({children:$}){let[K,B]=j4.useState(!1),[L,G]=j4.useState([]),[F,v]=j4.useState({}),[_,f]=j4.useState({}),k=j4.useRef(null),P=j4.useRef(null);j4.useEffect(()=>{let c=setInterval(()=>{let m=Date.now();f((x)=>{let D={};for(let[C,G0]of Object.entries(x))if(G0.expiresAt>m)D[C]=G0;return D})},500);return()=>clearInterval(c)},[]);let w=j4.useCallback(()=>{if(k.current)k.current.close(),k.current=null;try{let c=new EventSource("/api/telemetry/stream");k.current=c,c.onopen=()=>{B(!0)},c.onmessage=(m)=>{if(!m.data||m.data.trim()==="")return;try{let x=JSON.parse(m.data);if(x.connected){B(!0);return}if(Array.isArray(x))G((D)=>{return[...x,...D].slice(0,rM)}),v((D)=>{let C={...D};for(let G0 of x){let n=C[G0.agent_id];if(!n||new Date(G0.timestamp)>new Date(n.timestamp))C[G0.agent_id]={timestamp:G0.timestamp,category:G0.category,type:G0.type}}return C}),f((D)=>{let C={...D},G0=Date.now()+3000;for(let n of x)C[n.agent_id]={type:n.type,expiresAt:G0};return C})}catch{}},c.onerror=()=>{if(B(!1),c.close(),k.current=null,P.current)clearTimeout(P.current);P.current=setTimeout(w,2000)}}catch{if(B(!1),P.current)clearTimeout(P.current);P.current=setTimeout(w,2000)}},[]);j4.useEffect(()=>{return w(),()=>{if(k.current)k.current.close();if(P.current)clearTimeout(P.current)}},[w]);let R=j4.useCallback(()=>{G([])},[]);return dq.jsxDEV(cq.Provider,{value:{connected:K,events:L,lastActivityByAgent:F,activeAgents:_,clearEvents:R},children:$},void 0,!1,void 0,this)}function s3(){let $=j4.useContext(cq);if(!$)throw Error("useTelemetryContext must be used within TelemetryProvider");return $}function JQ($){let{activeAgents:K}=s3(),B=K[$];return{isActive:!!B,type:B?.type}}var ob=H0(m1(),1);function $G($){let[K,B]=ob.useState([]),[L,G]=ob.useState(!0),F=ob.useCallback(async()=>{let R=await(await fetch("/api/agents")).json();B(R.agents||[]),G(!1)},[]);ob.useEffect(()=>{if($)F()},[$,F]);let v=async(w)=>{await fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)}),await F()},_=async(w)=>{await fetch(`/api/agents/${w}`,{method:"DELETE"}),await F()},f=async(w,R)=>{let c=await fetch(`/api/agents/${w}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)}),m=await c.json();if(await F(),!c.ok&&m.error)return{error:m.error};return{}},k=async(w)=>{let R=w.status==="running"?"stop":"start",c=await fetch(`/api/agents/${w.id}/${R}`,{method:"POST"}),m=await c.json();if(await F(),!c.ok&&m.error)return{error:m.error};return{}},P=K.filter((w)=>w.status==="running").length;return{agents:K,loading:L,runningCount:P,fetchAgents:F,createAgent:v,updateAgent:f,deleteAgent:_,toggleAgent:k}}var e3=H0(m1(),1);function HG($){let[K,B]=e3.useState([]),L=e3.useCallback(async()=>{let f=await(await fetch("/api/providers")).json();B(f.providers||[])},[]);e3.useEffect(()=>{if($)L()},[$,L]);let G=K.filter((_)=>_.hasKey);return{providers:K,configuredProviders:G,fetchProviders:L,saveKey:async(_,f)=>{let P=await(await fetch(`/api/keys/${_}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:f})})).json();if(!P.valid)return{success:!1,error:P.error||"API key is invalid"};let w=await fetch(`/api/keys/${_}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:f})});if(!w.ok)return{success:!1,error:(await w.json()).error||"Failed to save key"};return await L(),{success:!0}},deleteKey:async(_)=>{await fetch(`/api/keys/${_}`,{method:"DELETE"}),await L()}}}var b8=H0(m1(),1);function YG(){let[$,K]=b8.useState(null);b8.useEffect(()=>{fetch("/api/onboarding/status").then((L)=>L.json()).then((L)=>{K(L.completed||L.has_any_keys)}).catch(()=>K(!0))},[]);let B=b8.useCallback(async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),K(!0)},[]);return{isComplete:$,setIsComplete:K,complete:B}}var $b=H0(U1(),1);function z8({message:$="Loading...",fullScreen:K=!1}){let B=$b.jsxDEV("div",{className:"flex items-center gap-3 text-[#666]",children:[$b.jsxDEV("svg",{className:"animate-spin h-5 w-5",viewBox:"0 0 24 24",children:[$b.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"},void 0,!1,void 0,this),$b.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),$b.jsxDEV("span",{children:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(K)return $b.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 $b.jsxDEV("div",{className:"flex items-center justify-center py-20",children:B},void 0,!1,void 0,this)}var GG=H0(U1(),1);function CZ({children:$,onClose:K}){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 Q8=H0(m1(),1),N6=H0(U1(),1);function q5({value:$,options:K,onChange:B,placeholder:L="Select..."}){let[G,F]=Q8.useState(!1),v=Q8.useRef(null),_=K.find((f)=>f.value===$);return Q8.useEffect(()=>{function f(k){if(v.current&&!v.current.contains(k.target))F(!1)}return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[]),N6.jsxDEV("div",{ref:v,className:"relative",children:[N6.jsxDEV("button",{type:"button",onClick:()=>F(!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:[N6.jsxDEV("span",{className:_?"text-[#e0e0e0]":"text-[#666]",children:_?N6.jsxDEV(N6.Fragment,{children:[_.label,_.recommended&&N6.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),N6.jsxDEV(nM,{isOpen:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G&&N6.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:K.map((f)=>N6.jsxDEV("button",{type:"button",onClick:()=>{B(f.value),F(!1)},className:`w-full px-3 py-2 text-left flex items-center justify-between hover:bg-[#1a1a1a] transition ${f.value===$?"bg-[#1a1a1a] text-[#f97316]":"text-[#e0e0e0]"}`,children:[N6.jsxDEV("span",{children:[f.label,f.recommended&&N6.jsxDEV("span",{className:"text-[#f97316] text-xs ml-2",children:"(Recommended)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f.value===$&&N6.jsxDEV("svg",{className:"w-4 h-4 text-[#f97316]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:N6.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)]},f.value,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nM({isOpen:$}){return N6.jsxDEV("svg",{className:`w-4 h-4 text-[#666] transition-transform ${$?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:N6.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=H0(U1(),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 X8({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 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:"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 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:"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 DZ({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 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:"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 rb({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 V5=H0(U1(),1);function mZ({onNewAgent:$,canCreateAgent:K}){let{connected:B}=s3();return V5.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-6 py-4 flex-shrink-0",children:V5.jsxDEV("div",{className:"flex items-center justify-between",children:[V5.jsxDEV("div",{className:"flex items-center gap-2",children:[V5.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV("div",{className:"flex items-center gap-4",children:[V5.jsxDEV("div",{className:"flex items-center gap-2",children:[V5.jsxDEV("span",{className:`w-2 h-2 rounded-full ${B?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"text-xs text-[#666]",children:B?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV("button",{onClick:$,disabled:!K,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,!0,void 0,this)},void 0,!1,void 0,this)}var W6=H0(U1(),1);function uZ({route:$,agentCount:K,taskCount:B,onNavigate:L}){return W6.jsxDEV("aside",{className:"w-56 border-r border-[#1a1a1a] flex-shrink-0 p-4",children:W6.jsxDEV("nav",{className:"space-y-1",children:[W6.jsxDEV(Z8,{icon:W6.jsxDEV(SZ,{},void 0,!1,void 0,this),label:"Dashboard",active:$==="dashboard",onClick:()=>L("dashboard")},void 0,!1,void 0,this),W6.jsxDEV(Z8,{icon:W6.jsxDEV(VZ,{},void 0,!1,void 0,this),label:"Agents",active:$==="agents",onClick:()=>L("agents"),badge:K>0?String(K):void 0},void 0,!1,void 0,this),W6.jsxDEV(Z8,{icon:W6.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),W6.jsxDEV(Z8,{icon:W6.jsxDEV(O5,{},void 0,!1,void 0,this),label:"MCP",active:$==="mcp",onClick:()=>L("mcp")},void 0,!1,void 0,this),W6.jsxDEV(Z8,{icon:W6.jsxDEV(KG,{},void 0,!1,void 0,this),label:"Telemetry",active:$==="telemetry",onClick:()=>L("telemetry")},void 0,!1,void 0,this),W6.jsxDEV(Z8,{icon:W6.jsxDEV(DZ,{},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 Z8({icon:$,label:K,active:B,onClick:L,badge:G}){return W6.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:[$,K,G&&W6.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 $Q=H0(U1(),1);function EZ({message:$,onDismiss:K}){return $Q.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:[$Q.jsxDEV("span",{children:$},void 0,!1,void 0,this),$Q.jsxDEV("button",{onClick:K,className:"hover:text-red-300",children:$Q.jsxDEV(X8,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var D5=H0(m1(),1);var u0=H0(U1(),1);function gZ({onComplete:$}){let[K,B]=D5.useState(1),[L,G]=D5.useState([]),[F,v]=D5.useState(null),[_,f]=D5.useState(""),[k,P]=D5.useState(!1),[w,R]=D5.useState(!1),[c,m]=D5.useState(null),[x,D]=D5.useState(null);D5.useEffect(()=>{fetch("/api/providers").then((Z0)=>Z0.json()).then((Z0)=>{let j=(Z0.providers||[]).filter((a)=>a.type==="llm");G(j)})},[]);let C=L.filter((Z0)=>Z0.hasKey),G0=async()=>{if(!F||!_)return;P(!0),m(null),D(null);try{R(!0);let j=await(await fetch(`/api/keys/${F}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:_})})).json();if(R(!1),!j.valid){m(j.error||"API key is invalid"),P(!1);return}let a=await fetch(`/api/keys/${F}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:_})}),s=await a.json();if(!a.ok)m(s.error||"Failed to save key");else{D("API key saved successfully!"),f("");let O0=await(await fetch("/api/providers")).json();G(O0.providers||[]),v(null)}}catch(Z0){m("Failed to save key")}P(!1)},n=async()=>{await fetch("/api/onboarding/complete",{method:"POST"}),$()};return u0.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:u0.jsxDEV("div",{className:"w-full max-w-2xl",children:[u0.jsxDEV("div",{className:"text-center mb-8",children:[u0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[u0.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),u0.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[u0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${K>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),u0.jsxDEV("div",{className:`w-16 h-0.5 ${K>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),u0.jsxDEV("div",{className:`w-3 h-3 rounded-full ${K>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u0.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[K===1&&u0.jsxDEV(tM,{providers:L,configuredProviders:C,selectedProvider:F,apiKey:_,saving:k,testing:w,error:c,success:x,onSelectProvider:v,onApiKeyChange:f,onSaveKey:G0,onContinue:()=>B(2)},void 0,!1,void 0,this),K===2&&u0.jsxDEV(eM,{configuredProviders:C,onAddMore:()=>B(1),onComplete:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function tM({providers:$,configuredProviders:K,selectedProvider:B,apiKey:L,saving:G,testing:F,error:v,success:_,onSelectProvider:f,onApiKeyChange:k,onSaveKey:P,onContinue:w}){let R=$.find((c)=>c.id===B);if(B&&R)return u0.jsxDEV(u0.Fragment,{children:[u0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",R.name," Key"]},void 0,!0,void 0,this),u0.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),u0.jsxDEV("div",{className:"mb-6",children:[u0.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:u0.jsxDEV("div",{className:"flex items-center justify-between",children:[u0.jsxDEV("div",{children:[u0.jsxDEV("p",{className:"font-medium",children:R.name},void 0,!1,void 0,this),u0.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),u0.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),u0.jsxDEV("div",{className:"space-y-3",children:[u0.jsxDEV("input",{type:"password",value:L,onChange:(c)=>k(c.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),v&&u0.jsxDEV("p",{className:"text-red-400 text-sm",children:v},void 0,!1,void 0,this),_&&u0.jsxDEV("p",{className:"text-green-400 text-sm",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),u0.jsxDEV("div",{className:"flex gap-3",children:[u0.jsxDEV("button",{onClick:()=>{f(null),k("")},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),u0.jsxDEV("button",{onClick:P,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:F?"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 u0.jsxDEV(u0.Fragment,{children:[u0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),u0.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),u0.jsxDEV("div",{className:"space-y-3 mb-6",children:$.map((c)=>u0.jsxDEV(sM,{provider:c,selected:!1,onSelect:()=>!c.hasKey&&f(c.id)},c.id,!1,void 0,this))},void 0,!1,void 0,this),u0.jsxDEV("button",{onClick:w,disabled:K.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:K.length===0?"Add at least one API key to continue":`Continue with ${K.length} provider${K.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sM({provider:$,selected:K,onSelect:B}){return u0.jsxDEV("div",{onClick:B,className:`p-4 rounded border transition cursor-pointer ${$.hasKey?"border-green-500/30 bg-green-500/5":K?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:u0.jsxDEV("div",{className:"flex items-center justify-between",children:[u0.jsxDEV("div",{children:[u0.jsxDEV("p",{className:"font-medium",children:$.name},void 0,!1,void 0,this),u0.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?u0.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[u0.jsxDEV(S5,{},void 0,!1,void 0,this),"Configured (",$.keyHint,")"]},void 0,!0,void 0,this):u0.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 eM({configuredProviders:$,onAddMore:K,onComplete:B}){return u0.jsxDEV(u0.Fragment,{children:[u0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),u0.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),u0.jsxDEV("div",{className:"space-y-2 mb-6",children:$.map((L)=>u0.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[u0.jsxDEV(S5,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),u0.jsxDEV("span",{children:L.name},void 0,!1,void 0,this),u0.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),u0.jsxDEV("div",{className:"flex gap-3",children:[u0.jsxDEV("button",{onClick:K,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),u0.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 w4=H0(m1(),1);var r=H0(U1(),1);function yZ(){let[$,K]=w4.useState("providers");return r.jsxDEV("div",{className:"flex-1 flex overflow-hidden",children:[r.jsxDEV("div",{className:"w-48 border-r border-[#1a1a1a] p-4",children:[r.jsxDEV("h2",{className:"text-sm font-medium text-[#666] uppercase tracking-wider mb-3",children:"Settings"},void 0,!1,void 0,this),r.jsxDEV("nav",{className:"space-y-1",children:[r.jsxDEV(UG,{label:"Providers",active:$==="providers",onClick:()=>K("providers")},void 0,!1,void 0,this),r.jsxDEV(UG,{label:"Updates",active:$==="updates",onClick:()=>K("updates")},void 0,!1,void 0,this),r.jsxDEV(UG,{label:"Data",active:$==="data",onClick:()=>K("data")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[$==="providers"&&r.jsxDEV(bR,{},void 0,!1,void 0,this),$==="updates"&&r.jsxDEV(zR,{},void 0,!1,void 0,this),$==="data"&&r.jsxDEV(ZR,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UG({label:$,active:K,onClick:B}){return r.jsxDEV("button",{onClick:B,className:`w-full text-left px-3 py-2 rounded text-sm transition ${K?"bg-[#1a1a1a] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:$},void 0,!1,void 0,this)}function bR(){let[$,K]=w4.useState([]),[B,L]=w4.useState(null),[G,F]=w4.useState(""),[v,_]=w4.useState(!1),[f,k]=w4.useState(!1),[P,w]=w4.useState(null),[R,c]=w4.useState(null),m=async()=>{let a=await(await fetch("/api/providers")).json();K(a.providers||[])};w4.useEffect(()=>{m()},[]);let x=async()=>{if(!B||!G)return;_(!0),w(null),c(null);try{k(!0);let a=await(await fetch(`/api/keys/${B}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})})).json();if(k(!1),!a.valid){w(a.error||"API key is invalid"),_(!1);return}let s=await fetch(`/api/keys/${B}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:G})});if(!s.ok){let W0=await s.json();w(W0.error||"Failed to save key")}else c("API key saved!"),F(""),L(null),m()}catch(j){w("Failed to save key")}_(!1)},D=async(j)=>{if(!confirm("Are you sure you want to remove this API key?"))return;await fetch(`/api/keys/${j}`,{method:"DELETE"}),m()},C=$.filter((j)=>j.type==="llm"),G0=$.filter((j)=>j.type==="integration"),n=C.filter((j)=>j.hasKey).length,Z0=G0.filter((j)=>j.hasKey).length;return r.jsxDEV("div",{className:"max-w-4xl space-y-10",children:[r.jsxDEV("div",{children:[r.jsxDEV("div",{className:"mb-6",children:[r.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"AI Providers"},void 0,!1,void 0,this),r.jsxDEV("p",{className:"text-[#666]",children:["Manage your API keys for AI providers. ",n," of ",C.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:C.map((j)=>r.jsxDEV(QR,{provider:j,isEditing:B===j.id,apiKey:G,saving:v,testing:f,error:B===j.id?P:null,success:B===j.id?R:null,onStartEdit:()=>{L(j.id),w(null),c(null)},onCancelEdit:()=>{L(null),F(""),w(null)},onApiKeyChange:F,onSave:x,onDelete:()=>D(j.id)},j.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV("div",{children:[r.jsxDEV("div",{className:"mb-6",children:[r.jsxDEV("h2",{className:"text-xl font-semibold mb-1",children:"MCP Integrations"},void 0,!1,void 0,this),r.jsxDEV("p",{className:"text-[#666]",children:["Connect to MCP gateways for tool integrations. ",Z0," of ",G0.length," configured."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2",children:G0.map((j)=>r.jsxDEV(XR,{provider:j,isEditing:B===j.id,apiKey:G,saving:v,testing:f,error:B===j.id?P:null,success:B===j.id?R:null,onStartEdit:()=>{L(j.id),w(null),c(null)},onCancelEdit:()=>{L(null),F(""),w(null)},onApiKeyChange:F,onSave:x,onDelete:()=>D(j.id)},j.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function zR(){let[$,K]=w4.useState(null),[B,L]=w4.useState(!1),[G,F]=w4.useState(!1),[v,_]=w4.useState(null),[f,k]=w4.useState(null),[P,w]=w4.useState(null),R=async()=>{L(!0),_(null);try{let D=await fetch("/api/version");if(!D.ok)throw Error("Failed to check for updates");let C=await D.json();K(C)}catch(D){_("Failed to check for updates")}L(!1)},c=async()=>{F(!0),_(null),k(null);try{let C=await(await fetch("/api/version/update",{method:"POST"})).json();if(!C.success)_(C.error||"Update failed");else k(`Agent updated to v${C.version}. New agents will use this version.`),await R()}catch(D){_("Failed to update agent")}F(!1)};w4.useEffect(()=>{R()},[]);let m=(D,C)=>{navigator.clipboard.writeText(D),w(C),setTimeout(()=>w(null),2000)},x=$?.apteva.updateAvailable||$?.agent.updateAvailable;return r.jsxDEV("div",{className:"max-w-2xl",children:[r.jsxDEV("div",{className:"mb-6",children:[r.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Updates"},void 0,!1,void 0,this),r.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&&!$?r.jsxDEV("div",{className:"text-[#666]",children:"Checking for updates..."},void 0,!1,void 0,this):v&&!$?r.jsxDEV("div",{className:"text-red-400",children:v},void 0,!1,void 0,this):$?r.jsxDEV("div",{className:"space-y-6",children:[f&&r.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4 text-green-400",children:f},void 0,!1,void 0,this),v&&r.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg p-4 text-red-400",children:v},void 0,!1,void 0,this),r.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-5",children:[r.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[r.jsxDEV("div",{children:[r.jsxDEV("h3",{className:"font-medium text-lg",children:"apteva"},void 0,!1,void 0,this),r.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),r.jsxDEV("div",{className:"text-right",children:[r.jsxDEV("div",{className:"text-xl font-mono",children:["v",$.apteva.installed||"?"]},void 0,!0,void 0,this),$.apteva.updateAvailable&&r.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?r.jsxDEV("div",{className:"bg-[#f97316]/10 border border-[#f97316]/30 rounded-lg p-4",children:[r.jsxDEV("p",{className:"text-sm text-[#888] mb-3",children:"Update by running:"},void 0,!1,void 0,this),r.jsxDEV("div",{className:"flex items-center gap-2",children:[r.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),r.jsxDEV("button",{onClick:()=>m("npx apteva@latest","apteva"),className:"px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] rounded text-sm",children:P==="apteva"?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):r.jsxDEV("div",{className:"flex items-center gap-2 text-green-400 text-sm",children:[r.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),r.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-5",children:[r.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[r.jsxDEV("div",{children:[r.jsxDEV("h3",{className:"font-medium text-lg",children:"Agent Binary"},void 0,!1,void 0,this),r.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),r.jsxDEV("div",{className:"text-right",children:[r.jsxDEV("div",{className:"text-xl font-mono",children:["v",$.agent.installed||"?"]},void 0,!0,void 0,this),$.agent.updateAvailable&&r.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?r.jsxDEV("div",{className:"bg-[#f97316]/10 border border-[#f97316]/30 rounded-lg p-4",children:[r.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),r.jsxDEV("div",{className:"flex items-center gap-2",children:r.jsxDEV("button",{onClick:c,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):r.jsxDEV("div",{className:"flex items-center gap-2 text-green-400 text-sm",children:[r.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),!x&&!f&&r.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:[r.jsxDEV(S5,{className:"w-5 h-5"},void 0,!1,void 0,this),"Everything is up to date!"]},void 0,!0,void 0,this),r.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 QR({provider:$,isEditing:K,apiKey:B,saving:L,testing:G,error:F,success:v,onStartEdit:_,onCancelEdit:f,onApiKeyChange:k,onSave:P,onDelete:w}){return r.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${$.hasKey?"border-green-500/20":"border-[#1a1a1a]"}`,children:[r.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[r.jsxDEV("div",{children:[r.jsxDEV("h3",{className:"font-medium",children:$.name},void 0,!1,void 0,this),r.jsxDEV("p",{className:"text-sm text-[#666]",children:[$.models.length," models"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$.hasKey?r.jsxDEV("span",{className:"text-green-400 text-xs flex items-center gap-1 bg-green-500/10 px-2 py-1 rounded",children:[r.jsxDEV(S5,{className:"w-3 h-3"},void 0,!1,void 0,this),$.keyHint]},void 0,!0,void 0,this):r.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?r.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[r.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),r.jsxDEV("button",{onClick:w,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):r.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:K?r.jsxDEV("div",{className:"space-y-3",children:[r.jsxDEV("input",{type:"password",value:B,onChange:(R)=>k(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),F&&r.jsxDEV("p",{className:"text-red-400 text-sm",children:F},void 0,!1,void 0,this),v&&r.jsxDEV("p",{className:"text-green-400 text-sm",children:v},void 0,!1,void 0,this),r.jsxDEV("div",{className:"flex gap-2",children:[r.jsxDEV("button",{onClick:f,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),r.jsxDEV("button",{onClick:P,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):r.jsxDEV("div",{className:"flex items-center justify-between",children:[r.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),r.jsxDEV("button",{onClick:_,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 XR({provider:$,isEditing:K,apiKey:B,saving:L,testing:G,error:F,success:v,onStartEdit:_,onCancelEdit:f,onApiKeyChange:k,onSave:P,onDelete:w}){return r.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 ${$.hasKey?"border-[#f97316]/20":"border-[#1a1a1a]"}`,children:[r.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[r.jsxDEV("div",{children:[r.jsxDEV("h3",{className:"font-medium",children:$.name},void 0,!1,void 0,this),r.jsxDEV("p",{className:"text-sm text-[#666]",children:$.description||"MCP integration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.hasKey?r.jsxDEV("span",{className:"text-[#f97316] text-xs flex items-center gap-1 bg-[#f97316]/10 px-2 py-1 rounded",children:[r.jsxDEV(S5,{className:"w-3 h-3"},void 0,!1,void 0,this),$.keyHint]},void 0,!0,void 0,this):r.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?r.jsxDEV("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-[#1a1a1a]",children:[r.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),r.jsxDEV("button",{onClick:w,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):r.jsxDEV("div",{className:"mt-3 pt-3 border-t border-[#1a1a1a]",children:K?r.jsxDEV("div",{className:"space-y-3",children:[r.jsxDEV("input",{type:"password",value:B,onChange:(R)=>k(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),F&&r.jsxDEV("p",{className:"text-red-400 text-sm",children:F},void 0,!1,void 0,this),v&&r.jsxDEV("p",{className:"text-green-400 text-sm",children:v},void 0,!1,void 0,this),r.jsxDEV("div",{className:"flex gap-2",children:[r.jsxDEV("button",{onClick:f,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),r.jsxDEV("button",{onClick:P,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):r.jsxDEV("div",{className:"flex items-center justify-between",children:[r.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),r.jsxDEV("button",{onClick:_,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 ZR(){let[$,K]=w4.useState(!1),[B,L]=w4.useState(null),[G,F]=w4.useState(null),v=async()=>{try{let k=await(await fetch("/api/telemetry/stats")).json();F(k.stats?.total_events||0)}catch{F(null)}};w4.useEffect(()=>{v()},[]);let _=async()=>{if(!confirm("Are you sure you want to delete all telemetry data? This cannot be undone."))return;K(!0),L(null);try{let f=await fetch("/api/telemetry/clear",{method:"POST"}),k=await f.json();if(f.ok)L({type:"success",text:`Cleared ${k.deleted||0} telemetry events.`}),F(0);else L({type:"error",text:k.error||"Failed to clear telemetry"})}catch{L({type:"error",text:"Failed to clear telemetry"})}K(!1)};return r.jsxDEV("div",{className:"max-w-2xl",children:[r.jsxDEV("div",{className:"mb-6",children:[r.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Data Management"},void 0,!1,void 0,this),r.jsxDEV("p",{className:"text-[#666]",children:"Manage stored data and telemetry."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4",children:[r.jsxDEV("h3",{className:"font-medium mb-2",children:"Telemetry Data"},void 0,!1,void 0,this),r.jsxDEV("p",{className:"text-sm text-[#666] mb-4",children:G!==null?`${G.toLocaleString()} events stored`:"Loading..."},void 0,!1,void 0,this),B&&r.jsxDEV("div",{className:`mb-4 p-3 rounded text-sm ${B.type==="success"?"bg-green-500/10 text-green-400 border border-green-500/30":"bg-red-500/10 text-red-400 border border-red-500/30"}`,children:B.text},void 0,!1,void 0,this),r.jsxDEV("button",{onClick:_,disabled:$||G===0,className:"px-4 py-2 bg-red-500/20 text-red-400 hover:bg-red-500/30 disabled:opacity-50 disabled:cursor-not-allowed rounded text-sm font-medium transition",children:$?"Clearing...":"Clear All Telemetry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var m4=H0(U1(),1),JR=[{key:"memory",icon:xb,label:"Memory"},{key:"tasks",icon:B5,label:"Tasks"},{key:"vision",icon:jb,label:"Vision"},{key:"operator",icon:pb,label:"Operator"},{key:"mcp",icon:O5,label:"MCP"},{key:"realtime",icon:rb,label:"Realtime"}];function cZ({agent:$,selected:K,onSelect:B,onToggle:L,onDelete:G}){let F=JR.filter((k)=>$.features?.[k.key]),v=$.mcpServerDetails||[],{isActive:_,type:f}=JQ($.id);return m4.jsxDEV("div",{onClick:B,className:`bg-[#111] rounded p-5 border transition cursor-pointer ${K?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[m4.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[m4.jsxDEV("div",{children:[m4.jsxDEV("h3",{className:"font-semibold text-lg",children:$.name},void 0,!1,void 0,this),m4.jsxDEV("p",{className:"text-sm text-[#666]",children:[$.provider," / ",$.model,$.port&&m4.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),m4.jsxDEV($R,{status:$.status,isActive:_&&$.status==="running",activityType:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.length>0&&m4.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:F.map(({key:k,icon:P,label:w})=>m4.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[#f97316]/10 text-[#f97316]/70 text-xs",title:w,children:[m4.jsxDEV(P,{className:"w-3 h-3"},void 0,!1,void 0,this),w]},k,!0,void 0,this))},void 0,!1,void 0,this),v.length>0&&m4.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:v.map((k)=>m4.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${k.status==="running"?"bg-green-500/10 text-green-400":"bg-[#222] text-[#666]"}`,title:`MCP: ${k.name} (${k.status})`,children:[m4.jsxDEV(O5,{className:"w-3 h-3"},void 0,!1,void 0,this),k.name]},k.id,!0,void 0,this))},void 0,!1,void 0,this),m4.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4",children:$.systemPrompt},void 0,!1,void 0,this),m4.jsxDEV("div",{className:"flex gap-2",children:[m4.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),m4.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 $R({status:$,isActive:K,activityType:B}){if($==="running"&&K&&B)return m4.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 m4.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=H0(U1(),1),HR=[{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:pb},{key:"mcp",label:"MCP",description:"External tools/services",icon:O5},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:rb}];function dZ({form:$,providers:K,configuredProviders:B,onFormChange:L,onProviderChange:G,onCreate:F,onClose:v,onGoToSettings:_}){let f=K.find((R)=>R.id===$.provider),k=B.map((R)=>({value:R.id,label:R.name})),P=f?.models.map((R)=>({value:R.value,label:R.label,recommended:R.recommended}))||[],w=(R)=>{L({...$,features:{...$.features,[R]:!$.features[R]}})};return u1.jsxDEV(CZ,{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(YR,{onGoToSettings:_},void 0,!1,void 0,this):u1.jsxDEV(u1.Fragment,{children:[u1.jsxDEV("div",{className:"space-y-4",children:[u1.jsxDEV(HQ,{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(HQ,{label:"Provider",children:u1.jsxDEV(q5,{value:$.provider,options:k,onChange:G,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),u1.jsxDEV(HQ,{label:"Model",children:u1.jsxDEV(q5,{value:$.model,options:P,onChange:(R)=>L({...$,model:R}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),u1.jsxDEV(HQ,{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(HQ,{label:"Features",children:u1.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:HR.map(({key:R,label:c,description:m,icon:x})=>u1.jsxDEV("button",{type:"button",onClick:()=>w(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(x,{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:c},void 0,!1,void 0,this),u1.jsxDEV("div",{className:"text-xs text-[#666]",children:m},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:v,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:F,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 HQ({label:$,children:K}){return u1.jsxDEV("div",{children:[u1.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:$},void 0,!1,void 0,this),K]},void 0,!0,void 0,this)}function YR({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 Q7=H0(m1(),1);var h1=H0(m1(),1),Y8=H0(m1(),1),tb=H0(m1(),1);function aq($){var K,B,L="";if(typeof $=="string"||typeof $=="number")L+=$;else if(typeof $=="object")if(Array.isArray($)){var G=$.length;for(K=0;K<G;K++)$[K]&&(B=aq($[K]))&&(L&&(L+=" "),L+=B)}else for(B in $)$[B]&&(L&&(L+=" "),L+=B);return L}function lq(){for(var $,K,B=0,L="",G=arguments.length;B<G;B++)($=arguments[B])&&(K=aq($))&&(L&&(L+=" "),L+=K);return L}var GR=($)=>{let K=UR($),{conflictingClassGroups:B,conflictingClassGroupModifiers:L}=$;return{getClassGroupId:(v)=>{let _=v.split("-");if(_[0]===""&&_.length!==1)_.shift();return xq(_,K)||KR(v)},getConflictingClassGroupIds:(v,_)=>{let f=B[v]||[];if(_&&L[v])return[...f,...L[v]];return f}}},xq=($,K)=>{if($.length===0)return K.classGroupId;let B=$[0],L=K.nextPart.get(B),G=L?xq($.slice(1),L):void 0;if(G)return G;if(K.validators.length===0)return;let F=$.join("-");return K.validators.find(({validator:v})=>v(F))?.classGroupId},iq=/^\[(.+)\]$/,KR=($)=>{if(iq.test($)){let K=iq.exec($)[1],B=K?.substring(0,K.indexOf(":"));if(B)return"arbitrary.."+B}},UR=($)=>{let{theme:K,prefix:B}=$,L={nextPart:new Map,validators:[]};return BR(Object.entries($.classGroups),B).forEach(([F,v])=>{BG(v,L,F,K)}),L},BG=($,K,B,L)=>{$.forEach((G)=>{if(typeof G==="string"){let F=G===""?K:oq(K,G);F.classGroupId=B;return}if(typeof G==="function"){if(qR(G)){BG(G(L),K,B,L);return}K.validators.push({validator:G,classGroupId:B});return}Object.entries(G).forEach(([F,v])=>{BG(v,oq(K,F),B,L)})})},oq=($,K)=>{let B=$;return K.split("-").forEach((L)=>{if(!B.nextPart.has(L))B.nextPart.set(L,{nextPart:new Map,validators:[]});B=B.nextPart.get(L)}),B},qR=($)=>$.isThemeGetter,BR=($,K)=>{if(!K)return $;return $.map(([B,L])=>{let G=L.map((F)=>{if(typeof F==="string")return K+F;if(typeof F==="object")return Object.fromEntries(Object.entries(F).map(([v,_])=>[K+v,_]));return F});return[B,G]})},OR=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let K=0,B=new Map,L=new Map,G=(F,v)=>{if(B.set(F,v),K++,K>$)K=0,L=B,B=new Map};return{get(F){let v=B.get(F);if(v!==void 0)return v;if((v=L.get(F))!==void 0)return G(F,v),v},set(F,v){if(B.has(F))B.set(F,v);else G(F,v)}}};var LR=($)=>{let{separator:K,experimentalParseClassName:B}=$,L=K.length===1,G=K[0],F=K.length,v=(_)=>{let f=[],k=0,P=0,w;for(let D=0;D<_.length;D++){let C=_[D];if(k===0){if(C===G&&(L||_.slice(D,D+F)===K)){f.push(_.slice(P,D)),P=D+F;continue}if(C==="/"){w=D;continue}}if(C==="[")k++;else if(C==="]")k--}let R=f.length===0?_:_.substring(P),c=R.startsWith("!"),m=c?R.substring(1):R,x=w&&w>P?w-P:void 0;return{modifiers:f,hasImportantModifier:c,baseClassName:m,maybePostfixModifierPosition:x}};if(B)return(_)=>B({className:_,parseClassName:v});return v},NR=($)=>{if($.length<=1)return $;let K=[],B=[];return $.forEach((L)=>{if(L[0]==="[")K.push(...B.sort(),L),B=[];else B.push(L)}),K.push(...B.sort()),K},WR=($)=>({cache:OR($.cacheSize),parseClassName:LR($),...GR($)}),_R=/\s+/,PR=($,K)=>{let{parseClassName:B,getClassGroupId:L,getConflictingClassGroupIds:G}=K,F=[],v=$.trim().split(_R),_="";for(let f=v.length-1;f>=0;f-=1){let k=v[f],{modifiers:P,hasImportantModifier:w,baseClassName:R,maybePostfixModifierPosition:c}=B(k),m=Boolean(c),x=L(m?R.substring(0,c):R);if(!x){if(!m){_=k+(_.length>0?" "+_:_);continue}if(x=L(R),!x){_=k+(_.length>0?" "+_:_);continue}m=!1}let D=NR(P).join(":"),C=w?D+"!":D,G0=C+x;if(F.includes(G0))continue;F.push(G0);let n=G(x,m);for(let Z0=0;Z0<n.length;++Z0){let j=n[Z0];F.push(C+j)}_=k+(_.length>0?" "+_:_)}return _};function FR(){let $=0,K,B,L="";while($<arguments.length)if(K=arguments[$++]){if(B=jq(K))L&&(L+=" "),L+=B}return L}var jq=($)=>{if(typeof $==="string")return $;let K,B="";for(let L=0;L<$.length;L++)if($[L]){if(K=jq($[L]))B&&(B+=" "),B+=K}return B};function vR($,...K){let B,L,G,F=v;function v(f){let k=K.reduce((P,w)=>w(P),$());return B=WR(k),L=B.cache.get,G=B.cache.set,F=_,_(f)}function _(f){let k=L(f);if(k)return k;let P=PR(f,B);return G(f,P),P}return function(){return F(FR.apply(null,arguments))}}var B4=($)=>{let K=(B)=>B[$]||[];return K.isThemeGetter=!0,K},pq=/^\[(?:([a-z-]+):)?(.+)\]$/i,MR=/^\d+\/\d+$/,RR=new Set(["px","full","screen"]),kR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wR=/\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$/,AR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,f7=($)=>J8($)||RR.has($)||MR.test($),Hb=($)=>$8($,"length",uR),J8=($)=>Boolean($)&&!Number.isNaN(Number($)),qG=($)=>$8($,"number",J8),YQ=($)=>Boolean($)&&Number.isInteger(Number($)),TR=($)=>$.endsWith("%")&&J8($.slice(0,-1)),$1=($)=>pq.test($),Yb=($)=>kR.test($),hR=new Set(["length","size","percentage"]),CR=($)=>$8($,hR,rq),SR=($)=>$8($,"position",rq),VR=new Set(["image","url"]),DR=($)=>$8($,VR,gR),mR=($)=>$8($,"",ER),GQ=()=>!0,$8=($,K,B)=>{let L=pq.exec($);if(L){if(L[1])return typeof K==="string"?L[1]===K:K.has(L[1]);return B(L[2])}return!1},uR=($)=>wR.test($)&&!AR.test($),rq=()=>!1,ER=($)=>IR.test($),gR=($)=>fR.test($);var yR=()=>{let $=B4("colors"),K=B4("spacing"),B=B4("blur"),L=B4("brightness"),G=B4("borderColor"),F=B4("borderRadius"),v=B4("borderSpacing"),_=B4("borderWidth"),f=B4("contrast"),k=B4("grayscale"),P=B4("hueRotate"),w=B4("invert"),R=B4("gap"),c=B4("gradientColorStops"),m=B4("gradientColorStopPositions"),x=B4("inset"),D=B4("margin"),C=B4("opacity"),G0=B4("padding"),n=B4("saturate"),Z0=B4("scale"),j=B4("sepia"),a=B4("skew"),s=B4("space"),W0=B4("translate"),O0=()=>["auto","contain","none"],_0=()=>["auto","hidden","clip","visible","scroll"],p=()=>["auto",$1,K],e=()=>[$1,K],J0=()=>["",f7,Hb],P0=()=>["auto",J8,$1],I0=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],f0=()=>["solid","dashed","dotted","double","none"],H1=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],s0=()=>["start","end","center","between","around","evenly","stretch"],O1=()=>["","0",$1],i0=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y1=()=>[J8,$1];return{cacheSize:500,separator:":",theme:{colors:[GQ],spacing:[f7,Hb],blur:["none","",Yb,$1],brightness:Y1(),borderColor:[$],borderRadius:["none","","full",Yb,$1],borderSpacing:e(),borderWidth:J0(),contrast:Y1(),grayscale:O1(),hueRotate:Y1(),invert:O1(),gap:e(),gradientColorStops:[$],gradientColorStopPositions:[TR,Hb],inset:p(),margin:p(),opacity:Y1(),padding:e(),saturate:Y1(),scale:Y1(),sepia:O1(),skew:Y1(),space:e(),translate:e()},classGroups:{aspect:[{aspect:["auto","square","video",$1]}],container:["container"],columns:[{columns:[Yb]}],"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:[...I0(),$1]}],overflow:[{overflow:_0()}],"overflow-x":[{"overflow-x":_0()}],"overflow-y":[{"overflow-y":_0()}],overscroll:[{overscroll:O0()}],"overscroll-x":[{"overscroll-x":O0()}],"overscroll-y":[{"overscroll-y":O0()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",YQ,$1]}],basis:[{basis:p()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$1]}],grow:[{grow:O1()}],shrink:[{shrink:O1()}],order:[{order:["first","last","none",YQ,$1]}],"grid-cols":[{"grid-cols":[GQ]}],"col-start-end":[{col:["auto",{span:["full",YQ,$1]},$1]}],"col-start":[{"col-start":P0()}],"col-end":[{"col-end":P0()}],"grid-rows":[{"grid-rows":[GQ]}],"row-start-end":[{row:["auto",{span:[YQ,$1]},$1]}],"row-start":[{"row-start":P0()}],"row-end":[{"row-end":P0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$1]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...s0()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...s0(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...s0(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G0]}],px:[{px:[G0]}],py:[{py:[G0]}],ps:[{ps:[G0]}],pe:[{pe:[G0]}],pt:[{pt:[G0]}],pr:[{pr:[G0]}],pb:[{pb:[G0]}],pl:[{pl:[G0]}],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":[s]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[s]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$1,K]}],"min-w":[{"min-w":[$1,K,"min","max","fit"]}],"max-w":[{"max-w":[$1,K,"none","full","min","max","fit","prose",{screen:[Yb]},Yb]}],h:[{h:[$1,K,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$1,K,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$1,K,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$1,K,"auto","min","max","fit"]}],"font-size":[{text:["base",Yb,Hb]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qG]}],"font-family":[{font:[GQ]}],"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",$1]}],"line-clamp":[{"line-clamp":["none",J8,qG]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",f7,$1]}],"list-image":[{"list-image":["none",$1]}],"list-style-type":[{list:["none","disc","decimal",$1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...f0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",f7,Hb]}],"underline-offset":[{"underline-offset":["auto",f7,$1]}],"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:e()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$1]}],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",$1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...I0(),SR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",CR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},DR]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[F]}],"rounded-s":[{"rounded-s":[F]}],"rounded-e":[{"rounded-e":[F]}],"rounded-t":[{"rounded-t":[F]}],"rounded-r":[{"rounded-r":[F]}],"rounded-b":[{"rounded-b":[F]}],"rounded-l":[{"rounded-l":[F]}],"rounded-ss":[{"rounded-ss":[F]}],"rounded-se":[{"rounded-se":[F]}],"rounded-ee":[{"rounded-ee":[F]}],"rounded-es":[{"rounded-es":[F]}],"rounded-tl":[{"rounded-tl":[F]}],"rounded-tr":[{"rounded-tr":[F]}],"rounded-br":[{"rounded-br":[F]}],"rounded-bl":[{"rounded-bl":[F]}],"border-w":[{border:[_]}],"border-w-x":[{"border-x":[_]}],"border-w-y":[{"border-y":[_]}],"border-w-s":[{"border-s":[_]}],"border-w-e":[{"border-e":[_]}],"border-w-t":[{"border-t":[_]}],"border-w-r":[{"border-r":[_]}],"border-w-b":[{"border-b":[_]}],"border-w-l":[{"border-l":[_]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...f0(),"hidden"]}],"divide-x":[{"divide-x":[_]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[_]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:f0()}],"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:["",...f0()]}],"outline-offset":[{"outline-offset":[f7,$1]}],"outline-w":[{outline:[f7,Hb]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:J0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[f7,Hb]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",Yb,mR]}],"shadow-color":[{shadow:[GQ]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...H1(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H1()}],filter:[{filter:["","none"]}],blur:[{blur:[B]}],brightness:[{brightness:[L]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",Yb,$1]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[P]}],invert:[{invert:[w]}],saturate:[{saturate:[n]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[B]}],"backdrop-brightness":[{"backdrop-brightness":[L]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[n]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[v]}],"border-spacing-x":[{"border-spacing-x":[v]}],"border-spacing-y":[{"border-spacing-y":[v]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$1]}],duration:[{duration:Y1()}],ease:[{ease:["linear","in","out","in-out",$1]}],delay:[{delay:Y1()}],animate:[{animate:["none","spin","ping","pulse","bounce",$1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z0]}],"scale-x":[{"scale-x":[Z0]}],"scale-y":[{"scale-y":[Z0]}],rotate:[{rotate:[YQ,$1]}],"translate-x":[{"translate-x":[W0]}],"translate-y":[{"translate-y":[W0]}],"skew-x":[{"skew-x":[a]}],"skew-y":[{"skew-y":[a]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$1]}],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",$1]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":e()}],"scroll-mx":[{"scroll-mx":e()}],"scroll-my":[{"scroll-my":e()}],"scroll-ms":[{"scroll-ms":e()}],"scroll-me":[{"scroll-me":e()}],"scroll-mt":[{"scroll-mt":e()}],"scroll-mr":[{"scroll-mr":e()}],"scroll-mb":[{"scroll-mb":e()}],"scroll-ml":[{"scroll-ml":e()}],"scroll-p":[{"scroll-p":e()}],"scroll-px":[{"scroll-px":e()}],"scroll-py":[{"scroll-py":e()}],"scroll-ps":[{"scroll-ps":e()}],"scroll-pe":[{"scroll-pe":e()}],"scroll-pt":[{"scroll-pt":e()}],"scroll-pr":[{"scroll-pr":e()}],"scroll-pb":[{"scroll-pb":e()}],"scroll-pl":[{"scroll-pl":e()}],"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",$1]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[f7,Hb,qG]}],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=vR(yR);var ZB=H0(m1(),1),u5=H0(z4(),1),G8=H0(m1(),1),_6=H0(z4(),1),JB=H0(z4(),1),PG=H0(z4(),1),K8=H0(m1(),1),A4=H0(z4(),1),$B=H0(m1(),1),p4=H0(z4(),1),UQ=H0(z4(),1),B0=H0(z4(),1),o6=H0(z4(),1),vG=H0(z4(),1),g0=H0(z4(),1),N4=H0(z4(),1),I1=H0(z4(),1),w0=H0(z4(),1),t0=H0(z4(),1),KQ=H0(z4(),1),z7=H0(m1(),1),j0=H0(z4(),1),h7=H0(m1(),1),S0=H0(z4(),1),E6=H0(z4(),1),fk=H0(m1(),1),YB=H0(z4(),1),MG=H0(m1(),1),RG=H0(z4(),1),Tk=H0(m1(),1),GB=H0(z4(),1),KB=H0(m1(),1),UB=H0(z4(),1),hk=H0(m1(),1),qB=H0(z4(),1),BB=H0(z4(),1),OB=H0(z4(),1),dR=Object.defineProperty,aR=($,K,B)=>(K in $)?dR($,K,{enumerable:!0,configurable:!0,writable:!0,value:B}):$[K]=B,lR=($,K,B)=>aR($,typeof K!=="symbol"?K+"":K,B);function j1(...$){return nq(lq($))}var RI=[{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)}],kI=[{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 iR($=1000){return new Promise((K)=>{setTimeout(()=>{K({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 oR($){let K=$.toLowerCase();if(K.includes("analyze")||K.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(K.includes("sales")||K.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(K.includes("report")||K.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(K.includes("data")||K.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(K.includes("customer")||K.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 xR($){let K=oR($),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:K,widgets:L,action:G}}function jR($,K,B,L,G=30){let{message:F,widgets:v}=xR($),_=F.split(" "),f=0,k=setInterval(()=>{try{if(f<_.length)K({type:"token",content:_[f]+" "}),f++;else{clearInterval(k),v.forEach((w)=>{K({type:"widget",widget:w})});let P=`mock_thread_${Date.now()}`;K({type:"complete"}),B(P)}}catch(P){clearInterval(k),L(P instanceof Error?P:Error("Mock streaming error"))}},G)}function pR($){return new Promise((K,B)=>{let L=new FileReader;L.onload=()=>{let F=L.result.split(",")[1];K(F)},L.onerror=()=>B(Error("Failed to read file")),L.readAsDataURL($)})}function rR($){if($.startsWith("image/"))return"image";return"document"}function nR($){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 tR($){let K=await pR($);return{type:rR($.type),source:{type:"base64",media_type:$.type,data:K}}}async function sR($){let K=Array.from($);return await Promise.all(K.map((L)=>tR(L)))}async function tq($,K){if(!K||K.length===0)return $;let B=[];if($.trim())B.push({type:"text",text:$.trim()});let L=await sR(K);return B.push(...L),B}function lZ($){if($<1024)return`${$} B`;if($<1048576)return`${($/1024).toFixed(1)} KB`;return`${($/1048576).toFixed(1)} MB`}var sq=10485760;function zB($){if(!nR($))return{valid:!1,error:`Unsupported file type: ${$.type}`};if($.size>sq)return{valid:!1,error:`File too large: ${lZ($.size)} (max ${lZ(sq)})`};return{valid:!0}}var eR=["list","table"];function bk($){let K=[],B=!1,L=$.match(/"items"\s*:\s*\[/);if(!L)return{items:K,isStreaming:!1};let G=$.indexOf("[",L.index);if(G===-1)return{items:K,isStreaming:!0};let F=0,v=!1,_=!1,f=-1;for(let w=G+1;w<$.length;w++){let R=$[w];if(_){_=!1;continue}if(R==="\\"&&v){_=!0;continue}if(R==='"'){v=!v;continue}if(v)continue;if(R==="{"){if(F===0)f=w;F++}else if(R==="}"){if(F--,F===0&&f!==-1){let c=$.slice(f,w+1);try{let m=JSON.parse(c);if(!m.id)m.id=`item-${K.length}-${WG(c)}`;K.push(m)}catch(m){}f=-1}}else if(R==="]"&&F===0){B=!1;break}}if(F>0||f!==-1)B=!0;let k=$.slice(G);if(_G(k,0)===-1)B=!0;return{items:K,isStreaming:B}}function WG($){let K=0;for(let B=0;B<$.length;B++){let L=$.charCodeAt(B);K=(K<<5)-K+L,K=K&K}return Math.abs(K).toString(36)}function _G($,K){let B=0,L=!1,G=!1;for(let F=K;F<$.length;F++){let v=$[F];if(G){G=!1;continue}if(v==="\\"&&L){G=!0;continue}if(v==='"'){L=!L;continue}if(L)continue;if(v==="["||v==="{")B++;else if(v==="]"||v==="}"){if(B--,B===0)return F}}return-1}function aZ($){let K=[],B=!1,L=!1,G=0,F=null,v=$,_=$.lastIndexOf("@ui:");if(_!==-1){let P=$.slice(_),w=P.match(/^@ui:(\w+)/);if(w){let R=w[1],c=P.indexOf("[");if(c===-1)v=$.slice(0,_),F=R,L=!0;else{let m=_+c;if(_G($,m)===-1)if(eR.includes(R)){let D=$.slice(m+1),{items:C,isStreaming:G0}=bk(D);if(C.length>0){v=$.slice(0,_);let n=`widget-${R}-streaming-${WG(D)}`,Z0=v.replace(/[\s:;\-–—\.]+$/g,"").trim();if(Z0)K.push({type:"text",content:Z0});K.push({type:"widget",widget:{type:R,id:n,props:R==="table"?{rows:C,columns:[]}:{items:C},isStreaming:G0}}),B=!0,L=!1,v=""}else v=$.slice(0,_),F=R,L=!0}else v=$.slice(0,_),F=R,L=!0}}}if(L)v=v.replace(/[\s:;\-–—\.]+$/g,"");let f=/@ui:(\w+)\[/g,k;while((k=f.exec(v))!==null){let P=k[1],w=k.index+k[0].length-1,R=_G(v,w);if(R===-1)continue;let c=v.slice(w+1,R);if(k.index>G){let m=v.slice(G,k.index).trim();if(m)K.push({type:"text",content:m})}try{let m=c.trim(),x=JSON.parse(m),D=`widget-${P}-${WG(m)}`,{metadata:C,actions:G0,...n}=x;K.push({type:"widget",widget:{type:P,id:D,props:n,...G0&&{actions:G0},...C&&{metadata:C}}}),B=!0}catch(m){}G=R+1,f.lastIndex=G}if(G<v.length){let P=v.slice(G).trim();if(P)K.push({type:"text",content:P})}if(K.length===0&&v.trim())K.push({type:"text",content:v.trim()});if(F)K.push({type:"widget_pending",pendingType:F});return{segments:K,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"}]}]'}},zk=Object.keys(QB),Qk=["flow"],XB=zk.filter(($)=>!Qk.includes($));function Xk($){let K=$||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 K){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 Zk($){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 Jk({widget:$,onAction:K}){let{title:B,description:L,image:G,footer:F}=$.props;return u5.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[G&&u5.jsx("img",{src:G,alt:B,className:"w-full h-48 object-cover"}),u5.jsxs("div",{className:"p-4",children:[u5.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white",children:B}),L&&u5.jsx("p",{className:"!text-neutral-600 dark:!text-neutral-400 mt-2",children:L})]}),(F||$.actions&&$.actions.length>0)&&u5.jsxs("div",{className:"border-t border-neutral-200 dark:border-neutral-700 p-4 flex justify-between items-center",children:[F&&u5.jsx("span",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:F}),$.actions&&$.actions.length>0&&u5.jsx("div",{className:"flex gap-2",children:$.actions.map((v,_)=>u5.jsx("button",{onClick:()=>K?.({type:v.type,payload:v.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:v.label},_))})]})]})}function $k({widget:$,onAction:K}){let{items:B}=$.props,L=$.isStreaming??!1,G=G8.useRef(new Set),[F,v]=G8.useState(new Set);return G8.useEffect(()=>{let _=new Set(B.map((k)=>k.id)),f=new Set;if(B.forEach((k)=>{if(!G.current.has(k.id))f.add(k.id)}),B.forEach((k)=>G.current.add(k.id)),f.size>0){v(f);let k=setTimeout(()=>{v(new Set)},500);return()=>clearTimeout(k)}},[B]),_6.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[B.map((_,f)=>{let k=F.has(_.id),P=f===B.length-1;return _6.jsxs("div",{className:`apteva-list-item flex items-center p-4 transition-colors ${!P||L?"border-b border-neutral-200 dark:border-neutral-700":""} ${!_.backgroundColor?"hover:bg-neutral-50 dark:hover:bg-neutral-800":""} ${k?"apteva-list-item-new":""}`,style:_.backgroundColor?{backgroundColor:_.backgroundColor}:void 0,children:[_.image&&_6.jsx("img",{src:_.image,alt:_.title,className:"w-16 h-16 rounded object-cover"}),_6.jsxs("div",{className:`flex-1 ${_.image?"ml-4":""}`,children:[_6.jsx("h4",{className:"font-semibold !text-neutral-900 dark:!text-white",children:_.title}),_.subtitle&&_6.jsx("p",{className:"!text-sm !text-neutral-600 dark:!text-neutral-400",children:_.subtitle}),_.description&&_6.jsx("p",{className:"!text-xs !text-neutral-500 dark:!text-neutral-500 mt-1",children:_.description})]}),$.actions&&$.actions.length>0&&_6.jsx("div",{className:"flex gap-2",children:$.actions.map((w,R)=>_6.jsx("button",{onClick:()=>K?.({type:w.type,payload:_.metadata||_,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:w.label},R))})]},_.id)}),L&&_6.jsxs("div",{className:"apteva-list-streaming flex items-center gap-3 p-4 text-neutral-500 dark:text-neutral-400",children:[_6.jsxs("div",{className:"apteva-streaming-dots flex gap-1",children:[_6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"0ms"}}),_6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"150ms"}}),_6.jsx("span",{className:"w-2 h-2 bg-current rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),_6.jsx("span",{className:"text-sm",children:"Loading more..."})]})]})}function Hk({widget:$,onAction:K}){let{label:B,variant:L="primary",disabled:G=!1}=$.props;return JB.jsx("button",{onClick:()=>$.actions?.[0]&&K?.({type:$.actions[0].type,payload:$.actions[0].payload,widgetId:$.id,timestamp:new Date}),disabled:G,className:j1("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 Yk({widget:$,onAction:K}){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"},F=(v)=>{return $.actions?.find((_)=>_.payload?.buttonId===v)||$.actions?.[0]};return PG.jsx("div",{className:j1("flex gap-2",B==="vertical"?"flex-col":"flex-row flex-wrap"),children:L.map((v)=>{let _=F(v.id);return PG.jsx("button",{onClick:()=>{if(_)K?.({type:_.type,payload:{..._.payload,buttonId:v.id},widgetId:$.id,timestamp:new Date})},className:j1("px-4 py-2 rounded-lg font-medium transition-colors text-sm",G[v.variant||"secondary"]),children:v.label},v.id)})})}function Gk({widget:$,onAction:K}){let{columns:B,rows:L,caption:G,compact:F=!1,striped:v=!1}=$.props,_=$.isStreaming??!1,f=K8.useRef(new Set),[k,P]=K8.useState(new Set);K8.useEffect(()=>{let R=new Set;if(L.forEach((c,m)=>{let x=c.id||`row-${m}`;if(!f.current.has(x))R.add(x)}),L.forEach((c,m)=>{let x=c.id||`row-${m}`;f.current.add(x)}),R.size>0){P(R);let c=setTimeout(()=>{P(new Set)},500);return()=>clearTimeout(c)}},[L]);let w=(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:j1("font-semibold text-neutral-900 dark:text-white",F?"px-3 py-2 text-xs":"px-4 py-3 text-sm",w(R.align)),style:R.width?{width:R.width}:void 0,children:R.label},R.key))})}),A4.jsxs("tbody",{children:[L.map((R,c)=>{let m=R.id||`row-${c}`,x=k.has(m);return A4.jsx("tr",{className:j1("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",v&&c%2===1&&"bg-neutral-50/50 dark:bg-neutral-800/50",x&&"apteva-table-row-new"),onClick:()=>{if($.actions&&$.actions.length>0)K?.({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:j1("text-neutral-700 dark:text-neutral-300",F?"px-3 py-2 text-xs":"px-4 py-3 text-sm",w(D.align)),children:R[D.key]??"—"},D.key))},m)}),L.length===0&&!_&&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"})}),_&&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 Kk({widget:$,onAction:K}){let{title:B,fields:L}=$.props,[G,F]=$B.useState(()=>{let P={};return L.forEach((w)=>{P[w.name]=w.defaultValue??(w.type==="checkbox"?!1:"")}),P}),v=(P,w)=>{F((R)=>({...R,[P]:w}))},_=(P)=>{if(P.preventDefault(),$.actions?.[0]&&K)K({type:$.actions[0].type,payload:{...$.actions[0].payload,formData:G},widgetId:$.id,timestamp:new Date})},f=(P)=>{switch(P.type){case"text":case"password":case"number":case"date":return p4.jsx("input",{type:P.type,name:P.name,value:G[P.name]||"",onChange:(R)=>v(P.name,P.type==="number"?Number(R.target.value):R.target.value),placeholder:P.placeholder,required:P.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 p4.jsx("textarea",{name:P.name,value:G[P.name]||"",onChange:(R)=>v(P.name,R.target.value),placeholder:P.placeholder,required:P.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 p4.jsxs("select",{name:P.name,value:G[P.name]||"",onChange:(R)=>v(P.name,R.target.value),required:P.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:[p4.jsx("option",{value:"",children:P.placeholder||"Select..."}),P.options?.map((R)=>p4.jsx("option",{value:R.value,children:R.label},R.value))]});case"checkbox":return p4.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[p4.jsx("input",{type:"checkbox",name:P.name,checked:G[P.name]||!1,onChange:(R)=>v(P.name,R.target.checked),className:"w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 text-blue-500 focus:ring-blue-500"}),p4.jsx("span",{className:"!text-neutral-700 dark:!text-neutral-300",children:P.label})]});default:return null}},k=$.actions?.find((P)=>P.type==="submit")||$.actions?.[0];return p4.jsxs("form",{onSubmit:_,className:"border border-neutral-200 dark:border-neutral-700 rounded-xl bg-white dark:bg-neutral-900 overflow-hidden",children:[p4.jsxs("div",{className:"p-4",children:[B&&p4.jsx("h3",{className:"!text-lg font-semibold !text-neutral-900 dark:!text-white mb-4",children:B}),p4.jsx("div",{className:"space-y-3",children:L.map((P)=>p4.jsxs("div",{className:P.type==="checkbox"?"":"space-y-1",children:[P.type!=="checkbox"&&p4.jsxs("label",{className:"block !text-sm font-medium !text-neutral-600 dark:!text-neutral-400",children:[P.label,P.required&&p4.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f(P)]},P.name))})]}),k&&p4.jsx("div",{className:"px-4 pb-4",children:p4.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:k.label||"Submit"})})]})}function Uk({widget:$}){let{src:K,alt:B,caption:L}=$.props;return UQ.jsxs("figure",{className:"overflow-hidden rounded-xl",children:[UQ.jsx("img",{src:K,alt:B,className:"w-full h-auto object-contain bg-neutral-100 dark:bg-neutral-800",loading:"lazy"}),L&&UQ.jsx("figcaption",{className:"mt-2 text-center text-sm text-neutral-600 dark:text-neutral-400",children:L})]})}function qk({type:$,status:K}){if(K==="completed")return B0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})});if(K==="error")return B0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})});if(K==="active")return B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})});if($==="push"||$==="upload"||$==="cloud")return B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsxs("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("svg",{className:B,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})});return B0.jsx("div",{className:"w-2 h-2 rounded-full bg-current opacity-50"})}function Bk({icon:$}){if($==="research"||$==="multi-agent"||$==="agents")return B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-purple-600 dark:text-purple-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if($==="schedule"||$==="report"||$==="calendar")return B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-cyan-100 dark:bg-cyan-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-cyan-600 dark:text-cyan-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-blue-600 dark:text-blue-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})});if($==="automation"||$==="workflow"||$==="process")return B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-indigo-100 dark:bg-indigo-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-100 dark:bg-emerald-500/20 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-emerald-600 dark:text-emerald-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 B0.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-100 dark:bg-neutral-700 flex items-center justify-center",children:B0.jsx("svg",{className:"w-6 h-6 text-neutral-600 dark:text-neutral-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B0.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 Ok(){return B0.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:B0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}var m5={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 Lk($,K){if($.color&&m5[$.color])return m5[$.color];if(K==="time"||K==="schedule"||K==="clock")return m5.blue;if(K==="agent"||K?.startsWith("@"))return m5.purple;if(K==="email"||K==="slack"||K==="message"||K==="notification")return m5.cyan;if(K==="generate"||K==="document"||K==="create")return m5.amber;if(K==="deploy"||K==="rocket"||K==="launch")return m5.rose;if(K==="build"||K==="compile"||K==="package")return m5.indigo;if(K==="test"||K==="check"||K==="verify")return m5.emerald;if(K==="data"||K==="database"||K==="storage")return m5.orange;return m5.blue}function Nk({widget:$}){let{title:K,subtitle:B,icon:L,steps:G}=$.props;return B0.jsxs("div",{className:"rounded-xl bg-white dark:bg-neutral-900 border border-neutral-200 dark:border-neutral-700 overflow-hidden",children:[B0.jsxs("div",{className:"px-4 py-4 flex items-center gap-4",children:[B0.jsx(Bk,{icon:L}),B0.jsxs("div",{className:"flex-1 min-w-0",children:[B0.jsx("h3",{className:"font-semibold text-base text-neutral-900 dark:text-white truncate",children:K}),B&&B0.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate mt-0.5",children:B})]})]}),B0.jsx("div",{className:"px-4 pb-4",children:B0.jsx("div",{className:"flex flex-wrap items-center gap-2",children:G.map((F,v)=>{let _=v===G.length-1,f=F.status==="active",k=F.status==="completed",P=F.status==="error",w=F.status==="skipped",R=F.label,c=F.type;if(!c)if(R.startsWith("@"))c="agent";else if(/^\d+[ap]m$/i.test(R)||/^(mon|tue|wed|thu|fri|sat|sun)/i.test(R))c="time";else{let D=R.toLowerCase();c={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 m,x="";if(f)m="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(k)m="bg-emerald-100 dark:bg-emerald-900/40 !text-emerald-700 dark:!text-emerald-300 border-emerald-400 dark:border-emerald-400";else if(P)m="bg-red-100 dark:bg-red-900/40 !text-red-700 dark:!text-red-300 border-red-400 dark:border-red-400";else if(w)m="bg-neutral-100 dark:bg-neutral-800 !text-neutral-400 dark:!text-neutral-500 border-neutral-300 dark:border-neutral-600",x="line-through";else m=Lk(F,c);return B0.jsxs("div",{className:"flex items-center gap-2",children:[B0.jsxs("span",{className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium border transition-colors ${m} ${x}`,children:[B0.jsx(qk,{type:c,status:F.status}),R]}),!_&&B0.jsx(Ok,{})]},F.id)})})})]})}function FG({widget:$,onAction:K}){return o6.jsx("div",{className:"apteva-widget",children:(()=>{switch($.type){case"card":return o6.jsx(Jk,{widget:$,onAction:K});case"list":return o6.jsx($k,{widget:$,onAction:K});case"button":return o6.jsx(Hk,{widget:$,onAction:K});case"button_group":return o6.jsx(Yk,{widget:$,onAction:K});case"table":return o6.jsx(Gk,{widget:$,onAction:K});case"form":return o6.jsx(Kk,{widget:$,onAction:K});case"image":return o6.jsx(Uk,{widget:$});case"flow":return o6.jsx(Nk,{widget:$});default:return o6.jsxs("div",{className:"p-4 border border-yellow-300 bg-yellow-50 rounded-lg",children:[o6.jsxs("p",{className:"text-sm text-yellow-800",children:["Unknown widget type: ",$.type]}),o6.jsx("pre",{className:"text-xs mt-2 overflow-auto",children:JSON.stringify($,null,2)})]})}})()})}function LG({widgets:$,onAction:K,onWidgetMount:B,layout:L="stack",spacing:G="normal",columns:F=3,className:v}){ZB.useEffect(()=>{$.forEach((k)=>{B?.(k.id)})},[$,B]);let _={stack:"flex flex-col",grid:`grid grid-cols-1 md:grid-cols-${F}`,masonry:"columns-1 md:columns-2 lg:columns-3"},f={tight:"gap-2",normal:"gap-4",loose:"gap-6"};return vG.jsx("div",{className:j1(_[L],f[G],v),children:$.map((k)=>vG.jsx(FG,{widget:k,onAction:K},k.id))})}function eq({type:$,className:K}){switch($){case"card":return g0.jsx("div",{className:j1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",K),children:g0.jsxs("div",{className:"p-4 space-y-3",children:[g0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"}),g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"}),g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-5/6"})]})});case"list":return g0.jsx("div",{className:j1("apteva-widget-skeleton animate-pulse space-y-2",K),children:[1,2,3].map((B)=>g0.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-neutral-200 dark:border-neutral-800",children:[g0.jsx("div",{className:"w-10 h-10 bg-neutral-200 dark:bg-neutral-700 rounded-full flex-shrink-0"}),g0.jsxs("div",{className:"flex-1 space-y-2",children:[g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2"}),g0.jsx("div",{className:"h-2 bg-neutral-200 dark:bg-neutral-700 rounded w-3/4"})]})]},B))});case"button_group":return g0.jsxs("div",{className:j1("apteva-widget-skeleton animate-pulse flex gap-2",K),children:[g0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),g0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"}),g0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded-lg w-20"})]});case"form":return g0.jsxs("div",{className:j1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4 space-y-4",K),children:[g0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/3"}),g0.jsxs("div",{className:"space-y-3",children:[g0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"}),g0.jsx("div",{className:"h-10 bg-neutral-200 dark:bg-neutral-700 rounded"})]}),g0.jsx("div",{className:"h-9 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})]});case"chart":return g0.jsxs("div",{className:j1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",K),children:[g0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/4 mb-4"}),g0.jsxs("div",{className:"flex items-end gap-2 h-32",children:[g0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/2"}),g0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-3/4"}),g0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-1/3"}),g0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-full"}),g0.jsx("div",{className:"flex-1 bg-neutral-200 dark:bg-neutral-700 rounded-t h-2/3"})]})]});case"image":return g0.jsx("div",{className:j1("apteva-widget-skeleton animate-pulse",K),children:g0.jsx("div",{className:"aspect-video bg-neutral-200 dark:bg-neutral-700 rounded-lg"})});case"gallery":return g0.jsx("div",{className:j1("apteva-widget-skeleton animate-pulse grid grid-cols-3 gap-2",K),children:[1,2,3].map((B)=>g0.jsx("div",{className:"aspect-square bg-neutral-200 dark:bg-neutral-700 rounded-lg"},B))});case"map":return g0.jsx("div",{className:j1("apteva-widget-skeleton animate-pulse",K),children:g0.jsx("div",{className:"h-48 bg-neutral-200 dark:bg-neutral-700 rounded-lg flex items-center justify-center",children:g0.jsxs("svg",{className:"w-8 h-8 text-neutral-400 dark:text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[g0.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"}),g0.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 g0.jsxs("div",{className:j1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 overflow-hidden",K),children:[g0.jsxs("div",{className:"flex bg-neutral-100 dark:bg-neutral-800 border-b border-neutral-200 dark:border-neutral-700",children:[g0.jsx("div",{className:"flex-1 px-4 py-3",children:g0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-16"})}),g0.jsx("div",{className:"flex-1 px-4 py-3",children:g0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-20"})}),g0.jsx("div",{className:"flex-1 px-4 py-3",children:g0.jsx("div",{className:"h-3 bg-neutral-300 dark:bg-neutral-600 rounded w-14"})})]}),[1,2,3].map((B)=>g0.jsxs("div",{className:"flex border-b border-neutral-200 dark:border-neutral-800 last:border-b-0",children:[g0.jsx("div",{className:"flex-1 px-4 py-3",children:g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-24"})}),g0.jsx("div",{className:"flex-1 px-4 py-3",children:g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-16"})}),g0.jsx("div",{className:"flex-1 px-4 py-3",children:g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-20"})})]},B))]});default:return g0.jsxs("div",{className:j1("apteva-widget-skeleton animate-pulse rounded-lg border border-neutral-200 dark:border-neutral-800 p-4",K),children:[g0.jsx("div",{className:"h-4 bg-neutral-200 dark:bg-neutral-700 rounded w-1/2 mb-2"}),g0.jsx("div",{className:"h-3 bg-neutral-200 dark:bg-neutral-700 rounded w-full"})]})}}function Wk($){return/\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i.test($)}function nb($,K=""){let B=[],L=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|(\*\*|__)(.+?)\5|`([^`]+)`/g,G=0,F,v=0;while((F=L.exec($))!==null){if(F.index>G)B.push($.slice(G,F.index));if(F[1]!==void 0||F[2]!==void 0){let _=F[1]||"",f=F[2];B.push(N4.jsx("img",{src:f,alt:_,className:"apteva-md-img"},`${K}img${v++}`))}else if(F[3]!==void 0||F[4]!==void 0){let _=F[3],f=F[4];if(Wk(f))B.push(N4.jsx("img",{src:f,alt:_,className:"apteva-md-img"},`${K}img${v++}`));else B.push(N4.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"apteva-md-link",children:_},`${K}a${v++}`))}else if(F[5]!==void 0)B.push(N4.jsx("strong",{children:F[6]},`${K}b${v++}`));else if(F[7]!==void 0)B.push(N4.jsx("code",{className:"apteva-md-inline-code",children:F[7]},`${K}code${v++}`));G=F.index+F[0].length}if(G<$.length)B.push($.slice(G));return B.length>0?B:[$]}function _k($){let K=$.split(`
187
+ `),B=[],L=0,G=0;while(G<K.length){let F=K[G],v=F.match(/^##\s+(.*)$/);if(v){B.push(N4.jsx("h2",{className:"apteva-md-h2",children:nb(v[1],`${L}`)},`h2${L++}`)),G++;continue}let _=F.match(/^###\s+(.*)$/);if(_){B.push(N4.jsx("h3",{className:"apteva-md-h3",children:nb(_[1],`${L}`)},`h3${L++}`)),G++;continue}let f=F.match(/^(\s*)([-*+])\s+(.*)$/);if(f){let w=[],R=f[1].length;while(G<K.length){let c=K[G].match(/^(\s*)([-*+])\s+(.*)$/);if(c&&c[1].length===R)w.push(N4.jsx("li",{className:"apteva-md-li",children:nb(c[3],`${L}`)},`li${L++}`)),G++;else break}B.push(N4.jsx("ul",{className:"apteva-md-ul",children:w},`ul${L++}`));continue}let k=F.match(/^(\s*)(\d+)\.\s+(.*)$/);if(k){let w=[],R=k[1].length;while(G<K.length){let c=K[G].match(/^(\s*)(\d+)\.\s+(.*)$/);if(c&&c[1].length===R)w.push(N4.jsx("li",{className:"apteva-md-li",children:nb(c[3],`${L}`)},`li${L++}`)),G++;else break}B.push(N4.jsx("ol",{className:"apteva-md-ol",children:w},`ol${L++}`));continue}if(F.match(/^\|(.+)\|$/)&&G+1<K.length){if(K[G+1].match(/^\|([\s:-]+\|)+$/)){let c=F.split("|").filter((x)=>x.trim()!=="").map((x)=>x.trim());G+=2;let m=[];while(G<K.length)if(K[G].match(/^\|(.+)\|$/)){let D=K[G].split("|").filter((C)=>C.trim()!=="").map((C)=>C.trim());m.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:c.map((x,D)=>N4.jsx("th",{className:"apteva-md-th",children:nb(x,`th${L}${D}`)},`th${D}`))})}),N4.jsx("tbody",{children:m.map((x,D)=>N4.jsx("tr",{children:x.map((C,G0)=>N4.jsx("td",{className:"apteva-md-td",children:nb(C,`td${L}${D}${G0}`)},`td${G0}`))},`tr${D}`))})]})},`table-wrapper${L++}`));continue}}if(F==="")B.push(N4.jsx("br",{},`br${L++}`));else B.push(N4.jsxs("span",{children:[nb(F,`${L}`),G<K.length-1?`
188
+ `:""]},`p${L++}`));G++}return B}function T7({content:$,className:K=""}){return N4.jsx("div",{className:`apteva-md ${K}`,children:_k($)})}function Pk({name:$,status:K,isReceiving:B=!1,inputLength:L=0,streamOutput:G}){if(K==="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(K==="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(K==="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 Fk({message:$,onAction:K,enableWidgets:B,onWidgetRender:L}){let G=$.role==="user",F=$.metadata?.content_segments,v=$.metadata?.isStreaming===!0,_=$.content||F&&F.length>0,f=tb.useRef(new Set),k=tb.useMemo(()=>{if(!B||G||!$.content)return[];return aZ($.content).segments.filter((Z0)=>Z0.type==="widget"&&!!Z0.widget).map((Z0)=>Z0.widget)},[B,G,$.content]);tb.useEffect(()=>{if(L&&$.widgets){for(let n of $.widgets)if(!f.current.has(n.id))f.current.add(n.id),L(n)}},[$.widgets,L]),tb.useEffect(()=>{if(L&&k.length>0){for(let n of k)if(!f.current.has(n.id))f.current.add(n.id),L(n)}},[k,L]);let P=(n)=>{if(!B||G)return w0.jsx(T7,{content:n});let j=aZ(n).segments.filter((a)=>a.type==="text"&&a.content).map((a)=>a.content).join("");if(!j.trim())return null;return w0.jsx(T7,{content:j})},w=()=>{if(!B||G||!$.content)return null;let n=aZ($.content),Z0=[],j="";if(n.segments.forEach((a,s)=>{if(a.type==="text"&&a.content)j+=a.content;else if(a.type==="widget"&&a.widget){if(j.trim())Z0.push(w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:j})})},`text-${s}`)),j="";Z0.push(w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(FG,{widget:a.widget,onAction:K})},`widget-${s}`))}else if(a.type==="widget_pending"&&a.pendingType){if(j.trim())Z0.push(w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:j})})},`text-${s}`)),j="";Z0.push(w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(eq,{type:a.pendingType})},`pending-${s}`))}}),j.trim())Z0.push(w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:j})})},"text-final"));return Z0.length>0?Z0:null},R=$.metadata?.attachments||[],c=R.length>0,m=()=>{if(!c)return null;return w0.jsx("div",{className:"apteva-message-attachments flex flex-wrap gap-2 mb-2 justify-end",children:R.map((n,Z0)=>{let j=n.type.startsWith("image/"),a=n.type==="application/pdf";if(j&&n.preview)return w0.jsx("div",{className:"apteva-attachment-image relative rounded-lg overflow-hidden shadow-sm",children:w0.jsx("img",{src:n.preview,alt:n.name,className:"max-w-[150px] max-h-[150px] object-cover"})},Z0);return w0.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:[w0.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:a?w0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w0.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"})}):w0.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w0.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"})})}),w0.jsxs("div",{className:"flex flex-col min-w-0",children:[w0.jsx("span",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate max-w-[180px]",children:n.name}),w0.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[a?"PDF":"Document"," · ",lZ(n.size)]})]})]},Z0)})})},x=()=>{if(G)return w0.jsx("div",{className:"apteva-message-text",children:$.content});if(v&&!_)return w0.jsxs("div",{className:"apteva-typing-indicator",children:[w0.jsx("span",{}),w0.jsx("span",{}),w0.jsx("span",{})]});if(F&&F.length>0)return null;return P($.content)},D=(n,Z0)=>{if(!B)return w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:n})})},Z0);let j=aZ(n),a=[],s="";if(j.segments.forEach((W0,O0)=>{if(W0.type==="text"&&W0.content)s+=W0.content;else if(W0.type==="widget"&&W0.widget){if(s.trim())a.push(w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:s})})},`${Z0}-text-${O0}`)),s="";a.push(w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(FG,{widget:W0.widget,onAction:K})},`${Z0}-widget-${O0}`))}else if(W0.type==="widget_pending"&&W0.pendingType){if(s.trim())a.push(w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:s})})},`${Z0}-text-${O0}`)),s="";a.push(w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(eq,{type:W0.pendingType})},`${Z0}-pending-${O0}`))}}),s.trim())a.push(w0.jsx("div",{className:"apteva-message-bubble apteva-message-assistant",children:w0.jsx("div",{className:"apteva-message-content-assistant",children:w0.jsx(T7,{content:s})})},`${Z0}-text-final`));return a},C=()=>{if(!F||F.length===0)return null;let n=[];return F.forEach((Z0,j)=>{if(Z0.type==="text"&&Z0.content){let a=D(Z0.content,`seg-${j}`);if(Array.isArray(a))n.push(...a);else n.push(a)}else if(Z0.type==="tool")n.push(w0.jsx("div",{className:"apteva-tool-call-standalone",children:w0.jsx(Pk,{name:Z0.name,status:Z0.status||(Z0.result!==void 0?"completed":"running"),isReceiving:Z0.isReceiving,inputLength:Z0.inputLength,streamOutput:Z0.streamOutput})},Z0.id))}),n};if(!G&&(F&&F.length>0))return w0.jsxs("div",{className:"apteva-message-segmented",children:[C(),$.widgets&&$.widgets.length>0&&w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(LG,{widgets:$.widgets,onAction:K,layout:"stack"})}),w0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});let G0=w();if(!G&&B&&G0)return w0.jsxs("div",{className:"apteva-message-segmented",children:[G0,$.widgets&&$.widgets.length>0&&w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(LG,{widgets:$.widgets,onAction:K,layout:"stack"})}),w0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-assistant",suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});if(G&&c)return w0.jsxs("div",{className:"apteva-message-segmented apteva-message-user-with-attachments flex flex-col items-end",children:[m(),$.content&&w0.jsx("div",{className:"apteva-message-bubble apteva-message-user",children:w0.jsx("div",{className:"apteva-message-content-user",children:w0.jsx("div",{className:"apteva-message-text",children:$.content})})}),w0.jsx("div",{className:"apteva-message-timestamp apteva-message-timestamp-user",suppressHydrationWarning:!0,children:$.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]});return w0.jsxs("div",{className:j1("apteva-message-bubble",G?"apteva-message-user":"apteva-message-assistant"),children:[w0.jsx("div",{className:G?"apteva-message-content-user":"apteva-message-content-assistant",children:x()}),$.widgets&&$.widgets.length>0&&w0.jsx("div",{className:"apteva-widget-standalone",children:w0.jsx(LG,{widgets:$.widgets,onAction:K,layout:"stack"})}),w0.jsx("div",{className:j1("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"})}),NG=()=>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 vk({title:$,subtitle:K,icon:B,prompts:L,variant:G="centered",chatVariant:F="default",onPromptClick:v}){let _=(L||[]).map((P)=>typeof P==="string"?{text:P}:P),f=_.length>0,k=$||K||B;if(!k&&!f)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:[k&&t0.jsxs("div",{className:"mb-4",children:[$&&t0.jsx("h2",{className:"text-lg font-semibold !text-neutral-900 dark:!text-white",children:$}),K&&t0.jsx("p",{className:"text-sm !text-neutral-500 dark:!text-neutral-400 mt-1",children:K})]}),f&&t0.jsx("div",{className:"flex-1 space-y-2",children:_.map((P,w)=>t0.jsx("button",{onClick:()=>v(P.text),className:j1("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:P.icon||t0.jsx(NG,{})}),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:P.text}),P.description&&t0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 truncate",children:P.description})]})]})},w))})]});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:$}),K&&t0.jsx("p",{className:"text-sm sm:text-base !text-neutral-500 dark:!text-neutral-400",children:K})]}),f&&t0.jsxs("div",{className:"w-full max-w-2xl",children:[t0.jsx("div",{className:"sm:hidden space-y-2",children:_.map((P,w)=>t0.jsx("button",{onClick:()=>v(P.text),className:j1("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:P.icon||t0.jsx(NG,{})}),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:P.text}),P.description&&t0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-0.5 line-clamp-1",children:P.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"})})]})},w))}),t0.jsx("div",{className:"hidden sm:grid sm:grid-cols-2 gap-3",children:_.map((P,w)=>t0.jsx("button",{onClick:()=>v(P.text),className:j1("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:P.icon||t0.jsx(NG,{})}),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:P.text}),P.description&&t0.jsx("p",{className:"text-xs !text-neutral-500 dark:!text-neutral-400 mt-1 line-clamp-2",children:P.description})]})]})},w))})]})]})}function Mk({messages:$,onAction:K,welcomeTitle:B,welcomeSubtitle:L,welcomeIcon:G,suggestedPrompts:F,welcomeVariant:v,chatVariant:_,onPromptClick:f,enableWidgets:k,onWidgetRender:P}){let w=Y8.useRef(null),R=Y8.useRef(!0),c=Y8.useRef(0),m=()=>{if(w.current){let{scrollTop:x,scrollHeight:D,clientHeight:C}=w.current;R.current=D-x-C<100}};return Y8.useEffect(()=>{if(w.current&&R.current){let x=w.current.scrollHeight;if(x!==c.current)w.current.scrollTop=x,c.current=x}},[$]),KQ.jsx("div",{ref:w,className:"apteva-message-list apteva-scrollbar-hidden",onScroll:m,children:$.length===0?KQ.jsx(vk,{title:B,subtitle:L,icon:G,prompts:F,variant:v,chatVariant:_,onPromptClick:f||(()=>{})}):$.map((x)=>KQ.jsx("div",{className:x.role==="user"?"apteva-message-row-user":"apteva-message-row-assistant",children:KQ.jsx(Fk,{message:x,onAction:K,enableWidgets:k,onWidgetRender:P})},x.id))})}function Rk({onSendMessage:$,placeholder:K="Type a message...",disabled:B=!1,isLoading:L=!1,onStop:G,onFileUpload:F,onSwitchMode:v}){let[_,f]=z7.useState(""),[k,P]=z7.useState(!1),[w,R]=z7.useState([]),[c,m]=z7.useState(null),[x,D]=z7.useState(!1),C=z7.useRef(null),G0=z7.useRef(null),n=z7.useRef(null),Z0=(_0)=>{if(_0.key==="Enter"&&!_0.shiftKey)_0.preventDefault(),j()},j=()=>{let _0=_.trim(),p=w.length>0;if((_0||p)&&!B){let e=w.map((J0)=>J0.file);if($(_.trim(),e.length>0?e:void 0),f(""),R([]),m(null),D(!1),C.current)C.current.style.height="auto"}},a=(_0)=>{f(_0.target.value),_0.target.style.height="auto";let p=_0.target.scrollHeight;_0.target.style.height=`${p}px`;let e=_0.target.value.includes(`
189
+ `),P0=p>36;if(!x&&(e||P0))D(!0);else if(x&&!e&&!P0&&_0.target.value.length<20)D(!1)},s=(_0)=>{if(_0.target.files&&_0.target.files.length>0){let p=Array.from(_0.target.files),e=[],J0=[];if(p.forEach((P0)=>{let I0=zB(P0);if(I0.valid){let f0={file:P0};if(P0.type.startsWith("image/"))f0.preview=URL.createObjectURL(P0);e.push(f0)}else J0.push(I0.error||"Invalid file")}),e.length>0)R((P0)=>[...P0,...e]);if(J0.length>0)m(J0.join(", ")),setTimeout(()=>m(null),5000);F?.(_0.target.files),P(!1),_0.target.value=""}},W0=(_0)=>{R((p)=>{let e=p[_0];if(e.preview)URL.revokeObjectURL(e.preview);return p.filter((J0,P0)=>P0!==_0)})},O0=(_0)=>{if(_0.startsWith("image/"))return j0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.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(_0==="application/pdf")return j0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.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 j0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.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 j0.jsxs("div",{className:"px-4 py-3 relative",children:[c&&j0.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:j0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-sm",children:[j0.jsx("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),j0.jsx("span",{children:c})]})}),w.length>0&&j0.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:w.map((_0,p)=>j0.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:[_0.preview?j0.jsx("img",{src:_0.preview,alt:_0.file.name,className:"w-8 h-8 object-cover rounded"}):j0.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:O0(_0.file.type)}),j0.jsxs("div",{className:"flex flex-col min-w-0",children:[j0.jsx("span",{className:"text-xs font-medium !text-neutral-700 dark:!text-neutral-300 truncate max-w-[120px]",children:_0.file.name}),j0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:lZ(_0.file.size)})]}),j0.jsx("button",{onClick:()=>W0(p),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:j0.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},p))}),j0.jsxs("div",{className:"apteva-composer",style:{gridTemplateColumns:"auto 1fr auto",gridTemplateAreas:x?'"textarea textarea textarea" "plus . send"':'"plus textarea send"',alignItems:"end"},children:[j0.jsxs("div",{className:"relative flex-shrink-0 self-end",style:{gridArea:"plus"},children:[j0.jsx("button",{ref:n,onClick:()=>P(!k),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:j0.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),k&&j0.jsxs(j0.Fragment,{children:[j0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>P(!1)}),j0.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:n.current?.getBoundingClientRect().left??0,bottom:window.innerHeight-(n.current?.getBoundingClientRect().top??0)+8},children:[j0.jsxs("button",{onClick:()=>{G0.current?.click(),P(!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:[j0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.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)"})}),j0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),v&&j0.jsxs("button",{onClick:()=>{v(),P(!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:[j0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:j0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),j0.jsx("span",{className:"!text-sm font-medium",children:"Switch to command mode"})]})]})]})]}),j0.jsx("textarea",{ref:C,value:_,onChange:a,onKeyDown:Z0,placeholder:K,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}),j0.jsx("div",{className:"self-end",style:{gridArea:"send"},children:L&&G?j0.jsx("button",{onClick:G,className:"apteva-composer-stop-btn",title:"Stop generation",children:j0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}):j0.jsx("button",{onClick:j,disabled:!_.trim()&&w.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:j0.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j0.jsx("path",{d:"M8 3L8 13M8 3L4 7M8 3L12 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]}),j0.jsx("input",{ref:G0,type:"file",multiple:!0,onChange:s,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}function kk({onExecute:$,state:K,response:B,error:L,plan:G,streamedContent:F,toolName:v,onApprove:_,onReject:f,onReset:k,onStop:P,onExpand:w,placeholder:R="Enter your command...",disabled:c=!1}){let[m,x]=h7.useState(""),[D,C]=h7.useState([]),[G0,n]=h7.useState(null),[Z0,j]=h7.useState(!1),a=h7.useRef(null),s=h7.useRef(null),W0=h7.useRef(null),O0=()=>{let i0=m.trim(),Y1=D.length>0;if((i0||Y1)&&!c&&K==="idle"){let C1=D.map((W4)=>W4.file);$(m.trim(),C1.length>0?C1:void 0),x(""),C([])}},_0=(i0)=>{if(i0.key==="Enter"&&!i0.shiftKey)i0.preventDefault(),O0()},p=()=>{k?.(),a.current?.focus()},e=(i0)=>{if(x(i0),a.current)a.current.style.height="auto",a.current.style.height=`${Math.min(a.current.scrollHeight,120)}px`},J0=(i0)=>{if(i0.target.files&&i0.target.files.length>0){let Y1=Array.from(i0.target.files),C1=[],W4=[];if(Y1.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)C((H4)=>[...H4,...C1]);if(W4.length>0)n(W4.join(", ")),setTimeout(()=>n(null),5000);j(!1),i0.target.value=""}},P0=(i0)=>{C((Y1)=>{let C1=Y1[i0];if(C1.preview)URL.revokeObjectURL(C1.preview);return Y1.filter((W4,H4)=>H4!==i0)})},I0=(i0)=>{if(i0.startsWith("image/"))return S0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.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 S0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.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 S0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.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"})})},f0=()=>{if(K==="loading"){if(v)return{text:v,isToolCall:!0};if(F)return{text:F,isToolCall:!1};return{text:"Processing...",isToolCall:!1}}if(K==="success"&&B)return{text:B,isToolCall:!1};if(K==="error"&&L)return{text:L,isToolCall:!1};if(K==="plan-pending"&&G)return{text:G,isToolCall:!1};return{text:"",isToolCall:!1}},H1=K!=="idle",{text:s0,isToolCall:O1}=f0();return S0.jsxs("div",{className:"w-full relative",children:[G0&&S0.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:S0.jsxs("div",{className:"flex items-center gap-2 !text-red-700 dark:!text-red-300 text-xs",children:[S0.jsx("svg",{className:"w-3 h-3 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),S0.jsx("span",{children:G0})]})}),S0.jsxs("div",{className:j1("apteva-composer flex items-center gap-2 px-3 py-2 border-2 bg-white dark:bg-neutral-900 transition-all duration-200",K==="idle"&&"border-neutral-200 dark:border-neutral-700",K==="loading"&&"border-blue-400 dark:border-blue-500",K==="plan-pending"&&"border-amber-400 dark:border-amber-500",K==="success"&&"border-green-400 dark:border-green-500",K==="error"&&"border-red-400 dark:border-red-500"),children:[S0.jsxs("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:[K==="idle"&&S0.jsxs("div",{className:"relative",children:[S0.jsx("button",{ref:W0,onClick:()=>j(!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:S0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S0.jsx("path",{d:"M10 5v10M5 10h10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),Z0&&S0.jsxs(S0.Fragment,{children:[S0.jsx("div",{className:"fixed inset-0 z-[9998]",onClick:()=>j(!1)}),S0.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:W0.current?.getBoundingClientRect().left??0,top:(W0.current?.getBoundingClientRect().bottom??0)+8},children:[S0.jsxs("button",{onClick:()=>{s.current?.click(),j(!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:[S0.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S0.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)"})}),S0.jsx("span",{className:"!text-sm font-medium",children:"Add photos & files"})]}),w&&S0.jsxs("button",{onClick:()=>{w(),j(!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:[S0.jsx("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.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"})}),S0.jsx("span",{className:"!text-sm font-medium",children:"Expand to chat"})]})]})]})]}),K==="loading"&&!v&&S0.jsx("div",{className:"w-4 h-4 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"}),K==="loading"&&v&&S0.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]}),D.length>0&&K==="idle"&&S0.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:D.map((i0,Y1)=>S0.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?S0.jsx("img",{src:i0.preview,alt:i0.file.name,className:"w-6 h-6 object-cover"}):S0.jsx("span",{className:"text-xs !text-neutral-500 dark:!text-neutral-400",children:I0(i0.file.type)}),S0.jsx("button",{onClick:()=>P0(Y1),className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center transition-opacity",title:"Remove",children:S0.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},Y1))}),K==="idle"?S0.jsx("textarea",{ref:a,value:m,onChange:(i0)=>e(i0.target.value),onKeyDown:_0,placeholder:D.length>0?"Add a message...":R,disabled:c,rows:1,className:j1("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"}}):S0.jsx("div",{className:j1("flex-1 text-sm py-1 truncate flex items-center gap-2",K==="loading"&&!O1&&"!text-neutral-600 dark:!text-neutral-400",K==="loading"&&O1&&"!text-blue-600 dark:!text-blue-400",K==="success"&&"!text-neutral-900 dark:!text-neutral-100",K==="error"&&"!text-red-600 dark:!text-red-400",K==="plan-pending"&&"!text-amber-700 dark:!text-amber-300"),children:O1?S0.jsxs(S0.Fragment,{children:[S0.jsx("span",{className:"font-mono",children:s0}),S0.jsx("span",{className:"text-neutral-400 dark:text-neutral-500",children:"Running..."})]}):s0}),S0.jsx("div",{className:"w-8 h-8 flex items-center justify-center flex-shrink-0",children:K==="plan-pending"?S0.jsxs("div",{className:"flex items-center gap-1",children:[S0.jsx("button",{onClick:_,className:"px-2 py-1 bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors text-xs font-medium",children:"Approve"}),S0.jsx("button",{onClick:f,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"})]}):S0.jsxs(S0.Fragment,{children:[K==="loading"&&P&&S0.jsx("button",{onClick:P,className:"apteva-composer-stop-btn",title:"Stop generation",children:S0.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S0.jsx("rect",{x:"2",y:"2",width:"10",height:"10",rx:"1",fill:"currentColor"})})}),(K==="success"||K==="error")&&S0.jsx("button",{onClick:p,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:S0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),K==="idle"&&S0.jsx("button",{onClick:O0,disabled:!m.trim()&&D.length===0||c,className:j1("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",m.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:S0.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S0.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M12 5l7 7-7 7"})})})]})})]}),S0.jsx("input",{ref:s,type:"file",multiple:!0,onChange:J0,className:"hidden",accept:"image/*,application/pdf,.doc,.docx,.txt"})]})}var wk="http://91.99.200.48:3000/agents",Ak="agt_894abd5966bc9f1e9f8f17f2a6f6b5e0",Ik=class{constructor(){lR(this,"config"),this.config={apiUrl:wk,apiKey:Ak}}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 K=await fetch(`${this.config.apiUrl}/chat`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.config.apiKey},body:JSON.stringify($)});if(!K.ok){let L=await K.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${K.status}`)}let B=await K.json();return{message:B.response||B.message||"",thread_id:B.thread_id,widgets:B.widgets}}catch(K){throw console.error("Chat API error:",K),K}}async chatStream($,K,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 k=await G.json().catch(()=>({error:"Request failed"}));throw Error(k.error||`Request failed with status ${G.status}`)}let F=G.body?.getReader();if(!F)throw Error("Response body is not readable");let v=new TextDecoder,_="",f="";while(!0){let{done:k,value:P}=await F.read();if(k)break;_+=v.decode(P,{stream:!0});let w=_.split(`
190
+ `);_=w.pop()||"";for(let R of w){if(!R.trim()||R.startsWith(":"))continue;if(R.startsWith("data: ")){let c=R.slice(6);if(c==="[DONE]"){B?.(f);return}try{let m=JSON.parse(c);if(m.thread_id)f=m.thread_id;K(m)}catch(m){console.warn("[AptevaClient] Failed to parse SSE data:",c)}}}}B?.(f)}catch(G){let F=G instanceof Error?G:Error("Unknown error");throw L?.(F),F}}async createThread($,K){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:K})});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 K=await fetch(`${this.config.apiUrl}/threads/${$}/messages`,{method:"GET",headers:{"X-API-Key":this.config.apiKey}});if(!K.ok){let L=await K.json().catch(()=>({error:"Request failed"}));throw Error(L.error||`Request failed with status ${K.status}`)}return(await K.json()).messages}async cancelRequest($,K){try{let B=await fetch(`${this.config.apiUrl}/agents/${$}/requests/${K}/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}}},H8=new Ik,HB=h1.forwardRef(function({agentId:K,threadId:B,initialMessages:L=[],context:G,apiUrl:F,apiKey:v,useMock:_=!1,initialMode:f="chat",showModeToggle:k=!1,onModeChange:P,commandVariant:w="default",planMode:R=!1,onPlanModeChange:c,enableStreaming:m=!0,showProgress:x=!0,loadingText:D="Processing...",welcomeTitle:C,welcomeSubtitle:G0,welcomeIcon:n,suggestedPrompts:Z0,welcomeVariant:j,onThreadChange:a,onMessageSent:s,onAction:W0,onFileUpload:O0,onComplete:_0,onError:p,onToolCall:e,onToolResult:J0,variant:P0="default",placeholder:I0,showHeader:f0=!0,headerTitle:H1="Chat",enableWidgets:s0=!1,availableWidgets:O1,compactWidgetContext:i0=!1,onWidgetRender:Y1,className:C1},W4){let[H4,Q4]=h1.useState(L),[_4,a1]=h1.useState(!1),[i1,Y4]=h1.useState(B||null),[u4,X4]=h1.useState(f),[E4,g4]=h1.useState(null),[o1,e0]=h1.useState("idle"),[h4,I4]=h1.useState(null),[G4,O4]=h1.useState(null),[L5,r1]=h1.useState(0),[Z6,n1]=h1.useState(""),[J6,Z4]=h1.useState(""),[K4,r4]=h1.useState(null),[P6,v4]=h1.useState(null),[C4,q0]=h1.useState(""),[E0,d0]=h1.useState(""),[P1,S1]=h1.useState(R),[L4,l1]=h1.useState(!1),f4=h1.useRef(null),Q1=h1.useRef(null);h1.useImperativeHandle(W4,()=>({sendMessage:async(q1)=>{if(Q1.current)await Q1.current(q1)},sendSystemMessage:async(q1)=>{if(Q1.current)await Q1.current(q1,void 0,!0)},getMessages:()=>H4,clearMessages:()=>Q4([])}),[H4]);let b1=h1.useMemo(()=>{if(!s0)return G;let q1=i0?Zk(O1):Xk(O1);return G?`${G}
191
+ ${q1}`:q1},[G,s0,O1,i0]);h1.useEffect(()=>{if(F||v)H8.configure({...F&&{apiUrl:F},...v&&{apiKey:v}})},[F,v]),h1.useEffect(()=>{if(B)a?.(B)},[B,a]),h1.useEffect(()=>{S1(R)},[R]),h1.useEffect(()=>{let q1=(V1)=>{let x1=V1.target;if(L4&&!x1.closest(".settings-menu-container"))l1(!1)};return document.addEventListener("mousedown",q1),()=>document.removeEventListener("mousedown",q1)},[L4]);let I6=(q1)=>{if(X4(q1),P?.(q1),q1==="command")e0("idle"),I4(null),O4(null)},n4=u4==="chat"?"Type a message...":"Enter your command...",f6=async(q1,V1,x1)=>{let M1=V1&&V1.length>0,M=M1?V1.map((i)=>({name:i.name,type:i.type,size:i.size,preview:i.type.startsWith("image/")?URL.createObjectURL(i):void 0})):[];if(!x1){let i={id:`msg-${Date.now()}`,role:"user",content:q1,timestamp:new Date,metadata:M1?{attachments:M}:void 0};Q4((Q0)=>[...Q0,i]),s?.(i)}a1(!0);try{let i=await tq(q1,V1);if(_){let Q0=await iR(1000);Q4((W)=>[...W,Q0])}else{let Q0=[],W="",h=[],b0=i1,Y0={},L0={},V0=`msg-${Date.now()}`,A0=()=>{let z0=[...Q0];if(W){let U0=z0[z0.length-1];if(U0&&U0.type==="text")U0.content=W;else z0.push({type:"text",content:W})}Q4((U0)=>{let m0=U0[U0.length-1];if(m0&&m0.role==="assistant")return[...U0.slice(0,-1),{...m0,content:W,widgets:h.length>0?h:void 0,metadata:{...m0.metadata,content_segments:z0,isStreaming:!0}}];else return[...U0,{id:V0,role:"assistant",content:W,widgets:h.length>0?h:void 0,timestamp:new Date,metadata:{content_segments:z0,isStreaming:!0}}]})};await H8.chatStream({agent_id:K,message:i,stream:!0,...i1&&{thread_id:i1},...b1&&{system:b1}},(z0)=>{switch(z0.type){case"thread_id":if(z0.thread_id){if(b0=z0.thread_id,!i1)Y4(z0.thread_id),a?.(z0.thread_id)}break;case"request_id":if(z0.request_id)v4(z0.request_id);break;case"content":case"token":if(z0.content)W+=z0.content,A0();break;case"tool_call":if(z0.tool_id&&z0.tool_name){let U0=z0.tool_display_name||z0.tool_name;if(W)Q0.push({type:"text",content:W}),W="";Q0.push({type:"tool",id:z0.tool_id,name:U0,status:"preparing"}),Y0[z0.tool_id]="",g4(U0),e?.(z0.tool_name,z0.tool_id),A0()}break;case"tool_input_delta":if(z0.tool_id&&z0.content){let U0=z0.tool_id;if(Y0[U0]===void 0)Y0[U0]="";Y0[U0]+=z0.content;let m0=Q0.find((B1)=>B1.type==="tool"&&B1.id===U0);if(m0){if(m0.isReceiving=!0,m0.inputLength=Y0[U0].length,A0(),L0[U0])clearTimeout(L0[U0]);L0[U0]=setTimeout(()=>{if(m0.status==="preparing")m0.isReceiving=!1,A0()},150)}}break;case"tool_use":if(z0.tool_id){let U0=Q0.find((m0)=>m0.type==="tool"&&m0.id===z0.tool_id);if(U0&&U0.status==="preparing")U0.status="running",U0.isReceiving=!1,A0()}break;case"tool_stream":if(z0.tool_id){let U0=Q0.find((m0)=>m0.type==="tool"&&m0.id===z0.tool_id);if(U0){if(z0.event==="chunk"&&z0.content){if(U0.pendingReset)U0.streamOutput="",U0.pendingReset=!1;U0.streamOutput=(U0.streamOutput||"")+z0.content,A0()}else if(z0.event==="log"||z0.event==="progress")U0.pendingReset=!0}}break;case"tool_result":if(z0.tool_id){let U0=Q0.find((m0)=>m0.type==="tool"&&m0.id===z0.tool_id);if(U0)U0.result=z0.content,U0.status="completed",U0.isReceiving=!1,J0?.(U0.name,z0.content);g4(null),A0()}break;case"widget":if(z0.widget)h.push(z0.widget),A0();break;case"error":throw Error(z0.message||"Stream error")}},(z0)=>{if(W){let U0=Q0[Q0.length-1];if(U0&&U0.type==="text")U0.content=W;else Q0.push({type:"text",content:W})}if(Q4((U0)=>{let m0=U0[U0.length-1];if(m0&&m0.role==="assistant")return[...U0.slice(0,-1),{...m0,content:W||"Response received",widgets:h.length>0?h:void 0,metadata:{thread_id:z0,content_segments:Q0,isStreaming:!1}}];return U0}),z0&&z0!==i1)Y4(z0),a?.(z0);a1(!1),v4(null),g4(null)},(z0)=>{let U0={id:`msg-${Date.now()}-error`,role:"assistant",content:`Error: ${z0.message}`,timestamp:new Date,metadata:{error:!0}};Q4((m0)=>{let B1=m0[m0.length-1];if(B1&&B1.id.includes("streaming"))return[...m0.slice(0,-1),U0];return[...m0,U0]}),a1(!1),v4(null),g4(null),p?.(z0)})}}catch(i){let Q0={id:`msg-${Date.now()}-error`,role:"assistant",content:i instanceof Error?`Error: ${i.message}`:"An error occurred",timestamp:new Date,metadata:{error:!0}};Q4((W)=>[...W,Q0]),p?.(i instanceof Error?i:Error("Unknown error"))}finally{a1(!1)}};Q1.current=f6;let g5=async(q1,V1)=>{let x1=q1||Z6;if(!x1.trim()&&(!V1||V1.length===0)){O4(Error("Please enter a command")),e0("error");return}if(P1&&o1!=="plan-pending"){if(e0("loading"),O4(null),n1(""),_)setTimeout(()=>{let M1=`1. Analyze the request: "${x1}"
192
+ 2. Process the data
193
+ 3. Generate response
194
+ 4. Return results`;q0(M1),d0(x1),e0("plan-pending")},800);else try{let M=b1?`${b1}
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.",i=await H8.chat({agent_id:K,message:x1,stream:!1,system:M});q0(i.message),d0(x1),e0("plan-pending")}catch(M1){let M=M1 instanceof Error?M1:Error("Failed to generate plan");O4(M),e0("error"),p?.(M)}return}e0("loading"),O4(null),r1(0),Z4(""),n1("");try{if(_)if(m){let M1="";jR(x1,(M)=>{if(M.type==="token"&&M.content){M1+=M.content,Z4(M1);let i=Math.min(Math.round(M1.length/10),90);r1(i)}},(M)=>{let i={success:!0,data:{summary:M1,thread_id:M},message:M1||"Command executed successfully"};I4(i),e0("success"),r1(100),_0?.(i)},(M)=>{O4(M),e0("error"),p?.(M)})}else{await new Promise((M)=>setTimeout(M,1500));let M1={success:!0,data:{summary:`Executed: ${x1}`},message:"Command executed successfully"};I4(M1),e0("success"),r1(100),_0?.(M1)}else{let M=b1?`${b1}
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.`,i=V1&&V1.length>0?await tq(x1,V1):x1;if(m){let Q0="",W="";await H8.chatStream({agent_id:K,message:i,stream:!0,...i1&&{thread_id:i1},system:M},(h)=>{if((h.type==="token"||h.type==="content")&&h.content){Q0+=h.content,Z4(Q0),r4(null);let b0=Math.min(Math.round(Q0.length/10),90);r1(b0)}else if(h.type==="tool_call"&&h.tool_name){let b0=h.tool_display_name||h.tool_name;W=h.tool_name,r4(b0),e?.(h.tool_name,h.tool_id||""),Q0="",Z4("")}else if(h.type==="tool_result")J0?.(W,h.content),r4(null);else if(h.type==="thread_id"&&h.thread_id){if(!i1)Y4(h.thread_id),a?.(h.thread_id)}else if(h.type==="request_id"&&h.request_id)v4(h.request_id)},(h)=>{let b0={success:!0,data:{summary:Q0,thread_id:h},message:Q0||"Command executed successfully"};I4(b0),e0("success"),r1(100),v4(null),_0?.(b0)},(h)=>{O4(h),e0("error"),v4(null),p?.(h)})}else{let Q0=await H8.chat({agent_id:K,message:i,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),e0("success"),r1(100),_0?.(W)}}}catch(M1){let M=M1 instanceof Error?M1:Error("Unknown error");O4(M),e0("error"),p?.(M)}},N5=()=>{e0("idle"),I4(null),O4(null),r1(0),n1(""),q0(""),d0(""),Z4(""),r4(null)},y5=()=>{let q1=C4;q0(""),d0("");let V1=`Execute this plan now:
199
+
200
+ ${q1}`;g5(V1)},X5=()=>{n1(E0),q0(""),d0(""),e0("idle")},F6=async()=>{if(P6&&K)try{await H8.cancelRequest(K,P6)}catch(q1){console.error("Failed to cancel request:",q1)}if(a1(!1),o1==="loading")e0("idle"),Z4(""),r4(null),r1(0);v4(null)},W5=w==="compact";return E6.jsxs("div",{className:j1("apteva-chat flex flex-col h-full",P0!=="default"&&`apteva-chat-${P0}`,C1),children:[f0&&u4==="chat"&&E6.jsx("div",{className:"apteva-chat-header px-4 py-3 flex items-center justify-between",children:E6.jsxs("div",{children:[E6.jsx("div",{className:"apteva-chat-title",children:H1}),E6.jsx("div",{className:j1("apteva-chat-status",_4?E4?"apteva-chat-status-tool":"apteva-chat-status-thinking":"apteva-chat-status-ready"),children:_4?E4?`Using ${E4}...`:"Thinking...":"Ready"})]})}),u4==="chat"&&E6.jsxs(E6.Fragment,{children:[E6.jsx(Mk,{messages:H4,onAction:W0,welcomeTitle:C,welcomeSubtitle:G0,welcomeIcon:n,suggestedPrompts:Z0,welcomeVariant:j,chatVariant:P0,onPromptClick:(q1)=>f6(q1),enableWidgets:s0,onWidgetRender:Y1}),E6.jsx(Rk,{onSendMessage:f6,placeholder:I0||n4,disabled:_4,isLoading:_4,onStop:F6,onFileUpload:O0,onSwitchMode:k?()=>I6("command"):void 0})]}),u4==="command"&&E6.jsx("div",{className:"w-full",children:E6.jsx(kk,{onExecute:(q1,V1)=>{n1(q1),g5(q1,V1)},state:o1,response:h4?.data?.summary||h4?.message,error:G4?.message,plan:C4,streamedContent:J6,toolName:K4,onApprove:y5,onReject:X5,onReset:N5,onStop:F6,onExpand:k?()=>I6("chat"):void 0,placeholder:I0||"Enter your command..."})}),E6.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 c0=H0(U1(),1),Ck=[{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:pb},{key:"mcp",label:"MCP",description:"External tools/services",icon:O5},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:rb}];function iZ({agent:$,providers:K,onClose:B,onStartAgent:L,onUpdateAgent:G,onDeleteAgent:F}){let[v,_]=Q7.useState("chat");return c0.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[#0a0a0a] border-l border-[#1a1a1a]",children:[c0.jsxDEV("div",{className:"border-b border-[#1a1a1a] flex items-center justify-between px-4",children:[c0.jsxDEV("div",{className:"flex gap-1",children:[c0.jsxDEV(LB,{active:v==="chat",onClick:()=>_("chat"),children:"Chat"},void 0,!1,void 0,this),c0.jsxDEV(LB,{active:v==="settings",onClick:()=>_("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c0.jsxDEV("button",{onClick:B,className:"text-[#666] hover:text-[#e0e0e0] transition p-2",children:c0.jsxDEV(X8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c0.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[v==="chat"&&c0.jsxDEV(Sk,{agent:$,onStartAgent:L},void 0,!1,void 0,this),v==="settings"&&c0.jsxDEV(Vk,{agent:$,providers:K,onUpdateAgent:G,onDeleteAgent:F},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function LB({active:$,onClick:K,children:B}){return c0.jsxDEV("button",{onClick:K,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 Sk({agent:$,onStartAgent:K}){if($.status==="running"&&$.port)return c0.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 c0.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:c0.jsxDEV("div",{className:"text-center",children:[c0.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),c0.jsxDEV("button",{onClick:K,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 Vk({agent:$,providers:K,onUpdateAgent:B,onDeleteAgent:L}){let[G,F]=Q7.useState({name:$.name,provider:$.provider,model:$.model,systemPrompt:$.systemPrompt,features:{...$.features},mcpServers:[...$.mcpServers||[]]}),[v,_]=Q7.useState(!1),[f,k]=Q7.useState(!1),[P,w]=Q7.useState(null),[R,c]=Q7.useState([]);Q7.useEffect(()=>{(async()=>{try{let W0=await(await fetch("/api/mcp/servers")).json();c(W0.servers||[])}catch(s){console.error("Failed to fetch MCP servers:",s)}})()},[]),Q7.useEffect(()=>{F({name:$.name,provider:$.provider,model:$.model,systemPrompt:$.systemPrompt,features:{...$.features},mcpServers:[...$.mcpServers||[]]}),w(null)},[$.id]);let m=K.find((a)=>a.id===G.provider),x=K.filter((a)=>a.configured).map((a)=>({value:a.id,label:a.name})),D=m?.models.map((a)=>({value:a.value,label:a.label,recommended:a.recommended}))||[],C=(a)=>{let s=K.find((O0)=>O0.id===a),W0=s?.models.find((O0)=>O0.recommended)?.value||s?.models[0]?.value||"";F((O0)=>({...O0,provider:a,model:W0}))},G0=(a)=>{F((s)=>({...s,features:{...s.features,[a]:!s.features[a]}}))},n=(a)=>{F((s)=>({...s,mcpServers:s.mcpServers.includes(a)?s.mcpServers.filter((W0)=>W0!==a):[...s.mcpServers,a]}))},Z0=async()=>{_(!0),w(null);let a=await B(G);if(_(!1),a.error)w({type:"error",text:a.error});else w({type:"success",text:"Settings saved"}),setTimeout(()=>w(null),2000)},j=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 c0.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:c0.jsxDEV("div",{className:"space-y-4",children:[c0.jsxDEV(U8,{label:"Name",children:c0.jsxDEV("input",{type:"text",value:G.name,onChange:(a)=>F((s)=>({...s,name:a.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),c0.jsxDEV(U8,{label:"Provider",children:c0.jsxDEV(q5,{value:G.provider,options:x,onChange:C},void 0,!1,void 0,this)},void 0,!1,void 0,this),c0.jsxDEV(U8,{label:"Model",children:c0.jsxDEV(q5,{value:G.model,options:D,onChange:(a)=>F((s)=>({...s,model:a}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),c0.jsxDEV(U8,{label:"System Prompt",children:c0.jsxDEV("textarea",{value:G.systemPrompt,onChange:(a)=>F((s)=>({...s,systemPrompt:a.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),c0.jsxDEV(U8,{label:"Features",children:c0.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Ck.map(({key:a,label:s,description:W0,icon:O0})=>c0.jsxDEV("button",{type:"button",onClick:()=>G0(a),className:`flex items-center gap-3 p-3 rounded border text-left transition ${G.features[a]?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[c0.jsxDEV(O0,{className:`w-5 h-5 flex-shrink-0 ${G.features[a]?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),c0.jsxDEV("div",{className:"flex-1 min-w-0",children:[c0.jsxDEV("div",{className:`text-sm font-medium ${G.features[a]?"text-[#f97316]":""}`,children:s},void 0,!1,void 0,this),c0.jsxDEV("div",{className:"text-xs text-[#666]",children:W0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},a,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),G.features.mcp&&c0.jsxDEV(U8,{label:"MCP Servers",children:R.length===0?c0.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):c0.jsxDEV("div",{className:"space-y-2",children:[R.map((a)=>c0.jsxDEV("button",{type:"button",onClick:()=>n(a.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${G.mcpServers.includes(a.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[c0.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${a.status==="running"?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),c0.jsxDEV("div",{className:"flex-1 min-w-0",children:[c0.jsxDEV("div",{className:`text-sm font-medium ${G.mcpServers.includes(a.id)?"text-[#f97316]":""}`,children:a.name},void 0,!1,void 0,this),c0.jsxDEV("div",{className:"text-xs text-[#666]",children:[a.type," • ",a.package||a.command||"custom",a.status==="running"&&a.port&&` • :${a.port}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c0.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${a.status==="running"?"bg-green-500/20 text-green-400":"bg-[#222] text-[#666]"}`,children:a.status},void 0,!1,void 0,this)]},a.id,!0,void 0,this)),c0.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),P&&c0.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${P.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:P.text},void 0,!1,void 0,this),c0.jsxDEV("button",{onClick:Z0,disabled:!j||v||!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:v?"Saving...":"Save Changes"},void 0,!1,void 0,this),$.status==="running"&&j&&c0.jsxDEV("p",{className:"text-xs text-[#666] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),c0.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[c0.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),f?c0.jsxDEV("div",{className:"flex gap-2",children:[c0.jsxDEV("button",{onClick:()=>k(!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),c0.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):c0.jsxDEV("button",{onClick:()=>k(!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 U8({label:$,children:K}){return c0.jsxDEV("div",{children:[c0.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:$},void 0,!1,void 0,this),K]},void 0,!0,void 0,this)}var Q5=H0(U1(),1);function oZ({agents:$,loading:K,selectedAgent:B,providers:L,onSelectAgent:G,onCloseAgent:F,onToggleAgent:v,onDeleteAgent:_,onUpdateAgent:f}){return Q5.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[Q5.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:K?Q5.jsxDEV(z8,{message:"Loading agents..."},void 0,!1,void 0,this):$.length===0?Q5.jsxDEV(Dk,{},void 0,!1,void 0,this):Q5.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:$.map((k)=>Q5.jsxDEV(cZ,{agent:k,selected:B?.id===k.id,onSelect:()=>G(k),onToggle:(P)=>v(k,P),onDelete:(P)=>_(k.id,P)},k.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),B&&Q5.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:F},void 0,!1,void 0,this),B&&Q5.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-[600px] z-20",children:Q5.jsxDEV(iZ,{agent:B,providers:L,onClose:F,onStartAgent:(k)=>v(B,k),onUpdateAgent:(k)=>f(B.id,k),onDeleteAgent:()=>_(B.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Dk(){return Q5.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[Q5.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),Q5.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 qQ=H0(m1(),1);var _1=H0(U1(),1);function jZ({agents:$,loading:K,runningCount:B,configuredProviders:L,onNavigate:G,onSelectAgent:F}){let[v,_]=qQ.useState(null),[f,k]=qQ.useState([]);qQ.useEffect(()=>{P();let R=setInterval(P,1e4);return()=>clearInterval(R)},[]);let P=async()=>{try{let[R,c]=await Promise.all([fetch("/api/dashboard"),fetch("/api/tasks?status=all")]);if(R.ok){let m=await R.json();_(m)}if(c.ok){let m=await c.json();k((m.tasks||[]).slice(0,5))}}catch(R){console.error("Failed to fetch dashboard data:",R)}},w=v?.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:w.total,subValue:`${w.pending} pending`},void 0,!1,void 0,this),_1.jsxDEV(xZ,{label:"Completed",value:w.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:K?_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(mk,{agent:R,onSelect:()=>F(R)},R.id,!1,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:f.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:f.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(uk,{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:K,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:K},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:K,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:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L]},void 0,!0,void 0,this)}function mk({agent:$,onSelect:K}){let{isActive:B}=JQ($.id);return _1.jsxDEV("div",{onClick:K,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:$.name},void 0,!1,void 0,this),_1.jsxDEV("p",{className:"text-sm text-[#666]",children:$.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV("span",{className:`w-2 h-2 rounded-full ${$.status==="running"?B?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uk({status:$}){let K={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 ${K[$]||K.pending}`,children:$},void 0,!1,void 0,this)}var q8=H0(m1(),1);var p1=H0(U1(),1);function pZ({onSelectAgent:$}){let[K,B]=q8.useState([]),[L,G]=q8.useState(!0),[F,v]=q8.useState("all");q8.useEffect(()=>{_();let P=setInterval(_,1e4);return()=>clearInterval(P)},[F]);let _=async()=>{try{let w=await(await fetch(`/api/tasks?status=${F}`)).json();B(w.tasks||[])}catch(P){console.error("Failed to fetch tasks:",P)}finally{G(!1)}},f={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((P)=>p1.jsxDEV("button",{onClick:()=>v(P.value),className:`px-3 py-1.5 rounded text-sm transition ${F===P.value?"bg-[#f97316] text-black":"bg-[#1a1a1a] hover:bg-[#222]"}`,children:P.label},P.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):K.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:K.map((P)=>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:P.title},void 0,!1,void 0,this),p1.jsxDEV("p",{className:"text-sm text-[#666]",children:[P.agentName,P.execute_at&&p1.jsxDEV("span",{className:"ml-2",children:["· Scheduled: ",new Date(P.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 ${f[P.status]||f.pending}`,children:P.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.description&&p1.jsxDEV("p",{className:"text-sm text-[#888] mb-2 line-clamp-2",children:P.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: ",P.type]},void 0,!0,void 0,this),p1.jsxDEV("span",{children:["Priority: ",P.priority]},void 0,!0,void 0,this),P.recurrence&&p1.jsxDEV("span",{children:["Recurrence: ",P.recurrence]},void 0,!0,void 0,this),p1.jsxDEV("span",{children:["Created: ",new Date(P.created_at).toLocaleString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${P.agentId}-${P.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=H0(m1(),1);var y=H0(U1(),1);function rZ(){let[$,K]=f1.useState([]),[B,L]=f1.useState(!0),[G,F]=f1.useState(!1),[v,_]=f1.useState(null),[f,k]=f1.useState("servers"),P=async()=>{try{let x=await(await fetch("/api/mcp/servers")).json();K(x.servers||[])}catch(m){console.error("Failed to fetch MCP servers:",m)}L(!1)};f1.useEffect(()=>{P()},[]);let w=async(m)=>{try{await fetch(`/api/mcp/servers/${m}/start`,{method:"POST"}),P()}catch(x){console.error("Failed to start server:",x)}},R=async(m)=>{try{await fetch(`/api/mcp/servers/${m}/stop`,{method:"POST"}),P()}catch(x){console.error("Failed to stop server:",x)}},c=async(m)=>{if(!confirm("Delete this MCP server?"))return;try{if(await fetch(`/api/mcp/servers/${m}`,{method:"DELETE"}),v?.id===m)_(null);P()}catch(x){console.error("Failed to delete server:",x)}};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),f==="servers"&&y.jsxDEV("button",{onClick:()=>F(!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:()=>k("servers"),className:`px-4 py-2 rounded text-sm font-medium transition ${f==="servers"?"bg-[#1a1a1a] text-white":"text-[#666] hover:text-[#888]"}`,children:"My Servers"},void 0,!1,void 0,this),y.jsxDEV("button",{onClick:()=>k("registry"),className:`px-4 py-2 rounded text-sm font-medium transition ${f==="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),f==="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:()=>F(!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:()=>k("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 ${v?"w-1/2":"w-full"}`,children:$.map((m)=>y.jsxDEV(Ek,{server:m,selected:v?.id===m.id,onSelect:()=>_(m.status==="running"?m:null),onStart:()=>w(m.id),onStop:()=>R(m.id),onDelete:()=>c(m.id)},m.id,!1,void 0,this))},void 0,!1,void 0,this),v&&y.jsxDEV("div",{className:"w-1/2",children:y.jsxDEV(gk,{server:v,onClose:()=>_(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),f==="registry"&&y.jsxDEV(ck,{onInstall:(m)=>{P(),k("servers")}},void 0,!1,void 0,this),f==="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((m)=>y.jsxDEV("code",{className:"text-xs bg-[#0a0a0a] px-2 py-1 rounded",children:m.pkg},m.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(ak,{onClose:()=>F(!1),onAdded:()=>{F(!1),P()}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ek({server:$,selected:K,onSelect:B,onStart:L,onStop:G,onDelete:F}){return y.jsxDEV("div",{className:`bg-[#111] border rounded-lg p-4 cursor-pointer transition ${K?"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:(v)=>{v.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:(v)=>{v.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:(v)=>{v.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:(v)=>{v.stopPropagation(),F()},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 gk({server:$,onClose:K}){let[B,L]=f1.useState([]),[G,F]=f1.useState(null),[v,_]=f1.useState(!0),[f,k]=f1.useState(null),[P,w]=f1.useState(null);return f1.useEffect(()=>{(async()=>{_(!0),k(null);try{let c=await fetch(`/api/mcp/servers/${$.id}/tools`),m=await c.json();if(!c.ok){k(m.error||"Failed to fetch tools");return}L(m.tools||[]),F(m.serverInfo||null)}catch(c){k(`Failed to fetch tools: ${c}`)}finally{_(!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:K,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:[v&&y.jsxDEV("p",{className:"text-[#666]",children:"Loading tools..."},void 0,!1,void 0,this),f&&y.jsxDEV("div",{className:"text-red-400 text-sm p-3 bg-red-500/10 rounded",children:f},void 0,!1,void 0,this),!v&&!f&&B.length===0&&y.jsxDEV("p",{className:"text-[#666]",children:"No tools available from this server."},void 0,!1,void 0,this),!v&&!f&&B.length>0&&!P&&y.jsxDEV("div",{className:"space-y-2",children:B.map((R)=>y.jsxDEV("button",{onClick:()=>w(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),P&&y.jsxDEV(yk,{serverId:$.id,tool:P,onBack:()=>w(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function yk({serverId:$,tool:K,onBack:B}){let[L,G]=f1.useState("{}"),[F,v]=f1.useState(null),[_,f]=f1.useState(null),[k,P]=f1.useState(!1);f1.useEffect(()=>{let R=K.inputSchema;if(R&&typeof R==="object"&&"properties"in R){let c=R.properties,m={};for(let[x,D]of Object.entries(c))if(D.default!==void 0)m[x]=D.default;else if(D.type==="string")m[x]="";else if(D.type==="number"||D.type==="integer")m[x]=0;else if(D.type==="boolean")m[x]=!1;else if(D.type==="array")m[x]=[];else if(D.type==="object")m[x]={};G(JSON.stringify(m,null,2))}},[K]);let w=async()=>{P(!0),f(null),v(null);try{let R=JSON.parse(L),c=await fetch(`/api/mcp/servers/${$}/tools/${encodeURIComponent(K.name)}/call`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({arguments:R})}),m=await c.json();if(!c.ok){f(m.error||"Failed to call tool");return}v(m.result)}catch(R){f(`Error: ${R}`)}finally{P(!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:K.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.description&&y.jsxDEV("p",{className:"text-sm text-[#666]",children:K.description},void 0,!1,void 0,this),K.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(K.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:w,disabled:k,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-4 py-2 rounded font-medium transition",children:k?"Calling...":"Call Tool"},void 0,!1,void 0,this),_&&y.jsxDEV("div",{className:"text-red-400 text-sm p-3 bg-red-500/10 rounded",children:_},void 0,!1,void 0,this),F&&y.jsxDEV("div",{className:"space-y-2",children:[y.jsxDEV("div",{className:"text-sm text-[#666]",children:["Result ",F.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 ${F.isError?"bg-red-500/10":"bg-green-500/10"}`,children:F.content.map((R,c)=>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)]},c,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ck({onInstall:$}){let[K,B]=f1.useState(""),[L,G]=f1.useState([]),[F,v]=f1.useState(!1),[_,f]=f1.useState(!1),[k,P]=f1.useState(null),[w,R]=f1.useState(null),c=async(D)=>{v(!0),R(null);try{let C=await fetch(`/api/mcp/registry?search=${encodeURIComponent(D)}&limit=20`),G0=await C.json();if(!C.ok)R(G0.error||"Failed to search registry"),G([]);else G(G0.servers||[])}catch(C){R(`Failed to search: ${C}`),G([])}finally{v(!1),f(!0)}},m=(D)=>{if(D.preventDefault(),K.trim())c(K.trim())};f1.useEffect(()=>{c("")},[]);let x=async(D)=>{if(!D.npmPackage){R("This server does not have an npm package");return}P(D.name),R(null);try{let C=await fetch("/api/mcp/servers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:D.name,type:"npm",package:D.npmPackage})});if(!C.ok){let G0=await C.json();R(G0.error||"Failed to add server");return}$(D)}catch(C){R(`Failed to add server: ${C}`)}finally{P(null)}};return y.jsxDEV("div",{className:"space-y-6",children:[y.jsxDEV("form",{onSubmit:m,className:"flex gap-2",children:[y.jsxDEV("input",{type:"text",value:K,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:F,className:"bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-6 py-3 rounded-lg font-medium transition",children:F?"...":"Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w&&y.jsxDEV("div",{className:"text-red-400 text-sm p-3 bg-red-500/10 border border-red-500/20 rounded-lg",children:w},void 0,!1,void 0,this),!F&&_&&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:()=>x(D),disabled:k===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:k===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),F&&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 dk($){let K=[],B=$,L=null,G=$.match(/(?:npx\s+-y\s+)?(@?[\w-]+\/)?(@?[\w-]+)(?:@[\w.-]+)?/);if(G){let _=G[2]||G[1];if(_)L=_.replace(/^@/,"").replace(/-mcp$/,"").replace(/-server$/,"").replace(/^server-/,"").replace(/^mcp-/,"")}let F=/--(\w+[-\w]*)\s+(YOUR_\w+|<[\w_]+>|\{[\w_]+\}|\$[\w_]+|[\w_]*(?:TOKEN|KEY|SECRET|PASSWORD|USER|ID|APIKEY)[\w_]*)/gi,v;while((v=F.exec($))!==null){let _=v[1],f=v[2],k=_.toUpperCase().replace(/-/g,"_"),P=L?`${L.toUpperCase().replace(/-/g,"_")}_${k}`:k;K.push({key:P,flag:_}),B=B.replace(new RegExp(`(--${_}\\s+)${f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"i"),`--${_} $${P}`)}return{cleanCommand:B,credentials:K,serverName:L}}function ak({onClose:$,onAdded:K}){let[B,L]=f1.useState("npm"),[G,F]=f1.useState(""),[v,_]=f1.useState(""),[f,k]=f1.useState(""),[P,w]=f1.useState([]),[R,c]=f1.useState(!1),[m,x]=f1.useState(null),D=()=>{w([...P,{key:"",value:""}])},C=(s,W0,O0)=>{let _0=[...P];_0[s][W0]=O0,w(_0)},G0=(s)=>{w(P.filter((W0,O0)=>O0!==s))},n=(s)=>{if(k(s),s.includes("YOUR_")||s.includes("<")||s.includes("{")||/TOKEN|KEY|SECRET|PASSWORD/i.test(s)){let{cleanCommand:W0,credentials:O0,serverName:_0}=dk(s);if(!G&&_0)F(_0);if(O0.length>0){let p=new Set(P.map((J0)=>J0.key)),e=O0.filter((J0)=>!p.has(J0.key)).map((J0)=>({key:J0.key,value:""}));if(e.length>0)w([...P,...e]),k(W0)}}},Z0=(s)=>{if(s.startsWith("npx ")||s.includes(" --")||s.includes("YOUR_")||s.includes("<")||/\s+(TOKEN|KEY|SECRET|PASSWORD)/i.test(s))L("command"),n(s);else if(_(s),!G&&s){let O0=s.replace(/^@[\w-]+\//,"").replace(/@[\w.-]+$/,"").replace(/^server-/,"").replace(/-server$/,"").replace(/^mcp-/,"").replace(/-mcp$/,"");if(O0&&O0!==s)F(O0)}},j=async()=>{if(!G){x("Name is required");return}if(B==="npm"&&!v){x("npm package is required");return}if(B==="command"&&!f){x("Command is required");return}c(!0),x(null);let s={};for(let{key:W0,value:O0}of P)if(W0.trim())s[W0.trim()]=O0;try{let W0={name:G};if(B==="npm")W0.type="npm",W0.package=v;else{let _0=f.trim().split(/\s+/);W0.type="custom",W0.command=_0[0],W0.args=_0.slice(1).join(" ")}if(Object.keys(s).length>0)W0.env=s;let O0=await fetch("/api/mcp/servers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(W0)});if(!O0.ok){let _0=await O0.json();x(_0.error||"Failed to add server"),c(!1);return}K()}catch(W0){x("Failed to add server"),c(!1)}},a=(s,W0)=>{L("npm"),F(s),_(W0)};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((s)=>y.jsxDEV("button",{onClick:()=>a(s.name,s.pkg),className:"text-sm bg-[#1a1a1a] hover:bg-[#222] px-3 py-1 rounded transition",children:s.name},s.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:(s)=>F(s.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:v,onChange:(s)=>Z0(s.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:f,onChange:(s)=>n(s.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),P.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),P.length>0&&y.jsxDEV("div",{className:"space-y-2",children:P.map((s,W0)=>y.jsxDEV("div",{className:"flex gap-2",children:[y.jsxDEV("input",{type:"text",value:s.key,onChange:(O0)=>C(W0,"key",O0.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:s.value,onChange:(O0)=>C(W0,"value",O0.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:()=>G0(W0),className:"text-[#666] hover:text-red-400 px-2 transition",children:"✕"},void 0,!1,void 0,this)]},W0,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m&&y.jsxDEV("p",{className:"text-red-400 text-sm",children:m},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:j,disabled:R||!G||(B==="npm"?!v:!f),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 Q6=H0(m1(),1);var h0=H0(U1(),1);function WB($){let K=$.category==="LLM",B=$.category==="TOOL",L=$.level==="error",G=$.data?.input_tokens||0,F=$.data?.output_tokens||0;return{llm_calls:K?1:0,tool_calls:B?1:0,errors:L?1:0,input_tokens:G,output_tokens:F}}function kG(){let{events:$}=s3(),[K,B]=Q6.useState(null),[L,G]=Q6.useState([]),[F,v]=Q6.useState([]),[_,f]=Q6.useState(!0),[k,P]=Q6.useState({category:"",level:"",agent_id:""}),[w,R]=Q6.useState([]),[c,m]=Q6.useState(null),x=Q6.useRef(new Set);Q6.useEffect(()=>{(async()=>{try{let J0=await(await fetch("/api/agents")).json();R(J0.agents||[])}catch(e){console.error("Failed to fetch agents:",e)}})()},[]);let D=async()=>{f(!0);try{let e=await(await fetch("/api/telemetry/stats")).json();B(e.stats);let J0=new URLSearchParams;if(k.category)J0.set("category",k.category);if(k.level)J0.set("level",k.level);if(k.agent_id)J0.set("agent_id",k.agent_id);J0.set("limit","50");let f0=(await(await fetch(`/api/telemetry/events?${J0}`)).json()).events||[];G(f0),x.current=new Set(f0.map((O1)=>O1.id));let s0=await(await fetch("/api/telemetry/usage?group_by=agent")).json();v(s0.usage||[])}catch(p){console.error("Failed to fetch telemetry:",p)}f(!1)};Q6.useEffect(()=>{D();let p=setInterval(D,60000);return()=>clearInterval(p)},[k]);let C=Q6.useMemo(()=>{if(!K)return null;let p=0,e=0,J0=0,P0=0,I0=0,f0=0;for(let H1 of $)if(!x.current.has(H1.id)){p++;let s0=WB(H1);e+=s0.llm_calls,J0+=s0.tool_calls,P0+=s0.errors,I0+=s0.input_tokens,f0+=s0.output_tokens}return{total_events:K.total_events+p,total_llm_calls:K.total_llm_calls+e,total_tool_calls:K.total_tool_calls+J0,total_errors:K.total_errors+P0,total_input_tokens:K.total_input_tokens+I0,total_output_tokens:K.total_output_tokens+f0}},[K,$]),G0=Q6.useMemo(()=>{let p=new Map;for(let e of F)p.set(e.agent_id,{...e});for(let e of $)if(!x.current.has(e.id)){let J0=WB(e),P0=p.get(e.agent_id);if(P0)P0.llm_calls+=J0.llm_calls,P0.tool_calls+=J0.tool_calls,P0.errors+=J0.errors,P0.input_tokens+=J0.input_tokens,P0.output_tokens+=J0.output_tokens;else p.set(e.agent_id,{agent_id:e.agent_id,llm_calls:J0.llm_calls,tool_calls:J0.tool_calls,errors:J0.errors,input_tokens:J0.input_tokens,output_tokens:J0.output_tokens})}return Array.from(p.values())},[F,$]),n=Q6.default.useMemo(()=>{let p=$;if(k.agent_id)p=p.filter((P0)=>P0.agent_id===k.agent_id);if(k.category)p=p.filter((P0)=>P0.category===k.category);if(k.level)p=p.filter((P0)=>P0.level===k.level);let e=new Set(p.map((P0)=>P0.id)),J0=[...p];for(let P0 of L)if(!e.has(P0.id))J0.push(P0),e.add(P0.id);return J0.sort((P0,I0)=>new Date(I0.timestamp).getTime()-new Date(P0.timestamp).getTime()),J0.slice(0,100)},[$,L,k]),Z0=(p)=>{return w.find((J0)=>J0.id===p)?.name||p},j=(p)=>{if(p>=1e6)return(p/1e6).toFixed(1)+"M";if(p>=1000)return(p/1000).toFixed(1)+"K";return p.toString()},a={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"},W0=[{value:"",label:"All Agents"},...w.map((p)=>({value:p.id,label:p.name}))],O0=[{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"}],_0=[{value:"",label:"All Levels"},{value:"debug",label:"Debug"},{value:"info",label:"Info"},{value:"warn",label:"Warn"},{value:"error",label:"Error"}];return h0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:h0.jsxDEV("div",{className:"max-w-6xl",children:[h0.jsxDEV("div",{className:"mb-6",children:[h0.jsxDEV("h1",{className:"text-2xl font-semibold mb-1",children:"Telemetry"},void 0,!1,void 0,this),h0.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),C&&h0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-6",children:[h0.jsxDEV(B8,{label:"Events",value:j(C.total_events)},void 0,!1,void 0,this),h0.jsxDEV(B8,{label:"LLM Calls",value:j(C.total_llm_calls)},void 0,!1,void 0,this),h0.jsxDEV(B8,{label:"Tool Calls",value:j(C.total_tool_calls)},void 0,!1,void 0,this),h0.jsxDEV(B8,{label:"Errors",value:j(C.total_errors),color:"red"},void 0,!1,void 0,this),h0.jsxDEV(B8,{label:"Input Tokens",value:j(C.total_input_tokens)},void 0,!1,void 0,this),h0.jsxDEV(B8,{label:"Output Tokens",value:j(C.total_output_tokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G0.length>0&&h0.jsxDEV("div",{className:"mb-6",children:[h0.jsxDEV("h2",{className:"text-lg font-medium mb-3",children:"Usage by Agent"},void 0,!1,void 0,this),h0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg overflow-hidden",children:h0.jsxDEV("table",{className:"w-full text-sm",children:[h0.jsxDEV("thead",{children:h0.jsxDEV("tr",{className:"border-b border-[#1a1a1a] text-[#666]",children:[h0.jsxDEV("th",{className:"text-left p-3",children:"Agent"},void 0,!1,void 0,this),h0.jsxDEV("th",{className:"text-right p-3",children:"LLM Calls"},void 0,!1,void 0,this),h0.jsxDEV("th",{className:"text-right p-3",children:"Tool Calls"},void 0,!1,void 0,this),h0.jsxDEV("th",{className:"text-right p-3",children:"Input Tokens"},void 0,!1,void 0,this),h0.jsxDEV("th",{className:"text-right p-3",children:"Output Tokens"},void 0,!1,void 0,this),h0.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),h0.jsxDEV("tbody",{children:G0.map((p)=>h0.jsxDEV("tr",{className:"border-b border-[#1a1a1a] last:border-0",children:[h0.jsxDEV("td",{className:"p-3 font-medium",children:Z0(p.agent_id)},void 0,!1,void 0,this),h0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:j(p.llm_calls)},void 0,!1,void 0,this),h0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:j(p.tool_calls)},void 0,!1,void 0,this),h0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:j(p.input_tokens)},void 0,!1,void 0,this),h0.jsxDEV("td",{className:"p-3 text-right text-[#888]",children:j(p.output_tokens)},void 0,!1,void 0,this),h0.jsxDEV("td",{className:"p-3 text-right",children:p.errors>0?h0.jsxDEV("span",{className:"text-red-400",children:p.errors},void 0,!1,void 0,this):h0.jsxDEV("span",{className:"text-[#444]",children:"0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},p.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),h0.jsxDEV("div",{className:"flex items-center gap-3 mb-4",children:[h0.jsxDEV("div",{className:"w-56",children:h0.jsxDEV(q5,{value:k.agent_id,options:W0,onChange:(p)=>P({...k,agent_id:p}),placeholder:"All Agents"},void 0,!1,void 0,this)},void 0,!1,void 0,this),h0.jsxDEV("div",{className:"w-48",children:h0.jsxDEV(q5,{value:k.category,options:O0,onChange:(p)=>P({...k,category:p}),placeholder:"All Categories"},void 0,!1,void 0,this)},void 0,!1,void 0,this),h0.jsxDEV("div",{className:"w-40",children:h0.jsxDEV(q5,{value:k.level,options:_0,onChange:(p)=>P({...k,level:p}),placeholder:"All Levels"},void 0,!1,void 0,this)},void 0,!1,void 0,this),h0.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),h0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg",children:[h0.jsxDEV("div",{className:"p-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[h0.jsxDEV("h2",{className:"font-medium",children:"Recent Events"},void 0,!1,void 0,this),$.length>0&&h0.jsxDEV("span",{className:"text-xs text-[#666]",children:[$.length," new"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&n.length===0?h0.jsxDEV("div",{className:"p-8 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):n.length===0?h0.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):h0.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:n.map((p)=>{let e=new Date(p.timestamp).getTime(),J0=Date.now()-e<1e4;return h0.jsxDEV("div",{className:"p-3 hover:bg-[#0a0a0a] transition cursor-pointer",onClick:()=>m(c===p.id?null:p.id),children:h0.jsxDEV("div",{className:"flex items-start gap-3",children:[h0.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs border ${s[p.category]||"bg-[#222] text-[#888] border-[#333]"}`,children:p.category},void 0,!1,void 0,this),h0.jsxDEV("div",{className:"flex-1 min-w-0",children:[h0.jsxDEV("div",{className:"flex items-center gap-2",children:[h0.jsxDEV("span",{className:"font-medium text-sm",children:p.type},void 0,!1,void 0,this),h0.jsxDEV("span",{className:`text-xs ${a[p.level]||"text-[#666]"}`,children:p.level},void 0,!1,void 0,this),p.duration_ms&&h0.jsxDEV("span",{className:"text-xs text-[#555]",children:[p.duration_ms,"ms"]},void 0,!0,void 0,this),J0&&h0.jsxDEV("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h0.jsxDEV("div",{className:"text-xs text-[#555] mt-1",children:[Z0(p.agent_id)," · ",new Date(p.timestamp).toLocaleString()]},void 0,!0,void 0,this),p.error&&h0.jsxDEV("div",{className:"text-xs text-red-400 mt-1 font-mono",children:p.error},void 0,!1,void 0,this),c===p.id&&p.data&&Object.keys(p.data).length>0&&h0.jsxDEV("pre",{className:"text-xs text-[#666] mt-2 p-2 bg-[#0a0a0a] rounded overflow-x-auto",children:JSON.stringify(p.data,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},p.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 B8({label:$,value:K,color:B}){return h0.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4",children:[h0.jsxDEV("div",{className:"text-[#666] text-xs mb-1",children:$},void 0,!1,void 0,this),h0.jsxDEV("div",{className:`text-2xl font-semibold ${B==="red"?"text-red-400":""}`,children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var X6=H0(U1(),1);function lk(){let{isComplete:$,setIsComplete:K}=YG(),{agents:B,loading:L,runningCount:G,fetchAgents:F,createAgent:v,updateAgent:_,deleteAgent:f,toggleAgent:k}=$G($===!0),{providers:P,configuredProviders:w,fetchProviders:R}=HG($===!0),[c,m]=E5.useState(!1),[x,D]=E5.useState(null),[C,G0]=E5.useState("dashboard"),[n,Z0]=E5.useState(null),[j,a]=E5.useState(0);E5.useEffect(()=>{if($!==!0)return;let f0=async()=>{try{let s0=await fetch("/api/tasks?status=pending");if(s0.ok){let O1=await s0.json();a(O1.count||0)}}catch{}};f0();let H1=setInterval(f0,15000);return()=>clearInterval(H1)},[$]);let[s,W0]=E5.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...XG}});E5.useEffect(()=>{if(w.length>0&&!s.provider){let f0=w[0],H1=f0.models.find((s0)=>s0.recommended)?.value||f0.models[0]?.value||"";W0((s0)=>({...s0,provider:f0.id,model:H1}))}},[w,s.provider]),E5.useEffect(()=>{if(x){let f0=B.find((H1)=>H1.id===x.id);if(f0)D(f0);else D(null)}},[B,x]);let O0=(f0)=>{let H1=P.find((O1)=>O1.id===f0),s0=H1?.models.find((O1)=>O1.recommended)?.value||H1?.models[0]?.value||"";W0((O1)=>({...O1,provider:f0,model:s0}))},_0=async()=>{if(!s.name)return;await v(s);let f0=w[0],H1=f0?.models.find((s0)=>s0.recommended)?.value||f0?.models[0]?.value||"";W0({name:"",model:H1,provider:f0?.id||"",systemPrompt:"You are a helpful assistant.",features:{...XG}}),m(!1)},p=async(f0,H1)=>{H1?.stopPropagation(),Z0(null);let s0=await k(f0);if(s0.error)Z0(s0.error)},e=async(f0,H1)=>{if(H1?.stopPropagation(),x?.id===f0)D(null);await f(f0)},J0=(f0)=>{D(f0),Z0(null),G0("agents")},P0=(f0)=>{G0(f0),D(null)},I0=()=>{K(!0),R()};if($===null)return X6.jsxDEV(z8,{fullScreen:!0},void 0,!1,void 0,this);if(!$)return X6.jsxDEV(gZ,{onComplete:I0},void 0,!1,void 0,this);return X6.jsxDEV("div",{className:"h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col overflow-hidden",children:[X6.jsxDEV(mZ,{onNewAgent:()=>m(!0),canCreateAgent:w.length>0},void 0,!1,void 0,this),n&&X6.jsxDEV(EZ,{message:n,onDismiss:()=>Z0(null)},void 0,!1,void 0,this),X6.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[X6.jsxDEV(uZ,{route:C,agentCount:B.length,taskCount:j,onNavigate:P0},void 0,!1,void 0,this),X6.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:[C==="settings"&&X6.jsxDEV(yZ,{},void 0,!1,void 0,this),C==="agents"&&X6.jsxDEV(oZ,{agents:B,loading:L,selectedAgent:x,providers:P,onSelectAgent:J0,onCloseAgent:()=>D(null),onToggleAgent:p,onDeleteAgent:e,onUpdateAgent:_},void 0,!1,void 0,this),C==="dashboard"&&X6.jsxDEV(jZ,{agents:B,loading:L,runningCount:G,configuredProviders:w,onNavigate:P0,onSelectAgent:J0},void 0,!1,void 0,this),C==="tasks"&&X6.jsxDEV(pZ,{},void 0,!1,void 0,this),C==="mcp"&&X6.jsxDEV(rZ,{},void 0,!1,void 0,this),C==="telemetry"&&X6.jsxDEV(kG,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c&&X6.jsxDEV(dZ,{form:s,providers:P,configuredProviders:w,onFormChange:W0,onProviderChange:O0,onCreate:_0,onClose:()=>m(!1),onGoToSettings:()=>{m(!1),G0("settings")}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ik=_B.createRoot(document.getElementById("root"));ik.render(X6.jsxDEV(JG,{children:X6.jsxDEV(lk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this));
212
+
213
+ //# debugId=50F4439E7DF139F064756E2164756E21