@fastino-ai/pioneer-cli 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/index.js +248 -0
- package/dist/yoga.wasm +0 -0
- package/package.json +14 -6
- package/src/api.ts +0 -3187
- package/src/chat/ChatApp.tsx +0 -1028
- package/src/chat/index.ts +0 -7
- package/src/client/ToolExecutor.ts +0 -175
- package/src/client/WebSocketClient.ts +0 -379
- package/src/client/index.ts +0 -2
- package/src/config.ts +0 -225
- package/src/index.tsx +0 -6677
- package/src/telemetry.ts +0 -173
- package/src/tests/api.test.ts +0 -104
- package/src/tests/config-functions.test.ts +0 -163
- package/src/tests/config.test.ts +0 -33
- package/src/tests/file-resolver-edge-cases.test.ts +0 -92
- package/src/tests/telemetry.test.ts +0 -111
- package/src/tests/tool-types.test.ts +0 -104
- package/src/tests/utils.test.ts +0 -90
- package/src/tools/bash.ts +0 -184
- package/src/tools/filesystem.ts +0 -444
- package/src/tools/index.ts +0 -22
- package/src/tools/sandbox.ts +0 -310
- package/src/tools/types.ts +0 -25
- package/src/utils/FileResolver.ts +0 -321
- package/src/utils/index.ts +0 -6
package/dist/index.js
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// @bun
|
|
3
|
+
var PH=Object.create;var{getPrototypeOf:wH,defineProperty:ZZ,getOwnPropertyNames:IH}=Object;var kH=Object.prototype.hasOwnProperty;function vH(_){return this[_]}var TH,SH,H0=(_,C,U)=>{var G=_!=null&&typeof _==="object";if(G){var A=C?TH??=new WeakMap:SH??=new WeakMap,Q=A.get(_);if(Q)return Q}U=_!=null?PH(wH(_)):{};let J=C||!_||!_.__esModule?ZZ(U,"default",{value:_,enumerable:!0}):U;for(let L of IH(_))if(!kH.call(J,L))ZZ(J,L,{get:vH.bind(_,L),enumerable:!0});if(G)A.set(_,J);return J};var f0=(_,C)=>()=>(C||_((C={exports:{}}).exports,C),C.exports);var aB=(_,C)=>()=>(_&&(C=_(_=0)),C);var O6=import.meta.require;var B2=f0((bH,c4)=>{(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",C=Symbol.for("react.element"),U=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),J=Symbol.for("react.provider"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen"),w=Symbol.iterator,V="@@iterator";function b(K){if(K===null||typeof K!=="object")return null;var k=w&&K[w]||K[V];if(typeof k==="function")return k;return null}var S={current:null},s={transition:null},t={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},x={current:null},FD={},ZD=null;function BD(K){ZD=K}FD.setExtraStackFrame=function(K){ZD=K},FD.getCurrentStack=null,FD.getStackAddendum=function(){var K="";if(ZD)K+=ZD;var k=FD.getCurrentStack;if(k)K+=k()||"";return K};var XD=!1,i=!1,RD=!1,jD=!1,dD=!1,PD={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:s,ReactCurrentOwner:x};PD.ReactDebugCurrentFrame=FD,PD.ReactCurrentActQueue=t;function oD(K){{for(var k=arguments.length,d=Array(k>1?k-1:0),o=1;o<k;o++)d[o-1]=arguments[o];ID("warn",K,d)}}function QD(K){{for(var k=arguments.length,d=Array(k>1?k-1:0),o=1;o<k;o++)d[o-1]=arguments[o];ID("error",K,d)}}function ID(K,k,d){{var o=PD.ReactDebugCurrentFrame,HD=o.getStackAddendum();if(HD!=="")k+="%s",d=d.concat([HD]);var _0=d.map(function(cD){return String(cD)});_0.unshift("Warning: "+k),Function.prototype.apply.call(console[K],console,_0)}}var ED={};function mD(K,k){{var d=K.constructor,o=d&&(d.displayName||d.name)||"ReactClass",HD=o+"."+k;if(ED[HD])return;QD("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.",k,o),ED[HD]=!0}}var KD={isMounted:function(K){return!1},enqueueForceUpdate:function(K,k,d){mD(K,"forceUpdate")},enqueueReplaceState:function(K,k,d,o){mD(K,"replaceState")},enqueueSetState:function(K,k,d,o){mD(K,"setState")}},Q0=Object.assign,E0={};Object.freeze(E0);function yD(K,k,d){this.props=K,this.context=k,this.refs=E0,this.updater=d||KD}yD.prototype.isReactComponent={},yD.prototype.setState=function(K,k){if(typeof K!=="object"&&typeof K!=="function"&&K!=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,K,k,"setState")},yD.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};{var MD={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)."]},v0=function(K,k){Object.defineProperty(yD.prototype,K,{get:function(){oD("%s(...) is deprecated in plain JavaScript React classes. %s",k[0],k[1]);return}})};for(var kD in MD)if(MD.hasOwnProperty(kD))v0(kD,MD[kD])}function JD(){}JD.prototype=yD.prototype;function AD(K,k,d){this.props=K,this.context=k,this.refs=E0,this.updater=d||KD}var gD=AD.prototype=new JD;gD.constructor=AD,Q0(gD,yD.prototype),gD.isPureReactComponent=!0;function B0(){var K={current:null};return Object.seal(K),K}var j0=Array.isArray;function x0(K){return j0(K)}function $0(K){{var k=typeof Symbol==="function"&&Symbol.toStringTag,d=k&&K[Symbol.toStringTag]||K.constructor.name||"Object";return d}}function D2(K){try{return N0(K),!1}catch(k){return!0}}function N0(K){return""+K}function m0(K){if(D2(K))return QD("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$0(K)),N0(K)}function F2(K,k,d){var o=K.displayName;if(o)return o;var HD=k.displayName||k.name||"";return HD!==""?d+"("+HD+")":d}function A2(K){return K.displayName||"Context"}function o0(K){if(K==null)return null;if(typeof K.tag==="number")QD("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof K==="function")return K.displayName||K.name||null;if(typeof K==="string")return K;switch(K){case G:return"Fragment";case U:return"Portal";case Q:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case T:return"SuspenseList"}if(typeof K==="object")switch(K.$$typeof){case L:var k=K;return A2(k)+".Consumer";case J:var d=K;return A2(d._context)+".Provider";case W:return F2(K,K.render,"ForwardRef");case h:var o=K.displayName||null;if(o!==null)return o;return o0(K.type)||"Memo";case E:{var HD=K,_0=HD._payload,cD=HD._init;try{return o0(cD(_0))}catch(A0){return null}}}return null}var sD=Object.prototype.hasOwnProperty,W0={key:!0,ref:!0,__self:!0,__source:!0},s2,C3,m2;m2={};function B3(K){if(sD.call(K,"ref")){var k=Object.getOwnPropertyDescriptor(K,"ref").get;if(k&&k.isReactWarning)return!1}return K.ref!==void 0}function y3(K){if(sD.call(K,"key")){var k=Object.getOwnPropertyDescriptor(K,"key").get;if(k&&k.isReactWarning)return!1}return K.key!==void 0}function O3(K,k){var d=function(){if(!s2)s2=!0,QD("%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)",k)};d.isReactWarning=!0,Object.defineProperty(K,"key",{get:d,configurable:!0})}function R3(K,k){var d=function(){if(!C3)C3=!0,QD("%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)",k)};d.isReactWarning=!0,Object.defineProperty(K,"ref",{get:d,configurable:!0})}function H3(K){if(typeof K.ref==="string"&&x.current&&K.__self&&x.current.stateNode!==K.__self){var k=o0(x.current.type);if(!m2[k])QD('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',k,K.ref),m2[k]=!0}}var b2=function(K,k,d,o,HD,_0,cD){var A0={$$typeof:C,type:K,key:k,ref:d,props:cD,_owner:_0};if(A0._store={},Object.defineProperty(A0._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A0,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(A0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:HD}),Object.freeze)Object.freeze(A0.props),Object.freeze(A0);return A0};function t2(K,k,d){var o,HD={},_0=null,cD=null,A0=null,w0=null;if(k!=null){if(B3(k))cD=k.ref,H3(k);if(y3(k))m0(k.key),_0=""+k.key;A0=k.__self===void 0?null:k.__self,w0=k.__source===void 0?null:k.__source;for(o in k)if(sD.call(k,o)&&!W0.hasOwnProperty(o))HD[o]=k[o]}var s0=arguments.length-2;if(s0===1)HD.children=d;else if(s0>1){var G2=Array(s0);for(var X2=0;X2<s0;X2++)G2[X2]=arguments[X2+2];if(Object.freeze)Object.freeze(G2);HD.children=G2}if(K&&K.defaultProps){var U2=K.defaultProps;for(o in U2)if(HD[o]===void 0)HD[o]=U2[o]}if(_0||cD){var J2=typeof K==="function"?K.displayName||K.name||"Unknown":K;if(_0)O3(HD,J2);if(cD)R3(HD,J2)}return b2(K,_0,cD,A0,w0,x.current,HD)}function wD(K,k){var d=b2(K.type,k,K.ref,K._self,K._source,K._owner,K.props);return d}function YD(K,k,d){if(K===null||K===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+K+".");var o,HD=Q0({},K.props),_0=K.key,cD=K.ref,A0=K._self,w0=K._source,s0=K._owner;if(k!=null){if(B3(k))cD=k.ref,s0=x.current;if(y3(k))m0(k.key),_0=""+k.key;var G2;if(K.type&&K.type.defaultProps)G2=K.type.defaultProps;for(o in k)if(sD.call(k,o)&&!W0.hasOwnProperty(o))if(k[o]===void 0&&G2!==void 0)HD[o]=G2[o];else HD[o]=k[o]}var X2=arguments.length-2;if(X2===1)HD.children=d;else if(X2>1){var U2=Array(X2);for(var J2=0;J2<X2;J2++)U2[J2]=arguments[J2+2];HD.children=U2}return b2(K.type,_0,cD,A0,w0,s0,HD)}function O0(K){return typeof K==="object"&&K!==null&&K.$$typeof===C}var Y0=".",hD=":";function SD(K){var k=/[=:]/g,d={"=":"=0",":":"=2"},o=K.replace(k,function(HD){return d[HD]});return"$"+o}var d0=!1,S0=/\/+/g;function aD(K){return K.replace(S0,"$&/")}function O2(K,k){if(typeof K==="object"&&K!==null&&K.key!=null)return m0(K.key),SD(""+K.key);return k.toString(36)}function E2(K,k,d,o,HD){var _0=typeof K;if(_0==="undefined"||_0==="boolean")K=null;var cD=!1;if(K===null)cD=!0;else switch(_0){case"string":case"number":cD=!0;break;case"object":switch(K.$$typeof){case C:case U:cD=!0}}if(cD){var A0=K,w0=HD(A0),s0=o===""?Y0+O2(A0,0):o;if(x0(w0)){var G2="";if(s0!=null)G2=aD(s0)+"/";E2(w0,k,G2,"",function(a9){return a9})}else if(w0!=null){if(O0(w0)){if(w0.key&&(!A0||A0.key!==w0.key))m0(w0.key);w0=wD(w0,d+(w0.key&&(!A0||A0.key!==w0.key)?aD(""+w0.key)+"/":"")+s0)}k.push(w0)}return 1}var X2,U2,J2=0,c2=o===""?Y0:o+hD;if(x0(K))for(var M6=0;M6<K.length;M6++)X2=K[M6],U2=c2+O2(X2,M6),J2+=E2(X2,k,d,U2,HD);else{var $8=b(K);if(typeof $8==="function"){var O7=K;if($8===O7.entries){if(!d0)oD("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");d0=!0}var i9=$8.call(O7),G7,n9=0;while(!(G7=i9.next()).done)X2=G7.value,U2=c2+O2(X2,n9++),J2+=E2(X2,k,d,U2,HD)}else if(_0==="object"){var X7=String(K);throw Error("Objects are not valid as a React child (found: "+(X7==="[object Object]"?"object with keys {"+Object.keys(K).join(", ")+"}":X7)+"). If you meant to render a collection of children, use an array instead.")}}return J2}function G3(K,k,d){if(K==null)return K;var o=[],HD=0;return E2(K,o,"","",function(_0){return k.call(d,_0,HD++)}),o}function K0(K){var k=0;return G3(K,function(){k++}),k}function L2(K,k,d){G3(K,function(){k.apply(this,arguments)},d)}function N3(K){return G3(K,function(k){return k})||[]}function M3(K){if(!O0(K))throw Error("React.Children.only expected to receive a single React element child.");return K}function f2(K){var k={$$typeof:L,_currentValue:K,_currentValue2:K,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};k.Provider={$$typeof:J,_context:k};var d=!1,o=!1,HD=!1;{var _0={$$typeof:L,_context:k};Object.defineProperties(_0,{Provider:{get:function(){if(!o)o=!0,QD("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 k.Provider},set:function(cD){k.Provider=cD}},_currentValue:{get:function(){return k._currentValue},set:function(cD){k._currentValue=cD}},_currentValue2:{get:function(){return k._currentValue2},set:function(cD){k._currentValue2=cD}},_threadCount:{get:function(){return k._threadCount},set:function(cD){k._threadCount=cD}},Consumer:{get:function(){if(!d)d=!0,QD("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 k.Consumer}},displayName:{get:function(){return k.displayName},set:function(cD){if(!HD)oD("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",cD),HD=!0}}}),k.Consumer=_0}return k._currentRenderer=null,k._currentRenderer2=null,k}var k2=-1,X3=0,i3=1,L8=2;function V8(K){if(K._status===k2){var k=K._result,d=k();if(d.then(function(_0){if(K._status===X3||K._status===k2){var cD=K;cD._status=i3,cD._result=_0}},function(_0){if(K._status===X3||K._status===k2){var cD=K;cD._status=L8,cD._result=_0}}),K._status===k2){var o=K;o._status=X3,o._result=d}}if(K._status===i3){var HD=K._result;if(HD===void 0)QD(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
4
|
+
|
|
5
|
+
Your code should look like:
|
|
6
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
7
|
+
|
|
8
|
+
Did you accidentally put curly braces around the import?`,HD);if(!("default"in HD))QD(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
9
|
+
|
|
10
|
+
Your code should look like:
|
|
11
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,HD);return HD.default}else throw K._result}function LF(K){var k={_status:k2,_result:K},d={$$typeof:E,_payload:k,_init:V8};{var o,HD;Object.defineProperties(d,{defaultProps:{configurable:!0,get:function(){return o},set:function(_0){QD("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."),o=_0,Object.defineProperty(d,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return HD},set:function(_0){QD("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."),HD=_0,Object.defineProperty(d,"propTypes",{enumerable:!0})}}})}return d}function I(K){{if(K!=null&&K.$$typeof===h)QD("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof K!=="function")QD("forwardRef requires a render function but was given %s.",K===null?"null":typeof K);else if(K.length!==0&&K.length!==2)QD("forwardRef render functions accept exactly two parameters: props and ref. %s",K.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(K!=null){if(K.defaultProps!=null||K.propTypes!=null)QD("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var k={$$typeof:W,render:K};{var d;Object.defineProperty(k,"displayName",{enumerable:!1,configurable:!0,get:function(){return d},set:function(o){if(d=o,!K.name&&!K.displayName)K.displayName=o}})}return k}var LD=Symbol.for("react.module.reference");function vD(K){if(typeof K==="string"||typeof K==="function")return!0;if(K===G||K===Q||dD||K===A||K===H||K===T||jD||K===q||XD||i||RD)return!0;if(typeof K==="object"&&K!==null){if(K.$$typeof===E||K.$$typeof===h||K.$$typeof===J||K.$$typeof===L||K.$$typeof===W||K.$$typeof===LD||K.getModuleId!==void 0)return!0}return!1}function eD(K,k){if(!vD(K))QD("memo: The first argument must be a component. Instead received: %s",K===null?"null":typeof K);var d={$$typeof:h,type:K,compare:k===void 0?null:k};{var o;Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(HD){if(o=HD,!K.name&&!K.displayName)K.displayName=HD}})}return d}function rD(){var K=S.current;if(K===null)QD(`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:
|
|
12
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
13
|
+
2. You might be breaking the Rules of Hooks
|
|
14
|
+
3. You might have more than one copy of React in the same app
|
|
15
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return K}function P0(K){var k=rD();if(K._context!==void 0){var d=K._context;if(d.Consumer===K)QD("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(d.Provider===K)QD("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return k.useContext(K)}function G0(K){var k=rD();return k.useState(K)}function L0(K,k,d){var o=rD();return o.useReducer(K,k,d)}function Q2(K){var k=rD();return k.useRef(K)}function y0(K,k){var d=rD();return d.useEffect(K,k)}function i0(K,k){var d=rD();return d.useInsertionEffect(K,k)}function $2(K,k){var d=rD();return d.useLayoutEffect(K,k)}function v2(K,k){var d=rD();return d.useCallback(K,k)}function V2(K,k){var d=rD();return d.useMemo(K,k)}function W2(K,k,d){var o=rD();return o.useImperativeHandle(K,k,d)}function M(K,k){{var d=rD();return d.useDebugValue(K,k)}}function N(){var K=rD();return K.useTransition()}function f(K){var k=rD();return k.useDeferredValue(K)}function p(){var K=rD();return K.useId()}function y(K,k,d){var o=rD();return o.useSyncExternalStore(K,k,d)}var n=0,$D,OD,WD,CD,ND,z0,M0;function b0(){}b0.__reactDisabledLog=!0;function V0(){{if(n===0){$D=console.log,OD=console.info,WD=console.warn,CD=console.error,ND=console.group,z0=console.groupCollapsed,M0=console.groupEnd;var K={configurable:!0,enumerable:!0,value:b0,writable:!0};Object.defineProperties(console,{info:K,log:K,warn:K,error:K,group:K,groupCollapsed:K,groupEnd:K})}n++}}function q2(){{if(n--,n===0){var K={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q0({},K,{value:$D}),info:Q0({},K,{value:OD}),warn:Q0({},K,{value:WD}),error:Q0({},K,{value:CD}),group:Q0({},K,{value:ND}),groupCollapsed:Q0({},K,{value:z0}),groupEnd:Q0({},K,{value:M0})})}if(n<0)QD("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var g3=PD.ReactCurrentDispatcher,x3;function n3(K,k,d){{if(x3===void 0)try{throw Error()}catch(HD){var o=HD.stack.trim().match(/\n( *(at )?)/);x3=o&&o[1]||""}return`
|
|
16
|
+
`+x3+K}}var QF=!1,m3;{var h8=typeof WeakMap==="function"?WeakMap:Map;m3=new h8}function f8(K,k){if(!K||QF)return"";{var d=m3.get(K);if(d!==void 0)return d}var o;QF=!0;var HD=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _0;_0=g3.current,g3.current=null,V0();try{if(k){var cD=function(){throw Error()};if(Object.defineProperty(cD.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(cD,[])}catch(c2){o=c2}Reflect.construct(K,[],cD)}else{try{cD.call()}catch(c2){o=c2}K.call(cD.prototype)}}else{try{throw Error()}catch(c2){o=c2}K()}}catch(c2){if(c2&&o&&typeof c2.stack==="string"){var A0=c2.stack.split(`
|
|
17
|
+
`),w0=o.stack.split(`
|
|
18
|
+
`),s0=A0.length-1,G2=w0.length-1;while(s0>=1&&G2>=0&&A0[s0]!==w0[G2])G2--;for(;s0>=1&&G2>=0;s0--,G2--)if(A0[s0]!==w0[G2]){if(s0!==1||G2!==1)do if(s0--,G2--,G2<0||A0[s0]!==w0[G2]){var X2=`
|
|
19
|
+
`+A0[s0].replace(" at new "," at ");if(K.displayName&&X2.includes("<anonymous>"))X2=X2.replace("<anonymous>",K.displayName);if(typeof K==="function")m3.set(K,X2);return X2}while(s0>=1&&G2>=0);break}}}finally{QF=!1,g3.current=_0,q2(),Error.prepareStackTrace=HD}var U2=K?K.displayName||K.name:"",J2=U2?n3(U2):"";if(typeof K==="function")m3.set(K,J2);return J2}function z_(K,k,d){return f8(K,!1)}function z6(K){var k=K.prototype;return!!(k&&k.isReactComponent)}function R6(K,k,d){if(K==null)return"";if(typeof K==="function")return f8(K,z6(K));if(typeof K==="string")return n3(K);switch(K){case H:return n3("Suspense");case T:return n3("SuspenseList")}if(typeof K==="object")switch(K.$$typeof){case W:return z_(K.render);case h:return R6(K.type,k,d);case E:{var o=K,HD=o._payload,_0=o._init;try{return R6(_0(HD),k,d)}catch(cD){}}}return""}var E3={},j8=PD.ReactDebugCurrentFrame;function U3(K){if(K){var k=K._owner,d=R6(K.type,K._source,k?k.type:null);j8.setExtraStackFrame(d)}else j8.setExtraStackFrame(null)}function f9(K,k,d,o,HD){{var _0=Function.call.bind(sD);for(var cD in K)if(_0(K,cD)){var A0=void 0;try{if(typeof K[cD]!=="function"){var w0=Error((o||"React class")+": "+d+" type `"+cD+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof K[cD]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w0.name="Invariant Violation",w0}A0=K[cD](k,cD,o,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s0){A0=s0}if(A0&&!(A0 instanceof Error))U3(HD),QD("%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).",o||"React class",d,cD,typeof A0),U3(null);if(A0 instanceof Error&&!(A0.message in E3))E3[A0.message]=!0,U3(HD),QD("Failed %s type: %s",d,A0.message),U3(null)}}}function y8(K){if(K){var k=K._owner,d=R6(K.type,K._source,k?k.type:null);BD(d)}else BD(null)}var j9=!1;function r1(){if(x.current){var K=o0(x.current.type);if(K)return`
|
|
20
|
+
|
|
21
|
+
Check the render method of \``+K+"`."}return""}function qG(K){if(K!==void 0){var k=K.fileName.replace(/^.*[\\\/]/,""),d=K.lineNumber;return`
|
|
22
|
+
|
|
23
|
+
Check your code at `+k+":"+d+"."}return""}function PG(K){if(K!==null&&K!==void 0)return qG(K.__source);return""}var o1={};function y9(K){var k=r1();if(!k){var d=typeof K==="string"?K:K.displayName||K.name;if(d)k=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+d+">."}return k}function s1(K,k){if(!K._store||K._store.validated||K.key!=null)return;K._store.validated=!0;var d=y9(k);if(o1[d])return;o1[d]=!0;var o="";if(K&&K._owner&&K._owner!==x.current)o=" It was passed a child from "+o0(K._owner.type)+".";y8(K),QD('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,o),y8(null)}function t1(K,k){if(typeof K!=="object")return;if(x0(K))for(var d=0;d<K.length;d++){var o=K[d];if(O0(o))s1(o,k)}else if(O0(K)){if(K._store)K._store.validated=!0}else if(K){var HD=b(K);if(typeof HD==="function"){if(HD!==K.entries){var _0=HD.call(K),cD;while(!(cD=_0.next()).done)if(O0(cD.value))s1(cD.value,k)}}}}function oF(K){{var k=K.type;if(k===null||k===void 0||typeof k==="string")return;var d;if(typeof k==="function")d=k.propTypes;else if(typeof k==="object"&&(k.$$typeof===W||k.$$typeof===h))d=k.propTypes;else return;if(d){var o=o0(k);f9(d,K.props,"prop",o,K)}else if(k.PropTypes!==void 0&&!j9){j9=!0;var HD=o0(k);QD("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",HD||"Unknown")}if(typeof k.getDefaultProps==="function"&&!k.getDefaultProps.isReactClassApproved)QD("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function g9(K){{var k=Object.keys(K.props);for(var d=0;d<k.length;d++){var o=k[d];if(o!=="children"&&o!=="key"){y8(K),QD("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),y8(null);break}}if(K.ref!==null)y8(K),QD("Invalid attribute `ref` supplied to `React.Fragment`."),y8(null)}}function e1(K,k,d){var o=vD(K);if(!o){var HD="";if(K===void 0||typeof K==="object"&&K!==null&&Object.keys(K).length===0)HD+=" 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 _0=PG(k);if(_0)HD+=_0;else HD+=r1();var cD;if(K===null)cD="null";else if(x0(K))cD="array";else if(K!==void 0&&K.$$typeof===C)cD="<"+(o0(K.type)||"Unknown")+" />",HD=" Did you accidentally export a JSX literal instead of a component?";else cD=typeof K;QD("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",cD,HD)}var A0=t2.apply(this,arguments);if(A0==null)return A0;if(o)for(var w0=2;w0<arguments.length;w0++)t1(arguments[w0],K);if(K===G)g9(A0);else oF(A0);return A0}var D7=!1;function g8(K){var k=e1.bind(null,K);k.type=K;{if(!D7)D7=!0,oD("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(k,"type",{enumerable:!1,get:function(){return oD("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:K}),K}})}return k}function x9(K,k,d){var o=YD.apply(this,arguments);for(var HD=2;HD<arguments.length;HD++)t1(arguments[HD],o.type);return oF(o),o}function m9(K,k){var d=s.transition;s.transition={};var o=s.transition;s.transition._updatedFibers=new Set;try{K()}finally{if(s.transition=d,d===null&&o._updatedFibers){var HD=o._updatedFibers.size;if(HD>10)oD("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.");o._updatedFibers.clear()}}}var F7=!1,H6=null;function c9(K){if(H6===null)try{var k=("require"+Math.random()).slice(0,7),d=c4&&c4[k];H6=d.call(c4,"timers").setImmediate}catch(o){H6=function(HD){if(F7===!1){if(F7=!0,typeof MessageChannel>"u")QD("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 _0=new MessageChannel;_0.port1.onmessage=HD,_0.port2.postMessage(void 0)}}return H6(K)}var Q8=0,_7=!1;function C7(K){{var k=Q8;if(Q8++,t.current===null)t.current=[];var d=t.isBatchingLegacy,o;try{if(t.isBatchingLegacy=!0,o=K(),!d&&t.didScheduleLegacyUpdate){var HD=t.current;if(HD!==null)t.didScheduleLegacyUpdate=!1,N_(HD)}}catch(U2){throw N6(k),U2}finally{t.isBatchingLegacy=d}if(o!==null&&typeof o==="object"&&typeof o.then==="function"){var _0=o,cD=!1,A0={then:function(U2,J2){cD=!0,_0.then(function(c2){if(N6(k),Q8===0)R_(c2,U2,J2);else U2(c2)},function(c2){N6(k),J2(c2)})}};if(!_7&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!cD)_7=!0,QD("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 A0}else{var w0=o;if(N6(k),Q8===0){var s0=t.current;if(s0!==null)N_(s0),t.current=null;var G2={then:function(U2,J2){if(t.current===null)t.current=[],R_(w0,U2,J2);else U2(w0)}};return G2}else{var X2={then:function(U2,J2){U2(w0)}};return X2}}}}function N6(K){{if(K!==Q8-1)QD("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");Q8=K}}function R_(K,k,d){{var o=t.current;if(o!==null)try{N_(o),c9(function(){if(o.length===0)t.current=null,k(K);else R_(K,k,d)})}catch(HD){d(HD)}else k(K)}}var H_=!1;function N_(K){if(!H_){H_=!0;var k=0;try{for(;k<K.length;k++){var d=K[k];do d=d(!0);while(d!==null)}K.length=0}catch(o){throw K=K.slice(k+1),o}finally{H_=!1}}}var B7=e1,p9=x9,l9=g8,d9={map:G3,forEach:L2,count:K0,toArray:N3,only:M3};if(bH.Children=d9,bH.Component=yD,bH.Fragment=G,bH.Profiler=Q,bH.PureComponent=AD,bH.StrictMode=A,bH.Suspense=H,bH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=PD,bH.act=C7,bH.cloneElement=p9,bH.createContext=f2,bH.createElement=B7,bH.createFactory=l9,bH.createRef=B0,bH.forwardRef=I,bH.isValidElement=O0,bH.lazy=LF,bH.memo=eD,bH.startTransition=m9,bH.unstable_act=C7,bH.useCallback=v2,bH.useContext=P0,bH.useDebugValue=M,bH.useDeferredValue=f,bH.useEffect=y0,bH.useId=p,bH.useImperativeHandle=W2,bH.useInsertionEffect=i0,bH.useLayoutEffect=$2,bH.useMemo=V2,bH.useReducer=L0,bH.useRef=Q2,bH.useState=G0,bH.useSyncExternalStore=y,bH.useTransition=N,bH.version=_,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var p4=f0((eP,AZ)=>{function VH(_){var C=typeof _;return _!=null&&(C=="object"||C=="function")}AZ.exports=VH});var QZ=f0((Dw,LZ)=>{var hH=typeof global=="object"&&global&&global.Object===Object&&global;LZ.exports=hH});var rB=f0((Fw,$Z)=>{var fH=QZ(),jH=typeof self=="object"&&self&&self.Object===Object&&self,yH=fH||jH||Function("return this")();$Z.exports=yH});var JZ=f0((_w,WZ)=>{var gH=rB(),xH=function(){return gH.Date.now()};WZ.exports=xH});var KZ=f0((Cw,YZ)=>{var mH=/\s/;function cH(_){var C=_.length;while(C--&&mH.test(_.charAt(C)));return C}YZ.exports=cH});var RZ=f0((Bw,zZ)=>{var pH=KZ(),lH=/^\s+/;function dH(_){return _?_.slice(0,pH(_)+1).replace(lH,""):_}zZ.exports=dH});var oB=f0((Ow,HZ)=>{var iH=rB(),nH=iH.Symbol;HZ.exports=nH});var qZ=f0((Gw,EZ)=>{var NZ=oB(),MZ=Object.prototype,aH=MZ.hasOwnProperty,rH=MZ.toString,M1=NZ?NZ.toStringTag:void 0;function oH(_){var C=aH.call(_,M1),U=_[M1];try{_[M1]=void 0;var G=!0}catch(Q){}var A=rH.call(_);if(G)if(C)_[M1]=U;else delete _[M1];return A}EZ.exports=oH});var wZ=f0((Xw,PZ)=>{var sH=Object.prototype,tH=sH.toString;function eH(_){return tH.call(_)}PZ.exports=eH});var TZ=f0((Uw,vZ)=>{var IZ=oB(),DN=qZ(),FN=wZ(),_N="[object Null]",CN="[object Undefined]",kZ=IZ?IZ.toStringTag:void 0;function BN(_){if(_==null)return _===void 0?CN:_N;return kZ&&kZ in Object(_)?DN(_):FN(_)}vZ.exports=BN});var bZ=f0((uw,SZ)=>{function ON(_){return _!=null&&typeof _=="object"}SZ.exports=ON});var hZ=f0((Zw,VZ)=>{var GN=TZ(),XN=bZ(),UN="[object Symbol]";function uN(_){return typeof _=="symbol"||XN(_)&&GN(_)==UN}VZ.exports=uN});var gZ=f0((Aw,yZ)=>{var ZN=RZ(),fZ=p4(),AN=hZ(),jZ=NaN,LN=/^[-+]0x[0-9a-f]+$/i,QN=/^0b[01]+$/i,$N=/^0o[0-7]+$/i,WN=parseInt;function JN(_){if(typeof _=="number")return _;if(AN(_))return jZ;if(fZ(_)){var C=typeof _.valueOf=="function"?_.valueOf():_;_=fZ(C)?C+"":C}if(typeof _!="string")return _===0?_:+_;_=ZN(_);var U=QN.test(_);return U||$N.test(_)?WN(_.slice(2),U?2:8):LN.test(_)?jZ:+_}yZ.exports=JN});var cZ=f0((Lw,mZ)=>{var YN=p4(),sB=JZ(),xZ=gZ(),KN="Expected a function",zN=Math.max,RN=Math.min;function HN(_,C,U){var G,A,Q,J,L,W,H=0,T=!1,h=!1,E=!0;if(typeof _!="function")throw TypeError(KN);if(C=xZ(C)||0,YN(U))T=!!U.leading,h="maxWait"in U,Q=h?zN(xZ(U.maxWait)||0,C):Q,E="trailing"in U?!!U.trailing:E;function q(ZD){var BD=G,XD=A;return G=A=void 0,H=ZD,J=_.apply(XD,BD),J}function w(ZD){return H=ZD,L=setTimeout(S,C),T?q(ZD):J}function V(ZD){var BD=ZD-W,XD=ZD-H,i=C-BD;return h?RN(i,Q-XD):i}function b(ZD){var BD=ZD-W,XD=ZD-H;return W===void 0||BD>=C||BD<0||h&&XD>=Q}function S(){var ZD=sB();if(b(ZD))return s(ZD);L=setTimeout(S,V(ZD))}function s(ZD){if(L=void 0,E&&G)return q(ZD);return G=A=void 0,J}function t(){if(L!==void 0)clearTimeout(L);H=0,G=W=A=L=void 0}function x(){return L===void 0?J:s(sB())}function FD(){var ZD=sB(),BD=b(ZD);if(G=arguments,A=this,W=ZD,BD){if(L===void 0)return w(W);if(h)return clearTimeout(L),L=setTimeout(S,C),q(W)}if(L===void 0)L=setTimeout(S,C);return J}return FD.cancel=t,FD.flush=x,FD}mZ.exports=HN});var lZ=f0((Qw,pZ)=>{var NN=cZ(),MN=p4(),EN="Expected a function";function qN(_,C,U){var G=!0,A=!0;if(typeof _!="function")throw TypeError(EN);if(MN(U))G="leading"in U?!!U.leading:G,A="trailing"in U?!!U.trailing:A;return NN(_,C,{leading:G,maxWait:C,trailing:A})}pZ.exports=qN});var iZ=f0((Jw,IN)=>{IN.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var rZ=f0((DO)=>{var aZ=iZ(),r2=process.env;Object.defineProperty(DO,"_vendors",{value:aZ.map(function(_){return _.constant})});DO.name=null;DO.isPR=null;aZ.forEach(function(_){let U=(Array.isArray(_.env)?_.env:[_.env]).every(function(G){return nZ(G)});if(DO[_.constant]=U,!U)return;switch(DO.name=_.name,typeof _.pr){case"string":DO.isPR=!!r2[_.pr];break;case"object":if("env"in _.pr)DO.isPR=_.pr.env in r2&&r2[_.pr.env]!==_.pr.ne;else if("any"in _.pr)DO.isPR=_.pr.any.some(function(G){return!!r2[G]});else DO.isPR=nZ(_.pr);break;default:DO.isPR=null}});DO.isCI=!!(r2.CI!=="false"&&(r2.BUILD_ID||r2.BUILD_NUMBER||r2.CI||r2.CI_APP_ID||r2.CI_BUILD_ID||r2.CI_BUILD_NUMBER||r2.CI_NAME||r2.CONTINUOUS_INTEGRATION||r2.RUN_ID||DO.name||!1));function nZ(_){if(typeof _==="string")return!!r2[_];if("env"in _)return r2[_.env]&&r2[_.env].includes(_.includes);if("any"in _)return _.any.some(function(C){return!!r2[C]});return Object.keys(_).every(function(C){return r2[C]===_[C]})}});var sZ=f0((Kw,oZ)=>{oZ.exports=rZ().isCI});var tZ=f0((Rw,l4)=>{l4.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")l4.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")l4.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var XO=f0((Hw,B_)=>{var Y2=global.process,G6=function(_){return _&&typeof _==="object"&&typeof _.removeListener==="function"&&typeof _.emit==="function"&&typeof _.reallyExit==="function"&&typeof _.listeners==="function"&&typeof _.kill==="function"&&typeof _.pid==="number"&&typeof _.on==="function"};if(!G6(Y2))B_.exports=function(){return function(){}};else{if(CO=O6("assert"),X6=tZ(),BO=/^win/i.test(Y2.platform),C_=O6("events"),typeof C_!=="function")C_=C_.EventEmitter;if(Y2.__signal_exit_emitter__)o2=Y2.__signal_exit_emitter__;else o2=Y2.__signal_exit_emitter__=new C_,o2.count=0,o2.emitted={};if(!o2.infinite)o2.setMaxListeners(1/0),o2.infinite=!0;B_.exports=function(_,C){if(!G6(global.process))return function(){};if(CO.equal(typeof _,"function","a callback must be provided for exit handler"),U6===!1)d4();var U="exit";if(C&&C.alwaysLast)U="afterexit";var G=function(){if(o2.removeListener(U,_),o2.listeners("exit").length===0&&o2.listeners("afterexit").length===0)w1()};return o2.on(U,_),G},w1=function(){if(!U6||!G6(global.process))return;U6=!1,X6.forEach(function(C){try{Y2.removeListener(C,I1[C])}catch(U){}}),Y2.emit=k1,Y2.reallyExit=i4,o2.count-=1},B_.exports.unload=w1,k8=function(C,U,G){if(o2.emitted[C])return;o2.emitted[C]=!0,o2.emit(C,U,G)},I1={},X6.forEach(function(_){I1[_]=function(){if(!G6(global.process))return;var U=Y2.listeners(_);if(U.length===o2.count){if(w1(),k8("exit",null,_),k8("afterexit",null,_),BO&&_==="SIGHUP")_="SIGINT";Y2.kill(Y2.pid,_)}}}),B_.exports.signals=function(){return X6},U6=!1,d4=function(){if(U6||!G6(global.process))return;U6=!0,o2.count+=1,X6=X6.filter(function(C){try{return Y2.on(C,I1[C]),!0}catch(U){return!1}}),Y2.emit=GO,Y2.reallyExit=OO},B_.exports.load=d4,i4=Y2.reallyExit,OO=function(C){if(!G6(global.process))return;Y2.exitCode=C||0,k8("exit",Y2.exitCode,null),k8("afterexit",Y2.exitCode,null),i4.call(Y2,Y2.exitCode)},k1=Y2.emit,GO=function(C,U){if(C==="exit"&&G6(global.process)){if(U!==void 0)Y2.exitCode=U;var G=k1.apply(this,arguments);return k8("exit",Y2.exitCode,null),k8("afterexit",Y2.exitCode,null),G}else return k1.apply(this,arguments)}}var CO,X6,BO,C_,o2,w1,k8,I1,U6,d4,i4,OO,k1,GO});var YL=f0((hN)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var _=!1,C=!1,U=5;function G(wD,YD){var O0=wD.length;wD.push(YD),J(wD,YD,O0)}function A(wD){return wD.length===0?null:wD[0]}function Q(wD){if(wD.length===0)return null;var YD=wD[0],O0=wD.pop();if(O0!==YD)wD[0]=O0,L(wD,O0,0);return YD}function J(wD,YD,O0){var Y0=O0;while(Y0>0){var hD=Y0-1>>>1,SD=wD[hD];if(W(SD,YD)>0)wD[hD]=YD,wD[Y0]=SD,Y0=hD;else return}}function L(wD,YD,O0){var Y0=O0,hD=wD.length,SD=hD>>>1;while(Y0<SD){var d0=(Y0+1)*2-1,S0=wD[d0],aD=d0+1,O2=wD[aD];if(W(S0,YD)<0)if(aD<hD&&W(O2,S0)<0)wD[Y0]=O2,wD[aD]=YD,Y0=aD;else wD[Y0]=S0,wD[d0]=YD,Y0=d0;else if(aD<hD&&W(O2,YD)<0)wD[Y0]=O2,wD[aD]=YD,Y0=aD;else return}}function W(wD,YD){var O0=wD.sortIndex-YD.sortIndex;return O0!==0?O0:wD.id-YD.id}var H=1,T=2,h=3,E=4,q=5;function w(wD,YD){}var V=typeof performance==="object"&&typeof performance.now==="function";if(V){var b=performance;hN.unstable_now=function(){return b.now()}}else{var S=Date,s=S.now();hN.unstable_now=function(){return S.now()-s}}var t=1073741823,x=-1,FD=250,ZD=5000,BD=1e4,XD=t,i=[],RD=[],jD=1,dD=null,PD=h,oD=!1,QD=!1,ID=!1,ED=typeof setTimeout==="function"?setTimeout:null,mD=typeof clearTimeout==="function"?clearTimeout:null,KD=typeof setImmediate<"u"?setImmediate:null,Q0=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function E0(wD){var YD=A(RD);while(YD!==null){if(YD.callback===null)Q(RD);else if(YD.startTime<=wD)Q(RD),YD.sortIndex=YD.expirationTime,G(i,YD);else return;YD=A(RD)}}function yD(wD){if(ID=!1,E0(wD),!QD)if(A(i)!==null)QD=!0,O3(MD);else{var YD=A(RD);if(YD!==null)R3(yD,YD.startTime-wD)}}function MD(wD,YD){if(QD=!1,ID)ID=!1,H3();oD=!0;var O0=PD;try{if(C)try{return v0(wD,YD)}catch(hD){if(dD!==null){var Y0=hN.unstable_now();w(dD,Y0),dD.isQueued=!1}throw hD}else return v0(wD,YD)}finally{dD=null,PD=O0,oD=!1}}function v0(wD,YD){var O0=YD;E0(O0),dD=A(i);while(dD!==null&&!_){if(dD.expirationTime>O0&&(!wD||sD()))break;var Y0=dD.callback;if(typeof Y0==="function"){dD.callback=null,PD=dD.priorityLevel;var hD=dD.expirationTime<=O0,SD=Y0(hD);if(O0=hN.unstable_now(),typeof SD==="function")dD.callback=SD;else if(dD===A(i))Q(i);E0(O0)}else Q(i);dD=A(i)}if(dD!==null)return!0;else{var d0=A(RD);if(d0!==null)R3(yD,d0.startTime-O0);return!1}}function kD(wD,YD){switch(wD){case H:case T:case h:case E:case q:break;default:wD=h}var O0=PD;PD=wD;try{return YD()}finally{PD=O0}}function JD(wD){var YD;switch(PD){case H:case T:case h:YD=h;break;default:YD=PD;break}var O0=PD;PD=YD;try{return wD()}finally{PD=O0}}function AD(wD){var YD=PD;return function(){var O0=PD;PD=YD;try{return wD.apply(this,arguments)}finally{PD=O0}}}function gD(wD,YD,O0){var Y0=hN.unstable_now(),hD;if(typeof O0==="object"&&O0!==null){var SD=O0.delay;if(typeof SD==="number"&&SD>0)hD=Y0+SD;else hD=Y0}else hD=Y0;var d0;switch(wD){case H:d0=x;break;case T:d0=FD;break;case q:d0=XD;break;case E:d0=BD;break;case h:default:d0=ZD;break}var S0=hD+d0,aD={id:jD++,callback:YD,priorityLevel:wD,startTime:hD,expirationTime:S0,sortIndex:-1};if(hD>Y0){if(aD.sortIndex=hD,G(RD,aD),A(i)===null&&aD===A(RD)){if(ID)H3();else ID=!0;R3(yD,hD-Y0)}}else if(aD.sortIndex=S0,G(i,aD),!QD&&!oD)QD=!0,O3(MD);return aD}function B0(){}function j0(){if(!QD&&!oD)QD=!0,O3(MD)}function x0(){return A(i)}function $0(wD){wD.callback=null}function D2(){return PD}var N0=!1,m0=null,F2=-1,A2=U,o0=-1;function sD(){var wD=hN.unstable_now()-o0;if(wD<A2)return!1;return!0}function W0(){}function s2(wD){if(wD<0||wD>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(wD>0)A2=Math.floor(1000/wD);else A2=U}var C3=function(){if(m0!==null){var wD=hN.unstable_now();o0=wD;var YD=!0,O0=!0;try{O0=m0(YD,wD)}finally{if(O0)m2();else N0=!1,m0=null}}else N0=!1},m2;if(typeof KD==="function")m2=function(){KD(C3)};else if(typeof MessageChannel<"u"){var B3=new MessageChannel,y3=B3.port2;B3.port1.onmessage=C3,m2=function(){y3.postMessage(null)}}else m2=function(){ED(C3,0)};function O3(wD){if(m0=wD,!N0)N0=!0,m2()}function R3(wD,YD){F2=ED(function(){wD(hN.unstable_now())},YD)}function H3(){mD(F2),F2=-1}var b2=W0,t2=null;if(hN.unstable_IdlePriority=q,hN.unstable_ImmediatePriority=H,hN.unstable_LowPriority=E,hN.unstable_NormalPriority=h,hN.unstable_Profiling=t2,hN.unstable_UserBlockingPriority=T,hN.unstable_cancelCallback=$0,hN.unstable_continueExecution=j0,hN.unstable_forceFrameRate=s2,hN.unstable_getCurrentPriorityLevel=D2,hN.unstable_getFirstCallbackNode=x0,hN.unstable_next=JD,hN.unstable_pauseExecution=B0,hN.unstable_requestPaint=b2,hN.unstable_runWithPriority=kD,hN.unstable_scheduleCallback=gD,hN.unstable_shouldYield=sD,hN.unstable_wrapCallback=AD,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var zL=f0((tw,KL)=>{var uO=H0(B2()),K2=H0(YL());KL.exports=function(C){var U={},G=uO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=!1;function Q(D){A=D}function J(D){if(!A){for(var F=arguments.length,B=Array(F>1?F-1:0),O=1;O<F;O++)B[O-1]=arguments[O];W("warn",D,B)}}function L(D){if(!A){for(var F=arguments.length,B=Array(F>1?F-1:0),O=1;O<F;O++)B[O-1]=arguments[O];W("error",D,B)}}function W(D,F,B){{var O=G.ReactDebugCurrentFrame,X=O.getStackAddendum();if(X!=="")F+="%s",B=B.concat([X]);var Z=B.map(function($){return String($)});Z.unshift("Warning: "+F),Function.prototype.apply.call(console[D],console,Z)}}var H=Object.assign;function T(D){return D._reactInternals}function h(D,F){D._reactInternals=F}var E=!1,q=!1,w=!1,V=!1,b=!0,S=!0,s=!0,t=!0,x=0,FD=1,ZD=2,BD=3,XD=4,i=5,RD=6,jD=7,dD=8,PD=9,oD=10,QD=11,ID=12,ED=13,mD=14,KD=15,Q0=16,E0=17,yD=18,MD=19,v0=21,kD=22,JD=23,AD=24,gD=25,B0=Symbol.for("react.element"),j0=Symbol.for("react.portal"),x0=Symbol.for("react.fragment"),$0=Symbol.for("react.strict_mode"),D2=Symbol.for("react.profiler"),N0=Symbol.for("react.provider"),m0=Symbol.for("react.context"),F2=Symbol.for("react.forward_ref"),A2=Symbol.for("react.suspense"),o0=Symbol.for("react.suspense_list"),sD=Symbol.for("react.memo"),W0=Symbol.for("react.lazy"),s2=Symbol.for("react.scope"),C3=Symbol.for("react.debug_trace_mode"),m2=Symbol.for("react.offscreen"),B3=Symbol.for("react.legacy_hidden"),y3=Symbol.for("react.cache"),O3=Symbol.for("react.tracing_marker"),R3=Symbol.iterator,H3="@@iterator";function b2(D){if(D===null||typeof D!=="object")return null;var F=R3&&D[R3]||D[H3];if(typeof F==="function")return F;return null}function t2(D,F,B){var O=D.displayName;if(O)return O;var X=F.displayName||F.name||"";return X!==""?B+"("+X+")":B}function wD(D){return D.displayName||"Context"}function YD(D){if(D==null)return null;if(typeof D.tag==="number")L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof D==="function")return D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case x0:return"Fragment";case j0:return"Portal";case D2:return"Profiler";case $0:return"StrictMode";case A2:return"Suspense";case o0:return"SuspenseList"}if(typeof D==="object")switch(D.$$typeof){case m0:var F=D;return wD(F)+".Consumer";case N0:var B=D;return wD(B._context)+".Provider";case F2:return t2(D,D.render,"ForwardRef");case sD:var O=D.displayName||null;if(O!==null)return O;return YD(D.type)||"Memo";case W0:{var X=D,Z=X._payload,$=X._init;try{return YD($(Z))}catch(z){return null}}}return null}function O0(D,F,B){var O=F.displayName||F.name||"";return D.displayName||(O!==""?B+"("+O+")":B)}function Y0(D){return D.displayName||"Context"}function hD(D){var{tag:F,type:B}=D;switch(F){case AD:return"Cache";case PD:var O=B;return Y0(O)+".Consumer";case oD:var X=B;return Y0(X._context)+".Provider";case yD:return"DehydratedFragment";case QD:return O0(B,B.render,"ForwardRef");case jD:return"Fragment";case i:return B;case XD:return"Portal";case BD:return"Root";case RD:return"Text";case Q0:return YD(B);case dD:if(B===$0)return"StrictMode";return"Mode";case kD:return"Offscreen";case ID:return"Profiler";case v0:return"Scope";case ED:return"Suspense";case MD:return"SuspenseList";case gD:return"TracingMarker";case FD:case x:case E0:case ZD:case mD:case KD:if(typeof B==="function")return B.displayName||B.name||null;if(typeof B==="string")return B;break}return null}var SD=0,d0=1,S0=2,aD=4,O2=16,E2=32,G3=64,K0=128,L2=256,N3=512,M3=1024,f2=2048,k2=4096,X3=8192,i3=16384,L8=f2|aD|G3|N3|M3|i3,V8=32767,LF=32768,I=65536,LD=131072,vD=1048576,eD=2097152,rD=4194304,P0=8388608,G0=16777216,L0=33554432,Q2=aD|M3|0,y0=S0|aD|O2|E2|N3|k2|X3,i0=aD|G3|N3|X3,$2=f2|O2,v2=rD|P0|eD,V2=G.ReactCurrentOwner;function W2(D){var F=D,B=D;if(!D.alternate){var O=F;do{if(F=O,(F.flags&(S0|k2))!==SD)B=F.return;O=F.return}while(O)}else while(F.return)F=F.return;if(F.tag===BD)return B;return null}function M(D){return W2(D)===D}function N(D){{var F=V2.current;if(F!==null&&F.tag===FD){var B=F,O=B.stateNode;if(!O._warnedAboutRefsInRender)L("%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.",hD(B)||"A component");O._warnedAboutRefsInRender=!0}}var X=T(D);if(!X)return!1;return W2(X)===X}function f(D){if(W2(D)!==D)throw Error("Unable to find node on an unmounted component.")}function p(D){var F=D.alternate;if(!F){var B=W2(D);if(B===null)throw Error("Unable to find node on an unmounted component.");if(B!==D)return null;return D}var O=D,X=F;while(!0){var Z=O.return;if(Z===null)break;var $=Z.alternate;if($===null){var z=Z.return;if(z!==null){O=X=z;continue}break}if(Z.child===$.child){var R=Z.child;while(R){if(R===O)return f(Z),D;if(R===X)return f(Z),F;R=R.sibling}throw Error("Unable to find node on an unmounted component.")}if(O.return!==X.return)O=Z,X=$;else{var P=!1,v=Z.child;while(v){if(v===O){P=!0,O=Z,X=$;break}if(v===X){P=!0,X=Z,O=$;break}v=v.sibling}if(!P){v=$.child;while(v){if(v===O){P=!0,O=$,X=Z;break}if(v===X){P=!0,X=$,O=Z;break}v=v.sibling}if(!P)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(O.alternate!==X)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(O.tag!==BD)throw Error("Unable to find node on an unmounted component.");if(O.stateNode.current===O)return D;return F}function y(D){var F=p(D);return F!==null?n(F):null}function n(D){if(D.tag===i||D.tag===RD)return D;var F=D.child;while(F!==null){var B=n(F);if(B!==null)return B;F=F.sibling}return null}function $D(D){var F=p(D);return F!==null?OD(F):null}function OD(D){if(D.tag===i||D.tag===RD)return D;var F=D.child;while(F!==null){if(F.tag!==XD){var B=OD(F);if(B!==null)return B}F=F.sibling}return null}var WD=Array.isArray;function CD(D){return WD(D)}var{getPublicInstance:ND,getRootHostContext:z0,getChildHostContext:M0,prepareForCommit:b0,resetAfterCommit:V0,createInstance:q2,appendInitialChild:g3,finalizeInitialChildren:x3,prepareUpdate:n3,shouldSetTextContent:QF,createTextInstance:m3,scheduleTimeout:h8,cancelTimeout:f8,noTimeout:z_,isPrimaryRenderer:z6,warnsIfNotActing:R6,supportsMutation:E3,supportsPersistence:j8,supportsHydration:U3,getInstanceFromNode:f9,beforeActiveInstanceBlur:y8,afterActiveInstanceBlur:j9,preparePortalMount:r1,prepareScopeUpdate:qG,getInstanceFromScope:PG,getCurrentEventPriority:o1,detachDeletedInstance:y9,supportsMicrotasks:s1,scheduleMicrotask:t1,supportsTestSelectors:oF,findFiberRoot:g9,getBoundingRect:e1,getTextContent:D7,isHiddenSubtree:g8,matchAccessibilityRole:x9,setFocusIfFocusable:m9,setupIntersectionObserver:F7,appendChild:H6,appendChildToContainer:c9,commitTextUpdate:Q8,commitMount:_7,commitUpdate:C7,insertBefore:N6,insertInContainerBefore:R_,removeChild:H_,removeChildFromContainer:N_,resetTextContent:B7,hideInstance:p9,hideTextInstance:l9,unhideInstance:d9,unhideTextInstance:K,clearContainer:k,cloneInstance:d,createContainerChildSet:o,appendChildToContainerChildSet:HD,finalizeContainerChildren:_0,replaceContainerChildren:cD,cloneHiddenInstance:A0,cloneHiddenTextInstance:w0,canHydrateInstance:s0,canHydrateTextInstance:G2,canHydrateSuspenseInstance:X2,isSuspenseInstancePending:U2,isSuspenseInstanceFallback:J2,getSuspenseInstanceFallbackErrorDetails:c2,registerSuspenseInstanceRetry:M6,getNextHydratableSibling:$8,getFirstHydratableChild:O7,getFirstHydratableChildWithinContainer:i9,getFirstHydratableChildWithinSuspenseInstance:G7,hydrateInstance:n9,hydrateTextInstance:X7,hydrateSuspenseInstance:a9,getNextHydratableInstanceAfterSuspenseInstance:FJ,commitHydratedContainer:_J,commitHydratedSuspenseInstance:CJ,clearSuspenseBoundary:BJ,clearSuspenseBoundaryFromContainer:OJ,shouldDeleteUnhydratedTailInstances:GJ,didNotMatchHydratedContainerTextInstance:XJ,didNotMatchHydratedTextInstance:UJ,didNotHydrateInstanceWithinContainer:uJ,didNotHydrateInstanceWithinSuspenseInstance:ZJ,didNotHydrateInstance:AJ,didNotFindHydratableInstanceWithinContainer:LJ,didNotFindHydratableTextInstanceWithinContainer:QJ,didNotFindHydratableSuspenseInstanceWithinContainer:$J,didNotFindHydratableInstanceWithinSuspenseInstance:WJ,didNotFindHydratableTextInstanceWithinSuspenseInstance:JJ,didNotFindHydratableSuspenseInstanceWithinSuspenseInstance:YJ,didNotFindHydratableInstance:KJ,didNotFindHydratableTextInstance:zJ,didNotFindHydratableSuspenseInstance:RJ,errorHydratingContainer:HJ}=C,M_=0,wG,IG,kG,vG,TG,SG,bG;function VG(){}VG.__reactDisabledLog=!0;function NJ(){{if(M_===0){wG=console.log,IG=console.info,kG=console.warn,vG=console.error,TG=console.group,SG=console.groupCollapsed,bG=console.groupEnd;var D={configurable:!0,enumerable:!0,value:VG,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}M_++}}function MJ(){{if(M_--,M_===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},D,{value:wG}),info:H({},D,{value:IG}),warn:H({},D,{value:kG}),error:H({},D,{value:vG}),group:H({},D,{value:TG}),groupCollapsed:H({},D,{value:SG}),groupEnd:H({},D,{value:bG})})}if(M_<0)L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var r9=G.ReactCurrentDispatcher,o9;function W8(D,F,B){{if(o9===void 0)try{throw Error()}catch(X){var O=X.stack.trim().match(/\n( *(at )?)/);o9=O&&O[1]||""}return`
|
|
26
|
+
`+o9+D}}var s9=!1,U7;{var EJ=typeof WeakMap==="function"?WeakMap:Map;U7=new EJ}function t9(D,F){if(!D||s9)return"";{var B=U7.get(D);if(B!==void 0)return B}var O;s9=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=r9.current,r9.current=null,NJ();try{if(F){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(UD){O=UD}Reflect.construct(D,[],$)}else{try{$.call()}catch(UD){O=UD}D.call($.prototype)}}else{try{throw Error()}catch(UD){O=UD}D()}}catch(UD){if(UD&&O&&typeof UD.stack==="string"){var z=UD.stack.split(`
|
|
27
|
+
`),R=O.stack.split(`
|
|
28
|
+
`),P=z.length-1,v=R.length-1;while(P>=1&&v>=0&&z[P]!==R[v])v--;for(;P>=1&&v>=0;P--,v--)if(z[P]!==R[v]){if(P!==1||v!==1)do if(P--,v--,v<0||z[P]!==R[v]){var g=`
|
|
29
|
+
`+z[P].replace(" at new "," at ");if(D.displayName&&g.includes("<anonymous>"))g=g.replace("<anonymous>",D.displayName);if(typeof D==="function")U7.set(D,g);return g}while(P>=1&&v>=0);break}}}finally{s9=!1,r9.current=Z,MJ(),Error.prepareStackTrace=X}var a=D?D.displayName||D.name:"",_D=a?W8(a):"";if(typeof D==="function")U7.set(D,_D);return _D}function qJ(D,F,B){return t9(D,!0)}function e9(D,F,B){return t9(D,!1)}function PJ(D){var F=D.prototype;return!!(F&&F.isReactComponent)}function D5(D,F,B){if(D==null)return"";if(typeof D==="function")return t9(D,PJ(D));if(typeof D==="string")return W8(D);switch(D){case A2:return W8("Suspense");case o0:return W8("SuspenseList")}if(typeof D==="object")switch(D.$$typeof){case F2:return e9(D.render);case sD:return D5(D.type,F,B);case W0:{var O=D,X=O._payload,Z=O._init;try{return D5(Z(X),F,B)}catch($){}}}return""}var hG=Object.prototype.hasOwnProperty,fG={},jG=G.ReactDebugCurrentFrame;function u7(D){if(D){var F=D._owner,B=D5(D.type,D._source,F?F.type:null);jG.setExtraStackFrame(B)}else jG.setExtraStackFrame(null)}function $F(D,F,B,O,X){{var Z=Function.call.bind(hG);for(var $ in D)if(Z(D,$)){var z=void 0;try{if(typeof D[$]!=="function"){var R=Error((O||"React class")+": "+B+" type `"+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[$]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}z=D[$](F,$,O,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){z=P}if(z&&!(z instanceof Error))u7(X),L("%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).",O||"React class",B,$,typeof z),u7(null);if(z instanceof Error&&!(z.message in fG))fG[z.message]=!0,u7(X),L("Failed %s type: %s",B,z.message),u7(null)}}}var F5=[],Z7;Z7=[];var sF=-1;function J8(D){return{current:D}}function q3(D,F){if(sF<0){L("Unexpected pop.");return}if(F!==Z7[sF])L("Unexpected Fiber popped.");D.current=F5[sF],F5[sF]=null,Z7[sF]=null,sF--}function u3(D,F,B){sF++,F5[sF]=D.current,Z7[sF]=B,D.current=F}var yG={},a3={};Object.freeze(a3);var tF=J8(a3),vF=J8(!1),_5=a3;function E6(D,F,B){{if(B&&TF(F))return _5;return tF.current}}function gG(D,F,B){{var O=D.stateNode;O.__reactInternalMemoizedUnmaskedChildContext=F,O.__reactInternalMemoizedMaskedChildContext=B}}function q6(D,F){{var B=D.type,O=B.contextTypes;if(!O)return a3;var X=D.stateNode;if(X&&X.__reactInternalMemoizedUnmaskedChildContext===F)return X.__reactInternalMemoizedMaskedChildContext;var Z={};for(var $ in O)Z[$]=F[$];{var z=hD(D)||"Unknown";$F(O,Z,"context",z)}if(X)gG(D,F,Z);return Z}}function A7(){return vF.current}function TF(D){{var F=D.childContextTypes;return F!==null&&F!==void 0}}function L7(D){q3(vF,D),q3(tF,D)}function C5(D){q3(vF,D),q3(tF,D)}function xG(D,F,B){{if(tF.current!==a3)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");u3(tF,F,D),u3(vF,B,D)}}function mG(D,F,B){{var O=D.stateNode,X=F.childContextTypes;if(typeof O.getChildContext!=="function"){{var Z=hD(D)||"Unknown";if(!yG[Z])yG[Z]=!0,L("%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.",Z,Z)}return B}var $=O.getChildContext();for(var z in $)if(!(z in X))throw Error((hD(D)||"Unknown")+'.getChildContext(): key "'+z+'" is not defined in childContextTypes.');{var R=hD(D)||"Unknown";$F(X,$,"child context",R)}return H({},B,$)}}function Q7(D){{var F=D.stateNode,B=F&&F.__reactInternalMemoizedMergedChildContext||a3;return _5=tF.current,u3(tF,B,D),u3(vF,vF.current,D),!0}}function cG(D,F,B){{var O=D.stateNode;if(!O)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(B){var X=mG(D,F,_5);O.__reactInternalMemoizedMergedChildContext=X,q3(vF,D),q3(tF,D),u3(tF,X,D),u3(vF,B,D)}else q3(vF,D),u3(vF,B,D)}}function wJ(D){{if(!M(D)||D.tag!==FD)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 F=D;do{switch(F.tag){case BD:return F.stateNode.context;case FD:{var B=F.type;if(TF(B))return F.stateNode.__reactInternalMemoizedMergedChildContext;break}}F=F.return}while(F!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var P6=0,pG=1,F0=0,h0=1,n0=2,T2=8,SF=16,lG=Math.clz32?Math.clz32:vJ,IJ=Math.log,kJ=Math.LN2;function vJ(D){var F=D>>>0;if(F===0)return 32;return 31-(IJ(F)/kJ|0)|0}var B5=31,uD=0,e2=0,X0=1,w6=2,eF=4,x8=8,bF=16,E_=32,I6=4194240,q_=64,O5=128,G5=256,X5=512,U5=1024,u5=2048,Z5=4096,A5=8192,L5=16384,Q5=32768,$5=65536,W5=131072,J5=262144,Y5=524288,K5=1048576,z5=2097152,$7=130023424,k6=4194304,R5=8388608,H5=16777216,N5=33554432,M5=67108864,dG=k6,P_=134217728,iG=268435455,w_=268435456,m8=536870912,r3=1073741824;function TJ(D){{if(D&X0)return"Sync";if(D&w6)return"InputContinuousHydration";if(D&eF)return"InputContinuous";if(D&x8)return"DefaultHydration";if(D&bF)return"Default";if(D&E_)return"TransitionHydration";if(D&I6)return"Transition";if(D&$7)return"Retry";if(D&P_)return"SelectiveHydration";if(D&w_)return"IdleHydration";if(D&m8)return"Idle";if(D&r3)return"Offscreen"}}var u2=-1,W7=q_,J7=k6;function I_(D){switch(c8(D)){case X0:return X0;case w6:return w6;case eF:return eF;case x8:return x8;case bF:return bF;case E_:return E_;case q_:case O5:case G5:case X5:case U5:case u5:case Z5:case A5:case L5:case Q5:case $5:case W5:case J5:case Y5:case K5:case z5:return D&I6;case k6:case R5:case H5:case N5:case M5:return D&$7;case P_:return P_;case w_:return w_;case m8:return m8;case r3:return r3;default:return L("Should have found matching lanes. This is a bug in React."),D}}function Y7(D,F){var B=D.pendingLanes;if(B===uD)return uD;var O=uD,X=D.suspendedLanes,Z=D.pingedLanes,$=B&iG;if($!==uD){var z=$&~X;if(z!==uD)O=I_(z);else{var R=$&Z;if(R!==uD)O=I_(R)}}else{var P=B&~X;if(P!==uD)O=I_(P);else if(Z!==uD)O=I_(Z)}if(O===uD)return uD;if(F!==uD&&F!==O&&(F&X)===uD){var v=c8(O),g=c8(F);if(v>=g||v===bF&&(g&I6)!==uD)return F}if((O&eF)!==uD)O|=B&bF;var a=D.entangledLanes;if(a!==uD){var _D=D.entanglements,UD=O&a;while(UD>0){var GD=p8(UD),xD=1<<GD;O|=_D[GD],UD&=~xD}}return O}function SJ(D,F){var B=D.eventTimes,O=u2;while(F>0){var X=p8(F),Z=1<<X,$=B[X];if($>O)O=$;F&=~Z}return O}function bJ(D,F){switch(D){case X0:case w6:case eF:return F+250;case x8:case bF:case E_:case q_:case O5:case G5:case X5:case U5:case u5:case Z5:case A5:case L5:case Q5:case $5:case W5:case J5:case Y5:case K5:case z5:return F+5000;case k6:case R5:case H5:case N5:case M5:return u2;case P_:case w_:case m8:case r3:return u2;default:return L("Should have found matching lanes. This is a bug in React."),u2}}function VJ(D,F){var{pendingLanes:B,suspendedLanes:O,pingedLanes:X,expirationTimes:Z}=D,$=B;while($>0){var z=p8($),R=1<<z,P=Z[z];if(P===u2){if((R&O)===uD||(R&X)!==uD)Z[z]=bJ(R,F)}else if(P<=F)D.expiredLanes|=R;$&=~R}}function hJ(D){return I_(D.pendingLanes)}function E5(D){var F=D.pendingLanes&~r3;if(F!==uD)return F;if(F&r3)return r3;return uD}function fJ(D){return(D&X0)!==uD}function q5(D){return(D&iG)!==uD}function nG(D){return(D&$7)===D}function jJ(D){var F=X0|eF|bF;return(D&F)===uD}function yJ(D){return(D&I6)===D}function K7(D,F){var B=w6|eF|x8|bF;return(F&B)!==uD}function gJ(D,F){return(F&D.expiredLanes)!==uD}function aG(D){return(D&I6)!==uD}function rG(){var D=W7;if(W7<<=1,(W7&I6)===uD)W7=q_;return D}function xJ(){var D=J7;if(J7<<=1,(J7&$7)===uD)J7=k6;return D}function c8(D){return D&-D}function k_(D){return c8(D)}function p8(D){return 31-lG(D)}function P5(D){return p8(D)}function o3(D,F){return(D&F)!==uD}function v6(D,F){return(D&F)===F}function J0(D,F){return D|F}function z7(D,F){return D&~F}function oG(D,F){return D&F}function R7(D){return D}function mJ(D,F){return D!==e2&&D<F?D:F}function w5(D){var F=[];for(var B=0;B<B5;B++)F.push(D);return F}function v_(D,F,B){if(D.pendingLanes|=F,F!==m8)D.suspendedLanes=uD,D.pingedLanes=uD;var O=D.eventTimes,X=P5(F);O[X]=B}function cJ(D,F){D.suspendedLanes|=F,D.pingedLanes&=~F;var B=D.expirationTimes,O=F;while(O>0){var X=p8(O),Z=1<<X;B[X]=u2,O&=~Z}}function sG(D,F,B){D.pingedLanes|=D.suspendedLanes&F}function pJ(D,F){var B=D.pendingLanes&~F;D.pendingLanes=F,D.suspendedLanes=uD,D.pingedLanes=uD,D.expiredLanes&=F,D.mutableReadLanes&=F,D.entangledLanes&=F;var{entanglements:O,eventTimes:X,expirationTimes:Z}=D,$=B;while($>0){var z=p8($),R=1<<z;O[z]=uD,X[z]=u2,Z[z]=u2,$&=~R}}function I5(D,F){var B=D.entangledLanes|=F,O=D.entanglements,X=B;while(X){var Z=p8(X),$=1<<Z;if($&F|O[Z]&F)O[Z]|=F;X&=~$}}function lJ(D,F){var B=c8(F),O;switch(B){case eF:O=w6;break;case bF:O=x8;break;case q_:case O5:case G5:case X5:case U5:case u5:case Z5:case A5:case L5:case Q5:case $5:case W5:case J5:case Y5:case K5:case z5:case k6:case R5:case H5:case N5:case M5:O=E_;break;case m8:O=w_;break;default:O=e2;break}if((O&(D.suspendedLanes|F))!==e2)return e2;return O}function tG(D,F,B){if(!JF)return;var O=D.pendingUpdatersLaneMap;while(B>0){var X=P5(B),Z=1<<X,$=O[X];$.add(F),B&=~Z}}function eG(D,F){if(!JF)return;var{pendingUpdatersLaneMap:B,memoizedUpdaters:O}=D;while(F>0){var X=P5(F),Z=1<<X,$=B[X];if($.size>0)$.forEach(function(z){var R=z.alternate;if(R===null||!O.has(R))O.add(z)}),$.clear();F&=~Z}}function DX(D,F){return null}var VF=X0,T_=eF,S_=bF,k5=m8,b_=e2;function WF(){return b_}function D3(D){b_=D}function dJ(D,F){var B=b_;try{return b_=D,F()}finally{b_=B}}function iJ(D,F){return D!==0&&D<F?D:F}function nJ(D,F){return D===0||D>F?D:F}function FX(D,F){return D!==0&&D<F}function _X(D){var F=c8(D);if(!FX(VF,F))return VF;if(!FX(T_,F))return T_;if(q5(F))return S_;return k5}var CX=K2.unstable_scheduleCallback,aJ=K2.unstable_cancelCallback,rJ=K2.unstable_shouldYield,oJ=K2.unstable_requestPaint,F3=K2.unstable_now,H7=K2.unstable_ImmediatePriority,BX=K2.unstable_UserBlockingPriority,T6=K2.unstable_NormalPriority,OX=K2.unstable_IdlePriority,sJ=K2.unstable_yieldValue,tJ=K2.unstable_setDisableYieldValue,l8=null,Z3=null,bD=null,hF=!1,JF=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function eJ(D){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var F=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(F.isDisabled)return!0;if(!F.supportsFiber)return L("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(S)D=H({},D,{getLaneLabelMap:OY,injectProfilingHooks:BY});l8=F.inject(D),Z3=F}catch(B){L("React instrumentation encountered an error: %s.",B)}if(F.checkDCE)return!0;else return!1}function DY(D,F){if(Z3&&typeof Z3.onScheduleFiberRoot==="function")try{Z3.onScheduleFiberRoot(l8,D,F)}catch(B){if(!hF)hF=!0,L("React instrumentation encountered an error: %s",B)}}function FY(D,F){if(Z3&&typeof Z3.onCommitFiberRoot==="function")try{var B=(D.current.flags&K0)===K0;if(s){var O;switch(F){case VF:O=H7;break;case T_:O=BX;break;case S_:O=T6;break;case k5:O=OX;break;default:O=T6;break}Z3.onCommitFiberRoot(l8,D,O,B)}else Z3.onCommitFiberRoot(l8,D,void 0,B)}catch(X){if(!hF)hF=!0,L("React instrumentation encountered an error: %s",X)}}function _Y(D){if(Z3&&typeof Z3.onPostCommitFiberRoot==="function")try{Z3.onPostCommitFiberRoot(l8,D)}catch(F){if(!hF)hF=!0,L("React instrumentation encountered an error: %s",F)}}function CY(D){if(Z3&&typeof Z3.onCommitFiberUnmount==="function")try{Z3.onCommitFiberUnmount(l8,D)}catch(F){if(!hF)hF=!0,L("React instrumentation encountered an error: %s",F)}}function _3(D){{if(typeof sJ==="function")tJ(D),Q(D);if(Z3&&typeof Z3.setStrictMode==="function")try{Z3.setStrictMode(l8,D)}catch(F){if(!hF)hF=!0,L("React instrumentation encountered an error: %s",F)}}}function BY(D){bD=D}function OY(){{var D=new Map,F=1;for(var B=0;B<B5;B++){var O=TJ(F);D.set(F,O),F*=2}return D}}function GY(D){if(bD!==null&&typeof bD.markCommitStarted==="function")bD.markCommitStarted(D)}function GX(){if(bD!==null&&typeof bD.markCommitStopped==="function")bD.markCommitStopped()}function V_(D){if(bD!==null&&typeof bD.markComponentRenderStarted==="function")bD.markComponentRenderStarted(D)}function S6(){if(bD!==null&&typeof bD.markComponentRenderStopped==="function")bD.markComponentRenderStopped()}function XY(D){if(bD!==null&&typeof bD.markComponentPassiveEffectMountStarted==="function")bD.markComponentPassiveEffectMountStarted(D)}function UY(){if(bD!==null&&typeof bD.markComponentPassiveEffectMountStopped==="function")bD.markComponentPassiveEffectMountStopped()}function uY(D){if(bD!==null&&typeof bD.markComponentPassiveEffectUnmountStarted==="function")bD.markComponentPassiveEffectUnmountStarted(D)}function ZY(){if(bD!==null&&typeof bD.markComponentPassiveEffectUnmountStopped==="function")bD.markComponentPassiveEffectUnmountStopped()}function AY(D){if(bD!==null&&typeof bD.markComponentLayoutEffectMountStarted==="function")bD.markComponentLayoutEffectMountStarted(D)}function LY(){if(bD!==null&&typeof bD.markComponentLayoutEffectMountStopped==="function")bD.markComponentLayoutEffectMountStopped()}function XX(D){if(bD!==null&&typeof bD.markComponentLayoutEffectUnmountStarted==="function")bD.markComponentLayoutEffectUnmountStarted(D)}function UX(){if(bD!==null&&typeof bD.markComponentLayoutEffectUnmountStopped==="function")bD.markComponentLayoutEffectUnmountStopped()}function QY(D,F,B){if(bD!==null&&typeof bD.markComponentErrored==="function")bD.markComponentErrored(D,F,B)}function $Y(D,F,B){if(bD!==null&&typeof bD.markComponentSuspended==="function")bD.markComponentSuspended(D,F,B)}function WY(D){if(bD!==null&&typeof bD.markLayoutEffectsStarted==="function")bD.markLayoutEffectsStarted(D)}function JY(){if(bD!==null&&typeof bD.markLayoutEffectsStopped==="function")bD.markLayoutEffectsStopped()}function YY(D){if(bD!==null&&typeof bD.markPassiveEffectsStarted==="function")bD.markPassiveEffectsStarted(D)}function KY(){if(bD!==null&&typeof bD.markPassiveEffectsStopped==="function")bD.markPassiveEffectsStopped()}function uX(D){if(bD!==null&&typeof bD.markRenderStarted==="function")bD.markRenderStarted(D)}function zY(){if(bD!==null&&typeof bD.markRenderYielded==="function")bD.markRenderYielded()}function ZX(){if(bD!==null&&typeof bD.markRenderStopped==="function")bD.markRenderStopped()}function RY(D){if(bD!==null&&typeof bD.markRenderScheduled==="function")bD.markRenderScheduled(D)}function HY(D,F){if(bD!==null&&typeof bD.markForceUpdateScheduled==="function")bD.markForceUpdateScheduled(D,F)}function v5(D,F){if(bD!==null&&typeof bD.markStateUpdateScheduled==="function")bD.markStateUpdateScheduled(D,F)}function NY(D,F){return D===F&&(D!==0||1/D===1/F)||D!==D&&F!==F}var s3=typeof Object.is==="function"?Object.is:NY,D8=null,T5=!1,S5=!1;function AX(D){if(D8===null)D8=[D];else D8.push(D)}function MY(D){T5=!0,AX(D)}function LX(){if(T5)fF()}function fF(){if(!S5&&D8!==null){S5=!0;var D=0,F=WF();try{var B=!0,O=D8;D3(VF);for(;D<O.length;D++){var X=O[D];do X=X(B);while(X!==null)}D8=null,T5=!1}catch(Z){if(D8!==null)D8=D8.slice(D+1);throw CX(H7,fF),Z}finally{D3(F),S5=!1}}return null}function QX(D){var F=D.current.memoizedState;return F.isDehydrated}var b6=[],V6=0,N7=null,M7=0,BF=[],OF=0,d8=null,F8=1,_8="";function EY(D){return n8(),(D.flags&vD)!==SD}function qY(D){return n8(),M7}function PY(){var D=_8,F=F8,B=F&~wY(F);return B.toString(32)+D}function i8(D,F){n8(),b6[V6++]=M7,b6[V6++]=N7,N7=D,M7=F}function $X(D,F,B){n8(),BF[OF++]=F8,BF[OF++]=_8,BF[OF++]=d8,d8=D;var O=F8,X=_8,Z=E7(O)-1,$=O&~(1<<Z),z=B+1,R=E7(F)+Z;if(R>30){var P=Z-Z%5,v=(1<<P)-1,g=($&v).toString(32),a=$>>P,_D=Z-P,UD=E7(F)+_D,GD=z<<_D,xD=GD|a,C0=g+X;F8=1<<UD|xD,_8=C0}else{var tD=z<<Z,p0=tD|$,T0=X;F8=1<<R|p0,_8=T0}}function b5(D){n8();var F=D.return;if(F!==null){var B=1,O=0;i8(D,B),$X(D,B,O)}}function E7(D){return 32-lG(D)}function wY(D){return 1<<E7(D)-1}function V5(D){while(D===N7)N7=b6[--V6],b6[V6]=null,M7=b6[--V6],b6[V6]=null;while(D===d8)d8=BF[--OF],BF[OF]=null,_8=BF[--OF],BF[OF]=null,F8=BF[--OF],BF[OF]=null}function IY(){if(n8(),d8!==null)return{id:F8,overflow:_8};else return null}function kY(D,F){n8(),BF[OF++]=F8,BF[OF++]=_8,BF[OF++]=d8,F8=F.id,_8=F.overflow,d8=D}function n8(){if(!L3())L("Expected to be hydrating. This is a bug in React. Please file an issue.")}var A3=null,GF=null,YF=!1,Y8=!1,K8=null;function vY(){if(YF)L("We should not be hydrating here. This is a bug in React. Please file a bug.")}function WX(){Y8=!0}function TY(){return Y8}function SY(D){if(!U3)return!1;var F=D.stateNode.containerInfo;return GF=i9(F),A3=D,YF=!0,K8=null,Y8=!1,!0}function bY(D,F,B){if(!U3)return!1;if(GF=G7(F),A3=D,YF=!0,K8=null,Y8=!1,B!==null)kY(D,B);return!0}function JX(D,F){switch(D.tag){case BD:{uJ(D.stateNode.containerInfo,F);break}case i:{var B=(D.mode&h0)!==F0;AJ(D.type,D.memoizedProps,D.stateNode,F,B);break}case ED:{var O=D.memoizedState;if(O.dehydrated!==null)ZJ(O.dehydrated,F);break}}}function YX(D,F){JX(D,F);var B=OH();B.stateNode=F,B.return=D;var O=D.deletions;if(O===null)D.deletions=[B],D.flags|=O2;else O.push(B)}function h5(D,F){{if(Y8)return;switch(D.tag){case BD:{var B=D.stateNode.containerInfo;switch(F.tag){case i:var{type:O,pendingProps:X}=F;LJ(B,O,X);break;case RD:var Z=F.pendingProps;QJ(B,Z);break;case ED:$J(B);break}break}case i:{var{type:$,memoizedProps:z,stateNode:R}=D;switch(F.tag){case i:{var{type:P,pendingProps:v}=F,g=(D.mode&h0)!==F0;KJ($,z,R,P,v,g);break}case RD:{var a=F.pendingProps,_D=(D.mode&h0)!==F0;zJ($,z,R,a,_D);break}case ED:{RJ($,z,R);break}}break}case ED:{var UD=D.memoizedState,GD=UD.dehydrated;if(GD!==null)switch(F.tag){case i:var{type:xD,pendingProps:C0}=F;WJ(GD,xD,C0);break;case RD:var tD=F.pendingProps;JJ(GD,tD);break;case ED:YJ(GD);break}break}default:return}}}function KX(D,F){F.flags=F.flags&~k2|S0,h5(D,F)}function zX(D,F){switch(D.tag){case i:{var{type:B,pendingProps:O}=D,X=s0(F,B,O);if(X!==null)return D.stateNode=X,A3=D,GF=O7(X),!0;return!1}case RD:{var Z=D.pendingProps,$=G2(F,Z);if($!==null)return D.stateNode=$,A3=D,GF=null,!0;return!1}case ED:{var z=X2(F);if(z!==null){var R={dehydrated:z,treeContext:IY(),retryLane:r3};D.memoizedState=R;var P=GH(z);return P.return=D,D.child=P,A3=D,GF=null,!0}return!1}default:return!1}}function f5(D){return(D.mode&h0)!==F0&&(D.flags&K0)===SD}function j5(D){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function y5(D){if(!YF)return;var F=GF;if(!F){if(f5(D))h5(A3,D),j5();KX(A3,D),YF=!1,A3=D;return}var B=F;if(!zX(D,F)){if(f5(D))h5(A3,D),j5();F=$8(B);var O=A3;if(!F||!zX(D,F)){KX(A3,D),YF=!1,A3=D;return}YX(O,B)}}function VY(D,F,B){if(!U3)throw Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var O=D.stateNode,X=!Y8,Z=n9(O,D.type,D.memoizedProps,F,B,D,X);if(D.updateQueue=Z,Z!==null)return!0;return!1}function hY(D){if(!U3)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var{stateNode:F,memoizedProps:B}=D,O=!Y8,X=X7(F,B,D,O);if(X){var Z=A3;if(Z!==null)switch(Z.tag){case BD:{var $=Z.stateNode.containerInfo,z=(Z.mode&h0)!==F0;XJ($,F,B,z);break}case i:{var{type:R,memoizedProps:P,stateNode:v}=Z,g=(Z.mode&h0)!==F0;UJ(R,P,v,F,B,g);break}}}return X}function fY(D){if(!U3)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var F=D.memoizedState,B=F!==null?F.dehydrated:null;if(!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");a9(B,D)}function jY(D){if(!U3)throw Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var F=D.memoizedState,B=F!==null?F.dehydrated:null;if(!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return FJ(B)}function RX(D){var F=D.return;while(F!==null&&F.tag!==i&&F.tag!==BD&&F.tag!==ED)F=F.return;A3=F}function q7(D){if(!U3)return!1;if(D!==A3)return!1;if(!YF)return RX(D),YF=!0,!1;if(D.tag!==BD&&(D.tag!==i||GJ(D.type)&&!QF(D.type,D.memoizedProps))){var F=GF;if(F)if(f5(D))HX(D),j5();else while(F)YX(D,F),F=$8(F)}if(RX(D),D.tag===ED)GF=jY(D);else GF=A3?$8(D.stateNode):null;return!0}function yY(){return YF&&GF!==null}function HX(D){var F=GF;while(F)JX(D,F),F=$8(F)}function h6(){if(!U3)return;A3=null,GF=null,YF=!1,Y8=!1}function NX(){if(K8!==null)Hu(K8),K8=null}function L3(){return YF}function g5(D){if(K8===null)K8=[D];else K8.push(D)}var gY=G.ReactCurrentBatchConfig,xY=null;function mY(){return gY.transition}function P7(D,F){if(s3(D,F))return!0;if(typeof D!=="object"||D===null||typeof F!=="object"||F===null)return!1;var B=Object.keys(D),O=Object.keys(F);if(B.length!==O.length)return!1;for(var X=0;X<B.length;X++){var Z=B[X];if(!hG.call(F,Z)||!s3(D[Z],F[Z]))return!1}return!0}function cY(D){var F=D._debugOwner?D._debugOwner.type:null,B=D._debugSource;switch(D.tag){case i:return W8(D.type);case Q0:return W8("Lazy");case ED:return W8("Suspense");case MD:return W8("SuspenseList");case x:case ZD:case KD:return e9(D.type);case QD:return e9(D.type.render);case FD:return qJ(D.type);default:return""}}function MX(D){try{var F="",B=D;do F+=cY(B),B=B.return;while(B);return F}catch(O){return`
|
|
30
|
+
Error generating stack: `+O.message+`
|
|
31
|
+
`+O.stack}}var EX=G.ReactDebugCurrentFrame,t3=null,h_=!1;function pY(){{if(t3===null)return null;var D=t3._debugOwner;if(D!==null&&typeof D<"u")return hD(D)}return null}function lY(){{if(t3===null)return"";return MX(t3)}}function T3(){EX.getCurrentStack=null,t3=null,h_=!1}function h2(D){EX.getCurrentStack=D===null?null:lY,t3=D,h_=!1}function dY(){return t3}function jF(D){h_=D}var KF={recordUnsafeLifecycleWarnings:function(D,F){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(D,F){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var iY=function(D){var F=null,B=D;while(B!==null){if(B.mode&T2)F=B;B=B.return}return F},a8=function(D){var F=[];return D.forEach(function(B){F.push(B)}),F.sort().join(", ")},f_=[],j_=[],y_=[],g_=[],x_=[],m_=[],r8=new Set;KF.recordUnsafeLifecycleWarnings=function(D,F){if(r8.has(D.type))return;if(typeof F.componentWillMount==="function"&&F.componentWillMount.__suppressDeprecationWarning!==!0)f_.push(D);if(D.mode&T2&&typeof F.UNSAFE_componentWillMount==="function")j_.push(D);if(typeof F.componentWillReceiveProps==="function"&&F.componentWillReceiveProps.__suppressDeprecationWarning!==!0)y_.push(D);if(D.mode&T2&&typeof F.UNSAFE_componentWillReceiveProps==="function")g_.push(D);if(typeof F.componentWillUpdate==="function"&&F.componentWillUpdate.__suppressDeprecationWarning!==!0)x_.push(D);if(D.mode&T2&&typeof F.UNSAFE_componentWillUpdate==="function")m_.push(D)},KF.flushPendingUnsafeLifecycleWarnings=function(){var D=new Set;if(f_.length>0)f_.forEach(function(a){D.add(hD(a)||"Component"),r8.add(a.type)}),f_=[];var F=new Set;if(j_.length>0)j_.forEach(function(a){F.add(hD(a)||"Component"),r8.add(a.type)}),j_=[];var B=new Set;if(y_.length>0)y_.forEach(function(a){B.add(hD(a)||"Component"),r8.add(a.type)}),y_=[];var O=new Set;if(g_.length>0)g_.forEach(function(a){O.add(hD(a)||"Component"),r8.add(a.type)}),g_=[];var X=new Set;if(x_.length>0)x_.forEach(function(a){X.add(hD(a)||"Component"),r8.add(a.type)}),x_=[];var Z=new Set;if(m_.length>0)m_.forEach(function(a){Z.add(hD(a)||"Component"),r8.add(a.type)}),m_=[];if(F.size>0){var $=a8(F);L(`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.
|
|
32
|
+
|
|
33
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
34
|
+
|
|
35
|
+
Please update the following components: %s`,$)}if(O.size>0){var z=a8(O);L(`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.
|
|
36
|
+
|
|
37
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
38
|
+
* 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
|
|
39
|
+
|
|
40
|
+
Please update the following components: %s`,z)}if(Z.size>0){var R=a8(Z);L(`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.
|
|
41
|
+
|
|
42
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
43
|
+
|
|
44
|
+
Please update the following components: %s`,R)}if(D.size>0){var P=a8(D);J(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
45
|
+
|
|
46
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
47
|
+
* 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.
|
|
48
|
+
|
|
49
|
+
Please update the following components: %s`,P)}if(B.size>0){var v=a8(B);J(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
50
|
+
|
|
51
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
52
|
+
* 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
|
|
53
|
+
* 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.
|
|
54
|
+
|
|
55
|
+
Please update the following components: %s`,v)}if(X.size>0){var g=a8(X);J(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
56
|
+
|
|
57
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
58
|
+
* 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.
|
|
59
|
+
|
|
60
|
+
Please update the following components: %s`,g)}};var w7=new Map,qX=new Set;KF.recordLegacyContextWarning=function(D,F){var B=iY(D);if(B===null){L("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(qX.has(D.type))return;var O=w7.get(B);if(D.type.contextTypes!=null||D.type.childContextTypes!=null||F!==null&&typeof F.getChildContext==="function"){if(O===void 0)O=[],w7.set(B,O);O.push(D)}},KF.flushLegacyContextWarning=function(){w7.forEach(function(D,F){if(D.length===0)return;var B=D[0],O=new Set;D.forEach(function(Z){O.add(hD(Z)||"Component"),qX.add(Z.type)});var X=a8(O);try{h2(B),L(`Legacy context API has been detected within a strict-mode tree.
|
|
61
|
+
|
|
62
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
63
|
+
|
|
64
|
+
Please update the following components: %s
|
|
65
|
+
|
|
66
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,X)}finally{T3()}})},KF.discardPendingWarnings=function(){f_=[],j_=[],y_=[],g_=[],x_=[],m_=[],w7=new Map}}function PX(D){{var F=typeof Symbol==="function"&&Symbol.toStringTag,B=F&&D[Symbol.toStringTag]||D.constructor.name||"Object";return B}}function wX(D){try{return x5(D),!1}catch(F){return!0}}function x5(D){return""+D}function nY(D){if(wX(D))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",PX(D)),x5(D)}function aY(D,F){if(wX(D))return L("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",F,PX(D)),x5(D)}var m5,c5,p5,l5,d5,IX=function(D,F){};m5=!1,c5=!1,p5={},l5={},d5={},IX=function(D,F){if(D===null||typeof D!=="object")return;if(!D._store||D._store.validated||D.key!=null)return;if(typeof D._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.");D._store.validated=!0;var B=hD(F)||"Component";if(l5[B])return;l5[B]=!0,L('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')};function rY(D){return D.prototype&&D.prototype.isReactComponent}function c_(D,F,B){var O=B.ref;if(O!==null&&typeof O!=="function"&&typeof O!=="object"){if((D.mode&T2||b)&&!(B._owner&&B._self&&B._owner.stateNode!==B._self)&&!(B._owner&&B._owner.tag!==FD)&&!(typeof B.type==="function"&&!rY(B.type))&&B._owner){var X=hD(D)||"Component";if(!p5[X])L('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',X,O),p5[X]=!0}if(B._owner){var Z=B._owner,$;if(Z){var z=Z;if(z.tag!==FD)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");$=z.stateNode}if(!$)throw Error("Missing owner for string ref "+O+". This error is likely caused by a bug in React. Please file an issue.");var R=$;aY(O,"ref");var P=""+O;if(F!==null&&F.ref!==null&&typeof F.ref==="function"&&F.ref._stringRef===P)return F.ref;var v=function(g){var a=R.refs;if(g===null)delete a[P];else a[P]=g};return v._stringRef=P,v}else{if(typeof O!=="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!B._owner)throw Error("Element ref was specified as a string ("+O+`) but no owner was set. This could happen for one of the following reasons:
|
|
67
|
+
1. You may be adding a ref to a function component
|
|
68
|
+
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
69
|
+
3. You have multiple copies of React loaded
|
|
70
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return O}function I7(D,F){var B=Object.prototype.toString.call(F);throw Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}function k7(D){{var F=hD(D)||"Component";if(d5[F])return;d5[F]=!0,L("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 kX(D){var{_payload:F,_init:B}=D;return B(F)}function vX(D){function F(c,e){if(!D)return;var m=c.deletions;if(m===null)c.deletions=[e],c.flags|=O2;else m.push(e)}function B(c,e){if(!D)return null;var m=e;while(m!==null)F(c,m),m=m.sibling;return null}function O(c,e){var m=new Map,zD=e;while(zD!==null){if(zD.key!==null)m.set(zD.key,zD);else m.set(zD.index,zD);zD=zD.sibling}return m}function X(c,e){var m=B6(c,e);return m.index=0,m.sibling=null,m}function Z(c,e,m){if(c.index=m,!D)return c.flags|=vD,e;var zD=c.alternate;if(zD!==null){var iD=zD.index;if(iD<e)return c.flags|=S0,e;else return iD}else return c.flags|=S0,e}function $(c){if(D&&c.alternate===null)c.flags|=S0;return c}function z(c,e,m,zD){if(e===null||e.tag!==RD){var iD=pB(m,c.mode,zD);return iD.return=c,iD}else{var fD=X(e,m);return fD.return=c,fD}}function R(c,e,m,zD){var iD=m.type;if(iD===x0)return v(c,e,m.props.children,zD,m.key);if(e!==null){if(e.elementType===iD||fu(e,m)||typeof iD==="object"&&iD!==null&&iD.$$typeof===W0&&kX(iD)===e.type){var fD=X(e,m.props);return fD.ref=c_(c,e,m),fD.return=c,fD._debugSource=m._source,fD._debugOwner=m._owner,fD}}var I0=cB(m,c.mode,zD);return I0.ref=c_(c,e,m),I0.return=c,I0}function P(c,e,m,zD){if(e===null||e.tag!==XD||e.stateNode.containerInfo!==m.containerInfo||e.stateNode.implementation!==m.implementation){var iD=lB(m,c.mode,zD);return iD.return=c,iD}else{var fD=X(e,m.children||[]);return fD.return=c,fD}}function v(c,e,m,zD,iD){if(e===null||e.tag!==jD){var fD=I8(m,c.mode,zD,iD);return fD.return=c,fD}else{var I0=X(e,m);return I0.return=c,I0}}function g(c,e,m){if(typeof e==="string"&&e!==""||typeof e==="number"){var zD=pB(""+e,c.mode,m);return zD.return=c,zD}if(typeof e==="object"&&e!==null){switch(e.$$typeof){case B0:{var iD=cB(e,c.mode,m);return iD.ref=c_(c,null,e),iD.return=c,iD}case j0:{var fD=lB(e,c.mode,m);return fD.return=c,fD}case W0:{var{_payload:I0,_init:U0}=e;return g(c,U0(I0),m)}}if(CD(e)||b2(e)){var g0=I8(e,c.mode,m,null);return g0.return=c,g0}I7(c,e)}if(typeof e==="function")k7(c);return null}function a(c,e,m,zD){var iD=e!==null?e.key:null;if(typeof m==="string"&&m!==""||typeof m==="number"){if(iD!==null)return null;return z(c,e,""+m,zD)}if(typeof m==="object"&&m!==null){switch(m.$$typeof){case B0:if(m.key===iD)return R(c,e,m,zD);else return null;case j0:if(m.key===iD)return P(c,e,m,zD);else return null;case W0:{var{_payload:fD,_init:I0}=m;return a(c,e,I0(fD),zD)}}if(CD(m)||b2(m)){if(iD!==null)return null;return v(c,e,m,zD,null)}I7(c,m)}if(typeof m==="function")k7(c);return null}function _D(c,e,m,zD,iD){if(typeof zD==="string"&&zD!==""||typeof zD==="number"){var fD=c.get(m)||null;return z(e,fD,""+zD,iD)}if(typeof zD==="object"&&zD!==null){switch(zD.$$typeof){case B0:{var I0=c.get(zD.key===null?m:zD.key)||null;return R(e,I0,zD,iD)}case j0:{var U0=c.get(zD.key===null?m:zD.key)||null;return P(e,U0,zD,iD)}case W0:var{_payload:g0,_init:q0}=zD;return _D(c,e,m,q0(g0),iD)}if(CD(zD)||b2(zD)){var C2=c.get(m)||null;return v(e,C2,zD,iD,null)}I7(e,zD)}if(typeof zD==="function")k7(e);return null}function UD(c,e,m){{if(typeof c!=="object"||c===null)return e;switch(c.$$typeof){case B0:case j0:IX(c,m);var zD=c.key;if(typeof zD!=="string")break;if(e===null){e=new Set,e.add(zD);break}if(!e.has(zD)){e.add(zD);break}L("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 \u2014 the behavior is unsupported and "+"could change in a future version.",zD);break;case W0:var{_payload:iD,_init:fD}=c;UD(fD(iD),e,m);break}}return e}function GD(c,e,m,zD){{var iD=null;for(var fD=0;fD<m.length;fD++){var I0=m[fD];iD=UD(I0,iD,c)}}var U0=null,g0=null,q0=e,C2=0,D0=0,S2=null;for(;q0!==null&&D0<m.length;D0++){if(q0.index>D0)S2=q0,q0=null;else S2=q0.sibling;var I3=a(c,q0,m[D0],zD);if(I3===null){if(q0===null)q0=S2;break}if(D){if(q0&&I3.alternate===null)F(c,q0)}if(C2=Z(I3,C2,D0),g0===null)U0=I3;else g0.sibling=I3;g0=I3,q0=S2}if(D0===m.length){if(B(c,q0),L3()){var K3=D0;i8(c,K3)}return U0}if(q0===null){for(;D0<m.length;D0++){var DF=g(c,m[D0],zD);if(DF===null)continue;if(C2=Z(DF,C2,D0),g0===null)U0=DF;else g0.sibling=DF;g0=DF}if(L3()){var h3=D0;i8(c,h3)}return U0}var f3=O(c,q0);for(;D0<m.length;D0++){var k3=_D(f3,c,D0,m[D0],zD);if(k3!==null){if(D){if(k3.alternate!==null)f3.delete(k3.key===null?D0:k3.key)}if(C2=Z(k3,C2,D0),g0===null)U0=k3;else g0.sibling=k3;g0=k3}}if(D)f3.forEach(function(D_){return F(c,D_)});if(L3()){var X8=D0;i8(c,X8)}return U0}function xD(c,e,m,zD){var iD=b2(m);if(typeof iD!=="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"&&m[Symbol.toStringTag]==="Generator"){if(!c5)L("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.");c5=!0}if(m.entries===iD){if(!m5)L("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");m5=!0}var fD=iD.call(m);if(fD){var I0=null,U0=fD.next();for(;!U0.done;U0=fD.next()){var g0=U0.value;I0=UD(g0,I0,c)}}}var q0=iD.call(m);if(q0==null)throw Error("An iterable object provided no iterator.");var C2=null,D0=null,S2=e,I3=0,K3=0,DF=null,h3=q0.next();for(;S2!==null&&!h3.done;K3++,h3=q0.next()){if(S2.index>K3)DF=S2,S2=null;else DF=S2.sibling;var f3=a(c,S2,h3.value,zD);if(f3===null){if(S2===null)S2=DF;break}if(D){if(S2&&f3.alternate===null)F(c,S2)}if(I3=Z(f3,I3,K3),D0===null)C2=f3;else D0.sibling=f3;D0=f3,S2=DF}if(h3.done){if(B(c,S2),L3()){var k3=K3;i8(c,k3)}return C2}if(S2===null){for(;!h3.done;K3++,h3=q0.next()){var X8=g(c,h3.value,zD);if(X8===null)continue;if(I3=Z(X8,I3,K3),D0===null)C2=X8;else D0.sibling=X8;D0=X8}if(L3()){var D_=K3;i8(c,D_)}return C2}var N1=O(c,S2);for(;!h3.done;K3++,h3=q0.next()){var aF=_D(N1,c,K3,h3.value,zD);if(aF!==null){if(D){if(aF.alternate!==null)N1.delete(aF.key===null?K3:aF.key)}if(I3=Z(aF,I3,K3),D0===null)C2=aF;else D0.sibling=aF;D0=aF}}if(D)N1.forEach(function(qH){return F(c,qH)});if(L3()){var EH=K3;i8(c,EH)}return C2}function C0(c,e,m,zD){if(e!==null&&e.tag===RD){B(c,e.sibling);var iD=X(e,m);return iD.return=c,iD}B(c,e);var fD=pB(m,c.mode,zD);return fD.return=c,fD}function tD(c,e,m,zD){var iD=m.key,fD=e;while(fD!==null){if(fD.key===iD){var I0=m.type;if(I0===x0){if(fD.tag===jD){B(c,fD.sibling);var U0=X(fD,m.props.children);return U0.return=c,U0._debugSource=m._source,U0._debugOwner=m._owner,U0}}else if(fD.elementType===I0||fu(fD,m)||typeof I0==="object"&&I0!==null&&I0.$$typeof===W0&&kX(I0)===fD.type){B(c,fD.sibling);var g0=X(fD,m.props);return g0.ref=c_(c,fD,m),g0.return=c,g0._debugSource=m._source,g0._debugOwner=m._owner,g0}B(c,fD);break}else F(c,fD);fD=fD.sibling}if(m.type===x0){var q0=I8(m.props.children,c.mode,zD,m.key);return q0.return=c,q0}else{var C2=cB(m,c.mode,zD);return C2.ref=c_(c,e,m),C2.return=c,C2}}function p0(c,e,m,zD){var iD=m.key,fD=e;while(fD!==null){if(fD.key===iD)if(fD.tag===XD&&fD.stateNode.containerInfo===m.containerInfo&&fD.stateNode.implementation===m.implementation){B(c,fD.sibling);var I0=X(fD,m.children||[]);return I0.return=c,I0}else{B(c,fD);break}else F(c,fD);fD=fD.sibling}var U0=lB(m,c.mode,zD);return U0.return=c,U0}function T0(c,e,m,zD){var iD=typeof m==="object"&&m!==null&&m.type===x0&&m.key===null;if(iD)m=m.props.children;if(typeof m==="object"&&m!==null){switch(m.$$typeof){case B0:return $(tD(c,e,m,zD));case j0:return $(p0(c,e,m,zD));case W0:var{_payload:fD,_init:I0}=m;return T0(c,e,I0(fD),zD)}if(CD(m))return GD(c,e,m,zD);if(b2(m))return xD(c,e,m,zD);I7(c,m)}if(typeof m==="string"&&m!==""||typeof m==="number")return $(C0(c,e,""+m,zD));if(typeof m==="function")k7(c);return B(c,e)}return T0}var f6=vX(!0),TX=vX(!1);function oY(D,F){if(D!==null&&F.child!==D.child)throw Error("Resuming work not yet implemented.");if(F.child===null)return;var B=F.child,O=B6(B,B.pendingProps);F.child=O,O.return=F;while(B.sibling!==null)B=B.sibling,O=O.sibling=B6(B,B.pendingProps),O.return=F;O.sibling=null}function sY(D,F){var B=D.child;while(B!==null)DH(B,F),B=B.sibling}var v7=J8(null),p_;p_={};var T7=null,j6=null,i5=null,S7=!1;function b7(){T7=null,j6=null,i5=null,S7=!1}function SX(){S7=!0}function bX(){S7=!1}function VX(D,F,B){if(z6){u3(v7,F._currentValue,D),F._currentValue=B;{if(F._currentRenderer!==void 0&&F._currentRenderer!==null&&F._currentRenderer!==p_)L("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");F._currentRenderer=p_}}else{u3(v7,F._currentValue2,D),F._currentValue2=B;{if(F._currentRenderer2!==void 0&&F._currentRenderer2!==null&&F._currentRenderer2!==p_)L("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");F._currentRenderer2=p_}}}function n5(D,F){var B=v7.current;if(q3(v7,F),z6)D._currentValue=B;else D._currentValue2=B}function a5(D,F,B){var O=D;while(O!==null){var X=O.alternate;if(!v6(O.childLanes,F)){if(O.childLanes=J0(O.childLanes,F),X!==null)X.childLanes=J0(X.childLanes,F)}else if(X!==null&&!v6(X.childLanes,F))X.childLanes=J0(X.childLanes,F);if(O===B)break;O=O.return}if(O!==B)L("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 tY(D,F,B){eY(D,F,B)}function eY(D,F,B){var O=D.child;if(O!==null)O.return=D;while(O!==null){var X=void 0,Z=O.dependencies;if(Z!==null){X=O.child;var $=Z.firstContext;while($!==null){if($.context===F){if(O.tag===FD){var z=k_(B),R=C8(u2,z);R.tag=h7;var P=O.updateQueue;if(P===null);else{var v=P.shared,g=v.pending;if(g===null)R.next=R;else R.next=g.next,g.next=R;v.pending=R}}O.lanes=J0(O.lanes,B);var a=O.alternate;if(a!==null)a.lanes=J0(a.lanes,B);a5(O.return,B,D),Z.lanes=J0(Z.lanes,B);break}$=$.next}}else if(O.tag===oD)X=O.type===D.type?null:O.child;else if(O.tag===yD){var _D=O.return;if(_D===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");_D.lanes=J0(_D.lanes,B);var UD=_D.alternate;if(UD!==null)UD.lanes=J0(UD.lanes,B);a5(_D,B,D),X=O.sibling}else X=O.child;if(X!==null)X.return=O;else{X=O;while(X!==null){if(X===D){X=null;break}var GD=X.sibling;if(GD!==null){GD.return=X.return,X=GD;break}X=X.return}}O=X}}function y6(D,F){T7=D,j6=null,i5=null;var B=D.dependencies;if(B!==null){var O=B.firstContext;if(O!==null){if(o3(B.lanes,F))O1();B.firstContext=null}}}function j2(D){if(S7)L("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 F=z6?D._currentValue:D._currentValue2;if(i5===D);else{var B={context:D,memoizedValue:F,next:null};if(j6===null){if(T7===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().");j6=B,T7.dependencies={lanes:uD,firstContext:B}}else j6=j6.next=B}return F}var o8=null;function r5(D){if(o8===null)o8=[D];else o8.push(D)}function DK(){if(o8!==null){for(var D=0;D<o8.length;D++){var F=o8[D],B=F.interleaved;if(B!==null){F.interleaved=null;var O=B.next,X=F.pending;if(X!==null){var Z=X.next;X.next=O,B.next=Z}F.pending=B}}o8=null}}function hX(D,F,B,O){var X=F.interleaved;if(X===null)B.next=B,r5(F);else B.next=X.next,X.next=B;return F.interleaved=B,V7(D,O)}function FK(D,F,B,O){var X=F.interleaved;if(X===null)B.next=B,r5(F);else B.next=X.next,X.next=B;F.interleaved=B}function _K(D,F,B,O){var X=F.interleaved;if(X===null)B.next=B,r5(F);else B.next=X.next,X.next=B;return F.interleaved=B,V7(D,O)}function S3(D,F){return V7(D,F)}var CK=V7;function V7(D,F){D.lanes=J0(D.lanes,F);var B=D.alternate;if(B!==null)B.lanes=J0(B.lanes,F);if(B===null&&(D.flags&(S0|k2))!==SD)Su(D);var O=D,X=D.return;while(X!==null){if(X.childLanes=J0(X.childLanes,F),B=X.alternate,B!==null)B.childLanes=J0(B.childLanes,F);else if((X.flags&(S0|k2))!==SD)Su(D);O=X,X=X.return}if(O.tag===BD){var Z=O.stateNode;return Z}else return null}var fX=0,jX=1,h7=2,o5=3,f7=!1,s5,j7;s5=!1,j7=null;function t5(D){var F={baseState:D.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:uD},effects:null};D.updateQueue=F}function yX(D,F){var B=F.updateQueue,O=D.updateQueue;if(B===O){var X={baseState:O.baseState,firstBaseUpdate:O.firstBaseUpdate,lastBaseUpdate:O.lastBaseUpdate,shared:O.shared,effects:O.effects};F.updateQueue=X}}function C8(D,F){var B={eventTime:D,lane:F,tag:fX,payload:null,callback:null,next:null};return B}function z8(D,F,B){var O=D.updateQueue;if(O===null)return null;var X=O.shared;if(j7===X&&!s5)L("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."),s5=!0;if(QR()){var Z=X.pending;if(Z===null)F.next=F;else F.next=Z.next,Z.next=F;return X.pending=F,CK(D,B)}else return _K(D,X,F,B)}function y7(D,F,B){var O=F.updateQueue;if(O===null)return;var X=O.shared;if(aG(B)){var Z=X.lanes;Z=oG(Z,D.pendingLanes);var $=J0(Z,B);X.lanes=$,I5(D,$)}}function e5(D,F){var{updateQueue:B,alternate:O}=D;if(O!==null){var X=O.updateQueue;if(B===X){var Z=null,$=null,z=B.firstBaseUpdate;if(z!==null){var R=z;do{var P={eventTime:R.eventTime,lane:R.lane,tag:R.tag,payload:R.payload,callback:R.callback,next:null};if($===null)Z=$=P;else $.next=P,$=P;R=R.next}while(R!==null);if($===null)Z=$=F;else $.next=F,$=F}else Z=$=F;B={baseState:X.baseState,firstBaseUpdate:Z,lastBaseUpdate:$,shared:X.shared,effects:X.effects},D.updateQueue=B;return}}var v=B.lastBaseUpdate;if(v===null)B.firstBaseUpdate=F;else v.next=F;B.lastBaseUpdate=F}function BK(D,F,B,O,X,Z){switch(B.tag){case jX:{var $=B.payload;if(typeof $==="function"){SX();var z=$.call(Z,O,X);{if(D.mode&T2){_3(!0);try{$.call(Z,O,X)}finally{_3(!1)}}bX()}return z}return $}case o5:D.flags=D.flags&~I|K0;case fX:{var R=B.payload,P;if(typeof R==="function"){SX(),P=R.call(Z,O,X);{if(D.mode&T2){_3(!0);try{R.call(Z,O,X)}finally{_3(!1)}}bX()}}else P=R;if(P===null||P===void 0)return O;return H({},O,P)}case h7:return f7=!0,O}return O}function g7(D,F,B,O){var X=D.updateQueue;f7=!1,j7=X.shared;var{firstBaseUpdate:Z,lastBaseUpdate:$}=X,z=X.shared.pending;if(z!==null){X.shared.pending=null;var R=z,P=R.next;if(R.next=null,$===null)Z=P;else $.next=P;$=R;var v=D.alternate;if(v!==null){var g=v.updateQueue,a=g.lastBaseUpdate;if(a!==$){if(a===null)g.firstBaseUpdate=P;else a.next=P;g.lastBaseUpdate=R}}}if(Z!==null){var _D=X.baseState,UD=uD,GD=null,xD=null,C0=null,tD=Z;do{var{lane:p0,eventTime:T0}=tD;if(!v6(O,p0)){var c={eventTime:T0,lane:p0,tag:tD.tag,payload:tD.payload,callback:tD.callback,next:null};if(C0===null)xD=C0=c,GD=_D;else C0=C0.next=c;UD=J0(UD,p0)}else{if(C0!==null){var e={eventTime:T0,lane:e2,tag:tD.tag,payload:tD.payload,callback:tD.callback,next:null};C0=C0.next=e}_D=BK(D,X,tD,_D,F,B);var m=tD.callback;if(m!==null&&tD.lane!==e2){D.flags|=G3;var zD=X.effects;if(zD===null)X.effects=[tD];else zD.push(tD)}}if(tD=tD.next,tD===null)if(z=X.shared.pending,z===null)break;else{var iD=z,fD=iD.next;iD.next=null,tD=fD,X.lastBaseUpdate=iD,X.shared.pending=null}}while(!0);if(C0===null)GD=_D;X.baseState=GD,X.firstBaseUpdate=xD,X.lastBaseUpdate=C0;var I0=X.shared.interleaved;if(I0!==null){var U0=I0;do UD=J0(UD,U0.lane),U0=U0.next;while(U0!==I0)}else if(Z===null)X.shared.lanes=uD;z1(UD),D.lanes=UD,D.memoizedState=_D}j7=null}function OK(D,F){if(typeof D!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+D));D.call(F)}function gX(){f7=!1}function x7(){return f7}function xX(D,F,B){var O=F.effects;if(F.effects=null,O!==null)for(var X=0;X<O.length;X++){var Z=O[X],$=Z.callback;if($!==null)Z.callback=null,OK($,B)}}var l_={},R8=J8(l_),d_=J8(l_),m7=J8(l_);function c7(D){if(D===l_)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return D}function DC(){var D=c7(m7.current);return D}function FC(D,F){u3(m7,F,D),u3(d_,D,D),u3(R8,l_,D);var B=z0(F);q3(R8,D),u3(R8,B,D)}function g6(D){q3(R8,D),q3(d_,D),q3(m7,D)}function i_(){var D=c7(R8.current);return D}function mX(D){var F=c7(m7.current),B=c7(R8.current),O=M0(B,D.type,F);if(B===O)return;u3(d_,D,D),u3(R8,O,D)}function _C(D){if(d_.current!==D)return;q3(R8,D),q3(d_,D)}var GK=0,cX=1,pX=1,n_=2,zF=J8(GK);function CC(D,F){return(D&F)!==0}function x6(D){return D&cX}function BC(D,F){return D&cX|F}function XK(D,F){return D|F}function H8(D,F){u3(zF,F,D)}function m6(D){q3(zF,D)}function UK(D,F){var B=D.memoizedState;if(B!==null){if(B.dehydrated!==null)return!0;return!1}var O=D.memoizedProps;return!0}function p7(D){var F=D;while(F!==null){if(F.tag===ED){var B=F.memoizedState;if(B!==null){var O=B.dehydrated;if(O===null||U2(O)||J2(O))return F}}else if(F.tag===MD&&F.memoizedProps.revealOrder!==void 0){var X=(F.flags&K0)!==SD;if(X)return F}else if(F.child!==null){F.child.return=F,F=F.child;continue}if(F===D)return null;while(F.sibling===null){if(F.return===null||F.return===D)return null;F=F.return}F.sibling.return=F.return,F=F.sibling}return null}var c3=0,p2=1,yF=2,l2=4,Q3=8,OC=[];function GC(){for(var D=0;D<OC.length;D++){var F=OC[D];if(z6)F._workInProgressVersionPrimary=null;else F._workInProgressVersionSecondary=null}OC.length=0}function uK(D,F){var B=F._getVersion,O=B(F._source);if(D.mutableSourceEagerHydrationData==null)D.mutableSourceEagerHydrationData=[F,O];else D.mutableSourceEagerHydrationData.push(F,O)}var{ReactCurrentDispatcher:VD,ReactCurrentBatchConfig:a_}=G,XC,c6;XC=new Set;var s8=uD,a0=null,d2=null,i2=null,l7=!1,r_=!1,o_=0,ZK=0,AK=25,DD=null,XF=null,N8=-1,UC=!1;function c0(){{var D=DD;if(XF===null)XF=[D];else XF.push(D)}}function qD(){{var D=DD;if(XF!==null){if(N8++,XF[N8]!==D)LK(D)}}}function p6(D){if(D!==void 0&&D!==null&&!CD(D))L("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",DD,typeof D)}function LK(D){{var F=hD(a0);if(!XC.has(F)){if(XC.add(F),XF!==null){var B="",O=30;for(var X=0;X<=N8;X++){var Z=XF[X],$=X===N8?D:Z,z=X+1+". "+Z;while(z.length<O)z+=" ";z+=$+`
|
|
71
|
+
`,B+=z}L(`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
|
|
72
|
+
|
|
73
|
+
Previous render Next render
|
|
74
|
+
------------------------------------------------------
|
|
75
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
76
|
+
`,F,B)}}}}function P3(){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:
|
|
77
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
78
|
+
2. You might be breaking the Rules of Hooks
|
|
79
|
+
3. You might have more than one copy of React in the same app
|
|
80
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function uC(D,F){if(UC)return!1;if(F===null)return L("%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.",DD),!1;if(D.length!==F.length)L(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
81
|
+
|
|
82
|
+
Previous: %s
|
|
83
|
+
Incoming: %s`,DD,"["+F.join(", ")+"]","["+D.join(", ")+"]");for(var B=0;B<F.length&&B<D.length;B++){if(s3(D[B],F[B]))continue;return!1}return!0}function l6(D,F,B,O,X,Z){if(s8=Z,a0=F,XF=D!==null?D._debugHookTypes:null,N8=-1,UC=D!==null&&D.type!==F.type,F.memoizedState=null,F.updateQueue=null,F.lanes=uD,D!==null&&D.memoizedState!==null)VD.current=AU;else if(XF!==null)VD.current=ZU;else VD.current=uU;var $=B(O,X);if(r_){var z=0;do{if(r_=!1,o_=0,z>=AK)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");z+=1,UC=!1,d2=null,i2=null,F.updateQueue=null,N8=-1,VD.current=LU,$=B(O,X)}while(r_)}VD.current=O4,F._debugHookTypes=XF;var R=d2!==null&&d2.next!==null;if(s8=uD,a0=null,d2=null,i2=null,DD=null,XF=null,N8=-1,D!==null&&(D.flags&v2)!==(F.flags&v2)&&(D.mode&h0)!==F0)L("Internal React error: Expected static flag was missing. Please notify the React team.");if(l7=!1,R)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return $}function d6(){var D=o_!==0;return o_=0,D}function lX(D,F,B){if(F.updateQueue=D.updateQueue,(F.mode&SF)!==F0)F.flags&=~(L0|G0|f2|aD);else F.flags&=~(f2|aD);D.lanes=z7(D.lanes,B)}function dX(){if(VD.current=O4,l7){var D=a0.memoizedState;while(D!==null){var F=D.queue;if(F!==null)F.pending=null;D=D.next}l7=!1}s8=uD,a0=null,d2=null,i2=null,XF=null,N8=-1,DD=null,BU=!1,r_=!1,o_=0}function gF(){var D={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(i2===null)a0.memoizedState=i2=D;else i2=i2.next=D;return i2}function UF(){var D;if(d2===null){var F=a0.alternate;if(F!==null)D=F.memoizedState;else D=null}else D=d2.next;var B;if(i2===null)B=a0.memoizedState;else B=i2.next;if(B!==null)i2=B,B=i2.next,d2=D;else{if(D===null)throw Error("Rendered more hooks than during the previous render.");d2=D;var O={memoizedState:d2.memoizedState,baseState:d2.baseState,baseQueue:d2.baseQueue,queue:d2.queue,next:null};if(i2===null)a0.memoizedState=i2=O;else i2=i2.next=O}return i2}function iX(){return{lastEffect:null,stores:null}}function ZC(D,F){return typeof F==="function"?F(D):F}function AC(D,F,B){var O=gF(),X;if(B!==void 0)X=B(F);else X=F;O.memoizedState=O.baseState=X;var Z={pending:null,interleaved:null,lanes:uD,dispatch:null,lastRenderedReducer:D,lastRenderedState:X};O.queue=Z;var $=Z.dispatch=WK.bind(null,a0,Z);return[O.memoizedState,$]}function LC(D,F,B){var O=UF(),X=O.queue;if(X===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");X.lastRenderedReducer=D;var Z=d2,$=Z.baseQueue,z=X.pending;if(z!==null){if($!==null){var R=$.next,P=z.next;$.next=P,z.next=R}if(Z.baseQueue!==$)L("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");Z.baseQueue=$=z,X.pending=null}if($!==null){var v=$.next,g=Z.baseState,a=null,_D=null,UD=null,GD=v;do{var xD=GD.lane;if(!v6(s8,xD)){var C0={lane:xD,action:GD.action,hasEagerState:GD.hasEagerState,eagerState:GD.eagerState,next:null};if(UD===null)_D=UD=C0,a=g;else UD=UD.next=C0;a0.lanes=J0(a0.lanes,xD),z1(xD)}else{if(UD!==null){var tD={lane:e2,action:GD.action,hasEagerState:GD.hasEagerState,eagerState:GD.eagerState,next:null};UD=UD.next=tD}if(GD.hasEagerState)g=GD.eagerState;else{var p0=GD.action;g=D(g,p0)}}GD=GD.next}while(GD!==null&&GD!==v);if(UD===null)a=g;else UD.next=_D;if(!s3(g,O.memoizedState))O1();O.memoizedState=g,O.baseState=a,O.baseQueue=UD,X.lastRenderedState=g}var T0=X.interleaved;if(T0!==null){var c=T0;do{var e=c.lane;a0.lanes=J0(a0.lanes,e),z1(e),c=c.next}while(c!==T0)}else if($===null)X.lanes=uD;var m=X.dispatch;return[O.memoizedState,m]}function QC(D,F,B){var O=UF(),X=O.queue;if(X===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");X.lastRenderedReducer=D;var{dispatch:Z,pending:$}=X,z=O.memoizedState;if($!==null){X.pending=null;var R=$.next,P=R;do{var v=P.action;z=D(z,v),P=P.next}while(P!==R);if(!s3(z,O.memoizedState))O1();if(O.memoizedState=z,O.baseQueue===null)O.baseState=z;X.lastRenderedState=z}return[z,Z]}function $C(D,F,B){return}function d7(D,F,B){return}function WC(D,F,B){var O=a0,X=gF(),Z,$=L3();if($){if(B===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(Z=B(),!c6){if(Z!==B())L("The result of getServerSnapshot should be cached to avoid an infinite loop"),c6=!0}}else{if(Z=F(),!c6){var z=F();if(!s3(Z,z))L("The result of getSnapshot should be cached to avoid an infinite loop"),c6=!0}var R=V4();if(R===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!K7(R,s8))nX(O,F,Z)}X.memoizedState=Z;var P={value:Z,getSnapshot:F};return X.queue=P,o7(rX.bind(null,O,P,D),[D]),O.flags|=f2,s_(p2|Q3,aX.bind(null,O,P,Z,F),void 0,null),Z}function i7(D,F,B){var O=a0,X=UF(),Z=F();if(!c6){var $=F();if(!s3(Z,$))L("The result of getSnapshot should be cached to avoid an infinite loop"),c6=!0}var z=X.memoizedState,R=!s3(z,Z);if(R)X.memoizedState=Z,O1();var P=X.queue;if(e_(rX.bind(null,O,P,D),[D]),P.getSnapshot!==F||R||i2!==null&&i2.memoizedState.tag&p2){O.flags|=f2,s_(p2|Q3,aX.bind(null,O,P,Z,F),void 0,null);var v=V4();if(v===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!K7(v,s8))nX(O,F,Z)}return Z}function nX(D,F,B){D.flags|=i3;var O={getSnapshot:F,value:B},X=a0.updateQueue;if(X===null)X=iX(),a0.updateQueue=X,X.stores=[O];else{var Z=X.stores;if(Z===null)X.stores=[O];else Z.push(O)}}function aX(D,F,B,O){if(F.value=B,F.getSnapshot=O,oX(F))sX(D)}function rX(D,F,B){var O=function(){if(oX(F))sX(D)};return B(O)}function oX(D){var{getSnapshot:F,value:B}=D;try{var O=F();return!s3(B,O)}catch(X){return!0}}function sX(D){var F=S3(D,X0);if(F!==null)g2(F,D,X0,u2)}function n7(D){var F=gF();if(typeof D==="function")D=D();F.memoizedState=F.baseState=D;var B={pending:null,interleaved:null,lanes:uD,dispatch:null,lastRenderedReducer:ZC,lastRenderedState:D};F.queue=B;var O=B.dispatch=JK.bind(null,a0,B);return[F.memoizedState,O]}function JC(D){return LC(ZC)}function YC(D){return QC(ZC)}function s_(D,F,B,O){var X={tag:D,create:F,destroy:B,deps:O,next:null},Z=a0.updateQueue;if(Z===null)Z=iX(),a0.updateQueue=Z,Z.lastEffect=X.next=X;else{var $=Z.lastEffect;if($===null)Z.lastEffect=X.next=X;else{var z=$.next;$.next=X,X.next=z,Z.lastEffect=X}}return X}function KC(D){var F=gF();{var B={current:D};return F.memoizedState=B,B}}function a7(D){var F=UF();return F.memoizedState}function t_(D,F,B,O){var X=gF(),Z=O===void 0?null:O;a0.flags|=D,X.memoizedState=s_(p2|F,B,void 0,Z)}function r7(D,F,B,O){var X=UF(),Z=O===void 0?null:O,$=void 0;if(d2!==null){var z=d2.memoizedState;if($=z.destroy,Z!==null){var R=z.deps;if(uC(Z,R)){X.memoizedState=s_(F,B,$,Z);return}}}a0.flags|=D,X.memoizedState=s_(p2|F,B,$,Z)}function o7(D,F){if((a0.mode&SF)!==F0)return t_(L0|f2|P0,Q3,D,F);else return t_(f2|P0,Q3,D,F)}function e_(D,F){return r7(f2,Q3,D,F)}function zC(D,F){return t_(aD,yF,D,F)}function s7(D,F){return r7(aD,yF,D,F)}function RC(D,F){var B=aD;if(B|=rD,(a0.mode&SF)!==F0)B|=G0;return t_(B,l2,D,F)}function t7(D,F){return r7(aD,l2,D,F)}function tX(D,F){if(typeof F==="function"){var B=F,O=D();return B(O),function(){B(null)}}else if(F!==null&&F!==void 0){var X=F;if(!X.hasOwnProperty("current"))L("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(X).join(", ")+"}");var Z=D();return X.current=Z,function(){X.current=null}}}function HC(D,F,B){if(typeof F!=="function")L("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",F!==null?typeof F:"null");var O=B!==null&&B!==void 0?B.concat([D]):null,X=aD;if(X|=rD,(a0.mode&SF)!==F0)X|=G0;return t_(X,l2,tX.bind(null,F,D),O)}function e7(D,F,B){if(typeof F!=="function")L("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",F!==null?typeof F:"null");var O=B!==null&&B!==void 0?B.concat([D]):null;return r7(aD,l2,tX.bind(null,F,D),O)}function D4(D,F){}var F4=D4;function NC(D,F){var B=gF(),O=F===void 0?null:F;return B.memoizedState=[D,O],D}function _4(D,F){var B=UF(),O=F===void 0?null:F,X=B.memoizedState;if(X!==null){if(O!==null){var Z=X[1];if(uC(O,Z))return X[0]}}return B.memoizedState=[D,O],D}function MC(D,F){var B=gF(),O=F===void 0?null:F,X=D();return B.memoizedState=[X,O],X}function C4(D,F){var B=UF(),O=F===void 0?null:F,X=B.memoizedState;if(X!==null){if(O!==null){var Z=X[1];if(uC(O,Z))return X[0]}}var $=D();return B.memoizedState=[$,O],$}function EC(D){var F=gF();return F.memoizedState=D,D}function eX(D){var F=UF(),B=d2,O=B.memoizedState;return FU(F,O,D)}function DU(D){var F=UF();if(d2===null)return F.memoizedState=D,D;else{var B=d2.memoizedState;return FU(F,B,D)}}function FU(D,F,B){var O=!jJ(s8);if(O){if(!s3(B,F)){var X=rG();a0.lanes=J0(a0.lanes,X),z1(X),D.baseState=!0}return F}else{if(D.baseState)D.baseState=!1,O1();return D.memoizedState=B,B}}function QK(D,F,B){var O=WF();D3(iJ(O,T_)),D(!0);var X=a_.transition;a_.transition={};var Z=a_.transition;a_.transition._updatedFibers=new Set;try{D(!1),F()}finally{if(D3(O),a_.transition=X,X===null&&Z._updatedFibers){var $=Z._updatedFibers.size;if($>10)J("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.");Z._updatedFibers.clear()}}}function qC(){var D=n7(!1),F=D[0],B=D[1],O=QK.bind(null,B),X=gF();return X.memoizedState=O,[F,O]}function _U(){var D=JC(),F=D[0],B=UF(),O=B.memoizedState;return[F,O]}function CU(){var D=YC(),F=D[0],B=UF(),O=B.memoizedState;return[F,O]}var BU=!1;function $K(){return BU}function PC(){var D=gF(),F=V4(),B=F.identifierPrefix,O;if(L3()){var X=PY();O=":"+B+"R"+X;var Z=o_++;if(Z>0)O+="H"+Z.toString(32);O+=":"}else{var $=ZK++;O=":"+B+"r"+$.toString(32)+":"}return D.memoizedState=O,O}function B4(){var D=UF(),F=D.memoizedState;return F}function WK(D,F,B){if(typeof arguments[3]==="function")L("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 O=P8(D),X={lane:O,action:B,hasEagerState:!1,eagerState:null,next:null};if(OU(D))GU(F,X);else{var Z=hX(D,F,X,O);if(Z!==null){var $=w3();g2(Z,D,O,$),XU(Z,F,O)}}UU(D,O)}function JK(D,F,B){if(typeof arguments[3]==="function")L("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 O=P8(D),X={lane:O,action:B,hasEagerState:!1,eagerState:null,next:null};if(OU(D))GU(F,X);else{var Z=D.alternate;if(D.lanes===uD&&(Z===null||Z.lanes===uD)){var $=F.lastRenderedReducer;if($!==null){var z;z=VD.current,VD.current=RF;try{var R=F.lastRenderedState,P=$(R,B);if(X.hasEagerState=!0,X.eagerState=P,s3(P,R)){FK(D,F,X,O);return}}catch(a){}finally{VD.current=z}}}var v=hX(D,F,X,O);if(v!==null){var g=w3();g2(v,D,O,g),XU(v,F,O)}}UU(D,O)}function OU(D){var F=D.alternate;return D===a0||F!==null&&F===a0}function GU(D,F){r_=l7=!0;var B=D.pending;if(B===null)F.next=F;else F.next=B.next,B.next=F;D.pending=F}function XU(D,F,B){if(aG(B)){var O=F.lanes;O=oG(O,D.pendingLanes);var X=J0(O,B);F.lanes=X,I5(D,X)}}function UU(D,F,B){v5(D,F)}var O4={readContext:j2,useCallback:P3,useContext:P3,useEffect:P3,useImperativeHandle:P3,useInsertionEffect:P3,useLayoutEffect:P3,useMemo:P3,useReducer:P3,useRef:P3,useState:P3,useDebugValue:P3,useDeferredValue:P3,useTransition:P3,useMutableSource:P3,useSyncExternalStore:P3,useId:P3,unstable_isNewReconciler:E},uU=null,ZU=null,AU=null,LU=null,xF=null,RF=null,G4=null;{var wC=function(){L("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().")},Z0=function(){L("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")};uU={readContext:function(D){return j2(D)},useCallback:function(D,F){return DD="useCallback",c0(),p6(F),NC(D,F)},useContext:function(D){return DD="useContext",c0(),j2(D)},useEffect:function(D,F){return DD="useEffect",c0(),p6(F),o7(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",c0(),p6(B),HC(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",c0(),p6(F),zC(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",c0(),p6(F),RC(D,F)},useMemo:function(D,F){DD="useMemo",c0(),p6(F);var B=VD.current;VD.current=xF;try{return MC(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",c0();var O=VD.current;VD.current=xF;try{return AC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",c0(),KC(D)},useState:function(D){DD="useState",c0();var F=VD.current;VD.current=xF;try{return n7(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",c0(),D4()},useDeferredValue:function(D){return DD="useDeferredValue",c0(),EC(D)},useTransition:function(){return DD="useTransition",c0(),qC()},useMutableSource:function(D,F,B){return DD="useMutableSource",c0(),$C()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",c0(),WC(D,F,B)},useId:function(){return DD="useId",c0(),PC()},unstable_isNewReconciler:E},ZU={readContext:function(D){return j2(D)},useCallback:function(D,F){return DD="useCallback",qD(),NC(D,F)},useContext:function(D){return DD="useContext",qD(),j2(D)},useEffect:function(D,F){return DD="useEffect",qD(),o7(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",qD(),HC(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",qD(),zC(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",qD(),RC(D,F)},useMemo:function(D,F){DD="useMemo",qD();var B=VD.current;VD.current=xF;try{return MC(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",qD();var O=VD.current;VD.current=xF;try{return AC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",qD(),KC(D)},useState:function(D){DD="useState",qD();var F=VD.current;VD.current=xF;try{return n7(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",qD(),D4()},useDeferredValue:function(D){return DD="useDeferredValue",qD(),EC(D)},useTransition:function(){return DD="useTransition",qD(),qC()},useMutableSource:function(D,F,B){return DD="useMutableSource",qD(),$C()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",qD(),WC(D,F,B)},useId:function(){return DD="useId",qD(),PC()},unstable_isNewReconciler:E},AU={readContext:function(D){return j2(D)},useCallback:function(D,F){return DD="useCallback",qD(),_4(D,F)},useContext:function(D){return DD="useContext",qD(),j2(D)},useEffect:function(D,F){return DD="useEffect",qD(),e_(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",qD(),e7(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",qD(),s7(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",qD(),t7(D,F)},useMemo:function(D,F){DD="useMemo",qD();var B=VD.current;VD.current=RF;try{return C4(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",qD();var O=VD.current;VD.current=RF;try{return LC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",qD(),a7()},useState:function(D){DD="useState",qD();var F=VD.current;VD.current=RF;try{return JC(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",qD(),F4()},useDeferredValue:function(D){return DD="useDeferredValue",qD(),eX(D)},useTransition:function(){return DD="useTransition",qD(),_U()},useMutableSource:function(D,F,B){return DD="useMutableSource",qD(),d7()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",qD(),i7(D,F)},useId:function(){return DD="useId",qD(),B4()},unstable_isNewReconciler:E},LU={readContext:function(D){return j2(D)},useCallback:function(D,F){return DD="useCallback",qD(),_4(D,F)},useContext:function(D){return DD="useContext",qD(),j2(D)},useEffect:function(D,F){return DD="useEffect",qD(),e_(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",qD(),e7(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",qD(),s7(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",qD(),t7(D,F)},useMemo:function(D,F){DD="useMemo",qD();var B=VD.current;VD.current=G4;try{return C4(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",qD();var O=VD.current;VD.current=G4;try{return QC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",qD(),a7()},useState:function(D){DD="useState",qD();var F=VD.current;VD.current=G4;try{return YC(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",qD(),F4()},useDeferredValue:function(D){return DD="useDeferredValue",qD(),DU(D)},useTransition:function(){return DD="useTransition",qD(),CU()},useMutableSource:function(D,F,B){return DD="useMutableSource",qD(),d7()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",qD(),i7(D,F)},useId:function(){return DD="useId",qD(),B4()},unstable_isNewReconciler:E},xF={readContext:function(D){return wC(),j2(D)},useCallback:function(D,F){return DD="useCallback",Z0(),c0(),NC(D,F)},useContext:function(D){return DD="useContext",Z0(),c0(),j2(D)},useEffect:function(D,F){return DD="useEffect",Z0(),c0(),o7(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",Z0(),c0(),HC(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",Z0(),c0(),zC(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",Z0(),c0(),RC(D,F)},useMemo:function(D,F){DD="useMemo",Z0(),c0();var B=VD.current;VD.current=xF;try{return MC(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",Z0(),c0();var O=VD.current;VD.current=xF;try{return AC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",Z0(),c0(),KC(D)},useState:function(D){DD="useState",Z0(),c0();var F=VD.current;VD.current=xF;try{return n7(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",Z0(),c0(),D4()},useDeferredValue:function(D){return DD="useDeferredValue",Z0(),c0(),EC(D)},useTransition:function(){return DD="useTransition",Z0(),c0(),qC()},useMutableSource:function(D,F,B){return DD="useMutableSource",Z0(),c0(),$C()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",Z0(),c0(),WC(D,F,B)},useId:function(){return DD="useId",Z0(),c0(),PC()},unstable_isNewReconciler:E},RF={readContext:function(D){return wC(),j2(D)},useCallback:function(D,F){return DD="useCallback",Z0(),qD(),_4(D,F)},useContext:function(D){return DD="useContext",Z0(),qD(),j2(D)},useEffect:function(D,F){return DD="useEffect",Z0(),qD(),e_(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",Z0(),qD(),e7(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",Z0(),qD(),s7(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",Z0(),qD(),t7(D,F)},useMemo:function(D,F){DD="useMemo",Z0(),qD();var B=VD.current;VD.current=RF;try{return C4(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",Z0(),qD();var O=VD.current;VD.current=RF;try{return LC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",Z0(),qD(),a7()},useState:function(D){DD="useState",Z0(),qD();var F=VD.current;VD.current=RF;try{return JC(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",Z0(),qD(),F4()},useDeferredValue:function(D){return DD="useDeferredValue",Z0(),qD(),eX(D)},useTransition:function(){return DD="useTransition",Z0(),qD(),_U()},useMutableSource:function(D,F,B){return DD="useMutableSource",Z0(),qD(),d7()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",Z0(),qD(),i7(D,F)},useId:function(){return DD="useId",Z0(),qD(),B4()},unstable_isNewReconciler:E},G4={readContext:function(D){return wC(),j2(D)},useCallback:function(D,F){return DD="useCallback",Z0(),qD(),_4(D,F)},useContext:function(D){return DD="useContext",Z0(),qD(),j2(D)},useEffect:function(D,F){return DD="useEffect",Z0(),qD(),e_(D,F)},useImperativeHandle:function(D,F,B){return DD="useImperativeHandle",Z0(),qD(),e7(D,F,B)},useInsertionEffect:function(D,F){return DD="useInsertionEffect",Z0(),qD(),s7(D,F)},useLayoutEffect:function(D,F){return DD="useLayoutEffect",Z0(),qD(),t7(D,F)},useMemo:function(D,F){DD="useMemo",Z0(),qD();var B=VD.current;VD.current=RF;try{return C4(D,F)}finally{VD.current=B}},useReducer:function(D,F,B){DD="useReducer",Z0(),qD();var O=VD.current;VD.current=RF;try{return QC(D,F,B)}finally{VD.current=O}},useRef:function(D){return DD="useRef",Z0(),qD(),a7()},useState:function(D){DD="useState",Z0(),qD();var F=VD.current;VD.current=RF;try{return YC(D)}finally{VD.current=F}},useDebugValue:function(D,F){return DD="useDebugValue",Z0(),qD(),F4()},useDeferredValue:function(D){return DD="useDeferredValue",Z0(),qD(),DU(D)},useTransition:function(){return DD="useTransition",Z0(),qD(),CU()},useMutableSource:function(D,F,B){return DD="useMutableSource",Z0(),qD(),d7()},useSyncExternalStore:function(D,F,B){return DD="useSyncExternalStore",Z0(),qD(),i7(D,F)},useId:function(){return DD="useId",Z0(),qD(),B4()},unstable_isNewReconciler:E}}var M8=K2.unstable_now,QU=0,X4=-1,D1=-1,U4=-1,IC=!1,u4=!1;function $U(){return IC}function YK(){u4=!0}function KK(){IC=!1,u4=!1}function zK(){IC=u4,u4=!1}function WU(){return QU}function JU(){QU=M8()}function kC(D){if(D1=M8(),D.actualStartTime<0)D.actualStartTime=M8()}function YU(D){D1=-1}function Z4(D,F){if(D1>=0){var B=M8()-D1;if(D.actualDuration+=B,F)D.selfBaseDuration=B;D1=-1}}function mF(D){if(X4>=0){var F=M8()-X4;X4=-1;var B=D.return;while(B!==null){switch(B.tag){case BD:var O=B.stateNode;O.effectDuration+=F;return;case ID:var X=B.stateNode;X.effectDuration+=F;return}B=B.return}}}function vC(D){if(U4>=0){var F=M8()-U4;U4=-1;var B=D.return;while(B!==null){switch(B.tag){case BD:var O=B.stateNode;if(O!==null)O.passiveEffectDuration+=F;return;case ID:var X=B.stateNode;if(X!==null)X.passiveEffectDuration+=F;return}B=B.return}}}function cF(){X4=M8()}function TC(){U4=M8()}function SC(D){var F=D.child;while(F)D.actualDuration+=F.actualDuration,F=F.sibling}function HF(D,F){if(D&&D.defaultProps){var B=H({},F),O=D.defaultProps;for(var X in O)if(B[X]===void 0)B[X]=O[X];return B}return F}var bC={},VC,hC,fC,jC,yC,KU,A4,gC,xC,mC,F1;{VC=new Set,hC=new Set,fC=new Set,jC=new Set,gC=new Set,yC=new Set,xC=new Set,mC=new Set,F1=new Set;var zU=new Set;A4=function(D,F){if(D===null||typeof D==="function")return;var B=F+"_"+D;if(!zU.has(B))zU.add(B),L("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",F,D)},KU=function(D,F){if(F===void 0){var B=YD(D)||"Component";if(!yC.has(B))yC.add(B),L("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",B)}},Object.defineProperty(bC,"_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(bC)}function cC(D,F,B,O){var X=D.memoizedState,Z=B(O,X);{if(D.mode&T2){_3(!0);try{Z=B(O,X)}finally{_3(!1)}}KU(F,Z)}var $=Z===null||Z===void 0?X:H({},X,Z);if(D.memoizedState=$,D.lanes===uD){var z=D.updateQueue;z.baseState=$}}var pC={isMounted:N,enqueueSetState:function(D,F,B){var O=T(D),X=w3(),Z=P8(O),$=C8(X,Z);if($.payload=F,B!==void 0&&B!==null)A4(B,"setState"),$.callback=B;var z=z8(O,$,Z);if(z!==null)g2(z,O,Z,X),y7(z,O,Z);v5(O,Z)},enqueueReplaceState:function(D,F,B){var O=T(D),X=w3(),Z=P8(O),$=C8(X,Z);if($.tag=jX,$.payload=F,B!==void 0&&B!==null)A4(B,"replaceState"),$.callback=B;var z=z8(O,$,Z);if(z!==null)g2(z,O,Z,X),y7(z,O,Z);v5(O,Z)},enqueueForceUpdate:function(D,F){var B=T(D),O=w3(),X=P8(B),Z=C8(O,X);if(Z.tag=h7,F!==void 0&&F!==null)A4(F,"forceUpdate"),Z.callback=F;var $=z8(B,Z,X);if($!==null)g2($,B,X,O),y7($,B,X);HY(B,X)}};function RU(D,F,B,O,X,Z,$){var z=D.stateNode;if(typeof z.shouldComponentUpdate==="function"){var R=z.shouldComponentUpdate(O,Z,$);{if(D.mode&T2){_3(!0);try{R=z.shouldComponentUpdate(O,Z,$)}finally{_3(!1)}}if(R===void 0)L("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",YD(F)||"Component")}return R}if(F.prototype&&F.prototype.isPureReactComponent)return!P7(B,O)||!P7(X,Z);return!0}function RK(D,F,B){var O=D.stateNode;{var X=YD(F)||"Component",Z=O.render;if(!Z)if(F.prototype&&typeof F.prototype.render==="function")L("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",X);else L("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",X);if(O.getInitialState&&!O.getInitialState.isReactClassApproved&&!O.state)L("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",X);if(O.getDefaultProps&&!O.getDefaultProps.isReactClassApproved)L("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",X);if(O.propTypes)L("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",X);if(O.contextType)L("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",X);{if(F.childContextTypes&&!F1.has(F)&&(D.mode&T2)===F0)F1.add(F),L(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
84
|
+
|
|
85
|
+
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,X);if(F.contextTypes&&!F1.has(F)&&(D.mode&T2)===F0)F1.add(F),L(`%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.
|
|
86
|
+
|
|
87
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,X);if(O.contextTypes)L("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",X);if(F.contextType&&F.contextTypes&&!xC.has(F))xC.add(F),L("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",X)}if(typeof O.componentShouldUpdate==="function")L("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",X);if(F.prototype&&F.prototype.isPureReactComponent&&typeof O.shouldComponentUpdate<"u")L("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",YD(F)||"A pure component");if(typeof O.componentDidUnmount==="function")L("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",X);if(typeof O.componentDidReceiveProps==="function")L("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",X);if(typeof O.componentWillRecieveProps==="function")L("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",X);if(typeof O.UNSAFE_componentWillRecieveProps==="function")L("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",X);var $=O.props!==B;if(O.props!==void 0&&$)L("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",X,X);if(O.defaultProps)L("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",X,X);if(typeof O.getSnapshotBeforeUpdate==="function"&&typeof O.componentDidUpdate!=="function"&&!fC.has(F))fC.add(F),L("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",YD(F));if(typeof O.getDerivedStateFromProps==="function")L("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X);if(typeof O.getDerivedStateFromError==="function")L("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X);if(typeof F.getSnapshotBeforeUpdate==="function")L("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",X);var z=O.state;if(z&&(typeof z!=="object"||CD(z)))L("%s.state: must be set to an object or null",X);if(typeof O.getChildContext==="function"&&typeof F.childContextTypes!=="object")L("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",X)}}function HU(D,F){F.updater=pC,D.stateNode=F,h(F,D),F._reactInternalInstance=bC}function NU(D,F,B){var O=!1,X=a3,Z=a3,$=F.contextType;if("contextType"in F){var z=$===null||$!==void 0&&$.$$typeof===m0&&$._context===void 0;if(!z&&!mC.has(F)){mC.add(F);var R="";if($===void 0)R=" 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 $!=="object")R=" However, it is set to a "+typeof $+".";else if($.$$typeof===N0)R=" Did you accidentally pass the Context.Provider instead?";else if($._context!==void 0)R=" Did you accidentally pass the Context.Consumer instead?";else R=" However, it is set to an object with keys {"+Object.keys($).join(", ")+"}.";L("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",YD(F)||"Component",R)}}if(typeof $==="object"&&$!==null)Z=j2($);else{X=E6(D,F,!0);var P=F.contextTypes;O=P!==null&&P!==void 0,Z=O?q6(D,X):a3}var v=new F(B,Z);if(D.mode&T2){_3(!0);try{v=new F(B,Z)}finally{_3(!1)}}var g=D.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;HU(D,v);{if(typeof F.getDerivedStateFromProps==="function"&&g===null){var a=YD(F)||"Component";if(!hC.has(a))hC.add(a),L("`%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.",a,v.state===null?"null":"undefined",a)}if(typeof F.getDerivedStateFromProps==="function"||typeof v.getSnapshotBeforeUpdate==="function"){var _D=null,UD=null,GD=null;if(typeof v.componentWillMount==="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0)_D="componentWillMount";else if(typeof v.UNSAFE_componentWillMount==="function")_D="UNSAFE_componentWillMount";if(typeof v.componentWillReceiveProps==="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0)UD="componentWillReceiveProps";else if(typeof v.UNSAFE_componentWillReceiveProps==="function")UD="UNSAFE_componentWillReceiveProps";if(typeof v.componentWillUpdate==="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0)GD="componentWillUpdate";else if(typeof v.UNSAFE_componentWillUpdate==="function")GD="UNSAFE_componentWillUpdate";if(_D!==null||UD!==null||GD!==null){var xD=YD(F)||"Component",C0=typeof F.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!jC.has(xD))jC.add(xD),L(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
88
|
+
|
|
89
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
90
|
+
|
|
91
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
92
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,xD,C0,_D!==null?`
|
|
93
|
+
`+_D:"",UD!==null?`
|
|
94
|
+
`+UD:"",GD!==null?`
|
|
95
|
+
`+GD:"")}}}if(O)gG(D,X,Z);return v}function HK(D,F){var B=F.state;if(typeof F.componentWillMount==="function")F.componentWillMount();if(typeof F.UNSAFE_componentWillMount==="function")F.UNSAFE_componentWillMount();if(B!==F.state)L("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",hD(D)||"Component"),pC.enqueueReplaceState(F,F.state,null)}function MU(D,F,B,O){var X=F.state;if(typeof F.componentWillReceiveProps==="function")F.componentWillReceiveProps(B,O);if(typeof F.UNSAFE_componentWillReceiveProps==="function")F.UNSAFE_componentWillReceiveProps(B,O);if(F.state!==X){{var Z=hD(D)||"Component";if(!VC.has(Z))VC.add(Z),L("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z)}pC.enqueueReplaceState(F,F.state,null)}}function lC(D,F,B,O){RK(D,F,B);var X=D.stateNode;X.props=B,X.state=D.memoizedState,X.refs={},t5(D);var Z=F.contextType;if(typeof Z==="object"&&Z!==null)X.context=j2(Z);else{var $=E6(D,F,!0);X.context=q6(D,$)}{if(X.state===B){var z=YD(F)||"Component";if(!gC.has(z))gC.add(z),L("%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.",z)}if(D.mode&T2)KF.recordLegacyContextWarning(D,X);KF.recordUnsafeLifecycleWarnings(D,X)}X.state=D.memoizedState;var R=F.getDerivedStateFromProps;if(typeof R==="function")cC(D,F,R,B),X.state=D.memoizedState;if(typeof F.getDerivedStateFromProps!=="function"&&typeof X.getSnapshotBeforeUpdate!=="function"&&(typeof X.UNSAFE_componentWillMount==="function"||typeof X.componentWillMount==="function"))HK(D,X),g7(D,B,X,O),X.state=D.memoizedState;if(typeof X.componentDidMount==="function"){var P=aD;if(P|=rD,(D.mode&SF)!==F0)P|=G0;D.flags|=P}}function NK(D,F,B,O){var{stateNode:X,memoizedProps:Z}=D;X.props=Z;var $=X.context,z=F.contextType,R=a3;if(typeof z==="object"&&z!==null)R=j2(z);else{var P=E6(D,F,!0);R=q6(D,P)}var v=F.getDerivedStateFromProps,g=typeof v==="function"||typeof X.getSnapshotBeforeUpdate==="function";if(!g&&(typeof X.UNSAFE_componentWillReceiveProps==="function"||typeof X.componentWillReceiveProps==="function")){if(Z!==B||$!==R)MU(D,X,B,R)}gX();var a=D.memoizedState,_D=X.state=a;if(g7(D,B,X,O),_D=D.memoizedState,Z===B&&a===_D&&!A7()&&!x7()){if(typeof X.componentDidMount==="function"){var UD=aD;if(UD|=rD,(D.mode&SF)!==F0)UD|=G0;D.flags|=UD}return!1}if(typeof v==="function")cC(D,F,v,B),_D=D.memoizedState;var GD=x7()||RU(D,F,Z,B,a,_D,R);if(GD){if(!g&&(typeof X.UNSAFE_componentWillMount==="function"||typeof X.componentWillMount==="function")){if(typeof X.componentWillMount==="function")X.componentWillMount();if(typeof X.UNSAFE_componentWillMount==="function")X.UNSAFE_componentWillMount()}if(typeof X.componentDidMount==="function"){var xD=aD;if(xD|=rD,(D.mode&SF)!==F0)xD|=G0;D.flags|=xD}}else{if(typeof X.componentDidMount==="function"){var C0=aD;if(C0|=rD,(D.mode&SF)!==F0)C0|=G0;D.flags|=C0}D.memoizedProps=B,D.memoizedState=_D}return X.props=B,X.state=_D,X.context=R,GD}function MK(D,F,B,O,X){var Z=F.stateNode;yX(D,F);var $=F.memoizedProps,z=F.type===F.elementType?$:HF(F.type,$);Z.props=z;var R=F.pendingProps,P=Z.context,v=B.contextType,g=a3;if(typeof v==="object"&&v!==null)g=j2(v);else{var a=E6(F,B,!0);g=q6(F,a)}var _D=B.getDerivedStateFromProps,UD=typeof _D==="function"||typeof Z.getSnapshotBeforeUpdate==="function";if(!UD&&(typeof Z.UNSAFE_componentWillReceiveProps==="function"||typeof Z.componentWillReceiveProps==="function")){if($!==R||P!==g)MU(F,Z,O,g)}gX();var GD=F.memoizedState,xD=Z.state=GD;if(g7(F,O,Z,X),xD=F.memoizedState,$===R&&GD===xD&&!A7()&&!x7()&&!q){if(typeof Z.componentDidUpdate==="function"){if($!==D.memoizedProps||GD!==D.memoizedState)F.flags|=aD}if(typeof Z.getSnapshotBeforeUpdate==="function"){if($!==D.memoizedProps||GD!==D.memoizedState)F.flags|=M3}return!1}if(typeof _D==="function")cC(F,B,_D,O),xD=F.memoizedState;var C0=x7()||RU(F,B,z,O,GD,xD,g)||q;if(C0){if(!UD&&(typeof Z.UNSAFE_componentWillUpdate==="function"||typeof Z.componentWillUpdate==="function")){if(typeof Z.componentWillUpdate==="function")Z.componentWillUpdate(O,xD,g);if(typeof Z.UNSAFE_componentWillUpdate==="function")Z.UNSAFE_componentWillUpdate(O,xD,g)}if(typeof Z.componentDidUpdate==="function")F.flags|=aD;if(typeof Z.getSnapshotBeforeUpdate==="function")F.flags|=M3}else{if(typeof Z.componentDidUpdate==="function"){if($!==D.memoizedProps||GD!==D.memoizedState)F.flags|=aD}if(typeof Z.getSnapshotBeforeUpdate==="function"){if($!==D.memoizedProps||GD!==D.memoizedState)F.flags|=M3}F.memoizedProps=O,F.memoizedState=xD}return Z.props=O,Z.state=xD,Z.context=g,C0}function t8(D,F){return{value:D,source:F,stack:MX(F),digest:null}}function dC(D,F,B){return{value:D,source:null,stack:B!=null?B:null,digest:F!=null?F:null}}function EK(D,F){return!0}function iC(D,F){try{var B=EK(D,F);if(B===!1)return;var{value:O,source:X,stack:Z}=F,$=Z!==null?Z:"";if(O!=null&&O._suppressLogging){if(D.tag===FD)return;console.error(O)}var z=X?hD(X):null,R=z?"The above error occurred in the <"+z+"> component:":"The above error occurred in one of your React components:",P;if(D.tag===BD)P=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
96
|
+
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var v=hD(D)||"Anonymous";P="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var g=R+`
|
|
97
|
+
`+$+`
|
|
98
|
+
|
|
99
|
+
`+(""+P);console.error(g)}catch(a){setTimeout(function(){throw a})}}var qK=typeof WeakMap==="function"?WeakMap:Map;function EU(D,F,B){var O=C8(u2,B);O.tag=o5,O.payload={element:null};var X=F.value;return O.callback=function(){VR(X),iC(D,F)},O}function nC(D,F,B){var O=C8(u2,B);O.tag=o5;var X=D.type.getDerivedStateFromError;if(typeof X==="function"){var Z=F.value;O.payload=function(){return X(Z)},O.callback=function(){ju(D),iC(D,F)}}var $=D.stateNode;if($!==null&&typeof $.componentDidCatch==="function")O.callback=function(){if(ju(D),iC(D,F),typeof X!=="function")SR(this);var{value:R,stack:P}=F;if(this.componentDidCatch(R,{componentStack:P!==null?P:""}),typeof X!=="function"){if(!o3(D.lanes,X0))L("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",hD(D)||"Unknown")}};return O}function qU(D,F,B){var O=D.pingCache,X;if(O===null)O=D.pingCache=new qK,X=new Set,O.set(F,X);else if(X=O.get(F),X===void 0)X=new Set,O.set(F,X);if(!X.has(B)){X.add(B);var Z=hR.bind(null,D,F,B);if(JF)R1(D,B);F.then(Z,Z)}}function PK(D,F,B,O){var X=D.updateQueue;if(X===null){var Z=new Set;Z.add(B),D.updateQueue=Z}else X.add(B)}function wK(D,F){var B=D.tag;if((D.mode&h0)===F0&&(B===x||B===QD||B===KD)){var O=D.alternate;if(O)D.updateQueue=O.updateQueue,D.memoizedState=O.memoizedState,D.lanes=O.lanes;else D.updateQueue=null,D.memoizedState=null}}function PU(D){var F=D;do{if(F.tag===ED&&UK(F))return F;F=F.return}while(F!==null);return null}function wU(D,F,B,O,X){if((D.mode&h0)===F0){if(D===F)D.flags|=I;else{if(D.flags|=K0,B.flags|=LD,B.flags&=~(L8|LF),B.tag===FD){var Z=B.alternate;if(Z===null)B.tag=E0;else{var $=C8(u2,X0);$.tag=h7,z8(B,$,X0)}}B.lanes=J0(B.lanes,X0)}return D}return D.flags|=I,D.lanes=X,D}function IK(D,F,B,O,X){if(B.flags|=LF,JF)R1(D,X);if(O!==null&&typeof O==="object"&&typeof O.then==="function"){var Z=O;if(wK(B),L3()&&B.mode&h0)WX();var $=PU(F);if($!==null){if($.flags&=~L2,wU($,F,B,D,X),$.mode&h0)qU(D,Z,X);PK($,D,Z);return}else{if(!fJ(X)){qU(D,Z,X),TB();return}var z=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.");O=z}}else if(L3()&&B.mode&h0){WX();var R=PU(F);if(R!==null){if((R.flags&I)===SD)R.flags|=L2;wU(R,F,B,D,X),g5(t8(O,B));return}}O=t8(O,B),ER(O);var P=F;do{switch(P.tag){case BD:{var v=O;P.flags|=I;var g=k_(X);P.lanes=J0(P.lanes,g);var a=EU(P,v,g);e5(P,a);return}case FD:var _D=O,UD=P.type,GD=P.stateNode;if((P.flags&K0)===SD&&(typeof UD.getDerivedStateFromError==="function"||GD!==null&&typeof GD.componentDidCatch==="function"&&!Iu(GD))){P.flags|=I;var xD=k_(X);P.lanes=J0(P.lanes,xD);var C0=nC(P,_D,xD);e5(P,C0);return}break}P=P.return}while(P!==null)}function kK(){return null}var _1=G.ReactCurrentOwner,NF=!1,aC,C1,rC,oC,sC,e8,tC,L4,B1;aC={},C1={},rC={},oC={},sC={},e8=!1,tC={},L4={},B1={};function b3(D,F,B,O){if(D===null)F.child=TX(F,null,B,O);else F.child=f6(F,D.child,B,O)}function vK(D,F,B,O){F.child=f6(F,D.child,null,O),F.child=f6(F,null,B,O)}function IU(D,F,B,O,X){if(F.type!==F.elementType){var Z=B.propTypes;if(Z)$F(Z,O,"prop",YD(B))}var $=B.render,z=F.ref,R,P;y6(F,X),V_(F);{if(_1.current=F,jF(!0),R=l6(D,F,$,O,z,X),P=d6(),F.mode&T2){_3(!0);try{R=l6(D,F,$,O,z,X),P=d6()}finally{_3(!1)}}jF(!1)}if(S6(),D!==null&&!NF)return lX(D,F,X),B8(D,F,X);if(L3()&&P)b5(F);return F.flags|=d0,b3(D,F,R,X),F.child}function kU(D,F,B,O,X){if(D===null){var Z=B.type;if(tR(Z)&&B.compare===null&&B.defaultProps===void 0){var $=Z;return $=e6(Z),F.tag=KD,F.type=$,FB(F,Z),vU(D,F,$,O,X)}{var z=Z.propTypes;if(z)$F(z,O,"prop",YD(Z));if(B.defaultProps!==void 0){var R=YD(Z)||"Unknown";if(!B1[R])L("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",R),B1[R]=!0}}var P=mB(B.type,null,O,F,F.mode,X);return P.ref=F.ref,P.return=F,F.child=P,P}{var v=B.type,g=v.propTypes;if(g)$F(g,O,"prop",YD(v))}var a=D.child,_D=XB(D,X);if(!_D){var UD=a.memoizedProps,GD=B.compare;if(GD=GD!==null?GD:P7,GD(UD,O)&&D.ref===F.ref)return B8(D,F,X)}F.flags|=d0;var xD=B6(a,O);return xD.ref=F.ref,xD.return=F,F.child=xD,xD}function vU(D,F,B,O,X){if(F.type!==F.elementType){var Z=F.elementType;if(Z.$$typeof===W0){var $=Z,z=$._payload,R=$._init;try{Z=R(z)}catch(g){Z=null}var P=Z&&Z.propTypes;if(P)$F(P,O,"prop",YD(Z))}}if(D!==null){var v=D.memoizedProps;if(P7(v,O)&&D.ref===F.ref&&F.type===D.type){if(NF=!1,F.pendingProps=O=v,!XB(D,X))return F.lanes=D.lanes,B8(D,F,X);else if((D.flags&LD)!==SD)NF=!0}}return eC(D,F,B,O,X)}function TU(D,F,B){var O=F.pendingProps,X=O.children,Z=D!==null?D.memoizedState:null;if(O.mode==="hidden"||w)if((F.mode&h0)===F0){var $={baseLanes:uD,cachePool:null,transitions:null};F.memoizedState=$,f4(F,B)}else if(!o3(B,r3)){var z=null,R;if(Z!==null){var P=Z.baseLanes;R=J0(P,B)}else R=B;F.lanes=F.childLanes=R7(r3);var v={baseLanes:R,cachePool:z,transitions:null};return F.memoizedState=v,F.updateQueue=null,f4(F,R),null}else{var g={baseLanes:uD,cachePool:null,transitions:null};F.memoizedState=g;var a=Z!==null?Z.baseLanes:B;f4(F,a)}else{var _D;if(Z!==null)_D=J0(Z.baseLanes,B),F.memoizedState=null;else _D=B;f4(F,_D)}return b3(D,F,X,B),F.child}function TK(D,F,B){var O=F.pendingProps;return b3(D,F,O,B),F.child}function SK(D,F,B){var O=F.pendingProps.children;return b3(D,F,O,B),F.child}function bK(D,F,B){{F.flags|=aD;{var O=F.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}}var X=F.pendingProps,Z=X.children;return b3(D,F,Z,B),F.child}function SU(D,F){var B=F.ref;if(D===null&&B!==null||D!==null&&D.ref!==B)F.flags|=N3,F.flags|=eD}function eC(D,F,B,O,X){if(F.type!==F.elementType){var Z=B.propTypes;if(Z)$F(Z,O,"prop",YD(B))}var $;{var z=E6(F,B,!0);$=q6(F,z)}var R,P;y6(F,X),V_(F);{if(_1.current=F,jF(!0),R=l6(D,F,B,O,$,X),P=d6(),F.mode&T2){_3(!0);try{R=l6(D,F,B,O,$,X),P=d6()}finally{_3(!1)}}jF(!1)}if(S6(),D!==null&&!NF)return lX(D,F,X),B8(D,F,X);if(L3()&&P)b5(F);return F.flags|=d0,b3(D,F,R,X),F.child}function bU(D,F,B,O,X){{switch(iu(F)){case!1:{var{stateNode:Z,type:$}=F,z=new $(F.memoizedProps,Z.context),R=z.state;Z.updater.enqueueSetState(Z,R,null);break}case!0:{F.flags|=K0,F.flags|=I;var P=Error("Simulated error coming from DevTools"),v=k_(X);F.lanes=J0(F.lanes,v);var g=nC(F,t8(P,F),v);e5(F,g);break}}if(F.type!==F.elementType){var a=B.propTypes;if(a)$F(a,O,"prop",YD(B))}}var _D;if(TF(B))_D=!0,Q7(F);else _D=!1;y6(F,X);var UD=F.stateNode,GD;if(UD===null)$4(D,F),NU(F,B,O),lC(F,B,O,X),GD=!0;else if(D===null)GD=NK(F,B,O,X);else GD=MK(D,F,B,O,X);var xD=DB(D,F,B,GD,_D,X);{var C0=F.stateNode;if(GD&&C0.props!==O){if(!e8)L("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",hD(F)||"a component");e8=!0}}return xD}function DB(D,F,B,O,X,Z){SU(D,F);var $=(F.flags&K0)!==SD;if(!O&&!$){if(X)cG(F,B,!1);return B8(D,F,Z)}var z=F.stateNode;_1.current=F;var R;if($&&typeof B.getDerivedStateFromError!=="function")R=null,YU();else{V_(F);{if(jF(!0),R=z.render(),F.mode&T2){_3(!0);try{z.render()}finally{_3(!1)}}jF(!1)}S6()}if(F.flags|=d0,D!==null&&$)vK(D,F,R,Z);else b3(D,F,R,Z);if(F.memoizedState=z.state,X)cG(F,B,!0);return F.child}function VU(D){var F=D.stateNode;if(F.pendingContext)xG(D,F.pendingContext,F.pendingContext!==F.context);else if(F.context)xG(D,F.context,!1);FC(D,F.containerInfo)}function VK(D,F,B){if(VU(F),D===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:O,memoizedState:X}=F,Z=X.element;yX(D,F),g7(F,O,null,B);var{memoizedState:$,stateNode:z}=F,R=$.element;if(U3&&X.isDehydrated){var P={element:R,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},v=F.updateQueue;if(v.baseState=P,F.memoizedState=P,F.flags&L2){var g=t8(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),F);return hU(D,F,R,B,g)}else if(R!==Z){var a=t8(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),F);return hU(D,F,R,B,a)}else{SY(F);var _D=TX(F,null,R,B);F.child=_D;var UD=_D;while(UD)UD.flags=UD.flags&~S0|k2,UD=UD.sibling}}else{if(h6(),R===Z)return B8(D,F,B);b3(D,F,R,B)}return F.child}function hU(D,F,B,O,X){return h6(),g5(X),F.flags|=L2,b3(D,F,B,O),F.child}function hK(D,F,B){if(mX(F),D===null)y5(F);var{type:O,pendingProps:X}=F,Z=D!==null?D.memoizedProps:null,$=X.children,z=QF(O,X);if(z)$=null;else if(Z!==null&&QF(O,Z))F.flags|=E2;return SU(D,F),b3(D,F,$,B),F.child}function fK(D,F){if(D===null)y5(F);return null}function jK(D,F,B,O){$4(D,F);var X=F.pendingProps,Z=B,$=Z._payload,z=Z._init,R=z($);F.type=R;var P=F.tag=eR(R),v=HF(R,X),g;switch(P){case x:return FB(F,R),F.type=R=e6(R),g=eC(null,F,R,v,O),g;case FD:return F.type=R=hB(R),g=bU(null,F,R,v,O),g;case QD:return F.type=R=fB(R),g=IU(null,F,R,v,O),g;case mD:{if(F.type!==F.elementType){var a=R.propTypes;if(a)$F(a,v,"prop",YD(R))}return g=kU(null,F,R,HF(R.type,v),O),g}}var _D="";if(R!==null&&typeof R==="object"&&R.$$typeof===W0)_D=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+R+". "+("Lazy element type must resolve to a class or function."+_D))}function yK(D,F,B,O,X){$4(D,F),F.tag=FD;var Z;if(TF(B))Z=!0,Q7(F);else Z=!1;return y6(F,X),NU(F,B,O),lC(F,B,O,X),DB(null,F,B,!0,Z,X)}function gK(D,F,B,O){$4(D,F);var X=F.pendingProps,Z;{var $=E6(F,B,!1);Z=q6(F,$)}y6(F,O);var z,R;V_(F);{if(B.prototype&&typeof B.prototype.render==="function"){var P=YD(B)||"Unknown";if(!aC[P])L("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.",P,P),aC[P]=!0}if(F.mode&T2)KF.recordLegacyContextWarning(F,null);jF(!0),_1.current=F,z=l6(null,F,B,X,Z,O),R=d6(),jF(!1)}if(S6(),F.flags|=d0,typeof z==="object"&&z!==null&&typeof z.render==="function"&&z.$$typeof===void 0){var v=YD(B)||"Unknown";if(!C1[v])L("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.",v,v,v),C1[v]=!0}if(typeof z==="object"&&z!==null&&typeof z.render==="function"&&z.$$typeof===void 0){{var g=YD(B)||"Unknown";if(!C1[g])L("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.",g,g,g),C1[g]=!0}F.tag=FD,F.memoizedState=null,F.updateQueue=null;var a=!1;if(TF(B))a=!0,Q7(F);else a=!1;return F.memoizedState=z.state!==null&&z.state!==void 0?z.state:null,t5(F),HU(F,z),lC(F,B,X,O),DB(null,F,B,!0,a,O)}else{if(F.tag=x,F.mode&T2){_3(!0);try{z=l6(null,F,B,X,Z,O),R=d6()}finally{_3(!1)}}if(L3()&&R)b5(F);return b3(null,F,z,O),FB(F,B),F.child}}function FB(D,F){{if(F){if(F.childContextTypes)L("%s(...): childContextTypes cannot be defined on a function component.",F.displayName||F.name||"Component")}if(D.ref!==null){var B="",O=pY();if(O)B+=`
|
|
100
|
+
|
|
101
|
+
Check the render method of \``+O+"`.";var X=O||"",Z=D._debugSource;if(Z)X=Z.fileName+":"+Z.lineNumber;if(!sC[X])sC[X]=!0,L("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",B)}if(F.defaultProps!==void 0){var $=YD(F)||"Unknown";if(!B1[$])L("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",$),B1[$]=!0}if(typeof F.getDerivedStateFromProps==="function"){var z=YD(F)||"Unknown";if(!oC[z])L("%s: Function components do not support getDerivedStateFromProps.",z),oC[z]=!0}if(typeof F.contextType==="object"&&F.contextType!==null){var R=YD(F)||"Unknown";if(!rC[R])L("%s: Function components do not support contextType.",R),rC[R]=!0}}}var _B={dehydrated:null,treeContext:null,retryLane:e2};function CB(D){return{baseLanes:D,cachePool:kK(),transitions:null}}function xK(D,F){var B=null;return{baseLanes:J0(D.baseLanes,F),cachePool:B,transitions:D.transitions}}function mK(D,F,B,O){if(F!==null){var X=F.memoizedState;if(X===null)return!1}return CC(D,n_)}function cK(D,F){return z7(D.childLanes,F)}function fU(D,F,B){var O=F.pendingProps;if(au(F))F.flags|=K0;var X=zF.current,Z=!1,$=(F.flags&K0)!==SD;if($||mK(X,D))Z=!0,F.flags&=~K0;else if(D===null||D.memoizedState!==null)X=XK(X,pX);if(X=x6(X),H8(F,X),D===null){y5(F);var z=F.memoizedState;if(z!==null){var R=z.dehydrated;if(R!==null)return nK(F,R)}var{children:P,fallback:v}=O;if(Z){var g=pK(F,P,v,B),a=F.child;return a.memoizedState=CB(B),F.memoizedState=_B,g}else return BB(F,P)}else{var _D=D.memoizedState;if(_D!==null){var UD=_D.dehydrated;if(UD!==null)return aK(D,F,$,O,UD,_D,B)}if(Z){var{fallback:GD,children:xD}=O,C0=dK(D,F,xD,GD,B),tD=F.child,p0=D.child.memoizedState;return tD.memoizedState=p0===null?CB(B):xK(p0,B),tD.childLanes=cK(D,B),F.memoizedState=_B,C0}else{var T0=O.children,c=lK(D,F,T0,B);return F.memoizedState=null,c}}}function BB(D,F,B){var O=D.mode,X={mode:"visible",children:F},Z=OB(X,O);return Z.return=D,D.child=Z,Z}function pK(D,F,B,O){var{mode:X,child:Z}=D,$={mode:"hidden",children:F},z,R;if((X&h0)===F0&&Z!==null){if(z=Z,z.childLanes=uD,z.pendingProps=$,D.mode&n0)z.actualDuration=0,z.actualStartTime=-1,z.selfBaseDuration=0,z.treeBaseDuration=0;R=I8(B,X,O,null)}else z=OB($,X),R=I8(B,X,O,null);return z.return=D,R.return=D,z.sibling=R,D.child=z,R}function OB(D,F,B){return gu(D,F,uD,null)}function jU(D,F){return B6(D,F)}function lK(D,F,B,O){var X=D.child,Z=X.sibling,$=jU(X,{mode:"visible",children:B});if((F.mode&h0)===F0)$.lanes=O;if($.return=F,$.sibling=null,Z!==null){var z=F.deletions;if(z===null)F.deletions=[Z],F.flags|=O2;else z.push(Z)}return F.child=$,$}function dK(D,F,B,O,X){var Z=F.mode,$=D.child,z=$.sibling,R={mode:"hidden",children:B},P;if((Z&h0)===F0&&F.child!==$){var v=F.child;if(P=v,P.childLanes=uD,P.pendingProps=R,F.mode&n0)P.actualDuration=0,P.actualStartTime=-1,P.selfBaseDuration=$.selfBaseDuration,P.treeBaseDuration=$.treeBaseDuration;F.deletions=null}else P=jU($,R),P.subtreeFlags=$.subtreeFlags&v2;var g;if(z!==null)g=B6(z,O);else g=I8(O,Z,X,null),g.flags|=S0;return g.return=F,P.return=F,P.sibling=g,F.child=P,g}function Q4(D,F,B,O){if(O!==null)g5(O);f6(F,D.child,null,B);var X=F.pendingProps,Z=X.children,$=BB(F,Z);return $.flags|=S0,F.memoizedState=null,$}function iK(D,F,B,O,X){var Z=F.mode,$={mode:"visible",children:B},z=OB($,Z),R=I8(O,Z,X,null);if(R.flags|=S0,z.return=F,R.return=F,z.sibling=R,F.child=z,(F.mode&h0)!==F0)f6(F,D.child,null,X);return R}function nK(D,F,B){if((D.mode&h0)===F0)L("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."),D.lanes=R7(X0);else if(J2(F))D.lanes=R7(x8);else D.lanes=R7(r3);return null}function aK(D,F,B,O,X,Z,$){if(!B){if(vY(),(F.mode&h0)===F0)return Q4(D,F,$,null);if(J2(X)){var z,R,P;{var v=c2(X);z=v.digest,R=v.message,P=v.stack}var g;if(R)g=Error(R);else g=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var a=dC(g,z,P);return Q4(D,F,$,a)}var _D=o3($,D.childLanes);if(NF||_D){var UD=V4();if(UD!==null){var GD=lJ(UD,$);if(GD!==e2&&GD!==Z.retryLane){Z.retryLane=GD;var xD=u2;S3(D,GD),g2(UD,D,GD,xD)}}TB();var C0=dC(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 Q4(D,F,$,C0)}else if(U2(X)){F.flags|=K0,F.child=D.child;var tD=fR.bind(null,D);return M6(X,tD),null}else{bY(F,X,Z.treeContext);var p0=O.children,T0=BB(F,p0);return T0.flags|=k2,T0}}else if(F.flags&L2){F.flags&=~L2;var c=dC(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Q4(D,F,$,c)}else if(F.memoizedState!==null)return F.child=D.child,F.flags|=K0,null;else{var{children:e,fallback:m}=O,zD=iK(D,F,e,m,$),iD=F.child;return iD.memoizedState=CB($),F.memoizedState=_B,zD}}function yU(D,F,B){D.lanes=J0(D.lanes,F);var O=D.alternate;if(O!==null)O.lanes=J0(O.lanes,F);a5(D.return,F,B)}function rK(D,F,B){var O=F;while(O!==null){if(O.tag===ED){var X=O.memoizedState;if(X!==null)yU(O,B,D)}else if(O.tag===MD)yU(O,B,D);else if(O.child!==null){O.child.return=O,O=O.child;continue}if(O===D)return;while(O.sibling===null){if(O.return===null||O.return===D)return;O=O.return}O.sibling.return=O.return,O=O.sibling}}function oK(D){var F=D,B=null;while(F!==null){var O=F.alternate;if(O!==null&&p7(O)===null)B=F;F=F.sibling}return B}function sK(D){if(D!==void 0&&D!=="forwards"&&D!=="backwards"&&D!=="together"&&!tC[D])if(tC[D]=!0,typeof D==="string")switch(D.toLowerCase()){case"together":case"forwards":case"backwards":{L('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',D,D.toLowerCase());break}case"forward":case"backward":{L('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',D,D.toLowerCase());break}default:L('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',D);break}else L('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',D)}function tK(D,F){if(D!==void 0&&!L4[D]){if(D!=="collapsed"&&D!=="hidden")L4[D]=!0,L('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',D);else if(F!=="forwards"&&F!=="backwards")L4[D]=!0,L('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',D)}}function gU(D,F){{var B=CD(D),O=!B&&typeof b2(D)==="function";if(B||O){var X=B?"array":"iterable";return L("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",X,F,X),!1}}return!0}function eK(D,F){if((F==="forwards"||F==="backwards")&&D!==void 0&&D!==null&&D!==!1)if(CD(D)){for(var B=0;B<D.length;B++)if(!gU(D[B],B))return}else{var O=b2(D);if(typeof O==="function"){var X=O.call(D);if(X){var Z=X.next(),$=0;for(;!Z.done;Z=X.next()){if(!gU(Z.value,$))return;$++}}}else L('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?',F)}}function GB(D,F,B,O,X){var Z=D.memoizedState;if(Z===null)D.memoizedState={isBackwards:F,rendering:null,renderingStartTime:0,last:O,tail:B,tailMode:X};else Z.isBackwards=F,Z.rendering=null,Z.renderingStartTime=0,Z.last=O,Z.tail=B,Z.tailMode=X}function xU(D,F,B){var O=F.pendingProps,X=O.revealOrder,Z=O.tail,$=O.children;sK(X),tK(Z,X),eK($,X),b3(D,F,$,B);var z=zF.current,R=CC(z,n_);if(R)z=BC(z,n_),F.flags|=K0;else{var P=D!==null&&(D.flags&K0)!==SD;if(P)rK(F,F.child,B);z=x6(z)}if(H8(F,z),(F.mode&h0)===F0)F.memoizedState=null;else switch(X){case"forwards":{var v=oK(F.child),g;if(v===null)g=F.child,F.child=null;else g=v.sibling,v.sibling=null;GB(F,!1,g,v,Z);break}case"backwards":{var a=null,_D=F.child;F.child=null;while(_D!==null){var UD=_D.alternate;if(UD!==null&&p7(UD)===null){F.child=_D;break}var GD=_D.sibling;_D.sibling=a,a=_D,_D=GD}GB(F,!0,a,null,Z);break}case"together":{GB(F,!1,null,null,void 0);break}default:F.memoizedState=null}return F.child}function Dz(D,F,B){FC(F,F.stateNode.containerInfo);var O=F.pendingProps;if(D===null)F.child=f6(F,null,O,B);else b3(D,F,O,B);return F.child}var mU=!1;function Fz(D,F,B){var O=F.type,X=O._context,Z=F.pendingProps,$=F.memoizedProps,z=Z.value;{if(!("value"in Z)){if(!mU)mU=!0,L("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var R=F.type.propTypes;if(R)$F(R,Z,"prop","Context.Provider")}if(VX(F,X,z),$!==null){var P=$.value;if(s3(P,z)){if($.children===Z.children&&!A7())return B8(D,F,B)}else tY(F,X,B)}var v=Z.children;return b3(D,F,v,B),F.child}var cU=!1;function _z(D,F,B){var O=F.type;if(O._context===void 0){if(O!==O.Consumer){if(!cU)cU=!0,L("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else O=O._context;var X=F.pendingProps,Z=X.children;if(typeof Z!=="function")L("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.");y6(F,B);var $=j2(O);V_(F);var z;return _1.current=F,jF(!0),z=Z($),jF(!1),S6(),F.flags|=d0,b3(D,F,z,B),F.child}function O1(){NF=!0}function $4(D,F){if((F.mode&h0)===F0){if(D!==null)D.alternate=null,F.alternate=null,F.flags|=S0}}function B8(D,F,B){if(D!==null)F.dependencies=D.dependencies;if(YU(),z1(F.lanes),!o3(B,F.childLanes))return null;return oY(D,F),F.child}function Cz(D,F,B){{var O=F.return;if(O===null)throw Error("Cannot swap the root fiber.");if(D.alternate=null,F.alternate=null,B.index=F.index,B.sibling=F.sibling,B.return=F.return,B.ref=F.ref,F===O.child)O.child=B;else{var X=O.child;if(X===null)throw Error("Expected parent to have a child.");while(X.sibling!==F)if(X=X.sibling,X===null)throw Error("Expected to find the previous sibling.");X.sibling=B}var Z=O.deletions;if(Z===null)O.deletions=[D],O.flags|=O2;else Z.push(D);return B.flags|=S0,B}}function XB(D,F){var B=D.lanes;if(o3(B,F))return!0;return!1}function Bz(D,F,B){switch(F.tag){case BD:VU(F);var O=F.stateNode;h6();break;case i:mX(F);break;case FD:{var X=F.type;if(TF(X))Q7(F);break}case XD:FC(F,F.stateNode.containerInfo);break;case oD:{var Z=F.memoizedProps.value,$=F.type._context;VX(F,$,Z);break}case ID:{var z=o3(B,F.childLanes);if(z)F.flags|=aD;{var R=F.stateNode;R.effectDuration=0,R.passiveEffectDuration=0}}break;case ED:{var P=F.memoizedState;if(P!==null){if(P.dehydrated!==null)return H8(F,x6(zF.current)),F.flags|=K0,null;var v=F.child,g=v.childLanes;if(o3(B,g))return fU(D,F,B);else{H8(F,x6(zF.current));var a=B8(D,F,B);if(a!==null)return a.sibling;else return null}}else H8(F,x6(zF.current));break}case MD:{var _D=(D.flags&K0)!==SD,UD=o3(B,F.childLanes);if(_D){if(UD)return xU(D,F,B);F.flags|=K0}var GD=F.memoizedState;if(GD!==null)GD.rendering=null,GD.tail=null,GD.lastEffect=null;if(H8(F,zF.current),UD)break;else return null}case kD:case JD:return F.lanes=uD,TU(D,F,B)}return B8(D,F,B)}function pU(D,F,B){if(F._debugNeedsRemount&&D!==null)return Cz(D,F,mB(F.type,F.key,F.pendingProps,F._debugOwner||null,F.mode,F.lanes));if(D!==null){var O=D.memoizedProps,X=F.pendingProps;if(O!==X||A7()||F.type!==D.type)NF=!0;else{var Z=XB(D,B);if(!Z&&(F.flags&K0)===SD)return NF=!1,Bz(D,F,B);if((D.flags&LD)!==SD)NF=!0;else NF=!1}}else if(NF=!1,L3()&&EY(F)){var $=F.index,z=qY();$X(F,z,$)}switch(F.lanes=uD,F.tag){case ZD:return gK(D,F,F.type,B);case Q0:{var R=F.elementType;return jK(D,F,R,B)}case x:{var{type:P,pendingProps:v}=F,g=F.elementType===P?v:HF(P,v);return eC(D,F,P,g,B)}case FD:{var{type:a,pendingProps:_D}=F,UD=F.elementType===a?_D:HF(a,_D);return bU(D,F,a,UD,B)}case BD:return VK(D,F,B);case i:return hK(D,F,B);case RD:return fK(D,F);case ED:return fU(D,F,B);case XD:return Dz(D,F,B);case QD:{var{type:GD,pendingProps:xD}=F,C0=F.elementType===GD?xD:HF(GD,xD);return IU(D,F,GD,C0,B)}case jD:return TK(D,F,B);case dD:return SK(D,F,B);case ID:return bK(D,F,B);case oD:return Fz(D,F,B);case PD:return _z(D,F,B);case mD:{var{type:tD,pendingProps:p0}=F,T0=HF(tD,p0);if(F.type!==F.elementType){var c=tD.propTypes;if(c)$F(c,T0,"prop",YD(tD))}return T0=HF(tD.type,T0),kU(D,F,tD,T0,B)}case KD:return vU(D,F,F.type,F.pendingProps,B);case E0:{var{type:e,pendingProps:m}=F,zD=F.elementType===e?m:HF(e,m);return yK(D,F,e,zD,B)}case MD:return xU(D,F,B);case v0:break;case kD:return TU(D,F,B)}throw Error("Unknown unit of work tag ("+F.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pF(D){D.flags|=aD}function lU(D){D.flags|=N3,D.flags|=eD}function dU(D,F){var B=D!==null&&D.child===F.child;if(B)return!0;if((F.flags&O2)!==SD)return!1;var O=F.child;while(O!==null){if((O.flags&y0)!==SD||(O.subtreeFlags&y0)!==SD)return!1;O=O.sibling}return!0}var G1,X1,W4,J4;if(E3)G1=function(D,F,B,O){var X=F.child;while(X!==null){if(X.tag===i||X.tag===RD)g3(D,X.stateNode);else if(X.tag===XD);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===F)return;while(X.sibling===null){if(X.return===null||X.return===F)return;X=X.return}X.sibling.return=X.return,X=X.sibling}},X1=function(D,F){},W4=function(D,F,B,O,X){var Z=D.memoizedProps;if(Z===O)return;var $=F.stateNode,z=i_(),R=n3($,B,Z,O,X,z);if(F.updateQueue=R,R)pF(F)},J4=function(D,F,B,O){if(B!==O)pF(F)};else if(j8){G1=function(D,F,B,O){var X=F.child;while(X!==null){if(X.tag===i){var Z=X.stateNode;if(B&&O){var{memoizedProps:$,type:z}=X;Z=A0(Z,z,$,X)}g3(D,Z)}else if(X.tag===RD){var R=X.stateNode;if(B&&O){var P=X.memoizedProps;R=w0(R,P,X)}g3(D,R)}else if(X.tag===XD);else if(X.tag===kD&&X.memoizedState!==null){var v=X.child;if(v!==null)v.return=X;G1(D,X,!0,!0)}else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X=X,X===F)return;while(X.sibling===null){if(X.return===null||X.return===F)return;X=X.return}X.sibling.return=X.return,X=X.sibling}};var iU=function(D,F,B,O){var X=F.child;while(X!==null){if(X.tag===i){var Z=X.stateNode;if(B&&O){var{memoizedProps:$,type:z}=X;Z=A0(Z,z,$,X)}HD(D,Z)}else if(X.tag===RD){var R=X.stateNode;if(B&&O){var P=X.memoizedProps;R=w0(R,P,X)}HD(D,R)}else if(X.tag===XD);else if(X.tag===kD&&X.memoizedState!==null){var v=X.child;if(v!==null)v.return=X;iU(D,X,!0,!0)}else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X=X,X===F)return;while(X.sibling===null){if(X.return===null||X.return===F)return;X=X.return}X.sibling.return=X.return,X=X.sibling}};X1=function(D,F){var B=F.stateNode,O=dU(D,F);if(O);else{var X=B.containerInfo,Z=o(X);iU(Z,F,!1,!1),B.pendingChildren=Z,pF(F),_0(X,Z)}},W4=function(D,F,B,O,X){var{stateNode:Z,memoizedProps:$}=D,z=dU(D,F);if(z&&$===O){F.stateNode=Z;return}var R=F.stateNode,P=i_(),v=null;if($!==O)v=n3(R,B,$,O,X,P);if(z&&v===null){F.stateNode=Z;return}var g=d(Z,v,B,$,O,F,z,R);if(x3(g,B,O,X,P))pF(F);if(F.stateNode=g,z)pF(F);else G1(g,F,!1,!1)},J4=function(D,F,B,O){if(B!==O){var X=DC(),Z=i_();F.stateNode=m3(O,X,Z,F),pF(F)}else F.stateNode=D.stateNode}}else X1=function(D,F){},W4=function(D,F,B,O,X){},J4=function(D,F,B,O){};function U1(D,F){if(L3())return;switch(D.tailMode){case"hidden":{var B=D.tail,O=null;while(B!==null){if(B.alternate!==null)O=B;B=B.sibling}if(O===null)D.tail=null;else O.sibling=null;break}case"collapsed":{var X=D.tail,Z=null;while(X!==null){if(X.alternate!==null)Z=X;X=X.sibling}if(Z===null)if(!F&&D.tail!==null)D.tail.sibling=null;else D.tail=null;else Z.sibling=null;break}}}function $3(D){var F=D.alternate!==null&&D.alternate.child===D.child,B=uD,O=SD;if(!F){if((D.mode&n0)!==F0){var{actualDuration:X,selfBaseDuration:Z,child:$}=D;while($!==null)B=J0(B,J0($.lanes,$.childLanes)),O|=$.subtreeFlags,O|=$.flags,X+=$.actualDuration,Z+=$.treeBaseDuration,$=$.sibling;D.actualDuration=X,D.treeBaseDuration=Z}else{var z=D.child;while(z!==null)B=J0(B,J0(z.lanes,z.childLanes)),O|=z.subtreeFlags,O|=z.flags,z.return=D,z=z.sibling}D.subtreeFlags|=O}else{if((D.mode&n0)!==F0){var{selfBaseDuration:R,child:P}=D;while(P!==null)B=J0(B,J0(P.lanes,P.childLanes)),O|=P.subtreeFlags&v2,O|=P.flags&v2,R+=P.treeBaseDuration,P=P.sibling;D.treeBaseDuration=R}else{var v=D.child;while(v!==null)B=J0(B,J0(v.lanes,v.childLanes)),O|=v.subtreeFlags&v2,O|=v.flags&v2,v.return=D,v=v.sibling}D.subtreeFlags|=O}return D.childLanes=B,F}function Oz(D,F,B){if(yY()&&(F.mode&h0)!==F0&&(F.flags&K0)===SD)return HX(F),h6(),F.flags|=L2|LF|I,!1;var O=q7(F);if(B!==null&&B.dehydrated!==null)if(D===null){if(!O)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(fY(F),$3(F),(F.mode&n0)!==F0){var X=B!==null;if(X){var Z=F.child;if(Z!==null)F.treeBaseDuration-=Z.treeBaseDuration}}return!1}else{if(h6(),(F.flags&K0)===SD)F.memoizedState=null;if(F.flags|=aD,$3(F),(F.mode&n0)!==F0){var $=B!==null;if($){var z=F.child;if(z!==null)F.treeBaseDuration-=z.treeBaseDuration}}return!1}else return NX(),!0}function nU(D,F,B){var O=F.pendingProps;switch(V5(F),F.tag){case ZD:case Q0:case KD:case x:case QD:case jD:case dD:case ID:case PD:case mD:return $3(F),null;case FD:{var X=F.type;if(TF(X))L7(F);return $3(F),null}case BD:{var Z=F.stateNode;if(g6(F),C5(F),GC(),Z.pendingContext)Z.context=Z.pendingContext,Z.pendingContext=null;if(D===null||D.child===null){var $=q7(F);if($)pF(F);else if(D!==null){var z=D.memoizedState;if(!z.isDehydrated||(F.flags&L2)!==SD)F.flags|=M3,NX()}}return X1(D,F),$3(F),null}case i:{_C(F);var R=DC(),P=F.type;if(D!==null&&F.stateNode!=null){if(W4(D,F,P,O,R),D.ref!==F.ref)lU(F)}else{if(!O){if(F.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 $3(F),null}var v=i_(),g=q7(F);if(g){if(VY(F,R,v))pF(F)}else{var a=q2(P,O,R,v,F);if(G1(a,F,!1,!1),F.stateNode=a,x3(a,P,O,R,v))pF(F)}if(F.ref!==null)lU(F)}return $3(F),null}case RD:{var _D=O;if(D&&F.stateNode!=null){var UD=D.memoizedProps;J4(D,F,UD,_D)}else{if(typeof _D!=="string"){if(F.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 GD=DC(),xD=i_(),C0=q7(F);if(C0){if(hY(F))pF(F)}else F.stateNode=m3(_D,GD,xD,F)}return $3(F),null}case ED:{m6(F);var tD=F.memoizedState;if(D===null||D.memoizedState!==null&&D.memoizedState.dehydrated!==null){var p0=Oz(D,F,tD);if(!p0)if(F.flags&I)return F;else return null}if((F.flags&K0)!==SD){if(F.lanes=B,(F.mode&n0)!==F0)SC(F);return F}var T0=tD!==null,c=D!==null&&D.memoizedState!==null;if(T0!==c){if(T0){var e=F.child;if(e.flags|=X3,(F.mode&h0)!==F0){var m=D===null&&(F.memoizedProps.unstable_avoidThisFallback!==!0||!V);if(m||CC(zF.current,pX))MR();else TB()}}}var zD=F.updateQueue;if(zD!==null)F.flags|=aD;if($3(F),(F.mode&n0)!==F0){if(T0){var iD=F.child;if(iD!==null)F.treeBaseDuration-=iD.treeBaseDuration}}return null}case XD:if(g6(F),X1(D,F),D===null)r1(F.stateNode.containerInfo);return $3(F),null;case oD:var fD=F.type._context;return n5(fD,F),$3(F),null;case E0:{var I0=F.type;if(TF(I0))L7(F);return $3(F),null}case MD:{m6(F);var U0=F.memoizedState;if(U0===null)return $3(F),null;var g0=(F.flags&K0)!==SD,q0=U0.rendering;if(q0===null)if(!g0){var C2=qR()&&(D===null||(D.flags&K0)===SD);if(!C2){var D0=F.child;while(D0!==null){var S2=p7(D0);if(S2!==null){g0=!0,F.flags|=K0,U1(U0,!1);var I3=S2.updateQueue;if(I3!==null)F.updateQueue=I3,F.flags|=aD;return F.subtreeFlags=SD,sY(F,B),H8(F,BC(zF.current,n_)),F.child}D0=D0.sibling}}if(U0.tail!==null&&F3()>Ku())F.flags|=K0,g0=!0,U1(U0,!1),F.lanes=dG}else U1(U0,!1);else{if(!g0){var K3=p7(q0);if(K3!==null){F.flags|=K0,g0=!0;var DF=K3.updateQueue;if(DF!==null)F.updateQueue=DF,F.flags|=aD;if(U1(U0,!0),U0.tail===null&&U0.tailMode==="hidden"&&!q0.alternate&&!L3())return $3(F),null}else if(F3()*2-U0.renderingStartTime>Ku()&&B!==r3)F.flags|=K0,g0=!0,U1(U0,!1),F.lanes=dG}if(U0.isBackwards)q0.sibling=F.child,F.child=q0;else{var h3=U0.last;if(h3!==null)h3.sibling=q0;else F.child=q0;U0.last=q0}}if(U0.tail!==null){var f3=U0.tail;U0.rendering=f3,U0.tail=f3.sibling,U0.renderingStartTime=F3(),f3.sibling=null;var k3=zF.current;if(g0)k3=BC(k3,n_);else k3=x6(k3);return H8(F,k3),f3}return $3(F),null}case v0:break;case kD:case JD:{vB(F);var X8=F.memoizedState,D_=X8!==null;if(D!==null){var N1=D.memoizedState,aF=N1!==null;if(aF!==D_&&!w)F.flags|=X3}if(!D_||(F.mode&h0)===F0)$3(F);else if(o3(iF,r3)){if($3(F),E3){if(F.subtreeFlags&(S0|aD))F.flags|=X3}}return null}case AD:return null;case gD:return null}throw Error("Unknown unit of work tag ("+F.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Gz(D,F,B){switch(V5(F),F.tag){case FD:{var O=F.type;if(TF(O))L7(F);var X=F.flags;if(X&I){if(F.flags=X&~I|K0,(F.mode&n0)!==F0)SC(F);return F}return null}case BD:{var Z=F.stateNode;g6(F),C5(F),GC();var $=F.flags;if(($&I)!==SD&&($&K0)===SD)return F.flags=$&~I|K0,F;return null}case i:return _C(F),null;case ED:{m6(F);var z=F.memoizedState;if(z!==null&&z.dehydrated!==null){if(F.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");h6()}var R=F.flags;if(R&I){if(F.flags=R&~I|K0,(F.mode&n0)!==F0)SC(F);return F}return null}case MD:return m6(F),null;case XD:return g6(F),null;case oD:var P=F.type._context;return n5(P,F),null;case kD:case JD:return vB(F),null;case AD:return null;default:return null}}function aU(D,F,B){switch(V5(F),F.tag){case FD:{var O=F.type.childContextTypes;if(O!==null&&O!==void 0)L7(F);break}case BD:{var X=F.stateNode;g6(F),C5(F),GC();break}case i:{_C(F);break}case XD:g6(F);break;case ED:m6(F);break;case MD:m6(F);break;case oD:var Z=F.type._context;n5(Z,F);break;case kD:case JD:vB(F);break}}function rU(D,F,B,O,X,Z,$,z,R){var P=Array.prototype.slice.call(arguments,3);try{F.apply(B,P)}catch(v){this.onError(v)}}var oU=rU;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var UB=document.createElement("react");oU=function(F,B,O,X,Z,$,z,R,P){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 v=document.createEvent("Event"),g=!1,a=!0,_D=window.event,UD=Object.getOwnPropertyDescriptor(window,"event");function GD(){if(UB.removeEventListener(e,C0,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=_D}var xD=Array.prototype.slice.call(arguments,3);function C0(){g=!0,GD(),B.apply(O,xD),a=!1}var tD,p0=!1,T0=!1;function c(m){if(tD=m.error,p0=!0,tD===null&&m.colno===0&&m.lineno===0)T0=!0;if(m.defaultPrevented){if(tD!=null&&typeof tD==="object")try{tD._suppressLogging=!0}catch(zD){}}}var e="react-"+(F?F:"invokeguardedcallback");if(window.addEventListener("error",c),UB.addEventListener(e,C0,!1),v.initEvent(e,!1,!1),UB.dispatchEvent(v),UD)Object.defineProperty(window,"event",UD);if(g&&a){if(!p0)tD=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(T0)tD=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(tD)}if(window.removeEventListener("error",c),!g)return GD(),rU.apply(this,arguments)}}var Xz=oU,u1=!1,Y4=null,Uz={onError:function(D){u1=!0,Y4=D}};function sU(D,F,B,O,X,Z,$,z,R){u1=!1,Y4=null,Xz.apply(Uz,arguments)}function uz(){return u1}function tU(){if(u1){var D=Y4;return u1=!1,Y4=null,D}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.")}var eU=null;eU=new Set;var K4=!1,W3=!1,Zz=typeof WeakSet==="function"?WeakSet:Set,pD=null,i6=null,n6=null;function Az(D){sU(null,function(){throw D}),tU()}var Lz=function(D,F){if(F.props=D.memoizedProps,F.state=D.memoizedState,D.mode&n0)try{cF(),F.componentWillUnmount()}finally{mF(D)}else F.componentWillUnmount()};function Du(D,F){try{E8(l2,D)}catch(B){t0(D,F,B)}}function uB(D,F,B){try{Lz(D,B)}catch(O){t0(D,F,O)}}function Qz(D,F,B){try{B.componentDidMount()}catch(O){t0(D,F,O)}}function Fu(D,F){try{Bu(D)}catch(B){t0(D,F,B)}}function a6(D,F){var B=D.ref;if(B!==null)if(typeof B==="function"){var O;try{if(s&&t&&D.mode&n0)try{cF(),O=B(null)}finally{mF(D)}else O=B(null)}catch(X){t0(D,F,X)}if(typeof O==="function")L("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",hD(D))}else B.current=null}function z4(D,F,B){try{B()}catch(O){t0(D,F,O)}}var _u=null,Cu=!1;function $z(D,F){_u=b0(D.containerInfo),pD=F,Wz();var B=Cu;return Cu=!1,_u=null,B}function Wz(){while(pD!==null){var D=pD,F=D.child;if((D.subtreeFlags&Q2)!==SD&&F!==null)F.return=D,pD=F;else Jz()}}function Jz(){while(pD!==null){var D=pD;h2(D);try{Yz(D)}catch(B){t0(D,D.return,B)}T3();var F=D.sibling;if(F!==null){F.return=D.return,pD=F;return}pD=D.return}}function Yz(D){var{alternate:F,flags:B}=D;if((B&M3)!==SD){switch(h2(D),D.tag){case x:case QD:case KD:break;case FD:{if(F!==null){var{memoizedProps:O,memoizedState:X}=F,Z=D.stateNode;if(D.type===D.elementType&&!e8){if(Z.props!==D.memoizedProps)L("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.",hD(D)||"instance");if(Z.state!==D.memoizedState)L("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.",hD(D)||"instance")}var $=Z.getSnapshotBeforeUpdate(D.elementType===D.type?O:HF(D.type,O),X);{var z=eU;if($===void 0&&!z.has(D.type))z.add(D.type),L("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",hD(D))}Z.__reactInternalSnapshotBeforeUpdate=$}break}case BD:{if(E3){var R=D.stateNode;k(R.containerInfo)}break}case i:case RD:case XD:case E0: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.")}T3()}}function MF(D,F,B){var O=F.updateQueue,X=O!==null?O.lastEffect:null;if(X!==null){var Z=X.next,$=Z;do{if(($.tag&D)===D){var z=$.destroy;if($.destroy=void 0,z!==void 0){if((D&Q3)!==c3)uY(F);else if((D&l2)!==c3)XX(F);if((D&yF)!==c3)H1(!0);if(z4(F,B,z),(D&yF)!==c3)H1(!1);if((D&Q3)!==c3)ZY();else if((D&l2)!==c3)UX()}}$=$.next}while($!==Z)}}function E8(D,F){var B=F.updateQueue,O=B!==null?B.lastEffect:null;if(O!==null){var X=O.next,Z=X;do{if((Z.tag&D)===D){if((D&Q3)!==c3)XY(F);else if((D&l2)!==c3)AY(F);var $=Z.create;if((D&yF)!==c3)H1(!0);if(Z.destroy=$(),(D&yF)!==c3)H1(!1);if((D&Q3)!==c3)UY();else if((D&l2)!==c3)LY();{var z=Z.destroy;if(z!==void 0&&typeof z!=="function"){var R=void 0;if((Z.tag&l2)!==SD)R="useLayoutEffect";else if((Z.tag&yF)!==SD)R="useInsertionEffect";else R="useEffect";var P=void 0;if(z===null)P=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof z.then==="function")P=`
|
|
102
|
+
|
|
103
|
+
It looks like you wrote `+R+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
104
|
+
|
|
105
|
+
`+R+`(() => {
|
|
106
|
+
async function fetchData() {
|
|
107
|
+
// You can await here
|
|
108
|
+
const response = await MyAPI.getData(someId);
|
|
109
|
+
// ...
|
|
110
|
+
}
|
|
111
|
+
fetchData();
|
|
112
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
113
|
+
|
|
114
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else P=" You returned: "+z;L("%s must not return anything besides a function, which is used for clean-up.%s",R,P)}}}Z=Z.next}while(Z!==X)}}function Kz(D,F){if((F.flags&aD)!==SD)switch(F.tag){case ID:{var B=F.stateNode.passiveEffectDuration,O=F.memoizedProps,X=O.id,Z=O.onPostCommit,$=WU(),z=F.alternate===null?"mount":"update";if($U())z="nested-update";if(typeof Z==="function")Z(X,z,B,$);var R=F.return;D:while(R!==null){switch(R.tag){case BD:var P=R.stateNode;P.passiveEffectDuration+=B;break D;case ID:var v=R.stateNode;v.passiveEffectDuration+=B;break D}R=R.return}break}}}function zz(D,F,B,O){if((B.flags&i0)!==SD)switch(B.tag){case x:case QD:case KD:{if(!W3)if(B.mode&n0)try{cF(),E8(l2|p2,B)}finally{mF(B)}else E8(l2|p2,B);break}case FD:{var X=B.stateNode;if(B.flags&aD){if(!W3)if(F===null){if(B.type===B.elementType&&!e8){if(X.props!==B.memoizedProps)L("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.",hD(B)||"instance");if(X.state!==B.memoizedState)L("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.",hD(B)||"instance")}if(B.mode&n0)try{cF(),X.componentDidMount()}finally{mF(B)}else X.componentDidMount()}else{var Z=B.elementType===B.type?F.memoizedProps:HF(B.type,F.memoizedProps),$=F.memoizedState;if(B.type===B.elementType&&!e8){if(X.props!==B.memoizedProps)L("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.",hD(B)||"instance");if(X.state!==B.memoizedState)L("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.",hD(B)||"instance")}if(B.mode&n0)try{cF(),X.componentDidUpdate(Z,$,X.__reactInternalSnapshotBeforeUpdate)}finally{mF(B)}else X.componentDidUpdate(Z,$,X.__reactInternalSnapshotBeforeUpdate)}}var z=B.updateQueue;if(z!==null){if(B.type===B.elementType&&!e8){if(X.props!==B.memoizedProps)L("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.",hD(B)||"instance");if(X.state!==B.memoizedState)L("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.",hD(B)||"instance")}xX(B,z,X)}break}case BD:{var R=B.updateQueue;if(R!==null){var P=null;if(B.child!==null)switch(B.child.tag){case i:P=ND(B.child.stateNode);break;case FD:P=B.child.stateNode;break}xX(B,R,P)}break}case i:{var v=B.stateNode;if(F===null&&B.flags&aD){var{type:g,memoizedProps:a}=B;_7(v,g,a,B)}break}case RD:break;case XD:break;case ID:{{var _D=B.memoizedProps,UD=_D.onCommit,GD=_D.onRender,xD=B.stateNode.effectDuration,C0=WU(),tD=F===null?"mount":"update";if($U())tD="nested-update";if(typeof GD==="function")GD(B.memoizedProps.id,tD,B.actualDuration,B.treeBaseDuration,B.actualStartTime,C0);{if(typeof UD==="function")UD(B.memoizedProps.id,tD,xD,C0);vR(B);var p0=B.return;D:while(p0!==null){switch(p0.tag){case BD:var T0=p0.stateNode;T0.effectDuration+=xD;break D;case ID:var c=p0.stateNode;c.effectDuration+=xD;break D}p0=p0.return}}}break}case ED:{Iz(D,B);break}case MD:case E0:case v0:case kD:case JD:case gD: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(!W3){if(B.flags&N3)Bu(B)}}function Rz(D){switch(D.tag){case x:case QD:case KD:{if(D.mode&n0)try{cF(),Du(D,D.return)}finally{mF(D)}else Du(D,D.return);break}case FD:{var F=D.stateNode;if(typeof F.componentDidMount==="function")Qz(D,D.return,F);Fu(D,D.return);break}case i:{Fu(D,D.return);break}}}function Hz(D,F){var B=null;if(E3){var O=D;while(!0){if(O.tag===i){if(B===null){B=O;try{var X=O.stateNode;if(F)p9(X);else d9(O.stateNode,O.memoizedProps)}catch($){t0(D,D.return,$)}}}else if(O.tag===RD){if(B===null)try{var Z=O.stateNode;if(F)l9(Z);else K(Z,O.memoizedProps)}catch($){t0(D,D.return,$)}}else if((O.tag===kD||O.tag===JD)&&O.memoizedState!==null&&O!==D);else if(O.child!==null){O.child.return=O,O=O.child;continue}if(O===D)return;while(O.sibling===null){if(O.return===null||O.return===D)return;if(B===O)B=null;O=O.return}if(B===O)B=null;O.sibling.return=O.return,O=O.sibling}}}function Bu(D){var F=D.ref;if(F!==null){var B=D.stateNode,O;switch(D.tag){case i:O=ND(B);break;default:O=B}if(typeof F==="function"){var X;if(D.mode&n0)try{cF(),X=F(O)}finally{mF(D)}else X=F(O);if(typeof X==="function")L("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",hD(D))}else{if(!F.hasOwnProperty("current"))L("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",hD(D));F.current=O}}}function Nz(D){var F=D.alternate;if(F!==null)F.return=null;D.return=null}function Ou(D){var F=D.alternate;if(F!==null)D.alternate=null,Ou(F);{if(D.child=null,D.deletions=null,D.sibling=null,D.tag===i){var B=D.stateNode;if(B!==null)y9(B)}D.stateNode=null,D._debugOwner=null,D.return=null,D.dependencies=null,D.memoizedProps=null,D.memoizedState=null,D.pendingProps=null,D.stateNode=null,D.updateQueue=null}}function Mz(D){if(!j8)return;var F=D.stateNode,B=F.containerInfo,O=o(B);cD(B,O)}function Ez(D){var F=D.return;while(F!==null){if(Gu(F))return F;F=F.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Gu(D){return D.tag===i||D.tag===BD||D.tag===XD}function Xu(D){var F=D;D:while(!0){while(F.sibling===null){if(F.return===null||Gu(F.return))return null;F=F.return}F.sibling.return=F.return,F=F.sibling;while(F.tag!==i&&F.tag!==RD&&F.tag!==yD){if(F.flags&S0)continue D;if(F.child===null||F.tag===XD)continue D;else F.child.return=F,F=F.child}if(!(F.flags&S0))return F.stateNode}}function qz(D){if(!E3)return;var F=Ez(D);switch(F.tag){case i:{var B=F.stateNode;if(F.flags&E2)B7(B),F.flags&=~E2;var O=Xu(D);AB(D,O,B);break}case BD:case XD:{var X=F.stateNode.containerInfo,Z=Xu(D);ZB(D,Z,X);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ZB(D,F,B){var O=D.tag,X=O===i||O===RD;if(X){var Z=D.stateNode;if(F)R_(B,Z,F);else c9(B,Z)}else if(O===XD);else{var $=D.child;if($!==null){ZB($,F,B);var z=$.sibling;while(z!==null)ZB(z,F,B),z=z.sibling}}}function AB(D,F,B){var O=D.tag,X=O===i||O===RD;if(X){var Z=D.stateNode;if(F)N6(B,Z,F);else H6(B,Z)}else if(O===XD);else{var $=D.child;if($!==null){AB($,F,B);var z=$.sibling;while(z!==null)AB(z,F,B),z=z.sibling}}}var J3=null,EF=!1;function Pz(D,F,B){if(E3){var O=F;D:while(O!==null){switch(O.tag){case i:{J3=O.stateNode,EF=!1;break D}case BD:{J3=O.stateNode.containerInfo,EF=!0;break D}case XD:{J3=O.stateNode.containerInfo,EF=!0;break D}}O=O.return}if(J3===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");LB(D,F,B),J3=null,EF=!1}else LB(D,F,B);Nz(B)}function lF(D,F,B){var O=B.child;while(O!==null)LB(D,F,O),O=O.sibling}function LB(D,F,B){switch(CY(B),B.tag){case i:if(!W3)a6(B,F);case RD:{if(E3){var O=J3,X=EF;if(J3=null,lF(D,F,B),J3=O,EF=X,J3!==null)if(EF)N_(J3,B.stateNode);else H_(J3,B.stateNode)}else lF(D,F,B);return}case yD:{if(E3){if(J3!==null)if(EF)OJ(J3,B.stateNode);else BJ(J3,B.stateNode)}return}case XD:{if(E3){var Z=J3,$=EF;J3=B.stateNode.containerInfo,EF=!0,lF(D,F,B),J3=Z,EF=$}else Mz(B),lF(D,F,B);return}case x:case QD:case mD:case KD:{if(!W3){var z=B.updateQueue;if(z!==null){var R=z.lastEffect;if(R!==null){var P=R.next,v=P;do{var g=v,a=g.destroy,_D=g.tag;if(a!==void 0){if((_D&yF)!==c3)z4(B,F,a);else if((_D&l2)!==c3){if(XX(B),B.mode&n0)cF(),z4(B,F,a),mF(B);else z4(B,F,a);UX()}}v=v.next}while(v!==P)}}}lF(D,F,B);return}case FD:{if(!W3){a6(B,F);var UD=B.stateNode;if(typeof UD.componentWillUnmount==="function")uB(B,F,UD)}lF(D,F,B);return}case v0:{lF(D,F,B);return}case kD:{if(B.mode&h0){var GD=W3;W3=GD||B.memoizedState!==null,lF(D,F,B),W3=GD}else lF(D,F,B);break}default:{lF(D,F,B);return}}}function wz(D){var F=D.memoizedState}function Iz(D,F){if(!U3)return;var B=F.memoizedState;if(B===null){var O=F.alternate;if(O!==null){var X=O.memoizedState;if(X!==null){var Z=X.dehydrated;if(Z!==null)CJ(Z)}}}}function Uu(D){var F=D.updateQueue;if(F!==null){D.updateQueue=null;var B=D.stateNode;if(B===null)B=D.stateNode=new Zz;F.forEach(function(O){var X=jR.bind(null,D,O);if(!B.has(O)){if(B.add(O),JF)if(i6!==null&&n6!==null)R1(n6,i6);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");O.then(X,X)}})}}function kz(D,F,B){i6=B,n6=D,h2(F),uu(F,D),h2(F),i6=null,n6=null}function qF(D,F,B){var O=F.deletions;if(O!==null)for(var X=0;X<O.length;X++){var Z=O[X];try{Pz(D,F,Z)}catch(R){t0(Z,F,R)}}var $=dY();if(F.subtreeFlags&y0){var z=F.child;while(z!==null)h2(z),uu(z,D),z=z.sibling}h2($)}function uu(D,F,B){var{alternate:O,flags:X}=D;switch(D.tag){case x:case QD:case mD:case KD:{if(qF(F,D),dF(D),X&aD){try{MF(yF|p2,D,D.return),E8(yF|p2,D)}catch(D0){t0(D,D.return,D0)}if(D.mode&n0){try{cF(),MF(l2|p2,D,D.return)}catch(D0){t0(D,D.return,D0)}mF(D)}else try{MF(l2|p2,D,D.return)}catch(D0){t0(D,D.return,D0)}}return}case FD:{if(qF(F,D),dF(D),X&N3){if(O!==null)a6(O,O.return)}return}case i:{if(qF(F,D),dF(D),X&N3){if(O!==null)a6(O,O.return)}if(E3){if(D.flags&E2){var Z=D.stateNode;try{B7(Z)}catch(D0){t0(D,D.return,D0)}}if(X&aD){var $=D.stateNode;if($!=null){var z=D.memoizedProps,R=O!==null?O.memoizedProps:z,P=D.type,v=D.updateQueue;if(D.updateQueue=null,v!==null)try{C7($,v,P,R,z,D)}catch(D0){t0(D,D.return,D0)}}}}return}case RD:{if(qF(F,D),dF(D),X&aD){if(E3){if(D.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:g,memoizedProps:a}=D,_D=O!==null?O.memoizedProps:a;try{Q8(g,_D,a)}catch(D0){t0(D,D.return,D0)}}}return}case BD:{if(qF(F,D),dF(D),X&aD){if(E3&&U3){if(O!==null){var UD=O.memoizedState;if(UD.isDehydrated)try{_J(F.containerInfo)}catch(D0){t0(D,D.return,D0)}}}if(j8){var{containerInfo:GD,pendingChildren:xD}=F;try{cD(GD,xD)}catch(D0){t0(D,D.return,D0)}}}return}case XD:{if(qF(F,D),dF(D),X&aD){if(j8){var C0=D.stateNode,tD=C0.containerInfo,p0=C0.pendingChildren;try{cD(tD,p0)}catch(D0){t0(D,D.return,D0)}}}return}case ED:{qF(F,D),dF(D);var T0=D.child;if(T0.flags&X3){var{stateNode:c,memoizedState:e}=T0,m=e!==null;if(c.isHidden=m,m){var zD=T0.alternate!==null&&T0.alternate.memoizedState!==null;if(!zD)NR()}}if(X&aD){try{wz(D)}catch(D0){t0(D,D.return,D0)}Uu(D)}return}case kD:{var iD=O!==null&&O.memoizedState!==null;if(D.mode&h0){var fD=W3;W3=fD||iD,qF(F,D),W3=fD}else qF(F,D);if(dF(D),X&X3){var{stateNode:I0,memoizedState:U0}=D,g0=U0!==null,q0=D;if(I0.isHidden=g0,g0){if(!iD){if((q0.mode&h0)!==F0){pD=q0;var C2=q0.child;while(C2!==null)pD=C2,Tz(C2),C2=C2.sibling}}}if(E3)Hz(q0,g0)}return}case MD:{if(qF(F,D),dF(D),X&aD)Uu(D);return}case v0:return;default:{qF(F,D),dF(D);return}}}function dF(D){var F=D.flags;if(F&S0){try{qz(D)}catch(B){t0(D,D.return,B)}D.flags&=~S0}if(F&k2)D.flags&=~k2}function vz(D,F,B){i6=B,n6=F,pD=D,Zu(D,F,B),i6=null,n6=null}function Zu(D,F,B){var O=(D.mode&h0)!==F0;while(pD!==null){var X=pD,Z=X.child;if(X.tag===kD&&O){var $=X.memoizedState!==null,z=$||K4;if(z){QB(D,F,B);continue}else{var R=X.alternate,P=R!==null&&R.memoizedState!==null,v=P||W3,g=K4,a=W3;if(K4=z,W3=v,W3&&!a)pD=X,Sz(X);var _D=Z;while(_D!==null)pD=_D,Zu(_D,F,B),_D=_D.sibling;pD=X,K4=g,W3=a,QB(D,F,B);continue}}if((X.subtreeFlags&i0)!==SD&&Z!==null)Z.return=X,pD=Z;else QB(D,F,B)}}function QB(D,F,B){while(pD!==null){var O=pD;if((O.flags&i0)!==SD){var X=O.alternate;h2(O);try{zz(F,X,O,B)}catch($){t0(O,O.return,$)}T3()}if(O===D){pD=null;return}var Z=O.sibling;if(Z!==null){Z.return=O.return,pD=Z;return}pD=O.return}}function Tz(D){while(pD!==null){var F=pD,B=F.child;switch(F.tag){case x:case QD:case mD:case KD:{if(F.mode&n0)try{cF(),MF(l2,F,F.return)}finally{mF(F)}else MF(l2,F,F.return);break}case FD:{a6(F,F.return);var O=F.stateNode;if(typeof O.componentWillUnmount==="function")uB(F,F.return,O);break}case i:{a6(F,F.return);break}case kD:{var X=F.memoizedState!==null;if(X){Au(D);continue}break}}if(B!==null)B.return=F,pD=B;else Au(D)}}function Au(D){while(pD!==null){var F=pD;if(F===D){pD=null;return}var B=F.sibling;if(B!==null){B.return=F.return,pD=B;return}pD=F.return}}function Sz(D){while(pD!==null){var F=pD,B=F.child;if(F.tag===kD){var O=F.memoizedState!==null;if(O){Lu(D);continue}}if(B!==null)B.return=F,pD=B;else Lu(D)}}function Lu(D){while(pD!==null){var F=pD;h2(F);try{Rz(F)}catch(O){t0(F,F.return,O)}if(T3(),F===D){pD=null;return}var B=F.sibling;if(B!==null){B.return=F.return,pD=B;return}pD=F.return}}function bz(D,F,B,O){pD=F,Vz(F,D,B,O)}function Vz(D,F,B,O){while(pD!==null){var X=pD,Z=X.child;if((X.subtreeFlags&$2)!==SD&&Z!==null)Z.return=X,pD=Z;else hz(D,F,B,O)}}function hz(D,F,B,O){while(pD!==null){var X=pD;if((X.flags&f2)!==SD){h2(X);try{fz(F,X,B,O)}catch($){t0(X,X.return,$)}T3()}if(X===D){pD=null;return}var Z=X.sibling;if(Z!==null){Z.return=X.return,pD=Z;return}pD=X.return}}function fz(D,F,B,O){switch(F.tag){case x:case QD:case KD:{if(F.mode&n0){TC();try{E8(Q3|p2,F)}finally{vC(F)}}else E8(Q3|p2,F);break}}}function jz(D){pD=D,yz()}function yz(){while(pD!==null){var D=pD,F=D.child;if((pD.flags&O2)!==SD){var B=D.deletions;if(B!==null){for(var O=0;O<B.length;O++){var X=B[O];pD=X,mz(X,D)}{var Z=D.alternate;if(Z!==null){var $=Z.child;if($!==null){Z.child=null;do{var z=$.sibling;$.sibling=null,$=z}while($!==null)}}}pD=D}}if((D.subtreeFlags&$2)!==SD&&F!==null)F.return=D,pD=F;else gz()}}function gz(){while(pD!==null){var D=pD;if((D.flags&f2)!==SD)h2(D),xz(D),T3();var F=D.sibling;if(F!==null){F.return=D.return,pD=F;return}pD=D.return}}function xz(D){switch(D.tag){case x:case QD:case KD:{if(D.mode&n0)TC(),MF(Q3|p2,D,D.return),vC(D);else MF(Q3|p2,D,D.return);break}}}function mz(D,F){while(pD!==null){var B=pD;h2(B),pz(B,F),T3();var O=B.child;if(O!==null)O.return=B,pD=O;else cz(D)}}function cz(D){while(pD!==null){var F=pD,B=F.sibling,O=F.return;if(Ou(F),F===D){pD=null;return}if(B!==null){B.return=O,pD=B;return}pD=O}}function pz(D,F){switch(D.tag){case x:case QD:case KD:{if(D.mode&n0)TC(),MF(Q3,D,F),vC(D);else MF(Q3,D,F);break}}}function lz(D){switch(D.tag){case x:case QD:case KD:{try{E8(l2|p2,D)}catch(B){t0(D,D.return,B)}break}case FD:{var F=D.stateNode;try{F.componentDidMount()}catch(B){t0(D,D.return,B)}break}}}function dz(D){switch(D.tag){case x:case QD:case KD:{try{E8(Q3|p2,D)}catch(F){t0(D,D.return,F)}break}}}function iz(D){switch(D.tag){case x:case QD:case KD:{try{MF(l2|p2,D,D.return)}catch(B){t0(D,D.return,B)}break}case FD:{var F=D.stateNode;if(typeof F.componentWillUnmount==="function")uB(D,D.return,F);break}}}function nz(D){switch(D.tag){case x:case QD:case KD:try{MF(Q3|p2,D,D.return)}catch(F){t0(D,D.return,F)}}}var R4=0,H4=1,N4=2,M4=3,E4=4;if(typeof Symbol==="function"&&Symbol.for){var Z1=Symbol.for;R4=Z1("selector.component"),H4=Z1("selector.has_pseudo_class"),N4=Z1("selector.role"),M4=Z1("selector.test_id"),E4=Z1("selector.text")}function az(D){return{$$typeof:R4,value:D}}function rz(D){return{$$typeof:H4,value:D}}function oz(D){return{$$typeof:N4,value:D}}function sz(D){return{$$typeof:E4,value:D}}function tz(D){return{$$typeof:M4,value:D}}function $B(D){var F=f9(D);if(F!=null){if(typeof F.memoizedProps["data-testname"]!=="string")throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return F}else{var B=g9(D);if(B===null)throw Error("Could not find React container within specified host subtree.");return B.stateNode.current}}function WB(D,F){switch(F.$$typeof){case R4:if(D.type===F.value)return!0;break;case H4:return ez(D,F.value);case N4:if(D.tag===i){var B=D.stateNode;if(x9(B,F.value))return!0}break;case E4:if(D.tag===i||D.tag===RD){var O=D7(D);if(O!==null&&O.indexOf(F.value)>=0)return!0}break;case M4:if(D.tag===i){var X=D.memoizedProps["data-testname"];if(typeof X==="string"&&X.toLowerCase()===F.value.toLowerCase())return!0}break;default:throw Error("Invalid selector type specified.")}return!1}function JB(D){switch(D.$$typeof){case R4:var F=YD(D.value)||"Unknown";return"<"+F+">";case H4:return":has("+(JB(D)||"")+")";case N4:return'[role="'+D.value+'"]';case E4:return'"'+D.value+'"';case M4:return'[data-testname="'+D.value+'"]';default:throw Error("Invalid selector type specified.")}}function Qu(D,F){var B=[],O=[D,0],X=0;while(X<O.length){var Z=O[X++],$=O[X++],z=F[$];if(Z.tag===i&&g8(Z))continue;else while(z!=null&&WB(Z,z))$++,z=F[$];if($===F.length)B.push(Z);else{var R=Z.child;while(R!==null)O.push(R,$),R=R.sibling}}return B}function ez(D,F){var B=[D,0],O=0;while(O<B.length){var X=B[O++],Z=B[O++],$=F[Z];if(X.tag===i&&g8(X))continue;else while($!=null&&WB(X,$))Z++,$=F[Z];if(Z===F.length)return!0;else{var z=X.child;while(z!==null)B.push(z,Z),z=z.sibling}}return!1}function q4(D,F){if(!oF)throw Error("Test selector API is not supported by this renderer.");var B=$B(D),O=Qu(B,F),X=[],Z=Array.from(O),$=0;while($<Z.length){var z=Z[$++];if(z.tag===i){if(g8(z))continue;X.push(z.stateNode)}else{var R=z.child;while(R!==null)Z.push(R),R=R.sibling}}return X}function DR(D,F){if(!oF)throw Error("Test selector API is not supported by this renderer.");var B=$B(D),O=0,X=[],Z=[B,0],$=0;while($<Z.length){var z=Z[$++],R=Z[$++],P=F[R];if(z.tag===i&&g8(z))continue;else if(WB(z,P)){if(X.push(JB(P)),R++,R>O)O=R}if(R<F.length){var v=z.child;while(v!==null)Z.push(v,R),v=v.sibling}}if(O<F.length){var g=[];for(var a=O;a<F.length;a++)g.push(JB(F[a]));return`findAllNodes was able to match part of the selector:
|
|
115
|
+
`+(" "+X.join(" > ")+`
|
|
116
|
+
|
|
117
|
+
`)+`No matching component was found for:
|
|
118
|
+
`+(" "+g.join(" > "))}return null}function FR(D,F){if(!oF)throw Error("Test selector API is not supported by this renderer.");var B=q4(D,F),O=[];for(var X=0;X<B.length;X++)O.push(e1(B[X]));for(var Z=O.length-1;Z>0;Z--){var $=O[Z],z=$.x,R=z+$.width,P=$.y,v=P+$.height;for(var g=Z-1;g>=0;g--)if(Z!==g){var a=O[g],_D=a.x,UD=_D+a.width,GD=a.y,xD=GD+a.height;if(z>=_D&&P>=GD&&R<=UD&&v<=xD){O.splice(Z,1);break}else if(z===_D&&$.width===a.width&&!(xD<P)&&!(GD>v)){if(GD>P)a.height+=GD-P,a.y=P;if(xD<v)a.height=v-GD;O.splice(Z,1);break}else if(P===GD&&$.height===a.height&&!(UD<z)&&!(_D>R)){if(_D>z)a.width+=_D-z,a.x=z;if(UD<R)a.width=R-_D;O.splice(Z,1);break}}}return O}function _R(D,F){if(!oF)throw Error("Test selector API is not supported by this renderer.");var B=$B(D),O=Qu(B,F),X=Array.from(O),Z=0;while(Z<X.length){var $=X[Z++];if(g8($))continue;if($.tag===i){var z=$.stateNode;if(m9(z))return!0}var R=$.child;while(R!==null)X.push(R),R=R.sibling}return!1}var P4=[];function CR(){if(oF)P4.forEach(function(D){return D()})}function BR(D,F,B,O){if(!oF)throw Error("Test selector API is not supported by this renderer.");var X=q4(D,F),Z=F7(X,B,O),$=Z.disconnect,z=Z.observe,R=Z.unobserve,P=function(){var v=q4(D,F);X.forEach(function(g){if(v.indexOf(g)<0)R(g)}),v.forEach(function(g){if(X.indexOf(g)<0)z(g)})};return P4.push(P),{disconnect:function(){var v=P4.indexOf(P);if(v>=0)P4.splice(v,1);$()}}}var OR=G.ReactCurrentActQueue;function GR(D){{var F=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,B=typeof jest<"u";return R6&&B&&F!==!1}}function $u(){{var D=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!D&&OR.current!==null)L("The current testing environment is not configured to support act(...)");return D}}var XR=Math.ceil,YB=G.ReactCurrentDispatcher,KB=G.ReactCurrentOwner,P2=G.ReactCurrentBatchConfig,PF=G.ReactCurrentActQueue,y2=0,zB=1,Y3=2,uF=4,O8=0,A1=1,D6=2,w4=3,L1=4,Wu=5,RB=6,R0=y2,V3=null,w2=null,n2=uD,iF=uD,HB=J8(uD),a2=O8,Q1=null,NB=uD,I4=uD,$1=uD,k4=uD,W1=null,p3=null,MB=0,Ju=500,Yu=1/0,UR=500,G8=null;function r6(){Yu=F3()+UR}function Ku(){return Yu}var v4=!1,EB=null,o6=null,F6=!1,q8=null,J1=uD,qB=[],PB=null,uR=50,Y1=0,wB=null,IB=!1,T4=!1,ZR=50,s6=0,S4=null,K1=u2,b4=uD,zu=!1;function V4(){return V3}function w3(){if((R0&(Y3|uF))!==y2)return F3();if(K1!==u2)return K1;return K1=F3(),K1}function P8(D){var F=D.mode;if((F&h0)===F0)return X0;else if((R0&Y3)!==y2&&n2!==uD)return k_(n2);var B=mY()!==xY;if(B){if(P2.transition!==null){var O=P2.transition;if(!O._updatedFibers)O._updatedFibers=new Set;O._updatedFibers.add(D)}if(b4===e2)b4=rG();return b4}var X=WF();if(X!==e2)return X;var Z=o1();return Z}function AR(D){var F=D.mode;if((F&h0)===F0)return X0;return xJ()}function g2(D,F,B,O){if(gR(),zu)L("useInsertionEffect must not schedule updates.");if(IB)T4=!0;if(v_(D,B,O),(R0&Y3)!==uD&&D===V3)cR(F);else{if(JF)tG(D,F,B);if(pR(F),D===V3){if((R0&Y3)===y2)$1=J0($1,B);if(a2===L1)w8(D,n2)}if(l3(D,O),B===X0&&R0===y2&&(F.mode&h0)===F0&&!PF.isBatchingLegacy)r6(),LX()}}function LR(D,F,B){var O=D.current;O.lanes=F,v_(D,F,B),l3(D,B)}function QR(D){return(R0&Y3)!==y2}function l3(D,F){var B=D.callbackNode;VJ(D,F);var O=Y7(D,D===V3?n2:uD);if(O===uD){if(B!==null)Vu(B);D.callbackNode=null,D.callbackPriority=e2;return}var X=c8(O),Z=D.callbackPriority;if(Z===X&&!(PF.current!==null&&B!==VB)){if(B==null&&Z!==X0)L("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(B!=null)Vu(B);var $;if(X===X0){if(D.tag===P6){if(PF.isBatchingLegacy!==null)PF.didScheduleLegacyUpdate=!0;MY(Nu.bind(null,D))}else AX(Nu.bind(null,D));if(s1)if(PF.current!==null)PF.current.push(fF);else t1(function(){if((R0&(Y3|uF))===y2)fF()});else x4(H7,fF);$=null}else{var z;switch(_X(O)){case VF:z=H7;break;case T_:z=BX;break;case S_:z=T6;break;case k5:z=OX;break;default:z=T6;break}$=x4(z,Ru.bind(null,D))}D.callbackPriority=X,D.callbackNode=$}function Ru(D,F){if(KK(),K1=u2,b4=uD,(R0&(Y3|uF))!==y2)throw Error("Should not already be working.");var B=D.callbackNode,O=nF();if(O){if(D.callbackNode!==B)return null}var X=Y7(D,D===V3?n2:uD);if(X===uD)return null;var Z=!K7(D,X)&&!gJ(D,X)&&!F,$=Z?wR(D,X):j4(D,X);if($!==O8){if($===D6){var z=E5(D);if(z!==uD)X=z,$=kB(D,z)}if($===A1){var R=Q1;throw _6(D,uD),w8(D,X),l3(D,F3()),R}if($===RB)w8(D,X);else{var P=!K7(D,X),v=D.current.alternate;if(P&&!WR(v)){if($=j4(D,X),$===D6){var g=E5(D);if(g!==uD)X=g,$=kB(D,g)}if($===A1){var a=Q1;throw _6(D,uD),w8(D,X),l3(D,F3()),a}}D.finishedWork=v,D.finishedLanes=X,$R(D,$,X)}}if(l3(D,F3()),D.callbackNode===B)return Ru.bind(null,D);return null}function kB(D,F){var B=W1;if(QX(D)){var O=_6(D,F);O.flags|=L2,HJ(D.containerInfo)}var X=j4(D,F);if(X!==D6){var Z=p3;if(p3=B,Z!==null)Hu(Z)}return X}function Hu(D){if(p3===null)p3=D;else p3.push.apply(p3,D)}function $R(D,F,B){switch(F){case O8:case A1:throw Error("Root did not complete. This is a bug in React.");case D6:{C6(D,p3,G8);break}case w4:{if(w8(D,B),nG(B)&&!hu()){var O=MB+Ju-F3();if(O>10){var X=Y7(D,uD);if(X!==uD)break;var Z=D.suspendedLanes;if(!v6(Z,B)){var $=w3();sG(D,Z);break}D.timeoutHandle=h8(C6.bind(null,D,p3,G8),O);break}}C6(D,p3,G8);break}case L1:{if(w8(D,B),yJ(B))break;if(!hu()){var z=SJ(D,B),R=z,P=F3()-R,v=yR(P)-P;if(v>10){D.timeoutHandle=h8(C6.bind(null,D,p3,G8),v);break}}C6(D,p3,G8);break}case Wu:{C6(D,p3,G8);break}default:throw Error("Unknown root exit status.")}}function WR(D){var F=D;while(!0){if(F.flags&i3){var B=F.updateQueue;if(B!==null){var O=B.stores;if(O!==null)for(var X=0;X<O.length;X++){var Z=O[X],$=Z.getSnapshot,z=Z.value;try{if(!s3($(),z))return!1}catch(P){return!1}}}}var R=F.child;if(F.subtreeFlags&i3&&R!==null){R.return=F,F=R;continue}if(F===D)return!0;while(F.sibling===null){if(F.return===null||F.return===D)return!0;F=F.return}F.sibling.return=F.return,F=F.sibling}return!0}function w8(D,F){F=z7(F,k4),F=z7(F,$1),cJ(D,F)}function Nu(D){if(zK(),(R0&(Y3|uF))!==y2)throw Error("Should not already be working.");nF();var F=Y7(D,uD);if(!o3(F,X0))return l3(D,F3()),null;var B=j4(D,F);if(D.tag!==P6&&B===D6){var O=E5(D);if(O!==uD)F=O,B=kB(D,O)}if(B===A1){var X=Q1;throw _6(D,uD),w8(D,F),l3(D,F3()),X}if(B===RB)throw Error("Root did not complete. This is a bug in React.");var Z=D.current.alternate;return D.finishedWork=Z,D.finishedLanes=F,C6(D,p3,G8),l3(D,F3()),null}function JR(D,F){if(F!==uD){if(I5(D,J0(F,X0)),l3(D,F3()),(R0&(Y3|uF))===y2)r6(),fF()}}function YR(D){var F=WF(),B=P2.transition;try{return P2.transition=null,D3(S_),D()}finally{D3(F),P2.transition=B}}function KR(D,F){var B=R0;R0|=zB;try{return D(F)}finally{if(R0=B,R0===y2&&!PF.isBatchingLegacy)r6(),LX()}}function zR(D,F,B,O,X){var Z=WF(),$=P2.transition;try{return P2.transition=null,D3(VF),D(F,B,O,X)}finally{if(D3(Z),P2.transition=$,R0===y2)r6()}}function h4(D){if(q8!==null&&q8.tag===P6&&(R0&(Y3|uF))===y2)nF();var F=R0;R0|=zB;var B=P2.transition,O=WF();try{if(P2.transition=null,D3(VF),D)return D();else return}finally{if(D3(O),P2.transition=B,R0=F,(R0&(Y3|uF))===y2)fF()}}function RR(){return(R0&(Y3|uF))!==y2}function HR(D){var F=R0;R0|=zB;var B=P2.transition,O=WF();try{P2.transition=null,D3(VF),D()}finally{if(D3(O),P2.transition=B,R0=F,R0===y2)r6(),fF()}}function f4(D,F){u3(HB,iF,D),iF=J0(iF,F),NB=J0(NB,F)}function vB(D){iF=HB.current,q3(HB,D)}function _6(D,F){D.finishedWork=null,D.finishedLanes=uD;var B=D.timeoutHandle;if(B!==z_)D.timeoutHandle=z_,f8(B);if(w2!==null){var O=w2.return;while(O!==null){var X=O.alternate;aU(X,O),O=O.return}}V3=D;var Z=B6(D.current,null);return w2=Z,n2=iF=NB=F,a2=O8,Q1=null,I4=uD,$1=uD,k4=uD,W1=null,p3=null,DK(),KF.discardPendingWarnings(),Z}function Mu(D,F){do{var B=w2;try{if(b7(),dX(),T3(),KB.current=null,B===null||B.return===null){a2=A1,Q1=F,w2=null;return}if(s&&B.mode&n0)Z4(B,!0);if(S)if(S6(),F!==null&&typeof F==="object"&&typeof F.then==="function"){var O=F;$Y(B,O,n2)}else QY(B,F,n2);IK(D,B.return,B,F,n2),wu(B)}catch(X){if(F=X,w2===B&&B!==null)B=B.return,w2=B;else B=w2;continue}return}while(!0)}function Eu(){var D=YB.current;if(YB.current=O4,D===null)return O4;else return D}function qu(D){YB.current=D}function NR(){MB=F3()}function z1(D){I4=J0(D,I4)}function MR(){if(a2===O8)a2=w4}function TB(){if(a2===O8||a2===w4||a2===D6)a2=L1;if(V3!==null&&(q5(I4)||q5($1)))w8(V3,n2)}function ER(D){if(a2!==L1)a2=D6;if(W1===null)W1=[D];else W1.push(D)}function qR(){return a2===O8}function j4(D,F){var B=R0;R0|=Y3;var O=Eu();if(V3!==D||n2!==F){if(JF){var X=D.memoizedUpdaters;if(X.size>0)R1(D,n2),X.clear();eG(D,F)}G8=DX(),_6(D,F)}uX(F);do try{PR();break}catch(Z){Mu(D,Z)}while(!0);if(b7(),R0=B,qu(O),w2!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ZX(),V3=null,n2=uD,a2}function PR(){while(w2!==null)Pu(w2)}function wR(D,F){var B=R0;R0|=Y3;var O=Eu();if(V3!==D||n2!==F){if(JF){var X=D.memoizedUpdaters;if(X.size>0)R1(D,n2),X.clear();eG(D,F)}G8=DX(),r6(),_6(D,F)}uX(F);do try{IR();break}catch(Z){Mu(D,Z)}while(!0);if(b7(),qu(O),R0=B,w2!==null)return zY(),O8;else return ZX(),V3=null,n2=uD,a2}function IR(){while(w2!==null&&!rJ())Pu(w2)}function Pu(D){var F=D.alternate;h2(D);var B;if((D.mode&n0)!==F0)kC(D),B=SB(F,D,iF),Z4(D,!0);else B=SB(F,D,iF);if(T3(),D.memoizedProps=D.pendingProps,B===null)wu(D);else w2=B;KB.current=null}function wu(D){var F=D;do{var{alternate:B,return:O}=F;if((F.flags&LF)===SD){h2(F);var X=void 0;if((F.mode&n0)===F0)X=nU(B,F,iF);else kC(F),X=nU(B,F,iF),Z4(F,!1);if(T3(),X!==null){w2=X;return}}else{var Z=Gz(B,F);if(Z!==null){Z.flags&=V8,w2=Z;return}if((F.mode&n0)!==F0){Z4(F,!1);var{actualDuration:$,child:z}=F;while(z!==null)$+=z.actualDuration,z=z.sibling;F.actualDuration=$}if(O!==null)O.flags|=LF,O.subtreeFlags=SD,O.deletions=null;else{a2=RB,w2=null;return}}var R=F.sibling;if(R!==null){w2=R;return}F=O,w2=F}while(F!==null);if(a2===O8)a2=Wu}function C6(D,F,B){var O=WF(),X=P2.transition;try{P2.transition=null,D3(VF),kR(D,F,B,O)}finally{P2.transition=X,D3(O)}return null}function kR(D,F,B,O){do nF();while(q8!==null);if(xR(),(R0&(Y3|uF))!==y2)throw Error("Should not already be working.");var{finishedWork:X,finishedLanes:Z}=D;if(GY(Z),X===null)return GX(),null;else if(Z===uD)L("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(D.finishedWork=null,D.finishedLanes=uD,X===D.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");D.callbackNode=null,D.callbackPriority=e2;var $=J0(X.lanes,X.childLanes);if(pJ(D,$),D===V3)V3=null,w2=null,n2=uD;if((X.subtreeFlags&$2)!==SD||(X.flags&$2)!==SD){if(!F6)F6=!0,PB=B,x4(T6,function(){return nF(),null})}var z=(X.subtreeFlags&(Q2|y0|i0|$2))!==SD,R=(X.flags&(Q2|y0|i0|$2))!==SD;if(z||R){var P=P2.transition;P2.transition=null;var v=WF();D3(VF);var g=R0;R0|=uF,KB.current=null;var a=$z(D,X);JU(),kz(D,X,Z),V0(D.containerInfo),D.current=X,WY(Z),vz(X,D,Z),JY(),oJ(),R0=g,D3(v),P2.transition=P}else D.current=X,JU();var _D=F6;if(F6)F6=!1,q8=D,J1=Z;else s6=0,S4=null;if($=D.pendingLanes,$===uD)o6=null;if(!_D)Tu(D.current,!1);if(FY(X.stateNode,O),JF)D.memoizedUpdaters.clear();if(CR(),l3(D,F3()),F!==null){var UD=D.onRecoverableError;for(var GD=0;GD<F.length;GD++){var xD=F[GD],C0=xD.stack,tD=xD.digest;UD(xD.value,{componentStack:C0,digest:tD})}}if(v4){v4=!1;var p0=EB;throw EB=null,p0}if(o3(J1,X0)&&D.tag!==P6)nF();if($=D.pendingLanes,o3($,X0))if(YK(),D===wB)Y1++;else Y1=0,wB=D;else Y1=0;return fF(),GX(),null}function nF(){if(q8!==null){var D=_X(J1),F=nJ(S_,D),B=P2.transition,O=WF();try{return P2.transition=null,D3(F),TR()}finally{D3(O),P2.transition=B}}return!1}function vR(D){if(qB.push(D),!F6)F6=!0,x4(T6,function(){return nF(),null})}function TR(){if(q8===null)return!1;var D=PB;PB=null;var F=q8,B=J1;if(q8=null,J1=uD,(R0&(Y3|uF))!==y2)throw Error("Cannot flush passive effects while already rendering.");IB=!0,T4=!1,YY(B);var O=R0;R0|=uF,jz(F.current),bz(F,F.current,B,D);{var X=qB;qB=[];for(var Z=0;Z<X.length;Z++){var $=X[Z];Kz(F,$)}}KY(),Tu(F.current,!0),R0=O,fF();{if(T4)if(F===S4)s6++;else s6=0,S4=F;else s6=0;IB=!1,T4=!1}_Y(F);{var z=F.current.stateNode;z.effectDuration=0,z.passiveEffectDuration=0}return!0}function Iu(D){return o6!==null&&o6.has(D)}function SR(D){if(o6===null)o6=new Set([D]);else o6.add(D)}function bR(D){if(!v4)v4=!0,EB=D}var VR=bR;function ku(D,F,B){var O=t8(B,F),X=EU(D,O,X0),Z=z8(D,X,X0),$=w3();if(Z!==null)v_(Z,X0,$),l3(Z,$)}function t0(D,F,B){if(Az(B),H1(!1),D.tag===BD){ku(D,D,B);return}var O=null;O=F;while(O!==null){if(O.tag===BD){ku(O,D,B);return}else if(O.tag===FD){var{type:X,stateNode:Z}=O;if(typeof X.getDerivedStateFromError==="function"||typeof Z.componentDidCatch==="function"&&!Iu(Z)){var $=t8(B,D),z=nC(O,$,X0),R=z8(O,z,X0),P=w3();if(R!==null)v_(R,X0,P),l3(R,P);return}}O=O.return}L(`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.
|
|
119
|
+
|
|
120
|
+
Error message:
|
|
121
|
+
|
|
122
|
+
%s`,B)}function hR(D,F,B){var O=D.pingCache;if(O!==null)O.delete(F);var X=w3();if(sG(D,B),lR(D),V3===D&&v6(n2,B))if(a2===L1||a2===w4&&nG(n2)&&F3()-MB<Ju)_6(D,uD);else k4=J0(k4,B);l3(D,X)}function vu(D,F){if(F===e2)F=AR(D);var B=w3(),O=S3(D,F);if(O!==null)v_(O,F,B),l3(O,B)}function fR(D){var F=D.memoizedState,B=e2;if(F!==null)B=F.retryLane;vu(D,B)}function jR(D,F){var B=e2,O;switch(D.tag){case ED:O=D.stateNode;var X=D.memoizedState;if(X!==null)B=X.retryLane;break;case MD:O=D.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(O!==null)O.delete(F);vu(D,B)}function yR(D){return D<120?120:D<480?480:D<1080?1080:D<1920?1920:D<3000?3000:D<4320?4320:XR(D/1960)*1960}function gR(){if(Y1>uR)throw Y1=0,wB=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(s6>ZR)s6=0,S4=null,L("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 xR(){KF.flushLegacyContextWarning(),KF.flushPendingUnsafeLifecycleWarnings()}function Tu(D,F){{if(h2(D),y4(D,G0,iz),F)y4(D,L0,nz);if(y4(D,G0,lz),F)y4(D,L0,dz);T3()}}function y4(D,F,B){{var O=D,X=null;while(O!==null){var Z=O.subtreeFlags&F;if(O!==X&&O.child!==null&&Z!==SD)O=O.child;else{if((O.flags&F)!==SD)B(O);if(O.sibling!==null)O=O.sibling;else O=X=O.return}}}}var g4=null;function Su(D){{if((R0&Y3)!==y2)return;if(!(D.mode&h0))return;var F=D.tag;if(F!==ZD&&F!==BD&&F!==FD&&F!==x&&F!==QD&&F!==mD&&F!==KD)return;var B=hD(D)||"ReactComponent";if(g4!==null){if(g4.has(B))return;g4.add(B)}else g4=new Set([B]);var O=t3;try{h2(D),L("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(O)h2(D);else T3()}}}var SB;{var mR=null;SB=function(D,F,B){var O=xu(mR,F);try{return pU(D,F,B)}catch(Z){if(TY()||Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw Z;if(b7(),dX(),aU(D,F),xu(F,O),F.mode&n0)kC(F);if(sU(null,pU,null,D,F,B),uz()){var X=tU();if(typeof X==="object"&&X!==null&&X._suppressLogging&&typeof Z==="object"&&Z!==null&&!Z._suppressLogging)Z._suppressLogging=!0}throw Z}}}var bu=!1,bB;bB=new Set;function cR(D){if(h_&&!$K())switch(D.tag){case x:case QD:case KD:{var F=w2&&hD(w2)||"Unknown",B=F;if(!bB.has(B)){bB.add(B);var O=hD(D)||"Unknown";L("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",O,F,F)}break}case FD:{if(!bu)L("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),bu=!0;break}}}function R1(D,F){if(JF){var B=D.memoizedUpdaters;B.forEach(function(O){tG(D,O,F)})}}var VB={};function x4(D,F){{var B=PF.current;if(B!==null)return B.push(F),VB;else return CX(D,F)}}function Vu(D){if(D===VB)return;return aJ(D)}function hu(){return PF.current!==null}function pR(D){{if(D.mode&h0){if(!$u())return}else{if(!GR())return;if(R0!==y2)return;if(D.tag!==x&&D.tag!==QD&&D.tag!==KD)return}if(PF.current===null){var F=t3;try{h2(D),L(`An update to %s inside a test was not wrapped in act(...).
|
|
123
|
+
|
|
124
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
125
|
+
|
|
126
|
+
act(() => {
|
|
127
|
+
/* fire events that update state */
|
|
128
|
+
});
|
|
129
|
+
/* assert on the output */
|
|
130
|
+
|
|
131
|
+
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`,hD(D))}finally{if(F)h2(D);else T3()}}}}function lR(D){if(D.tag!==P6&&$u()&&PF.current===null)L(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
132
|
+
|
|
133
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
134
|
+
|
|
135
|
+
act(() => {
|
|
136
|
+
/* finish loading suspended data */
|
|
137
|
+
});
|
|
138
|
+
/* assert on the output */
|
|
139
|
+
|
|
140
|
+
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 H1(D){zu=D}var ZF=null,t6=null,dR=function(D){ZF=D};function e6(D){{if(ZF===null)return D;var F=ZF(D);if(F===void 0)return D;return F.current}}function hB(D){return e6(D)}function fB(D){{if(ZF===null)return D;var F=ZF(D);if(F===void 0){if(D!==null&&D!==void 0&&typeof D.render==="function"){var B=e6(D.render);if(D.render!==B){var O={$$typeof:F2,render:B};if(D.displayName!==void 0)O.displayName=D.displayName;return O}}return D}return F.current}}function fu(D,F){{if(ZF===null)return!1;var B=D.elementType,O=F.type,X=!1,Z=typeof O==="object"&&O!==null?O.$$typeof:null;switch(D.tag){case FD:{if(typeof O==="function")X=!0;break}case x:{if(typeof O==="function")X=!0;else if(Z===W0)X=!0;break}case QD:{if(Z===F2)X=!0;else if(Z===W0)X=!0;break}case mD:case KD:{if(Z===sD)X=!0;else if(Z===W0)X=!0;break}default:return!1}if(X){var $=ZF(B);if($!==void 0&&$===ZF(O))return!0}return!1}}function ju(D){{if(ZF===null)return;if(typeof WeakSet!=="function")return;if(t6===null)t6=new WeakSet;t6.add(D)}}var iR=function(D,F){{if(ZF===null)return;var{staleFamilies:B,updatedFamilies:O}=F;nF(),h4(function(){jB(D.current,O,B)})}},nR=function(D,F){{if(D.context!==a3)return;nF(),h4(function(){pu(F,D,null,null)})}};function jB(D,F,B){{var{alternate:O,child:X,sibling:Z,tag:$,type:z}=D,R=null;switch($){case x:case KD:case FD:R=z;break;case QD:R=z.render;break}if(ZF===null)throw Error("Expected resolveFamily to be set during hot reload.");var P=!1,v=!1;if(R!==null){var g=ZF(R);if(g!==void 0){if(B.has(g))v=!0;else if(F.has(g))if($===FD)v=!0;else P=!0}}if(t6!==null){if(t6.has(D)||O!==null&&t6.has(O))v=!0}if(v)D._debugNeedsRemount=!0;if(v||P){var a=S3(D,X0);if(a!==null)g2(a,D,X0,u2)}if(X!==null&&!v)jB(X,F,B);if(Z!==null)jB(Z,F,B)}}var aR=function(D,F){{var B=new Set,O=new Set(F.map(function(X){return X.current}));return yB(D.current,O,B),B}};function yB(D,F,B){{var{child:O,sibling:X,tag:Z,type:$}=D,z=null;switch(Z){case x:case KD:case FD:z=$;break;case QD:z=$.render;break}var R=!1;if(z!==null){if(F.has(z))R=!0}if(R)rR(D,B);else if(O!==null)yB(O,F,B);if(X!==null)yB(X,F,B)}}function rR(D,F){{var B=oR(D,F);if(B)return;var O=D;while(!0){switch(O.tag){case i:F.add(O.stateNode);return;case XD:F.add(O.stateNode.containerInfo);return;case BD:F.add(O.stateNode.containerInfo);return}if(O.return===null)throw Error("Expected to reach root first.");O=O.return}}}function oR(D,F){{var B=D,O=!1;while(!0){if(B.tag===i)O=!0,F.add(B.stateNode);else if(B.child!==null){B.child.return=B,B=B.child;continue}if(B===D)return O;while(B.sibling===null){if(B.return===null||B.return===D)return O;B=B.return}B.sibling.return=B.return,B=B.sibling}}return!1}var gB;{gB=!1;try{var yu=Object.preventExtensions({})}catch(D){gB=!0}}function sR(D,F,B,O){if(this.tag=D,this.key=B,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=F,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=O,this.flags=SD,this.subtreeFlags=SD,this.deletions=null,this.lanes=uD,this.childLanes=uD,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,!gB&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var e3=function(D,F,B,O){return new sR(D,F,B,O)};function xB(D){var F=D.prototype;return!!(F&&F.isReactComponent)}function tR(D){return typeof D==="function"&&!xB(D)&&D.defaultProps===void 0}function eR(D){if(typeof D==="function")return xB(D)?FD:x;else if(D!==void 0&&D!==null){var F=D.$$typeof;if(F===F2)return QD;if(F===sD)return mD}return ZD}function B6(D,F){var B=D.alternate;if(B===null)B=e3(D.tag,F,D.key,D.mode),B.elementType=D.elementType,B.type=D.type,B.stateNode=D.stateNode,B._debugSource=D._debugSource,B._debugOwner=D._debugOwner,B._debugHookTypes=D._debugHookTypes,B.alternate=D,D.alternate=B;else B.pendingProps=F,B.type=D.type,B.flags=SD,B.subtreeFlags=SD,B.deletions=null,B.actualDuration=0,B.actualStartTime=-1;B.flags=D.flags&v2,B.childLanes=D.childLanes,B.lanes=D.lanes,B.child=D.child,B.memoizedProps=D.memoizedProps,B.memoizedState=D.memoizedState,B.updateQueue=D.updateQueue;var O=D.dependencies;switch(B.dependencies=O===null?null:{lanes:O.lanes,firstContext:O.firstContext},B.sibling=D.sibling,B.index=D.index,B.ref=D.ref,B.selfBaseDuration=D.selfBaseDuration,B.treeBaseDuration=D.treeBaseDuration,B._debugNeedsRemount=D._debugNeedsRemount,B.tag){case ZD:case x:case KD:B.type=e6(D.type);break;case FD:B.type=hB(D.type);break;case QD:B.type=fB(D.type);break}return B}function DH(D,F){D.flags&=v2|S0;var B=D.alternate;if(B===null)D.childLanes=uD,D.lanes=F,D.child=null,D.subtreeFlags=SD,D.memoizedProps=null,D.memoizedState=null,D.updateQueue=null,D.dependencies=null,D.stateNode=null,D.selfBaseDuration=0,D.treeBaseDuration=0;else{D.childLanes=B.childLanes,D.lanes=B.lanes,D.child=B.child,D.subtreeFlags=SD,D.deletions=null,D.memoizedProps=B.memoizedProps,D.memoizedState=B.memoizedState,D.updateQueue=B.updateQueue,D.type=B.type;var O=B.dependencies;D.dependencies=O===null?null:{lanes:O.lanes,firstContext:O.firstContext},D.selfBaseDuration=B.selfBaseDuration,D.treeBaseDuration=B.treeBaseDuration}return D}function FH(D,F,B){var O;if(D===pG){if(O=h0,F===!0)O|=T2,O|=SF}else O=F0;if(JF)O|=n0;return e3(BD,null,null,O)}function mB(D,F,B,O,X,Z){var $=ZD,z=D;if(typeof D==="function")if(xB(D))$=FD,z=hB(z);else z=e6(z);else if(typeof D==="string")$=i;else D:switch(D){case x0:return I8(B.children,X,Z,F);case $0:if($=dD,X|=T2,(X&h0)!==F0)X|=SF;break;case D2:return _H(B,X,Z,F);case A2:return CH(B,X,Z,F);case o0:return BH(B,X,Z,F);case m2:return gu(B,X,Z,F);case B3:case s2:case y3:case O3:case C3:default:{if(typeof D==="object"&&D!==null)switch(D.$$typeof){case N0:$=oD;break D;case m0:$=PD;break D;case F2:$=QD,z=fB(z);break D;case sD:$=mD;break D;case W0:$=Q0,z=null;break D}var R="";{if(D===void 0||typeof D==="object"&&D!==null&&Object.keys(D).length===0)R+=" 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 P=O?hD(O):null;if(P)R+=`
|
|
141
|
+
|
|
142
|
+
Check the render method of \``+P+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(D==null?D:typeof D)+"."+R))}}var v=e3($,B,F,X);return v.elementType=D,v.type=z,v.lanes=Z,v._debugOwner=O,v}function cB(D,F,B){var O=null;O=D._owner;var{type:X,key:Z,props:$}=D,z=mB(X,Z,$,O,F,B);return z._debugSource=D._source,z._debugOwner=D._owner,z}function I8(D,F,B,O){var X=e3(jD,D,O,F);return X.lanes=B,X}function _H(D,F,B,O){if(typeof D.id!=="string")L('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof D.id);var X=e3(ID,D,O,F|n0);return X.elementType=D2,X.lanes=B,X.stateNode={effectDuration:0,passiveEffectDuration:0},X}function CH(D,F,B,O){var X=e3(ED,D,O,F);return X.elementType=A2,X.lanes=B,X}function BH(D,F,B,O){var X=e3(MD,D,O,F);return X.elementType=o0,X.lanes=B,X}function gu(D,F,B,O){var X=e3(kD,D,O,F);X.elementType=m2,X.lanes=B;var Z={isHidden:!1};return X.stateNode=Z,X}function pB(D,F,B){var O=e3(RD,D,null,F);return O.lanes=B,O}function OH(){var D=e3(i,null,null,F0);return D.elementType="DELETED",D}function GH(D){var F=e3(yD,null,null,F0);return F.stateNode=D,F}function lB(D,F,B){var O=D.children!==null?D.children:[],X=e3(XD,O,D.key,F);return X.lanes=B,X.stateNode={containerInfo:D.containerInfo,pendingChildren:null,implementation:D.implementation},X}function xu(D,F){if(D===null)D=e3(ZD,null,null,F0);return D.tag=F.tag,D.key=F.key,D.elementType=F.elementType,D.type=F.type,D.stateNode=F.stateNode,D.return=F.return,D.child=F.child,D.sibling=F.sibling,D.index=F.index,D.ref=F.ref,D.pendingProps=F.pendingProps,D.memoizedProps=F.memoizedProps,D.updateQueue=F.updateQueue,D.memoizedState=F.memoizedState,D.dependencies=F.dependencies,D.mode=F.mode,D.flags=F.flags,D.subtreeFlags=F.subtreeFlags,D.deletions=F.deletions,D.lanes=F.lanes,D.childLanes=F.childLanes,D.alternate=F.alternate,D.actualDuration=F.actualDuration,D.actualStartTime=F.actualStartTime,D.selfBaseDuration=F.selfBaseDuration,D.treeBaseDuration=F.treeBaseDuration,D._debugSource=F._debugSource,D._debugOwner=F._debugOwner,D._debugNeedsRemount=F._debugNeedsRemount,D._debugHookTypes=F._debugHookTypes,D}function XH(D,F,B,O,X){if(this.tag=F,this.containerInfo=D,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=z_,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=e2,this.eventTimes=w5(uD),this.expirationTimes=w5(u2),this.pendingLanes=uD,this.suspendedLanes=uD,this.pingedLanes=uD,this.expiredLanes=uD,this.mutableReadLanes=uD,this.finishedLanes=uD,this.entangledLanes=uD,this.entanglements=w5(uD),this.identifierPrefix=O,this.onRecoverableError=X,U3)this.mutableSourceEagerHydrationData=null;this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var Z=this.pendingUpdatersLaneMap=[];for(var $=0;$<B5;$++)Z.push(new Set)}switch(F){case pG:this._debugRootType=B?"hydrateRoot()":"createRoot()";break;case P6:this._debugRootType=B?"hydrate()":"render()";break}}function mu(D,F,B,O,X,Z,$,z,R,P){var v=new XH(D,F,B,z,R),g=FH(F,Z);v.current=g,g.stateNode=v;{var a={element:O,isDehydrated:B,cache:null,transitions:null,pendingSuspenseBoundaries:null};g.memoizedState=a}return t5(g),v}var UH="18.3.1";function uH(D,F,B){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return nY(O),{$$typeof:j0,key:O==null?null:""+O,children:D,containerInfo:F,implementation:B}}var dB,iB;dB=!1,iB={};function cu(D){if(!D)return a3;var F=T(D),B=wJ(F);if(F.tag===FD){var O=F.type;if(TF(O))return mG(F,O,B)}return B}function ZH(D){var F=T(D);if(F===void 0)if(typeof D.render==="function")throw Error("Unable to find node on an unmounted component.");else{var B=Object.keys(D).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+B)}var O=y(F);if(O===null)return null;return O.stateNode}function AH(D,F){{var B=T(D);if(B===void 0)if(typeof D.render==="function")throw Error("Unable to find node on an unmounted component.");else{var O=Object.keys(D).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+O)}var X=y(B);if(X===null)return null;if(X.mode&T2){var Z=hD(B)||"Component";if(!iB[Z]){iB[Z]=!0;var $=t3;try{if(h2(X),B.mode&T2)L("%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",F,F,Z);else L("%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",F,F,Z)}finally{if($)h2($);else T3()}}}return X.stateNode}}function LH(D,F,B,O,X,Z,$,z){var R=!1,P=null;return mu(D,F,R,P,B,O,X,Z,$)}function QH(D,F,B,O,X,Z,$,z,R,P){var v=!0,g=mu(B,O,v,D,X,Z,$,z,R);g.context=cu(null);var a=g.current,_D=w3(),UD=P8(a),GD=C8(_D,UD);return GD.callback=F!==void 0&&F!==null?F:null,z8(a,GD,UD),LR(g,UD,_D),g}function pu(D,F,B,O){DY(F,D);var X=F.current,Z=w3(),$=P8(X);RY($);var z=cu(B);if(F.context===null)F.context=z;else F.pendingContext=z;if(h_&&t3!==null&&!dB)dB=!0,L(`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.
|
|
143
|
+
|
|
144
|
+
Check the render method of %s.`,hD(t3)||"Unknown");var R=C8(Z,$);if(R.payload={element:D},O=O===void 0?null:O,O!==null){if(typeof O!=="function")L("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",O);R.callback=O}var P=z8(X,R,$);if(P!==null)g2(P,X,$,Z),y7(P,X,$);return $}function $H(D){var F=D.current;if(!F.child)return null;switch(F.child.tag){case i:return ND(F.child.stateNode);default:return F.child.stateNode}}function WH(D){switch(D.tag){case BD:{var F=D.stateNode;if(QX(F)){var B=hJ(F);JR(F,B)}break}case ED:{h4(function(){var X=S3(D,X0);if(X!==null){var Z=w3();g2(X,D,X0,Z)}});var O=X0;m4(D,O);break}}}function lu(D,F){var B=D.memoizedState;if(B!==null&&B.dehydrated!==null)B.retryLane=mJ(B.retryLane,F)}function m4(D,F){lu(D,F);var B=D.alternate;if(B)lu(B,F)}function JH(D){if(D.tag!==ED)return;var F=X0,B=S3(D,F);if(B!==null){var O=w3();g2(B,D,F,O)}m4(D,F)}function YH(D){if(D.tag!==ED)return;var F=P_,B=S3(D,F);if(B!==null){var O=w3();g2(B,D,F,O)}m4(D,F)}function KH(D){if(D.tag!==ED)return;var F=P8(D),B=S3(D,F);if(B!==null){var O=w3();g2(B,D,F,O)}m4(D,F)}function zH(D){var F=$D(D);if(F===null)return null;return F.stateNode}var du=function(D){return null};function iu(D){return du(D)}var nu=function(D){return!1};function au(D){return nu(D)}var ru=null,ou=null,su=null,tu=null,eu=null,DZ=null,FZ=null,_Z=null,CZ=null;{var BZ=function(D,F,B){var O=F[B],X=CD(D)?D.slice():H({},D);if(B+1===F.length){if(CD(X))X.splice(O,1);else delete X[O];return X}return X[O]=BZ(D[O],F,B+1),X},OZ=function(D,F){return BZ(D,F,0)},GZ=function(D,F,B,O){var X=F[O],Z=CD(D)?D.slice():H({},D);if(O+1===F.length){var $=B[O];if(Z[$]=Z[X],CD(Z))Z.splice(X,1);else delete Z[X]}else Z[X]=GZ(D[X],F,B,O+1);return Z},XZ=function(D,F,B){if(F.length!==B.length){J("copyWithRename() expects paths of the same length");return}else for(var O=0;O<B.length-1;O++)if(F[O]!==B[O]){J("copyWithRename() expects paths to be the same except for the deepest key");return}return GZ(D,F,B,0)},UZ=function(D,F,B,O){if(B>=F.length)return O;var X=F[B],Z=CD(D)?D.slice():H({},D);return Z[X]=UZ(D[X],F,B+1,O),Z},uZ=function(D,F,B){return UZ(D,F,0,B)},nB=function(D,F){var B=D.memoizedState;while(B!==null&&F>0)B=B.next,F--;return B};ru=function(D,F,B,O){var X=nB(D,F);if(X!==null){var Z=uZ(X.memoizedState,B,O);X.memoizedState=Z,X.baseState=Z,D.memoizedProps=H({},D.memoizedProps);var $=S3(D,X0);if($!==null)g2($,D,X0,u2)}},ou=function(D,F,B){var O=nB(D,F);if(O!==null){var X=OZ(O.memoizedState,B);O.memoizedState=X,O.baseState=X,D.memoizedProps=H({},D.memoizedProps);var Z=S3(D,X0);if(Z!==null)g2(Z,D,X0,u2)}},su=function(D,F,B,O){var X=nB(D,F);if(X!==null){var Z=XZ(X.memoizedState,B,O);X.memoizedState=Z,X.baseState=Z,D.memoizedProps=H({},D.memoizedProps);var $=S3(D,X0);if($!==null)g2($,D,X0,u2)}},tu=function(D,F,B){if(D.pendingProps=uZ(D.memoizedProps,F,B),D.alternate)D.alternate.pendingProps=D.pendingProps;var O=S3(D,X0);if(O!==null)g2(O,D,X0,u2)},eu=function(D,F){if(D.pendingProps=OZ(D.memoizedProps,F),D.alternate)D.alternate.pendingProps=D.pendingProps;var B=S3(D,X0);if(B!==null)g2(B,D,X0,u2)},DZ=function(D,F,B){if(D.pendingProps=XZ(D.memoizedProps,F,B),D.alternate)D.alternate.pendingProps=D.pendingProps;var O=S3(D,X0);if(O!==null)g2(O,D,X0,u2)},FZ=function(D){var F=S3(D,X0);if(F!==null)g2(F,D,X0,u2)},_Z=function(D){du=D},CZ=function(D){nu=D}}function RH(D){var F=y(D);if(F===null)return null;return F.stateNode}function HH(D){return null}function NH(){return t3}function MH(D){var F=D.findFiberByHostInstance,B=G.ReactCurrentDispatcher;return eJ({bundleType:D.bundleType,version:D.version,rendererPackageName:D.rendererPackageName,rendererConfig:D.rendererConfig,overrideHookState:ru,overrideHookStateDeletePath:ou,overrideHookStateRenamePath:su,overrideProps:tu,overridePropsDeletePath:eu,overridePropsRenamePath:DZ,setErrorHandler:_Z,setSuspenseHandler:CZ,scheduleUpdate:FZ,currentDispatcherRef:B,findHostInstanceByFiber:RH,findFiberByHostInstance:F||HH,findHostInstancesForRefresh:aR,scheduleRefresh:iR,scheduleRoot:nR,setRefreshHandler:dR,getCurrentFiber:NH,reconcilerVersion:UH})}return U.attemptContinuousHydration=YH,U.attemptDiscreteHydration=JH,U.attemptHydrationAtCurrentPriority=KH,U.attemptSynchronousHydration=WH,U.batchedUpdates=KR,U.createComponentSelector=az,U.createContainer=LH,U.createHasPseudoClassSelector=rz,U.createHydrationContainer=QH,U.createPortal=uH,U.createRoleSelector=oz,U.createTestNameSelector=tz,U.createTextSelector=sz,U.deferredUpdates=YR,U.discreteUpdates=zR,U.findAllNodes=q4,U.findBoundingRects=FR,U.findHostInstance=ZH,U.findHostInstanceWithNoPortals=zH,U.findHostInstanceWithWarning=AH,U.flushControlled=HR,U.flushPassiveEffects=nF,U.flushSync=h4,U.focusWithin=_R,U.getCurrentUpdatePriority=WF,U.getFindAllNodesFailureDescription=DR,U.getPublicRootInstance=$H,U.injectIntoDevTools=MH,U.isAlreadyRendering=RR,U.observeVisibleRects=BR,U.registerMutableSourceForHydration=uK,U.runWithPriority=dJ,U.shouldError=iu,U.shouldSuspend=au,U.updateContainer=pu,U}});var RL=f0((fN)=>{(function(){var _=1,C=4,U=16,G=536870912,A=_,Q=C,J=U,L=G,W=0,H=1;fN.ConcurrentRoot=H,fN.ContinuousEventPriority=Q,fN.DefaultEventPriority=J,fN.DiscreteEventPriority=A,fN.IdleEventPriority=L,fN.LegacyRoot=W})()});var NL=f0((AI,AO)=>{var v8={};if(typeof AO>"u")window.eastasianwidth=v8;else AO.exports=v8;v8.eastAsianWidth=function(_){var C=_.charCodeAt(0),U=_.length==2?_.charCodeAt(1):0,G=C;if(55296<=C&&C<=56319&&(56320<=U&&U<=57343))C&=1023,U&=1023,G=C<<10|U,G+=65536;if(G==12288||65281<=G&&G<=65376||65504<=G&&G<=65510)return"F";if(G==8361||65377<=G&&G<=65470||65474<=G&&G<=65479||65482<=G&&G<=65487||65490<=G&&G<=65495||65498<=G&&G<=65500||65512<=G&&G<=65518)return"H";if(4352<=G&&G<=4447||4515<=G&&G<=4519||4602<=G&&G<=4607||9001<=G&&G<=9002||11904<=G&&G<=11929||11931<=G&&G<=12019||12032<=G&&G<=12245||12272<=G&&G<=12283||12289<=G&&G<=12350||12353<=G&&G<=12438||12441<=G&&G<=12543||12549<=G&&G<=12589||12593<=G&&G<=12686||12688<=G&&G<=12730||12736<=G&&G<=12771||12784<=G&&G<=12830||12832<=G&&G<=12871||12880<=G&&G<=13054||13056<=G&&G<=19903||19968<=G&&G<=42124||42128<=G&&G<=42182||43360<=G&&G<=43388||44032<=G&&G<=55203||55216<=G&&G<=55238||55243<=G&&G<=55291||63744<=G&&G<=64255||65040<=G&&G<=65049||65072<=G&&G<=65106||65108<=G&&G<=65126||65128<=G&&G<=65131||110592<=G&&G<=110593||127488<=G&&G<=127490||127504<=G&&G<=127546||127552<=G&&G<=127560||127568<=G&&G<=127569||131072<=G&&G<=194367||177984<=G&&G<=196605||196608<=G&&G<=262141)return"W";if(32<=G&&G<=126||162<=G&&G<=163||165<=G&&G<=166||G==172||G==175||10214<=G&&G<=10221||10629<=G&&G<=10630)return"Na";if(G==161||G==164||167<=G&&G<=168||G==170||173<=G&&G<=174||176<=G&&G<=180||182<=G&&G<=186||188<=G&&G<=191||G==198||G==208||215<=G&&G<=216||222<=G&&G<=225||G==230||232<=G&&G<=234||236<=G&&G<=237||G==240||242<=G&&G<=243||247<=G&&G<=250||G==252||G==254||G==257||G==273||G==275||G==283||294<=G&&G<=295||G==299||305<=G&&G<=307||G==312||319<=G&&G<=322||G==324||328<=G&&G<=331||G==333||338<=G&&G<=339||358<=G&&G<=359||G==363||G==462||G==464||G==466||G==468||G==470||G==472||G==474||G==476||G==593||G==609||G==708||G==711||713<=G&&G<=715||G==717||G==720||728<=G&&G<=731||G==733||G==735||768<=G&&G<=879||913<=G&&G<=929||931<=G&&G<=937||945<=G&&G<=961||963<=G&&G<=969||G==1025||1040<=G&&G<=1103||G==1105||G==8208||8211<=G&&G<=8214||8216<=G&&G<=8217||8220<=G&&G<=8221||8224<=G&&G<=8226||8228<=G&&G<=8231||G==8240||8242<=G&&G<=8243||G==8245||G==8251||G==8254||G==8308||G==8319||8321<=G&&G<=8324||G==8364||G==8451||G==8453||G==8457||G==8467||G==8470||8481<=G&&G<=8482||G==8486||G==8491||8531<=G&&G<=8532||8539<=G&&G<=8542||8544<=G&&G<=8555||8560<=G&&G<=8569||G==8585||8592<=G&&G<=8601||8632<=G&&G<=8633||G==8658||G==8660||G==8679||G==8704||8706<=G&&G<=8707||8711<=G&&G<=8712||G==8715||G==8719||G==8721||G==8725||G==8730||8733<=G&&G<=8736||G==8739||G==8741||8743<=G&&G<=8748||G==8750||8756<=G&&G<=8759||8764<=G&&G<=8765||G==8776||G==8780||G==8786||8800<=G&&G<=8801||8804<=G&&G<=8807||8810<=G&&G<=8811||8814<=G&&G<=8815||8834<=G&&G<=8835||8838<=G&&G<=8839||G==8853||G==8857||G==8869||G==8895||G==8978||9312<=G&&G<=9449||9451<=G&&G<=9547||9552<=G&&G<=9587||9600<=G&&G<=9615||9618<=G&&G<=9621||9632<=G&&G<=9633||9635<=G&&G<=9641||9650<=G&&G<=9651||9654<=G&&G<=9655||9660<=G&&G<=9661||9664<=G&&G<=9665||9670<=G&&G<=9672||G==9675||9678<=G&&G<=9681||9698<=G&&G<=9701||G==9711||9733<=G&&G<=9734||G==9737||9742<=G&&G<=9743||9748<=G&&G<=9749||G==9756||G==9758||G==9792||G==9794||9824<=G&&G<=9825||9827<=G&&G<=9829||9831<=G&&G<=9834||9836<=G&&G<=9837||G==9839||9886<=G&&G<=9887||9918<=G&&G<=9919||9924<=G&&G<=9933||9935<=G&&G<=9953||G==9955||9960<=G&&G<=9983||G==10045||G==10071||10102<=G&&G<=10111||11093<=G&&G<=11097||12872<=G&&G<=12879||57344<=G&&G<=63743||65024<=G&&G<=65039||G==65533||127232<=G&&G<=127242||127248<=G&&G<=127277||127280<=G&&G<=127337||127344<=G&&G<=127386||917760<=G&&G<=917999||983040<=G&&G<=1048573||1048576<=G&&G<=1114109)return"A";return"N"};v8.characterLength=function(_){var C=this.eastAsianWidth(_);if(C=="F"||C=="W"||C=="A")return 2;else return 1};function HL(_){return _.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}v8.length=function(_){var C=HL(_),U=0;for(var G=0;G<C.length;G++)U=U+this.characterLength(C[G]);return U};v8.slice=function(_,C,U){if(textLen=v8.length(_),C=C?C:0,U=U?U:1,C<0)C=textLen+C;if(U<0)U=textLen+U;var G="",A=0,Q=HL(_);for(var J=0;J<Q.length;J++){var L=Q[J],W=v8.length(L);if(A>=C-(W==2?1:0))if(A+W<=U)G+=L;else break;A+=W}return G}});var EL=f0((LI,ML)=>{ML.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});import XM from"ws";var L6;var mL=aB(()=>{L6=global;if(!L6.WebSocket)L6.WebSocket=XM;if(!L6.window)L6.window=global;if(!L6.self)L6.self=global;L6.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}]});var cL;var pL=aB(()=>{cL={connectToDevTools(){}}});var UM={};var lL=aB(()=>{mL();pL();cL.connectToDevTools()});var oL=f0((Fk,AM)=>{AM.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var tL=f0((_k,MO)=>{var sL=oL();MO.exports=sL;MO.exports.default=sL});var NQ=f0((Zv,fO)=>{var HQ=(_,C)=>{for(let U of Reflect.ownKeys(C))Object.defineProperty(_,U,Object.getOwnPropertyDescriptor(C,U));return _};fO.exports=HQ;fO.exports.default=HQ});var EQ=f0((Av,U9)=>{var iM=NQ(),X9=new WeakMap,MQ=(_,C={})=>{if(typeof _!=="function")throw TypeError("Expected a function");let U,G=0,A=_.displayName||_.name||"<anonymous>",Q=function(...J){if(X9.set(Q,++G),G===1)U=_.apply(this,J),_=null;else if(C.throw===!0)throw Error(`Function \`${A}\` can only be called once`);return U};return iM(Q,_),X9.set(Q,G),Q};U9.exports=MQ;U9.exports.default=MQ;U9.exports.callCount=(_)=>{if(!X9.has(_))throw Error(`The given function \`${_.name}\` is not wrapped by the \`onetime\` package`);return X9.get(_)}});var mQ=f0((vv,xQ)=>{var _E=/[|\\{}()[\]^$+*?.-]/g;xQ.exports=(_)=>{if(typeof _!=="string")throw TypeError("Expected a string");return _.replace(_E,"\\$&")}});var dQ=f0((Tv,lQ)=>{var CE=mQ(),BE=typeof process==="object"&&process&&typeof process.cwd==="function"?process.cwd():".",pQ=[].concat(O6("module").builtinModules,"bootstrap_node","node").map((_)=>new RegExp(`(?:\\((?:node:)?${_}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${_}(?:\\.js)?:\\d+:\\d+$)`));pQ.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class yO{constructor(_){if(_={ignoredPackages:[],..._},"internals"in _===!1)_.internals=yO.nodeInternals();if("cwd"in _===!1)_.cwd=BE;this._cwd=_.cwd.replace(/\\/g,"/"),this._internals=[].concat(_.internals,OE(_.ignoredPackages)),this._wrapCallSite=_.wrapCallSite||!1}static nodeInternals(){return[...pQ]}clean(_,C=0){if(C=" ".repeat(C),!Array.isArray(_))_=_.split(`
|
|
145
|
+
`);if(!/^\s*at /.test(_[0])&&/^\s*at /.test(_[1]))_=_.slice(1);let U=!1,G=null,A=[];return _.forEach((Q)=>{if(Q=Q.replace(/\\/g,"/"),this._internals.some((L)=>L.test(Q)))return;let J=/^\s*at /.test(Q);if(U)Q=Q.trimEnd().replace(/^(\s+)at /,"$1");else if(Q=Q.trim(),J)Q=Q.slice(3);if(Q=Q.replace(`${this._cwd}/`,""),Q)if(J){if(G)A.push(G),G=null;A.push(Q)}else U=!0,G=Q}),A.map((Q)=>`${C}${Q}
|
|
146
|
+
`).join("")}captureString(_,C=this.captureString){if(typeof _==="function")C=_,_=1/0;let{stackTraceLimit:U}=Error;if(_)Error.stackTraceLimit=_;let G={};Error.captureStackTrace(G,C);let{stack:A}=G;return Error.stackTraceLimit=U,this.clean(A)}capture(_,C=this.capture){if(typeof _==="function")C=_,_=1/0;let{prepareStackTrace:U,stackTraceLimit:G}=Error;if(Error.prepareStackTrace=(J,L)=>{if(this._wrapCallSite)return L.map(this._wrapCallSite);return L},_)Error.stackTraceLimit=_;let A={};Error.captureStackTrace(A,C);let{stack:Q}=A;return Object.assign(Error,{prepareStackTrace:U,stackTraceLimit:G}),Q}at(_=this.at){let[C]=this.capture(1,_);if(!C)return{};let U={line:C.getLineNumber(),column:C.getColumnNumber()};if(cQ(U,C.getFileName(),this._cwd),C.isConstructor())Object.defineProperty(U,"constructor",{value:!0,configurable:!0});if(C.isEval())U.evalOrigin=C.getEvalOrigin();if(C.isNative())U.native=!0;let G;try{G=C.getTypeName()}catch(J){}if(G&&G!=="Object"&&G!=="[object Object]")U.type=G;let A=C.getFunctionName();if(A)U.function=A;let Q=C.getMethodName();if(Q&&A!==Q)U.method=Q;return U}parseLine(_){let C=_&&_.match(GE);if(!C)return null;let U=C[1]==="new",G=C[2],A=C[3],Q=C[4],J=Number(C[5]),L=Number(C[6]),W=C[7],H=C[8],T=C[9],h=C[10]==="native",E=C[11]===")",q,w={};if(H)w.line=Number(H);if(T)w.column=Number(T);if(E&&W){let V=0;for(let b=W.length-1;b>0;b--)if(W.charAt(b)===")")V++;else if(W.charAt(b)==="("&&W.charAt(b-1)===" "){if(V--,V===-1&&W.charAt(b-1)===" "){let S=W.slice(0,b-1);W=W.slice(b+1),G+=` (${S}`;break}}}if(G){let V=G.match(XE);if(V)G=V[1],q=V[2]}if(cQ(w,W,this._cwd),U)Object.defineProperty(w,"constructor",{value:!0,configurable:!0});if(A)w.evalOrigin=A,w.evalLine=J,w.evalColumn=L,w.evalFile=Q&&Q.replace(/\\/g,"/");if(h)w.native=!0;if(G)w.function=G;if(q&&G!==q)w.method=q;return w}}function cQ(_,C,U){if(C){if(C=C.replace(/\\/g,"/"),C.startsWith(`${U}/`))C=C.slice(U.length+1);_.file=C}}function OE(_){if(_.length===0)return[];let C=_.map((U)=>CE(U));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${C.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var GE=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),XE=/^(.*?) \[as (.*?)\]$/;lQ.exports=yO});var Z$=f0((QS,hE)=>{hE.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\uD83D\uDE04 ","\uD83D\uDE1D "]},monkey:{interval:300,frames:["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},hearts:{interval:100,frames:["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","\u2764\uFE0F "]},clock:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},earth:{interval:180,frames:["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},runner:{interval:140,frames:["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\uD83C\uDF24 ","\u26C5\uFE0F ","\uD83C\uDF25 ","\u2601\uFE0F ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\u26C8 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\u2601\uFE0F ","\uD83C\uDF25 ","\u26C5\uFE0F ","\uD83C\uDF24 ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\uD83C\uDF32","\uD83C\uDF84"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","\u270B ","\uD83E\uDD1A ","\uD83D\uDC46 "]},fistBump:{interval:80,frames:["\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\uD83E\uDD1C\u3000\u3000\u3000\u3000\uD83E\uDD1B ","\u3000\uD83E\uDD1C\u3000\u3000\uD83E\uDD1B\u3000 ","\u3000\u3000\uD83E\uDD1C\uD83E\uDD1B\u3000\u3000 ","\u3000\uD83E\uDD1C\u2728\uD83E\uDD1B\u3000\u3000 ","\uD83E\uDD1C\u3000\u2728\u3000\uD83E\uDD1B\u3000 "]},soccerHeader:{interval:80,frames:[" \uD83E\uDDD1\u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F\uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 ","\uD83E\uDDD1 \u26BD\uFE0F \uD83E\uDDD1 "]},mindblown:{interval:160,frames:["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},orangePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},bluePulse:{interval:100,frames:["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},orangeBluePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},timeTravel:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Q$=f0(($S,L$)=>{var z9=Object.assign({},Z$()),A$=Object.keys(z9);Object.defineProperty(z9,"random",{get(){let _=Math.floor(Math.random()*A$.length),C=A$[_];return z9[C]}});L$.exports=z9});var YG=f0((Jq)=>{var JG=H0(B2());(function(){var _=Symbol.for("react.element"),C=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),J=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),q=Symbol.iterator,w="@@iterator";function V(I){if(I===null||typeof I!=="object")return null;var LD=q&&I[q]||I[w];if(typeof LD==="function")return LD;return null}var b=JG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(I){{for(var LD=arguments.length,vD=Array(LD>1?LD-1:0),eD=1;eD<LD;eD++)vD[eD-1]=arguments[eD];s("error",I,vD)}}function s(I,LD,vD){{var eD=b.ReactDebugCurrentFrame,rD=eD.getStackAddendum();if(rD!=="")LD+="%s",vD=vD.concat([rD]);var P0=vD.map(function(G0){return String(G0)});P0.unshift("Warning: "+LD),Function.prototype.apply.call(console[I],console,P0)}}var t=!1,x=!1,FD=!1,ZD=!1,BD=!1,XD;XD=Symbol.for("react.module.reference");function i(I){if(typeof I==="string"||typeof I==="function")return!0;if(I===U||I===A||BD||I===G||I===W||I===H||ZD||I===E||t||x||FD)return!0;if(typeof I==="object"&&I!==null){if(I.$$typeof===h||I.$$typeof===T||I.$$typeof===Q||I.$$typeof===J||I.$$typeof===L||I.$$typeof===XD||I.getModuleId!==void 0)return!0}return!1}function RD(I,LD,vD){var eD=I.displayName;if(eD)return eD;var rD=LD.displayName||LD.name||"";return rD!==""?vD+"("+rD+")":vD}function jD(I){return I.displayName||"Context"}function dD(I){if(I==null)return null;if(typeof I.tag==="number")S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof I==="function")return I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case U:return"Fragment";case C:return"Portal";case A:return"Profiler";case G:return"StrictMode";case W:return"Suspense";case H:return"SuspenseList"}if(typeof I==="object")switch(I.$$typeof){case J:var LD=I;return jD(LD)+".Consumer";case Q:var vD=I;return jD(vD._context)+".Provider";case L:return RD(I,I.render,"ForwardRef");case T:var eD=I.displayName||null;if(eD!==null)return eD;return dD(I.type)||"Memo";case h:{var rD=I,P0=rD._payload,G0=rD._init;try{return dD(G0(P0))}catch(L0){return null}}}return null}var PD=Object.assign,oD=0,QD,ID,ED,mD,KD,Q0,E0;function yD(){}yD.__reactDisabledLog=!0;function MD(){{if(oD===0){QD=console.log,ID=console.info,ED=console.warn,mD=console.error,KD=console.group,Q0=console.groupCollapsed,E0=console.groupEnd;var I={configurable:!0,enumerable:!0,value:yD,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}oD++}}function v0(){{if(oD--,oD===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:PD({},I,{value:QD}),info:PD({},I,{value:ID}),warn:PD({},I,{value:ED}),error:PD({},I,{value:mD}),group:PD({},I,{value:KD}),groupCollapsed:PD({},I,{value:Q0}),groupEnd:PD({},I,{value:E0})})}if(oD<0)S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var kD=b.ReactCurrentDispatcher,JD;function AD(I,LD,vD){{if(JD===void 0)try{throw Error()}catch(rD){var eD=rD.stack.trim().match(/\n( *(at )?)/);JD=eD&&eD[1]||""}return`
|
|
147
|
+
`+JD+I}}var gD=!1,B0;{var j0=typeof WeakMap==="function"?WeakMap:Map;B0=new j0}function x0(I,LD){if(!I||gD)return"";{var vD=B0.get(I);if(vD!==void 0)return vD}var eD;gD=!0;var rD=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var P0;P0=kD.current,kD.current=null,MD();try{if(LD){var G0=function(){throw Error()};if(Object.defineProperty(G0.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(G0,[])}catch(W2){eD=W2}Reflect.construct(I,[],G0)}else{try{G0.call()}catch(W2){eD=W2}I.call(G0.prototype)}}else{try{throw Error()}catch(W2){eD=W2}I()}}catch(W2){if(W2&&eD&&typeof W2.stack==="string"){var L0=W2.stack.split(`
|
|
148
|
+
`),Q2=eD.stack.split(`
|
|
149
|
+
`),y0=L0.length-1,i0=Q2.length-1;while(y0>=1&&i0>=0&&L0[y0]!==Q2[i0])i0--;for(;y0>=1&&i0>=0;y0--,i0--)if(L0[y0]!==Q2[i0]){if(y0!==1||i0!==1)do if(y0--,i0--,i0<0||L0[y0]!==Q2[i0]){var $2=`
|
|
150
|
+
`+L0[y0].replace(" at new "," at ");if(I.displayName&&$2.includes("<anonymous>"))$2=$2.replace("<anonymous>",I.displayName);if(typeof I==="function")B0.set(I,$2);return $2}while(y0>=1&&i0>=0);break}}}finally{gD=!1,kD.current=P0,v0(),Error.prepareStackTrace=rD}var v2=I?I.displayName||I.name:"",V2=v2?AD(v2):"";if(typeof I==="function")B0.set(I,V2);return V2}function $0(I,LD,vD){return x0(I,!1)}function D2(I){var LD=I.prototype;return!!(LD&&LD.isReactComponent)}function N0(I,LD,vD){if(I==null)return"";if(typeof I==="function")return x0(I,D2(I));if(typeof I==="string")return AD(I);switch(I){case W:return AD("Suspense");case H:return AD("SuspenseList")}if(typeof I==="object")switch(I.$$typeof){case L:return $0(I.render);case T:return N0(I.type,LD,vD);case h:{var eD=I,rD=eD._payload,P0=eD._init;try{return N0(P0(rD),LD,vD)}catch(G0){}}}return""}var m0=Object.prototype.hasOwnProperty,F2={},A2=b.ReactDebugCurrentFrame;function o0(I){if(I){var LD=I._owner,vD=N0(I.type,I._source,LD?LD.type:null);A2.setExtraStackFrame(vD)}else A2.setExtraStackFrame(null)}function sD(I,LD,vD,eD,rD){{var P0=Function.call.bind(m0);for(var G0 in I)if(P0(I,G0)){var L0=void 0;try{if(typeof I[G0]!=="function"){var Q2=Error((eD||"React class")+": "+vD+" type `"+G0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[G0]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q2.name="Invariant Violation",Q2}L0=I[G0](LD,G0,eD,vD,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y0){L0=y0}if(L0&&!(L0 instanceof Error))o0(rD),S("%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).",eD||"React class",vD,G0,typeof L0),o0(null);if(L0 instanceof Error&&!(L0.message in F2))F2[L0.message]=!0,o0(rD),S("Failed %s type: %s",vD,L0.message),o0(null)}}}var W0=Array.isArray;function s2(I){return W0(I)}function C3(I){{var LD=typeof Symbol==="function"&&Symbol.toStringTag,vD=LD&&I[Symbol.toStringTag]||I.constructor.name||"Object";return vD}}function m2(I){try{return B3(I),!1}catch(LD){return!0}}function B3(I){return""+I}function y3(I){if(m2(I))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",C3(I)),B3(I)}var O3=b.ReactCurrentOwner,R3={key:!0,ref:!0,__self:!0,__source:!0},H3,b2,t2;t2={};function wD(I){if(m0.call(I,"ref")){var LD=Object.getOwnPropertyDescriptor(I,"ref").get;if(LD&&LD.isReactWarning)return!1}return I.ref!==void 0}function YD(I){if(m0.call(I,"key")){var LD=Object.getOwnPropertyDescriptor(I,"key").get;if(LD&&LD.isReactWarning)return!1}return I.key!==void 0}function O0(I,LD){if(typeof I.ref==="string"&&O3.current&&LD&&O3.current.stateNode!==LD){var vD=dD(O3.current.type);if(!t2[vD])S('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',dD(O3.current.type),I.ref),t2[vD]=!0}}function Y0(I,LD){{var vD=function(){if(!H3)H3=!0,S("%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)",LD)};vD.isReactWarning=!0,Object.defineProperty(I,"key",{get:vD,configurable:!0})}}function hD(I,LD){{var vD=function(){if(!b2)b2=!0,S("%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)",LD)};vD.isReactWarning=!0,Object.defineProperty(I,"ref",{get:vD,configurable:!0})}}var SD=function(I,LD,vD,eD,rD,P0,G0){var L0={$$typeof:_,type:I,key:LD,ref:vD,props:G0,_owner:P0};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:eD}),Object.defineProperty(L0,"_source",{configurable:!1,enumerable:!1,writable:!1,value:rD}),Object.freeze)Object.freeze(L0.props),Object.freeze(L0);return L0};function d0(I,LD,vD,eD,rD){{var P0,G0={},L0=null,Q2=null;if(vD!==void 0)y3(vD),L0=""+vD;if(YD(LD))y3(LD.key),L0=""+LD.key;if(wD(LD))Q2=LD.ref,O0(LD,rD);for(P0 in LD)if(m0.call(LD,P0)&&!R3.hasOwnProperty(P0))G0[P0]=LD[P0];if(I&&I.defaultProps){var y0=I.defaultProps;for(P0 in y0)if(G0[P0]===void 0)G0[P0]=y0[P0]}if(L0||Q2){var i0=typeof I==="function"?I.displayName||I.name||"Unknown":I;if(L0)Y0(G0,i0);if(Q2)hD(G0,i0)}return SD(I,L0,Q2,rD,eD,O3.current,G0)}}var{ReactCurrentOwner:S0,ReactDebugCurrentFrame:aD}=b;function O2(I){if(I){var LD=I._owner,vD=N0(I.type,I._source,LD?LD.type:null);aD.setExtraStackFrame(vD)}else aD.setExtraStackFrame(null)}var E2=!1;function G3(I){return typeof I==="object"&&I!==null&&I.$$typeof===_}function K0(){{if(S0.current){var I=dD(S0.current.type);if(I)return`
|
|
151
|
+
|
|
152
|
+
Check the render method of \``+I+"`."}return""}}function L2(I){{if(I!==void 0){var LD=I.fileName.replace(/^.*[\\\/]/,""),vD=I.lineNumber;return`
|
|
153
|
+
|
|
154
|
+
Check your code at `+LD+":"+vD+"."}return""}}var N3={};function M3(I){{var LD=K0();if(!LD){var vD=typeof I==="string"?I:I.displayName||I.name;if(vD)LD=`
|
|
155
|
+
|
|
156
|
+
Check the top-level render call using <`+vD+">."}return LD}}function f2(I,LD){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var vD=M3(LD);if(N3[vD])return;N3[vD]=!0;var eD="";if(I&&I._owner&&I._owner!==S0.current)eD=" It was passed a child from "+dD(I._owner.type)+".";O2(I),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',vD,eD),O2(null)}}function k2(I,LD){{if(typeof I!=="object")return;if(s2(I))for(var vD=0;vD<I.length;vD++){var eD=I[vD];if(G3(eD))f2(eD,LD)}else if(G3(I)){if(I._store)I._store.validated=!0}else if(I){var rD=V(I);if(typeof rD==="function"){if(rD!==I.entries){var P0=rD.call(I),G0;while(!(G0=P0.next()).done)if(G3(G0.value))f2(G0.value,LD)}}}}}function X3(I){{var LD=I.type;if(LD===null||LD===void 0||typeof LD==="string")return;var vD;if(typeof LD==="function")vD=LD.propTypes;else if(typeof LD==="object"&&(LD.$$typeof===L||LD.$$typeof===T))vD=LD.propTypes;else return;if(vD){var eD=dD(LD);sD(vD,I.props,"prop",eD,I)}else if(LD.PropTypes!==void 0&&!E2){E2=!0;var rD=dD(LD);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",rD||"Unknown")}if(typeof LD.getDefaultProps==="function"&&!LD.getDefaultProps.isReactClassApproved)S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function i3(I){{var LD=Object.keys(I.props);for(var vD=0;vD<LD.length;vD++){var eD=LD[vD];if(eD!=="children"&&eD!=="key"){O2(I),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",eD),O2(null);break}}if(I.ref!==null)O2(I),S("Invalid attribute `ref` supplied to `React.Fragment`."),O2(null)}}var L8={};function V8(I,LD,vD,eD,rD,P0){{var G0=i(I);if(!G0){var L0="";if(I===void 0||typeof I==="object"&&I!==null&&Object.keys(I).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 Q2=L2(rD);if(Q2)L0+=Q2;else L0+=K0();var y0;if(I===null)y0="null";else if(s2(I))y0="array";else if(I!==void 0&&I.$$typeof===_)y0="<"+(dD(I.type)||"Unknown")+" />",L0=" Did you accidentally export a JSX literal instead of a component?";else y0=typeof I;S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y0,L0)}var i0=d0(I,LD,vD,rD,P0);if(i0==null)return i0;if(G0){var $2=LD.children;if($2!==void 0)if(eD)if(s2($2)){for(var v2=0;v2<$2.length;v2++)k2($2[v2],I);if(Object.freeze)Object.freeze($2)}else S("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 k2($2,I)}if(m0.call(LD,"key")){var V2=dD(I),W2=Object.keys(LD).filter(function(f){return f!=="key"}),M=W2.length>0?"{key: someKey, "+W2.join(": ..., ")+": ...}":"{key: someKey}";if(!L8[V2+M]){var N=W2.length>0?"{"+W2.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
|
|
157
|
+
let props = %s;
|
|
158
|
+
<%s {...props} />
|
|
159
|
+
React keys must be passed directly to JSX without using spread:
|
|
160
|
+
let props = %s;
|
|
161
|
+
<%s key={someKey} {...props} />`,M,V2,N,V2),L8[V2+M]=!0}}if(I===U)i3(i0);else X3(i0);return i0}}var LF=V8;Jq.Fragment=U,Jq.jsxDEV=LF})()});var j=H0(B2(),1);import{Stream as JE}from"stream";import Y9 from"process";var D$=H0(B2(),1),cO=H0(lZ(),1);import eQ from"process";import tB from"process";var l0="\x1B[",q1="\x1B]",F_="\x07",E1=";",eB=typeof window<"u"&&typeof window.document<"u",dZ=!eB&&tB.env.TERM_PROGRAM==="Apple_Terminal",PN=!eB&&tB.platform==="win32",wN=eB?()=>{throw Error("`process.cwd()` only works in Node.js, not the browser.")}:tB.cwd,k0={};k0.cursorTo=(_,C)=>{if(typeof _!=="number")throw TypeError("The `x` argument is required");if(typeof C!=="number")return l0+(_+1)+"G";return l0+(C+1)+E1+(_+1)+"H"};k0.cursorMove=(_,C)=>{if(typeof _!=="number")throw TypeError("The `x` argument is required");let U="";if(_<0)U+=l0+-_+"D";else if(_>0)U+=l0+_+"C";if(C<0)U+=l0+-C+"A";else if(C>0)U+=l0+C+"B";return U};k0.cursorUp=(_=1)=>l0+_+"A";k0.cursorDown=(_=1)=>l0+_+"B";k0.cursorForward=(_=1)=>l0+_+"C";k0.cursorBackward=(_=1)=>l0+_+"D";k0.cursorLeft=l0+"G";k0.cursorSavePosition=dZ?"\x1B7":l0+"s";k0.cursorRestorePosition=dZ?"\x1B8":l0+"u";k0.cursorGetPosition=l0+"6n";k0.cursorNextLine=l0+"E";k0.cursorPrevLine=l0+"F";k0.cursorHide=l0+"?25l";k0.cursorShow=l0+"?25h";k0.eraseLines=(_)=>{let C="";for(let U=0;U<_;U++)C+=k0.eraseLine+(U<_-1?k0.cursorUp():"");if(_)C+=k0.cursorLeft;return C};k0.eraseEndLine=l0+"K";k0.eraseStartLine=l0+"1K";k0.eraseLine=l0+"2K";k0.eraseDown=l0+"J";k0.eraseUp=l0+"1J";k0.eraseScreen=l0+"2J";k0.scrollUp=l0+"S";k0.scrollDown=l0+"T";k0.clearScreen="\x1Bc";k0.clearTerminal=PN?`${k0.eraseScreen}${l0}0f`:`${k0.eraseScreen}${l0}3J${l0}H`;k0.enterAlternativeScreen=l0+"?1049h";k0.exitAlternativeScreen=l0+"?1049l";k0.beep=F_;k0.link=(_,C)=>[q1,"8",E1,E1,C,F_,_,q1,"8",E1,E1,F_].join("");k0.image=(_,C={})=>{let U=`${q1}1337;File=inline=1`;if(C.width)U+=`;width=${C.width}`;if(C.height)U+=`;height=${C.height}`;if(C.preserveAspectRatio===!1)U+=";preserveAspectRatio=0";return U+":"+_.toString("base64")+F_};k0.iTerm={setCwd:(_=wN())=>`${q1}50;CurrentDir=${_}${F_}`,annotation(_,C={}){let U=`${q1}1337;`,G=typeof C.x<"u",A=typeof C.y<"u";if((G||A)&&!(G&&A&&typeof C.length<"u"))throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(_=_.replace(/\|/g,""),U+=C.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",C.length>0)U+=(G?[_,C.length,C.x,C.y]:[C.length,_]).join("|");else U+=_;return U+F_}};var P1=k0;var F$=H0(sZ(),1);var vN=(_)=>{let C=new Set;do for(let U of Reflect.ownKeys(_))C.add([_,U]);while((_=Reflect.getPrototypeOf(_))&&_!==Object.prototype);return C};function _O(_,{include:C,exclude:U}={}){let G=(A)=>{let Q=(J)=>typeof J==="string"?A===J:J.test(A);if(C)return C.some(Q);if(U)return!U.some(Q);return!0};for(let[A,Q]of vN(_.constructor.prototype)){if(Q==="constructor"||!G(Q))continue;let J=Reflect.getOwnPropertyDescriptor(A,Q);if(J&&typeof J.value==="function")_[Q]=_[Q].bind(_)}return _}var _$=H0(XO(),1);import{PassThrough as eZ}from"stream";var DA=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],UO={},TN=(_)=>{let C=new eZ,U=new eZ;C.write=(A)=>{_("stdout",A)},U.write=(A)=>{_("stderr",A)};let G=new console.Console(C,U);for(let A of DA)UO[A]=console[A],console[A]=G[A];return()=>{for(let A of DA)console[A]=UO[A];UO={}}},FA=TN;import{readFile as bN}from"fs/promises";import{createRequire as VN}from"module";var TD={},_A=TD.ALIGN_AUTO=0,CA=TD.ALIGN_FLEX_START=1,BA=TD.ALIGN_CENTER=2,OA=TD.ALIGN_FLEX_END=3,GA=TD.ALIGN_STRETCH=4,XA=TD.ALIGN_BASELINE=5,UA=TD.ALIGN_SPACE_BETWEEN=6,uA=TD.ALIGN_SPACE_AROUND=7,ZA=TD.DIMENSION_WIDTH=0,AA=TD.DIMENSION_HEIGHT=1,LA=TD.DIRECTION_INHERIT=0,QA=TD.DIRECTION_LTR=1,$A=TD.DIRECTION_RTL=2,WA=TD.DISPLAY_FLEX=0,JA=TD.DISPLAY_NONE=1,YA=TD.EDGE_LEFT=0,KA=TD.EDGE_TOP=1,zA=TD.EDGE_RIGHT=2,RA=TD.EDGE_BOTTOM=3,HA=TD.EDGE_START=4,NA=TD.EDGE_END=5,MA=TD.EDGE_HORIZONTAL=6,EA=TD.EDGE_VERTICAL=7,qA=TD.EDGE_ALL=8,PA=TD.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS=0,wA=TD.EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE=1,IA=TD.EXPERIMENTAL_FEATURE_FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN=2,kA=TD.FLEX_DIRECTION_COLUMN=0,vA=TD.FLEX_DIRECTION_COLUMN_REVERSE=1,TA=TD.FLEX_DIRECTION_ROW=2,SA=TD.FLEX_DIRECTION_ROW_REVERSE=3,bA=TD.GUTTER_COLUMN=0,VA=TD.GUTTER_ROW=1,hA=TD.GUTTER_ALL=2,fA=TD.JUSTIFY_FLEX_START=0,jA=TD.JUSTIFY_CENTER=1,yA=TD.JUSTIFY_FLEX_END=2,gA=TD.JUSTIFY_SPACE_BETWEEN=3,xA=TD.JUSTIFY_SPACE_AROUND=4,mA=TD.JUSTIFY_SPACE_EVENLY=5,cA=TD.LOG_LEVEL_ERROR=0,pA=TD.LOG_LEVEL_WARN=1,lA=TD.LOG_LEVEL_INFO=2,dA=TD.LOG_LEVEL_DEBUG=3,iA=TD.LOG_LEVEL_VERBOSE=4,nA=TD.LOG_LEVEL_FATAL=5,aA=TD.MEASURE_MODE_UNDEFINED=0,rA=TD.MEASURE_MODE_EXACTLY=1,oA=TD.MEASURE_MODE_AT_MOST=2,sA=TD.NODE_TYPE_DEFAULT=0,tA=TD.NODE_TYPE_TEXT=1,eA=TD.OVERFLOW_VISIBLE=0,DL=TD.OVERFLOW_HIDDEN=1,FL=TD.OVERFLOW_SCROLL=2,_L=TD.POSITION_TYPE_STATIC=0,CL=TD.POSITION_TYPE_RELATIVE=1,BL=TD.POSITION_TYPE_ABSOLUTE=2,OL=TD.PRINT_OPTIONS_LAYOUT=1,GL=TD.PRINT_OPTIONS_STYLE=2,XL=TD.PRINT_OPTIONS_CHILDREN=4,UL=TD.UNIT_UNDEFINED=0,uL=TD.UNIT_POINT=1,ZL=TD.UNIT_PERCENT=2,AL=TD.UNIT_AUTO=3,LL=TD.WRAP_NO_WRAP=0,QL=TD.WRAP_WRAP=1,$L=TD.WRAP_WRAP_REVERSE=2;var WL=(_)=>{function C(A,Q,J){let L=A[Q];A[Q]=function(...W){return J.call(this,L,...W)}}for(let A of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let Q={[TD.UNIT_POINT]:_.Node.prototype[A],[TD.UNIT_PERCENT]:_.Node.prototype[`${A}Percent`],[TD.UNIT_AUTO]:_.Node.prototype[`${A}Auto`]};C(_.Node.prototype,A,function(J,...L){let W,H,T=L.pop();if(T==="auto")W=TD.UNIT_AUTO,H=void 0;else if(typeof T=="object")W=T.unit,H=T.valueOf();else if(W=typeof T=="string"&&T.endsWith("%")?TD.UNIT_PERCENT:TD.UNIT_POINT,H=parseFloat(T),!Number.isNaN(T)&&Number.isNaN(H))throw Error(`Invalid value ${T} for ${A}`);if(!Q[W])throw Error(`Failed to execute "${A}": Unsupported unit '${T}'`);return H!==void 0?Q[W].call(this,...L,H):Q[W].call(this,...L)})}function U(A){return _.MeasureCallback.implement({measure:(...Q)=>{let{width:J,height:L}=A(...Q);return{width:J??NaN,height:L??NaN}}})}function G(A){return _.DirtiedCallback.implement({dirtied:A})}return C(_.Node.prototype,"setMeasureFunc",function(A,Q){return Q?A.call(this,U(Q)):this.unsetMeasureFunc()}),C(_.Node.prototype,"setDirtiedFunc",function(A,Q){A.call(this,G(Q))}),C(_.Config.prototype,"free",function(){_.Config.destroy(this)}),C(_.Node,"create",(A,Q)=>Q?_.Node.createWithConfig(Q):_.Node.createDefault()),C(_.Node.prototype,"free",function(){_.Node.destroy(this)}),C(_.Node.prototype,"freeRecursive",function(){for(let A=0,Q=this.getChildCount();A<Q;++A)this.getChild(0).freeRecursive();this.free()}),C(_.Node.prototype,"calculateLayout",function(A,Q=NaN,J=NaN,L=TD.DIRECTION_LTR){return A.call(this,Q,J,L)}),{Config:_.Config,Node:_.Node,...TD}};var SN=(()=>{var _=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(C={}){W||(W=C!==void 0?C:{}),W.ready=new Promise(function(M,N){H=M,T=N});var U,G,A=Object.assign({},W),Q="";typeof document<"u"&&document.currentScript&&(Q=document.currentScript.src),_&&(Q=_),Q=Q.indexOf("blob:")!==0?Q.substr(0,Q.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var J=console.log.bind(console),L=console.warn.bind(console);Object.assign(W,A),A=null,typeof WebAssembly!="object"&&PD("no native wasm support detected");var W,H,T,h,E=!1;function q(M,N,f){f=N+f;for(var p="";!(N>=f);){var y=M[N++];if(!y)break;if(128&y){var n=63&M[N++];if((224&y)==192)p+=String.fromCharCode((31&y)<<6|n);else{var $D=63&M[N++];65536>(y=(240&y)==224?(15&y)<<12|n<<6|$D:(7&y)<<18|n<<12|$D<<6|63&M[N++])?p+=String.fromCharCode(y):(y-=65536,p+=String.fromCharCode(55296|y>>10,56320|1023&y))}}else p+=String.fromCharCode(y)}return p}function w(){var M=h.buffer;W.HEAP8=V=new Int8Array(M),W.HEAP16=S=new Int16Array(M),W.HEAP32=t=new Int32Array(M),W.HEAPU8=b=new Uint8Array(M),W.HEAPU16=s=new Uint16Array(M),W.HEAPU32=x=new Uint32Array(M),W.HEAPF32=FD=new Float32Array(M),W.HEAPF64=ZD=new Float64Array(M)}var V,b,S,s,t,x,FD,ZD,BD,XD=[],i=[],RD=[],jD=0,dD=null;function PD(M){throw L(M="Aborted("+M+")"),E=!0,T(M=new WebAssembly.RuntimeError(M+". Build with -sASSERTIONS for more info.")),M}function oD(){return U.startsWith("data:application/octet-stream;base64,")}function QD(){try{throw"both async and sync fetching of the wasm failed"}catch(M){PD(M)}}function ID(M){for(;0<M.length;)M.shift()(W)}function ED(M){if(M===void 0)return"_unknown";var N=(M=M.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=N&&57>=N?"_"+M:M}function mD(M,N){return M=ED(M),function(){return N.apply(this,arguments)}}U="yoga.wasm",oD()||(U=Q+U);var KD=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Q0=[];function E0(M){var N=Error,f=mD(M,function(p){this.name=M,this.message=p,(p=Error(p).stack)!==void 0&&(this.stack=this.toString()+`
|
|
162
|
+
`+p.replace(/^Error(:[^\n]*)?\n/,""))});return f.prototype=Object.create(N.prototype),f.prototype.constructor=f,f.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},f}var yD=void 0;function MD(M){throw new yD(M)}var v0=(M)=>(M||MD("Cannot use deleted val. handle = "+M),KD[M].value),kD=(M)=>{switch(M){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var N=Q0.length?Q0.pop():KD.length;return KD[N]={fa:1,value:M},N}},JD=void 0,AD=void 0;function gD(M){for(var N="";b[M];)N+=AD[b[M++]];return N}var B0=[];function j0(){for(;B0.length;){var M=B0.pop();M.L.Z=!1,M.delete()}}var x0=void 0,$0={};function D2(M,N){for(N===void 0&&MD("ptr should not be undefined");M.P;)N=M.aa(N),M=M.P;return N}var N0={};function m0(M){var N=gD(M=$2(M));return V2(M),N}function F2(M,N){var f=N0[M];return f===void 0&&MD(N+" has unknown type "+m0(M)),f}function A2(){}var o0=!1;function sD(M){--M.count.value,M.count.value===0&&(M.S?M.T.V(M.S):M.O.M.V(M.N))}var W0={},s2=void 0;function C3(M){throw new s2(M)}function m2(M,N){return N.O&&N.N||C3("makeClassHandle requires ptr and ptrType"),!!N.T!=!!N.S&&C3("Both smartPtrType and smartPtr must be specified"),N.count={value:1},B3(Object.create(M,{L:{value:N}}))}function B3(M){return typeof FinalizationRegistry>"u"?(B3=(N)=>N,M):(o0=new FinalizationRegistry((N)=>{sD(N.L)}),B3=(N)=>{var f=N.L;return f.S&&o0.register(N,{L:f},N),N},A2=(N)=>{o0.unregister(N)},B3(M))}var y3={};function O3(M){for(;M.length;){var N=M.pop();M.pop()(N)}}function R3(M){return this.fromWireType(t[M>>2])}var H3={},b2={};function t2(M,N,f){function p(OD){(OD=f(OD)).length!==M.length&&C3("Mismatched type converter count");for(var WD=0;WD<M.length;++WD)YD(M[WD],OD[WD])}M.forEach(function(OD){b2[OD]=N});var y=Array(N.length),n=[],$D=0;N.forEach((OD,WD)=>{N0.hasOwnProperty(OD)?y[WD]=N0[OD]:(n.push(OD),H3.hasOwnProperty(OD)||(H3[OD]=[]),H3[OD].push(()=>{y[WD]=N0[OD],++$D===n.length&&p(y)}))}),n.length===0&&p(y)}function wD(M){switch(M){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+M)}}function YD(M,N,f={}){if(!("argPackAdvance"in N))throw TypeError("registerType registeredInstance requires argPackAdvance");var p=N.name;if(M||MD('type "'+p+'" must have a positive integer typeid pointer'),N0.hasOwnProperty(M)){if(f.ta)return;MD("Cannot register type '"+p+"' twice")}N0[M]=N,delete b2[M],H3.hasOwnProperty(M)&&(N=H3[M],delete H3[M],N.forEach((y)=>y()))}function O0(M){MD(M.L.O.M.name+" instance already deleted")}function Y0(){}function hD(M,N,f){if(M[N].R===void 0){var p=M[N];M[N]=function(){return M[N].R.hasOwnProperty(arguments.length)||MD("Function '"+f+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+M[N].R+")!"),M[N].R[arguments.length].apply(this,arguments)},M[N].R=[],M[N].R[p.Y]=p}}function SD(M,N,f,p,y,n,$D,OD){this.name=M,this.constructor=N,this.W=f,this.V=p,this.P=y,this.oa=n,this.aa=$D,this.ma=OD,this.ia=[]}function d0(M,N,f){for(;N!==f;)N.aa||MD("Expected null or instance of "+f.name+", got an instance of "+N.name),M=N.aa(M),N=N.P;return M}function S0(M,N){return N===null?(this.da&&MD("null is not a valid "+this.name),0):(N.L||MD('Cannot pass "'+i3(N)+'" as a '+this.name),N.L.N||MD("Cannot pass deleted object as a pointer of type "+this.name),d0(N.L.N,N.L.O.M,this.M))}function aD(M,N){if(N===null){if(this.da&&MD("null is not a valid "+this.name),this.ca){var f=this.ea();return M!==null&&M.push(this.V,f),f}return 0}if(N.L||MD('Cannot pass "'+i3(N)+'" as a '+this.name),N.L.N||MD("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&N.L.O.ba&&MD("Cannot convert argument of type "+(N.L.T?N.L.T.name:N.L.O.name)+" to parameter type "+this.name),f=d0(N.L.N,N.L.O.M,this.M),this.ca)switch(N.L.S===void 0&&MD("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:N.L.T===this?f=N.L.S:MD("Cannot convert argument of type "+(N.L.T?N.L.T.name:N.L.O.name)+" to parameter type "+this.name);break;case 1:f=N.L.S;break;case 2:if(N.L.T===this)f=N.L.S;else{var p=N.clone();f=this.wa(f,kD(function(){p.delete()})),M!==null&&M.push(this.V,f)}break;default:MD("Unsupporting sharing policy")}return f}function O2(M,N){return N===null?(this.da&&MD("null is not a valid "+this.name),0):(N.L||MD('Cannot pass "'+i3(N)+'" as a '+this.name),N.L.N||MD("Cannot pass deleted object as a pointer of type "+this.name),N.L.O.ba&&MD("Cannot convert argument of type "+N.L.O.name+" to parameter type "+this.name),d0(N.L.N,N.L.O.M,this.M))}function E2(M,N,f,p){this.name=M,this.M=N,this.da=f,this.ba=p,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,N.P!==void 0?this.toWireType=aD:(this.toWireType=p?S0:O2,this.U=null)}var G3=[];function K0(M){var N=G3[M];return N||(M>=G3.length&&(G3.length=M+1),G3[M]=N=BD.get(M)),N}function L2(M,N){var f,p,y=(M=gD(M)).includes("j")?(f=M,p=[],function(){if(p.length=0,Object.assign(p,arguments),f.includes("j")){var n=W["dynCall_"+f];n=p&&p.length?n.apply(null,[N].concat(p)):n.call(null,N)}else n=K0(N).apply(null,p);return n}):K0(N);return typeof y!="function"&&MD("unknown function pointer with signature "+M+": "+N),y}var N3=void 0;function M3(M,N){var f=[],p={};throw N.forEach(function y(n){p[n]||N0[n]||(b2[n]?b2[n].forEach(y):(f.push(n),p[n]=!0))}),new N3(M+": "+f.map(m0).join([", "]))}function f2(M,N,f,p,y){var n=N.length;2>n&&MD("argTypes array size mismatch! Must at least get return value and 'this' types!");var $D=N[1]!==null&&f!==null,OD=!1;for(f=1;f<N.length;++f)if(N[f]!==null&&N[f].U===void 0){OD=!0;break}var WD=N[0].name!=="void",CD=n-2,ND=Array(CD),z0=[],M0=[];return function(){if(arguments.length!==CD&&MD("function "+M+" called with "+arguments.length+" arguments, expected "+CD+" args!"),M0.length=0,z0.length=$D?2:1,z0[0]=y,$D){var b0=N[1].toWireType(M0,this);z0[1]=b0}for(var V0=0;V0<CD;++V0)ND[V0]=N[V0+2].toWireType(M0,arguments[V0]),z0.push(ND[V0]);if(V0=p.apply(null,z0),OD)O3(M0);else for(var q2=$D?1:2;q2<N.length;q2++){var g3=q2===1?b0:ND[q2-2];N[q2].U!==null&&N[q2].U(g3)}return WD?N[0].fromWireType(V0):void 0}}function k2(M,N){for(var f=[],p=0;p<M;p++)f.push(x[N+4*p>>2]);return f}function X3(M){4<M&&--KD[M].fa==0&&(KD[M]=void 0,Q0.push(M))}function i3(M){if(M===null)return"null";var N=typeof M;return N==="object"||N==="array"||N==="function"?M.toString():""+M}function L8(M,N){for(var f="",p=0;!(p>=N/2);++p){var y=S[M+2*p>>1];if(y==0)break;f+=String.fromCharCode(y)}return f}function V8(M,N,f){if(f===void 0&&(f=2147483647),2>f)return 0;f-=2;var p=N;f=f<2*M.length?f/2:M.length;for(var y=0;y<f;++y)S[N>>1]=M.charCodeAt(y),N+=2;return S[N>>1]=0,N-p}function LF(M){return 2*M.length}function I(M,N){for(var f=0,p="";!(f>=N/4);){var y=t[M+4*f>>2];if(y==0)break;++f,65536<=y?(y-=65536,p+=String.fromCharCode(55296|y>>10,56320|1023&y)):p+=String.fromCharCode(y)}return p}function LD(M,N,f){if(f===void 0&&(f=2147483647),4>f)return 0;var p=N;f=p+f-4;for(var y=0;y<M.length;++y){var n=M.charCodeAt(y);if(55296<=n&&57343>=n&&(n=65536+((1023&n)<<10)|1023&M.charCodeAt(++y)),t[N>>2]=n,(N+=4)+4>f)break}return t[N>>2]=0,N-p}function vD(M){for(var N=0,f=0;f<M.length;++f){var p=M.charCodeAt(f);55296<=p&&57343>=p&&++f,N+=4}return N}var eD={};function rD(M){var N=eD[M];return N===void 0?gD(M):N}var P0=[],G0=[],L0=[null,[],[]];yD=W.BindingError=E0("BindingError"),W.count_emval_handles=function(){for(var M=0,N=5;N<KD.length;++N)KD[N]!==void 0&&++M;return M},W.get_first_emval=function(){for(var M=5;M<KD.length;++M)if(KD[M]!==void 0)return KD[M];return null},JD=W.PureVirtualError=E0("PureVirtualError");for(var Q2=Array(256),y0=0;256>y0;++y0)Q2[y0]=String.fromCharCode(y0);AD=Q2,W.getInheritedInstanceCount=function(){return Object.keys($0).length},W.getLiveInheritedInstances=function(){var M,N=[];for(M in $0)$0.hasOwnProperty(M)&&N.push($0[M]);return N},W.flushPendingDeletes=j0,W.setDelayFunction=function(M){x0=M,B0.length&&x0&&x0(j0)},s2=W.InternalError=E0("InternalError"),Y0.prototype.isAliasOf=function(M){if(!(this instanceof Y0&&M instanceof Y0))return!1;var N=this.L.O.M,f=this.L.N,p=M.L.O.M;for(M=M.L.N;N.P;)f=N.aa(f),N=N.P;for(;p.P;)M=p.aa(M),p=p.P;return N===p&&f===M},Y0.prototype.clone=function(){if(this.L.N||O0(this),this.L.$)return this.L.count.value+=1,this;var M=B3,N=Object,f=N.create,p=Object.getPrototypeOf(this),y=this.L;return M=M(f.call(N,p,{L:{value:{count:y.count,Z:y.Z,$:y.$,N:y.N,O:y.O,S:y.S,T:y.T}}})),M.L.count.value+=1,M.L.Z=!1,M},Y0.prototype.delete=function(){this.L.N||O0(this),this.L.Z&&!this.L.$&&MD("Object already scheduled for deletion"),A2(this),sD(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},Y0.prototype.isDeleted=function(){return!this.L.N},Y0.prototype.deleteLater=function(){return this.L.N||O0(this),this.L.Z&&!this.L.$&&MD("Object already scheduled for deletion"),B0.push(this),B0.length===1&&x0&&x0(j0),this.L.Z=!0,this},E2.prototype.pa=function(M){return this.ja&&(M=this.ja(M)),M},E2.prototype.ga=function(M){this.V&&this.V(M)},E2.prototype.argPackAdvance=8,E2.prototype.readValueFromPointer=R3,E2.prototype.deleteObject=function(M){M!==null&&M.delete()},E2.prototype.fromWireType=function(M){function N(){return this.ca?m2(this.M.W,{O:this.va,N:p,T:this,S:M}):m2(this.M.W,{O:this,N:M})}var f,p=this.pa(M);if(!p)return this.ga(M),null;var y=$0[D2(this.M,p)];if(y!==void 0)return y.L.count.value===0?(y.L.N=p,y.L.S=M,y.clone()):(y=y.clone(),this.ga(M),y);if(!(y=W0[y=this.M.oa(p)]))return N.call(this);y=this.ba?y.ka:y.pointerType;var n=function $D(OD,WD,CD){return WD===CD?OD:CD.P===void 0?null:(OD=$D(OD,WD,CD.P))===null?null:CD.ma(OD)}(p,this.M,y.M);return n===null?N.call(this):this.ca?m2(y.M.W,{O:y,N:n,T:this,S:M}):m2(y.M.W,{O:y,N:n})},N3=W.UnboundTypeError=E0("UnboundTypeError");var i0={q:function(M,N,f){M=gD(M),N=F2(N,"wrapper"),f=v0(f);var p=[].slice,y=N.M,n=y.W,$D=y.P.W,OD=y.P.constructor;for(var WD in M=mD(M,function(){y.P.ia.forEach(function(CD){if(this[CD]===$D[CD])throw new JD("Pure virtual function "+CD+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:n}),this.__construct.apply(this,p.call(arguments))}),n.__construct=function(){this===n&&MD("Pass correct 'this' to __construct");var CD=OD.implement.apply(void 0,[this].concat(p.call(arguments)));A2(CD);var ND=CD.L;CD.notifyOnDestruction(),ND.$=!0,Object.defineProperties(this,{L:{value:ND}}),B3(this),CD=D2(y,CD=ND.N),$0.hasOwnProperty(CD)?MD("Tried to register registered instance: "+CD):$0[CD]=this},n.__destruct=function(){this===n&&MD("Pass correct 'this' to __destruct"),A2(this);var CD=this.L.N;CD=D2(y,CD),$0.hasOwnProperty(CD)?delete $0[CD]:MD("Tried to unregister unregistered instance: "+CD)},M.prototype=Object.create(n),f)M.prototype[WD]=f[WD];return kD(M)},l:function(M){var N=y3[M];delete y3[M];var{ea:f,V:p,ha:y}=N;t2([M],y.map((n)=>n.sa).concat(y.map((n)=>n.ya)),(n)=>{var $D={};return y.forEach((OD,WD)=>{var CD=n[WD],ND=OD.qa,z0=OD.ra,M0=n[WD+y.length],b0=OD.xa,V0=OD.za;$D[OD.na]={read:(q2)=>CD.fromWireType(ND(z0,q2)),write:(q2,g3)=>{var x3=[];b0(V0,q2,M0.toWireType(x3,g3)),O3(x3)}}}),[{name:N.name,fromWireType:function(OD){var WD,CD={};for(WD in $D)CD[WD]=$D[WD].read(OD);return p(OD),CD},toWireType:function(OD,WD){for(var CD in $D)if(!(CD in WD))throw TypeError('Missing field: "'+CD+'"');var ND=f();for(CD in $D)$D[CD].write(ND,WD[CD]);return OD!==null&&OD.push(p,ND),ND},argPackAdvance:8,readValueFromPointer:R3,U:p}]})},v:function(){},B:function(M,N,f,p,y){var n=wD(f);YD(M,{name:N=gD(N),fromWireType:function($D){return!!$D},toWireType:function($D,OD){return OD?p:y},argPackAdvance:8,readValueFromPointer:function($D){if(f===1)var OD=V;else if(f===2)OD=S;else if(f===4)OD=t;else throw TypeError("Unknown boolean type size: "+N);return this.fromWireType(OD[$D>>n])},U:null})},h:function(M,N,f,p,y,n,$D,OD,WD,CD,ND,z0,M0){ND=gD(ND),n=L2(y,n),OD&&(OD=L2($D,OD)),CD&&(CD=L2(WD,CD)),M0=L2(z0,M0);var b0,V0=ED(ND);b0=function(){M3("Cannot construct "+ND+" due to unbound types",[p])},W.hasOwnProperty(V0)?(MD("Cannot register public name '"+V0+"' twice"),hD(W,V0,V0),W.hasOwnProperty(void 0)&&MD("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),W[V0].R[void 0]=b0):W[V0]=b0,t2([M,N,f],p?[p]:[],function(q2){if(q2=q2[0],p)var g3,x3=q2.M,n3=x3.W;else n3=Y0.prototype;q2=mD(V0,function(){if(Object.getPrototypeOf(this)!==QF)throw new yD("Use 'new' to construct "+ND);if(m3.X===void 0)throw new yD(ND+" has no accessible constructor");var f8=m3.X[arguments.length];if(f8===void 0)throw new yD("Tried to invoke ctor of "+ND+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(m3.X).toString()+") parameters instead!");return f8.apply(this,arguments)});var QF=Object.create(n3,{constructor:{value:q2}});q2.prototype=QF;var m3=new SD(ND,q2,QF,M0,x3,n,OD,CD);x3=new E2(ND,m3,!0,!1),n3=new E2(ND+"*",m3,!1,!1);var h8=new E2(ND+" const*",m3,!1,!0);return W0[M]={pointerType:n3,ka:h8},g3=q2,W.hasOwnProperty(V0)||C3("Replacing nonexistant public symbol"),W[V0]=g3,W[V0].Y=void 0,[x3,n3,h8]})},d:function(M,N,f,p,y,n,$D){var OD=k2(f,p);N=gD(N),n=L2(y,n),t2([],[M],function(WD){function CD(){M3("Cannot call "+ND+" due to unbound types",OD)}var ND=(WD=WD[0]).name+"."+N;N.startsWith("@@")&&(N=Symbol[N.substring(2)]);var z0=WD.M.constructor;return z0[N]===void 0?(CD.Y=f-1,z0[N]=CD):(hD(z0,N,ND),z0[N].R[f-1]=CD),t2([],OD,function(M0){return M0=f2(ND,[M0[0],null].concat(M0.slice(1)),null,n,$D),z0[N].R===void 0?(M0.Y=f-1,z0[N]=M0):z0[N].R[f-1]=M0,[]}),[]})},p:function(M,N,f,p,y,n){0<N||PD();var $D=k2(N,f);y=L2(p,y),t2([],[M],function(OD){var WD="constructor "+(OD=OD[0]).name;if(OD.M.X===void 0&&(OD.M.X=[]),OD.M.X[N-1]!==void 0)throw new yD("Cannot register multiple constructors with identical number of parameters ("+(N-1)+") for class '"+OD.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return OD.M.X[N-1]=()=>{M3("Cannot construct "+OD.name+" due to unbound types",$D)},t2([],$D,function(CD){return CD.splice(1,0,null),OD.M.X[N-1]=f2(WD,CD,null,y,n),[]}),[]})},a:function(M,N,f,p,y,n,$D,OD){var WD=k2(f,p);N=gD(N),n=L2(y,n),t2([],[M],function(CD){function ND(){M3("Cannot call "+z0+" due to unbound types",WD)}var z0=(CD=CD[0]).name+"."+N;N.startsWith("@@")&&(N=Symbol[N.substring(2)]),OD&&CD.M.ia.push(N);var M0=CD.M.W,b0=M0[N];return b0===void 0||b0.R===void 0&&b0.className!==CD.name&&b0.Y===f-2?(ND.Y=f-2,ND.className=CD.name,M0[N]=ND):(hD(M0,N,z0),M0[N].R[f-2]=ND),t2([],WD,function(V0){return V0=f2(z0,V0,CD,n,$D),M0[N].R===void 0?(V0.Y=f-2,M0[N]=V0):M0[N].R[f-2]=V0,[]}),[]})},A:function(M,N){YD(M,{name:N=gD(N),fromWireType:function(f){var p=v0(f);return X3(f),p},toWireType:function(f,p){return kD(p)},argPackAdvance:8,readValueFromPointer:R3,U:null})},n:function(M,N,f){f=wD(f),YD(M,{name:N=gD(N),fromWireType:function(p){return p},toWireType:function(p,y){return y},argPackAdvance:8,readValueFromPointer:function(p,y){switch(y){case 2:return function(n){return this.fromWireType(FD[n>>2])};case 3:return function(n){return this.fromWireType(ZD[n>>3])};default:throw TypeError("Unknown float type: "+p)}}(N,f),U:null})},e:function(M,N,f,p,y){N=gD(N),y===-1&&(y=4294967295),y=wD(f);var n=(OD)=>OD;if(p===0){var $D=32-8*f;n=(OD)=>OD<<$D>>>$D}f=N.includes("unsigned")?function(OD,WD){return WD>>>0}:function(OD,WD){return WD},YD(M,{name:N,fromWireType:n,toWireType:f,argPackAdvance:8,readValueFromPointer:function(OD,WD,CD){switch(WD){case 0:return CD?function(ND){return V[ND]}:function(ND){return b[ND]};case 1:return CD?function(ND){return S[ND>>1]}:function(ND){return s[ND>>1]};case 2:return CD?function(ND){return t[ND>>2]}:function(ND){return x[ND>>2]};default:throw TypeError("Unknown integer type: "+OD)}}(N,y,p!==0),U:null})},b:function(M,N,f){function p(n){n>>=2;var $D=x;return new y($D.buffer,$D[n+1],$D[n])}var y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][N];YD(M,{name:f=gD(f),fromWireType:p,argPackAdvance:8,readValueFromPointer:p},{ta:!0})},o:function(M,N){var f=(N=gD(N))==="std::string";YD(M,{name:N,fromWireType:function(p){var y=x[p>>2],n=p+4;if(f)for(var $D=n,OD=0;OD<=y;++OD){var WD=n+OD;if(OD==y||b[WD]==0){if($D=$D?q(b,$D,WD-$D):"",CD===void 0)var CD=$D;else CD+="\x00"+$D;$D=WD+1}}else{for(OD=0,CD=Array(y);OD<y;++OD)CD[OD]=String.fromCharCode(b[n+OD]);CD=CD.join("")}return V2(p),CD},toWireType:function(p,y){y instanceof ArrayBuffer&&(y=new Uint8Array(y));var n,$D=typeof y=="string";if($D||y instanceof Uint8Array||y instanceof Uint8ClampedArray||y instanceof Int8Array||MD("Cannot pass non-string to std::string"),f&&$D){var OD=0;for(n=0;n<y.length;++n){var WD=y.charCodeAt(n);127>=WD?OD++:2047>=WD?OD+=2:55296<=WD&&57343>=WD?(OD+=4,++n):OD+=3}n=OD}else n=y.length;if(WD=(OD=v2(4+n+1))+4,x[OD>>2]=n,f&&$D){if($D=WD,WD=n+1,n=b,0<WD){WD=$D+WD-1;for(var CD=0;CD<y.length;++CD){var ND=y.charCodeAt(CD);if(55296<=ND&&57343>=ND&&(ND=65536+((1023&ND)<<10)|1023&y.charCodeAt(++CD)),127>=ND){if($D>=WD)break;n[$D++]=ND}else{if(2047>=ND){if($D+1>=WD)break;n[$D++]=192|ND>>6}else{if(65535>=ND){if($D+2>=WD)break;n[$D++]=224|ND>>12}else{if($D+3>=WD)break;n[$D++]=240|ND>>18,n[$D++]=128|ND>>12&63}n[$D++]=128|ND>>6&63}n[$D++]=128|63&ND}}n[$D]=0}}else if($D)for($D=0;$D<n;++$D)255<(CD=y.charCodeAt($D))&&(V2(WD),MD("String has UTF-16 code units that do not fit in 8 bits")),b[WD+$D]=CD;else for($D=0;$D<n;++$D)b[WD+$D]=y[$D];return p!==null&&p.push(V2,OD),OD},argPackAdvance:8,readValueFromPointer:R3,U:function(p){V2(p)}})},k:function(M,N,f){if(f=gD(f),N===2)var p=L8,y=V8,n=LF,$D=()=>s,OD=1;else N===4&&(p=I,y=LD,n=vD,$D=()=>x,OD=2);YD(M,{name:f,fromWireType:function(WD){for(var CD,ND=x[WD>>2],z0=$D(),M0=WD+4,b0=0;b0<=ND;++b0){var V0=WD+4+b0*N;(b0==ND||z0[V0>>OD]==0)&&(M0=p(M0,V0-M0),CD===void 0?CD=M0:CD+="\x00"+M0,M0=V0+N)}return V2(WD),CD},toWireType:function(WD,CD){typeof CD!="string"&&MD("Cannot pass non-string to C++ string type "+f);var ND=n(CD),z0=v2(4+ND+N);return x[z0>>2]=ND>>OD,y(CD,z0+4,ND+N),WD!==null&&WD.push(V2,z0),z0},argPackAdvance:8,readValueFromPointer:R3,U:function(WD){V2(WD)}})},m:function(M,N,f,p,y,n){y3[M]={name:gD(N),ea:L2(f,p),V:L2(y,n),ha:[]}},c:function(M,N,f,p,y,n,$D,OD,WD,CD){y3[M].ha.push({na:gD(N),sa:f,qa:L2(p,y),ra:n,ya:$D,xa:L2(OD,WD),za:CD})},C:function(M,N){YD(M,{ua:!0,name:N=gD(N),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(M,N,f,p,y){M=P0[M],N=v0(N),f=rD(f);var n=[];return x[p>>2]=kD(n),M(N,f,n,y)},j:function(M,N,f,p){M=P0[M],M(N=v0(N),f=rD(f),null,p)},f:X3,g:function(M,N){var f,p,y=function(WD,CD){for(var ND=Array(WD),z0=0;z0<WD;++z0)ND[z0]=F2(x[CD+4*z0>>2],"parameter "+z0);return ND}(M,N),n=y[0],$D=G0[N=n.name+"_$"+y.slice(1).map(function(WD){return WD.name}).join("_")+"$"];if($D!==void 0)return $D;var OD=Array(M-1);return f=(WD,CD,ND,z0)=>{for(var M0=0,b0=0;b0<M-1;++b0)OD[b0]=y[b0+1].readValueFromPointer(z0+M0),M0+=y[b0+1].argPackAdvance;for(b0=0,WD=WD[CD].apply(WD,OD);b0<M-1;++b0)y[b0+1].la&&y[b0+1].la(OD[b0]);if(!n.ua)return n.toWireType(ND,WD)},p=P0.length,P0.push(f),$D=p,G0[N]=$D},r:function(M){4<M&&(KD[M].fa+=1)},s:function(M){O3(v0(M)),X3(M)},i:function(){PD("")},x:function(M,N,f){b.copyWithin(M,N,N+f)},w:function(M){var N=b.length;if(2147483648<(M>>>=0))return!1;for(var f=1;4>=f;f*=2){var p=N*(1+0.2/f);p=Math.min(p,M+100663296);var y=Math,n=y.min;p=Math.max(M,p),p+=(65536-p%65536)%65536;D:{var $D=h.buffer;try{h.grow(n.call(y,2147483648,p)-$D.byteLength+65535>>>16),w();var OD=1;break D}catch(WD){}OD=void 0}if(OD)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(M,N,f,p){for(var y=0,n=0;n<f;n++){var $D=x[N>>2],OD=x[N+4>>2];N+=8;for(var WD=0;WD<OD;WD++){var CD=b[$D+WD],ND=L0[M];CD===0||CD===10?((M===1?J:L)(q(ND,0)),ND.length=0):ND.push(CD)}y+=OD}return x[p>>2]=y,0}};(function(){function M(y){W.asm=y.exports,h=W.asm.D,w(),BD=W.asm.I,i.unshift(W.asm.E),--jD==0&&dD&&(y=dD,dD=null,y())}function N(y){M(y.instance)}function f(y){return(typeof fetch=="function"?fetch(U,{credentials:"same-origin"}).then(function(n){if(!n.ok)throw"failed to load wasm binary file at '"+U+"'";return n.arrayBuffer()}).catch(function(){return QD()}):Promise.resolve().then(function(){return QD()})).then(function(n){return WebAssembly.instantiate(n,p)}).then(function(n){return n}).then(y,function(n){L("failed to asynchronously prepare wasm: "+n),PD(n)})}var p={a:i0};if(jD++,W.instantiateWasm)try{return W.instantiateWasm(p,M)}catch(y){L("Module.instantiateWasm callback failed with error: "+y),T(y)}(typeof WebAssembly.instantiateStreaming!="function"||oD()||typeof fetch!="function"?f(N):fetch(U,{credentials:"same-origin"}).then(function(y){return WebAssembly.instantiateStreaming(y,p).then(N,function(n){return L("wasm streaming compile failed: "+n),L("falling back to ArrayBuffer instantiation"),f(N)})})).catch(T)})();var $2=W.___getTypeName=function(){return($2=W.___getTypeName=W.asm.F).apply(null,arguments)};function v2(){return(v2=W.asm.H).apply(null,arguments)}function V2(){return(V2=W.asm.J).apply(null,arguments)}function W2(){0<jD||(ID(XD),0<jD||G||(G=!0,W.calledRun=!0,E||(ID(i),H(W),ID(RD))))}return W.__embind_initialize_bindings=function(){return(W.__embind_initialize_bindings=W.asm.G).apply(null,arguments)},W.dynCall_jiji=function(){return(W.dynCall_jiji=W.asm.K).apply(null,arguments)},dD=function M(){G||W2(),G||(dD=M)},W2(),C.ready}})();async function JL(_){let C=await SN({instantiateWasm(U,G){WebAssembly.instantiate(_,U).then((A)=>{A instanceof WebAssembly.Instance?G(A):G(A.instance)})}});return WL(C)}var lD=await JL(await bN(VN(import.meta.url).resolve("./yoga.wasm")));var nL=H0(zL(),1),aL=H0(RL(),1);import uM from"process";function ZO({onlyFirst:_=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",_?void 0:"g")}var jN=ZO();function v1(_){if(typeof _!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof _}\``);return _.replace(jN,"")}var qL=H0(NL(),1),PL=H0(EL(),1);function v3(_,C={}){if(typeof _!=="string"||_.length===0)return 0;if(C={ambiguousIsNarrow:!0,...C},_=v1(_),_.length===0)return 0;_=_.replace(PL.default()," ");let U=C.ambiguousIsNarrow?1:2,G=0;for(let A of _){let Q=A.codePointAt(0);if(Q<=31||Q>=127&&Q<=159)continue;if(Q>=768&&Q<=879)continue;switch(qL.default.eastAsianWidth(A)){case"F":case"W":G+=2;break;case"A":G+=U;break;default:G+=1}}return G}function Z6(_){let C=0;for(let U of _.split(`
|
|
163
|
+
`))C=Math.max(C,v3(U));return C}var wL={},yN=(_)=>{if(_.length===0)return{width:0,height:0};let C=wL[_];if(C)return C;let U=Z6(_),G=_.split(`
|
|
164
|
+
`).length;return wL[_]={width:U,height:G},{width:U,height:G}},LO=yN;var IL=(_=0)=>(C)=>`\x1B[${C+_}m`,kL=(_=0)=>(C)=>`\x1B[${38+_};5;${C}m`,vL=(_=0)=>(C,U,G)=>`\x1B[${38+_};2;${C};${U};${G}m`,z2={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},zI=Object.keys(z2.modifier),gN=Object.keys(z2.color),xN=Object.keys(z2.bgColor),RI=[...gN,...xN];function mN(){let _=new Map;for(let[C,U]of Object.entries(z2)){for(let[G,A]of Object.entries(U))z2[G]={open:`\x1B[${A[0]}m`,close:`\x1B[${A[1]}m`},U[G]=z2[G],_.set(A[0],A[1]);Object.defineProperty(z2,C,{value:U,enumerable:!1})}return Object.defineProperty(z2,"codes",{value:_,enumerable:!1}),z2.color.close="\x1B[39m",z2.bgColor.close="\x1B[49m",z2.color.ansi=IL(),z2.color.ansi256=kL(),z2.color.ansi16m=vL(),z2.bgColor.ansi=IL(10),z2.bgColor.ansi256=kL(10),z2.bgColor.ansi16m=vL(10),Object.defineProperties(z2,{rgbToAnsi256:{value(C,U,G){if(C===U&&U===G){if(C<8)return 16;if(C>248)return 231;return Math.round((C-8)/247*24)+232}return 16+36*Math.round(C/255*5)+6*Math.round(U/255*5)+Math.round(G/255*5)},enumerable:!1},hexToRgb:{value(C){let U=/[a-f\d]{6}|[a-f\d]{3}/i.exec(C.toString(16));if(!U)return[0,0,0];let[G]=U;if(G.length===3)G=[...G].map((Q)=>Q+Q).join("");let A=Number.parseInt(G,16);return[A>>16&255,A>>8&255,A&255]},enumerable:!1},hexToAnsi256:{value:(C)=>z2.rgbToAnsi256(...z2.hexToRgb(C)),enumerable:!1},ansi256ToAnsi:{value(C){if(C<8)return 30+C;if(C<16)return 90+(C-8);let U,G,A;if(C>=232)U=((C-232)*10+8)/255,G=U,A=U;else{C-=16;let L=C%36;U=Math.floor(C/36)/5,G=Math.floor(L/6)/5,A=L%6/5}let Q=Math.max(U,G,A)*2;if(Q===0)return 30;let J=30+(Math.round(A)<<2|Math.round(G)<<1|Math.round(U));if(Q===2)J+=60;return J},enumerable:!1},rgbToAnsi:{value:(C,U,G)=>z2.ansi256ToAnsi(z2.rgbToAnsi256(C,U,G)),enumerable:!1},hexToAnsi:{value:(C)=>z2.ansi256ToAnsi(z2.hexToAnsi256(C)),enumerable:!1}}),z2}var cN=mN(),R2=cN;var n4=new Set(["\x1B","\x9B"]),pN=39,$O="\x07",bL="[",lN="]",VL="m",WO=`${lN}8;;`,TL=(_)=>`${n4.values().next().value}${bL}${_}${VL}`,SL=(_)=>`${n4.values().next().value}${WO}${_}${$O}`,dN=(_)=>_.split(" ").map((C)=>v3(C)),QO=(_,C,U)=>{let G=[...C],A=!1,Q=!1,J=v3(v1(_[_.length-1]));for(let[L,W]of G.entries()){let H=v3(W);if(J+H<=U)_[_.length-1]+=W;else _.push(W),J=0;if(n4.has(W))A=!0,Q=G.slice(L+1).join("").startsWith(WO);if(A){if(Q){if(W===$O)A=!1,Q=!1}else if(W===VL)A=!1;continue}if(J+=H,J===U&&L<G.length-1)_.push(""),J=0}if(!J&&_[_.length-1].length>0&&_.length>1)_[_.length-2]+=_.pop()},iN=(_)=>{let C=_.split(" "),U=C.length;while(U>0){if(v3(C[U-1])>0)break;U--}if(U===C.length)return _;return C.slice(0,U).join(" ")+C.slice(U).join("")},nN=(_,C,U={})=>{if(U.trim!==!1&&_.trim()==="")return"";let G="",A,Q,J=dN(_),L=[""];for(let[H,T]of _.split(" ").entries()){if(U.trim!==!1)L[L.length-1]=L[L.length-1].trimStart();let h=v3(L[L.length-1]);if(H!==0){if(h>=C&&(U.wordWrap===!1||U.trim===!1))L.push(""),h=0;if(h>0||U.trim===!1)L[L.length-1]+=" ",h++}if(U.hard&&J[H]>C){let E=C-h,q=1+Math.floor((J[H]-E-1)/C);if(Math.floor((J[H]-1)/C)<q)L.push("");QO(L,T,C);continue}if(h+J[H]>C&&h>0&&J[H]>0){if(U.wordWrap===!1&&h<C){QO(L,T,C);continue}L.push("")}if(h+J[H]>C&&U.wordWrap===!1){QO(L,T,C);continue}L[L.length-1]+=T}if(U.trim!==!1)L=L.map((H)=>iN(H));let W=[...L.join(`
|
|
165
|
+
`)];for(let[H,T]of W.entries()){if(G+=T,n4.has(T)){let{groups:E}=new RegExp(`(?:\\${bL}(?<code>\\d+)m|\\${WO}(?<uri>.*)${$O})`).exec(W.slice(H).join(""))||{groups:{}};if(E.code!==void 0){let q=Number.parseFloat(E.code);A=q===pN?void 0:q}else if(E.uri!==void 0)Q=E.uri.length===0?void 0:E.uri}let h=R2.codes.get(Number(A));if(W[H+1]===`
|
|
166
|
+
`){if(Q)G+=SL("");if(A&&h)G+=TL(h)}else if(T===`
|
|
167
|
+
`){if(A&&h)G+=TL(A);if(Q)G+=SL(Q)}}return G};function JO(_,C,U){return String(_).normalize().replace(/\r\n/g,`
|
|
168
|
+
`).split(`
|
|
169
|
+
`).map((G)=>nN(G,C,U)).join(`
|
|
170
|
+
`)}function A6(_){if(!Number.isInteger(_))return!1;return _>=4352&&(_<=4447||_===9001||_===9002||11904<=_&&_<=12871&&_!==12351||12880<=_&&_<=19903||19968<=_&&_<=42182||43360<=_&&_<=43388||44032<=_&&_<=55203||63744<=_&&_<=64255||65040<=_&&_<=65049||65072<=_&&_<=65131||65281<=_&&_<=65376||65504<=_&&_<=65510||110592<=_&&_<=110593||127488<=_&&_<=127569||131072<=_&&_<=262141)}var aN=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,fL=["\x1B","\x9B"],a4=(_)=>`${fL[0]}[${_}m`,hL=(_,C,U)=>{let G=[];_=[..._];for(let A of _){let Q=A;if(A.includes(";"))A=A.split(";")[0][0]+"0";let J=R2.codes.get(Number.parseInt(A,10));if(J){let L=_.indexOf(J.toString());if(L===-1)G.push(a4(C?J:Q));else _.splice(L,1)}else if(C){G.push(a4(0));break}else G.push(a4(Q))}if(C){if(G=G.filter((A,Q)=>G.indexOf(A)===Q),U!==void 0){let A=a4(R2.codes.get(Number.parseInt(U,10)));G=G.reduce((Q,J)=>J===A?[J,...Q]:[...Q,J],[])}}return G.join("")};function rF(_,C,U){let G=[..._],A=[],Q=typeof U==="number"?U:G.length,J=!1,L,W=0,H="";for(let[T,h]of G.entries()){let E=!1;if(fL.includes(h)){let q=/\d[^m]*/.exec(_.slice(T,T+18));if(L=q&&q.length>0?q[0]:void 0,W<Q){if(J=!0,L!==void 0)A.push(L)}}else if(J&&h==="m")J=!1,E=!0;if(!J&&!E)W++;if(!aN.test(h)&&A6(h.codePointAt())){if(W++,typeof U!=="number")Q++}if(W>C&&W<=Q)H+=h;else if(W===C&&!J&&L!==void 0)H=hL(A);else if(W>=Q){H+=hL(A,!0,L);break}}return H}function r4(_,C,U){if(_.charAt(C)===" ")return C;for(let G=1;G<=3;G++)if(U){if(_.charAt(C+G)===" ")return C+G}else if(_.charAt(C-G)===" ")return C-G;return C}function YO(_,C,U){U={position:"end",preferTruncationOnSpace:!1,truncationCharacter:"\u2026",...U};let{position:G,space:A,preferTruncationOnSpace:Q}=U,{truncationCharacter:J}=U;if(typeof _!=="string")throw TypeError(`Expected \`input\` to be a string, got ${typeof _}`);if(typeof C!=="number")throw TypeError(`Expected \`columns\` to be a number, got ${typeof C}`);if(C<1)return"";if(C===1)return J;let L=v3(_);if(L<=C)return _;if(G==="start"){if(Q){let W=r4(_,L-C+1,!0);return J+rF(_,W,L).trim()}if(A===!0)J+=" ";return J+rF(_,L-C+v3(J),L)}if(G==="middle"){if(A===!0)J=` ${J} `;let W=Math.floor(C/2);if(Q){let H=r4(_,W),T=r4(_,L-(C-W)+1,!0);return rF(_,0,H)+J+rF(_,T,L).trim()}return rF(_,0,W)+J+rF(_,L-(C-W)+v3(J),L)}if(G==="end"){if(Q){let W=r4(_,C-1);return rF(_,0,W)+J}if(A===!0)J=` ${J}`;return rF(_,0,C-v3(J))+J}throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${G}`)}var jL={},rN=(_,C,U)=>{let G=_+String(C)+String(U),A=jL[G];if(A)return A;let Q=_;if(U==="wrap")Q=JO(_,C,{trim:!1,hard:!0});if(U.startsWith("truncate")){let J="end";if(U==="truncate-middle")J="middle";if(U==="truncate-start")J="start";Q=YO(_,C,{position:J})}return jL[G]=Q,Q},o4=rN;var yL=(_)=>{let C="";for(let U=0;U<_.childNodes.length;U++){let G=_.childNodes[U];if(G===void 0)continue;let A="";if(G.nodeName==="#text")A=G.nodeValue;else{if(G.nodeName==="ink-text"||G.nodeName==="ink-virtual-text")A=yL(G);if(A.length>0&&typeof G.internal_transform==="function")A=G.internal_transform(A,U)}C+=A}return C},s4=yL;var t4=(_)=>{let C={nodeName:_,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:_==="ink-virtual-text"?void 0:lD.Node.create()};if(_==="ink-text")C.yogaNode?.setMeasureFunc(oN.bind(null,C));return C},e4=(_,C)=>{if(C.parentNode)T1(C.parentNode,C);if(C.parentNode=_,_.childNodes.push(C),C.yogaNode)_.yogaNode?.insertChild(C.yogaNode,_.yogaNode.getChildCount());if(_.nodeName==="ink-text"||_.nodeName==="ink-virtual-text")D9(_)},KO=(_,C,U)=>{if(C.parentNode)T1(C.parentNode,C);C.parentNode=_;let G=_.childNodes.indexOf(U);if(G>=0){if(_.childNodes.splice(G,0,C),C.yogaNode)_.yogaNode?.insertChild(C.yogaNode,G);return}if(_.childNodes.push(C),C.yogaNode)_.yogaNode?.insertChild(C.yogaNode,_.yogaNode.getChildCount());if(_.nodeName==="ink-text"||_.nodeName==="ink-virtual-text")D9(_)},T1=(_,C)=>{if(C.yogaNode)C.parentNode?.yogaNode?.removeChild(C.yogaNode);C.parentNode=void 0;let U=_.childNodes.indexOf(C);if(U>=0)_.childNodes.splice(U,1);if(_.nodeName==="ink-text"||_.nodeName==="ink-virtual-text")D9(_)},zO=(_,C,U)=>{_.attributes[C]=U},RO=(_,C)=>{_.style=C},gL=(_)=>{let C={nodeName:"#text",nodeValue:_,yogaNode:void 0,parentNode:void 0,style:{}};return S1(C,_),C},oN=function(_,C){let U=_.nodeName==="#text"?_.nodeValue:s4(_),G=LO(U);if(G.width<=C)return G;if(G.width>=1&&C>0&&C<1)return G;let A=_.style?.textWrap??"wrap",Q=o4(U,C,A);return LO(Q)},xL=(_)=>{if(!_?.parentNode)return;return _.yogaNode??xL(_.parentNode)},D9=(_)=>{xL(_)?.markDirty()},S1=(_,C)=>{if(typeof C!=="string")C=String(C);_.nodeValue=C,D9(_)};var tN=(_,C)=>{if("position"in C)_.setPositionType(C.position==="absolute"?lD.POSITION_TYPE_ABSOLUTE:lD.POSITION_TYPE_RELATIVE)},eN=(_,C)=>{if("margin"in C)_.setMargin(lD.EDGE_ALL,C.margin??0);if("marginX"in C)_.setMargin(lD.EDGE_HORIZONTAL,C.marginX??0);if("marginY"in C)_.setMargin(lD.EDGE_VERTICAL,C.marginY??0);if("marginLeft"in C)_.setMargin(lD.EDGE_START,C.marginLeft||0);if("marginRight"in C)_.setMargin(lD.EDGE_END,C.marginRight||0);if("marginTop"in C)_.setMargin(lD.EDGE_TOP,C.marginTop||0);if("marginBottom"in C)_.setMargin(lD.EDGE_BOTTOM,C.marginBottom||0)},DM=(_,C)=>{if("padding"in C)_.setPadding(lD.EDGE_ALL,C.padding??0);if("paddingX"in C)_.setPadding(lD.EDGE_HORIZONTAL,C.paddingX??0);if("paddingY"in C)_.setPadding(lD.EDGE_VERTICAL,C.paddingY??0);if("paddingLeft"in C)_.setPadding(lD.EDGE_LEFT,C.paddingLeft||0);if("paddingRight"in C)_.setPadding(lD.EDGE_RIGHT,C.paddingRight||0);if("paddingTop"in C)_.setPadding(lD.EDGE_TOP,C.paddingTop||0);if("paddingBottom"in C)_.setPadding(lD.EDGE_BOTTOM,C.paddingBottom||0)},FM=(_,C)=>{if("flexGrow"in C)_.setFlexGrow(C.flexGrow??0);if("flexShrink"in C)_.setFlexShrink(typeof C.flexShrink==="number"?C.flexShrink:1);if("flexWrap"in C){if(C.flexWrap==="nowrap")_.setFlexWrap(lD.WRAP_NO_WRAP);if(C.flexWrap==="wrap")_.setFlexWrap(lD.WRAP_WRAP);if(C.flexWrap==="wrap-reverse")_.setFlexWrap(lD.WRAP_WRAP_REVERSE)}if("flexDirection"in C){if(C.flexDirection==="row")_.setFlexDirection(lD.FLEX_DIRECTION_ROW);if(C.flexDirection==="row-reverse")_.setFlexDirection(lD.FLEX_DIRECTION_ROW_REVERSE);if(C.flexDirection==="column")_.setFlexDirection(lD.FLEX_DIRECTION_COLUMN);if(C.flexDirection==="column-reverse")_.setFlexDirection(lD.FLEX_DIRECTION_COLUMN_REVERSE)}if("flexBasis"in C)if(typeof C.flexBasis==="number")_.setFlexBasis(C.flexBasis);else if(typeof C.flexBasis==="string")_.setFlexBasisPercent(Number.parseInt(C.flexBasis,10));else _.setFlexBasis(Number.NaN);if("alignItems"in C){if(C.alignItems==="stretch"||!C.alignItems)_.setAlignItems(lD.ALIGN_STRETCH);if(C.alignItems==="flex-start")_.setAlignItems(lD.ALIGN_FLEX_START);if(C.alignItems==="center")_.setAlignItems(lD.ALIGN_CENTER);if(C.alignItems==="flex-end")_.setAlignItems(lD.ALIGN_FLEX_END)}if("alignSelf"in C){if(C.alignSelf==="auto"||!C.alignSelf)_.setAlignSelf(lD.ALIGN_AUTO);if(C.alignSelf==="flex-start")_.setAlignSelf(lD.ALIGN_FLEX_START);if(C.alignSelf==="center")_.setAlignSelf(lD.ALIGN_CENTER);if(C.alignSelf==="flex-end")_.setAlignSelf(lD.ALIGN_FLEX_END)}if("justifyContent"in C){if(C.justifyContent==="flex-start"||!C.justifyContent)_.setJustifyContent(lD.JUSTIFY_FLEX_START);if(C.justifyContent==="center")_.setJustifyContent(lD.JUSTIFY_CENTER);if(C.justifyContent==="flex-end")_.setJustifyContent(lD.JUSTIFY_FLEX_END);if(C.justifyContent==="space-between")_.setJustifyContent(lD.JUSTIFY_SPACE_BETWEEN);if(C.justifyContent==="space-around")_.setJustifyContent(lD.JUSTIFY_SPACE_AROUND)}},_M=(_,C)=>{if("width"in C)if(typeof C.width==="number")_.setWidth(C.width);else if(typeof C.width==="string")_.setWidthPercent(Number.parseInt(C.width,10));else _.setWidthAuto();if("height"in C)if(typeof C.height==="number")_.setHeight(C.height);else if(typeof C.height==="string")_.setHeightPercent(Number.parseInt(C.height,10));else _.setHeightAuto();if("minWidth"in C)if(typeof C.minWidth==="string")_.setMinWidthPercent(Number.parseInt(C.minWidth,10));else _.setMinWidth(C.minWidth??0);if("minHeight"in C)if(typeof C.minHeight==="string")_.setMinHeightPercent(Number.parseInt(C.minHeight,10));else _.setMinHeight(C.minHeight??0)},CM=(_,C)=>{if("display"in C)_.setDisplay(C.display==="flex"?lD.DISPLAY_FLEX:lD.DISPLAY_NONE)},BM=(_,C)=>{if("borderStyle"in C){let U=C.borderStyle?1:0;if(C.borderTop!==!1)_.setBorder(lD.EDGE_TOP,U);if(C.borderBottom!==!1)_.setBorder(lD.EDGE_BOTTOM,U);if(C.borderLeft!==!1)_.setBorder(lD.EDGE_LEFT,U);if(C.borderRight!==!1)_.setBorder(lD.EDGE_RIGHT,U)}},OM=(_,C)=>{if("gap"in C)_.setGap(lD.GUTTER_ALL,C.gap??0);if("columnGap"in C)_.setGap(lD.GUTTER_COLUMN,C.columnGap??0);if("rowGap"in C)_.setGap(lD.GUTTER_ROW,C.rowGap??0)},GM=(_,C={})=>{tN(_,C),eN(_,C),DM(_,C),FM(_,C),_M(_,C),CM(_,C),BM(_,C),OM(_,C)},HO=GM;if(uM.env.DEV==="true")try{await Promise.resolve().then(() => (lL(),UM))}catch(_){if(_.code==="MODULE_NOT_FOUND")console.warn(`
|
|
171
|
+
Debugging with React Devtools requires \`react-devtools-core\` dependency to be installed.
|
|
172
|
+
|
|
173
|
+
$ npm install --save-dev react-devtools-core
|
|
174
|
+
`.trim()+`
|
|
175
|
+
`);else throw _}var dL=(_,C)=>{if(_===C)return;if(!_)return C;let U={},G=!1;for(let A of Object.keys(_))if(C?!Object.hasOwnProperty.call(C,A):!0)U[A]=void 0,G=!0;if(C){for(let A of Object.keys(C))if(C[A]!==_[A])U[A]=C[A],G=!0}return G?U:void 0},iL=(_)=>{_?.unsetMeasureFunc(),_?.freeRecursive()},Q6=nL.default({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(_){if(typeof _.onComputeLayout==="function")_.onComputeLayout();if(_.isStaticDirty){if(_.isStaticDirty=!1,typeof _.onImmediateRender==="function")_.onImmediateRender();return}if(typeof _.onRender==="function")_.onRender()},getChildHostContext(_,C){let U=_.isInsideText,G=C==="ink-text"||C==="ink-virtual-text";if(U===G)return _;return{isInsideText:G}},shouldSetTextContent:()=>!1,createInstance(_,C,U,G){if(G.isInsideText&&_==="ink-box")throw Error("<Box> can\u2019t be nested inside <Text> component");let A=_==="ink-text"&&G.isInsideText?"ink-virtual-text":_,Q=t4(A);for(let[J,L]of Object.entries(C)){if(J==="children")continue;if(J==="style"){if(RO(Q,L),Q.yogaNode)HO(Q.yogaNode,L);continue}if(J==="internal_transform"){Q.internal_transform=L;continue}if(J==="internal_static"){Q.internal_static=!0;continue}zO(Q,J,L)}return Q},createTextInstance(_,C,U){if(!U.isInsideText)throw Error(`Text string "${_}" must be rendered inside <Text> component`);return gL(_)},resetTextContent(){},hideTextInstance(_){S1(_,"")},unhideTextInstance(_,C){S1(_,C)},getPublicInstance:(_)=>_,hideInstance(_){_.yogaNode?.setDisplay(lD.DISPLAY_NONE)},unhideInstance(_){_.yogaNode?.setDisplay(lD.DISPLAY_FLEX)},appendInitialChild:e4,appendChild:e4,insertBefore:KO,finalizeInitialChildren(_,C,U,G){if(_.internal_static)G.isStaticDirty=!0,G.staticNode=_;return!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentEventPriority:()=>aL.DefaultEventPriority,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:e4,insertInContainerBefore:KO,removeChildFromContainer(_,C){T1(_,C),iL(C.yogaNode)},prepareUpdate(_,C,U,G,A){if(_.internal_static)A.isStaticDirty=!0;let Q=dL(U,G),J=dL(U.style,G.style);if(!Q&&!J)return null;return{props:Q,style:J}},commitUpdate(_,{props:C,style:U}){if(C)for(let[G,A]of Object.entries(C)){if(G==="style"){RO(_,A);continue}if(G==="internal_transform"){_.internal_transform=A;continue}if(G==="internal_static"){_.internal_static=!0;continue}zO(_,G,A)}if(U&&_.yogaNode)HO(_.yogaNode,U)},commitTextUpdate(_,C,U){S1(_,U)},removeChild(_,C){T1(_,C),iL(C.yogaNode)}});function NO(_,C=1,U={}){let{indent:G=" ",includeEmptyLines:A=!1}=U;if(typeof _!=="string")throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof _}\``);if(typeof C!=="number")throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof C}\``);if(C<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${C}\``);if(typeof G!=="string")throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof G}\``);if(C===0)return _;let Q=A?/^/gm:/^(?!\s*$)/gm;return _.replace(Q,G.repeat(C))}var ZM=(_)=>{return _.getComputedWidth()-_.getComputedPadding(lD.EDGE_LEFT)-_.getComputedPadding(lD.EDGE_RIGHT)-_.getComputedBorder(lD.EDGE_LEFT)-_.getComputedBorder(lD.EDGE_RIGHT)},rL=ZM;var ZQ=H0(tL(),1);var eL=(_=0)=>(C)=>`\x1B[${C+_}m`,DQ=(_=0)=>(C)=>`\x1B[${38+_};5;${C}m`,FQ=(_=0)=>(C,U,G)=>`\x1B[${38+_};2;${C};${U};${G}m`,H2={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Ck=Object.keys(H2.modifier),LM=Object.keys(H2.color),QM=Object.keys(H2.bgColor),Bk=[...LM,...QM];function $M(){let _=new Map;for(let[C,U]of Object.entries(H2)){for(let[G,A]of Object.entries(U))H2[G]={open:`\x1B[${A[0]}m`,close:`\x1B[${A[1]}m`},U[G]=H2[G],_.set(A[0],A[1]);Object.defineProperty(H2,C,{value:U,enumerable:!1})}return Object.defineProperty(H2,"codes",{value:_,enumerable:!1}),H2.color.close="\x1B[39m",H2.bgColor.close="\x1B[49m",H2.color.ansi=eL(),H2.color.ansi256=DQ(),H2.color.ansi16m=FQ(),H2.bgColor.ansi=eL(10),H2.bgColor.ansi256=DQ(10),H2.bgColor.ansi16m=FQ(10),Object.defineProperties(H2,{rgbToAnsi256:{value(C,U,G){if(C===U&&U===G){if(C<8)return 16;if(C>248)return 231;return Math.round((C-8)/247*24)+232}return 16+36*Math.round(C/255*5)+6*Math.round(U/255*5)+Math.round(G/255*5)},enumerable:!1},hexToRgb:{value(C){let U=/[a-f\d]{6}|[a-f\d]{3}/i.exec(C.toString(16));if(!U)return[0,0,0];let[G]=U;if(G.length===3)G=[...G].map((Q)=>Q+Q).join("");let A=Number.parseInt(G,16);return[A>>16&255,A>>8&255,A&255]},enumerable:!1},hexToAnsi256:{value:(C)=>H2.rgbToAnsi256(...H2.hexToRgb(C)),enumerable:!1},ansi256ToAnsi:{value(C){if(C<8)return 30+C;if(C<16)return 90+(C-8);let U,G,A;if(C>=232)U=((C-232)*10+8)/255,G=U,A=U;else{C-=16;let L=C%36;U=Math.floor(C/36)/5,G=Math.floor(L/6)/5,A=L%6/5}let Q=Math.max(U,G,A)*2;if(Q===0)return 30;let J=30+(Math.round(A)<<2|Math.round(G)<<1|Math.round(U));if(Q===2)J+=60;return J},enumerable:!1},rgbToAnsi:{value:(C,U,G)=>H2.ansi256ToAnsi(H2.rgbToAnsi256(C,U,G)),enumerable:!1},hexToAnsi:{value:(C)=>H2.ansi256ToAnsi(H2.hexToAnsi256(C)),enumerable:!1}}),H2}var WM=$M(),wF=WM;import EO from"process";import JM from"os";import _Q from"tty";function AF(_,C=globalThis.Deno?globalThis.Deno.args:EO.argv){let U=_.startsWith("-")?"":_.length===1?"-":"--",G=C.indexOf(U+_),A=C.indexOf("--");return G!==-1&&(A===-1||G<A)}var{env:N2}=EO,F9;if(AF("no-color")||AF("no-colors")||AF("color=false")||AF("color=never"))F9=0;else if(AF("color")||AF("colors")||AF("color=true")||AF("color=always"))F9=1;function YM(){if("FORCE_COLOR"in N2){if(N2.FORCE_COLOR==="true")return 1;if(N2.FORCE_COLOR==="false")return 0;return N2.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(N2.FORCE_COLOR,10),3)}}function KM(_){if(_===0)return!1;return{level:_,hasBasic:!0,has256:_>=2,has16m:_>=3}}function zM(_,{streamIsTTY:C,sniffFlags:U=!0}={}){let G=YM();if(G!==void 0)F9=G;let A=U?F9:G;if(A===0)return 0;if(U){if(AF("color=16m")||AF("color=full")||AF("color=truecolor"))return 3;if(AF("color=256"))return 2}if("TF_BUILD"in N2&&"AGENT_NAME"in N2)return 1;if(_&&!C&&A===void 0)return 0;let Q=A||0;if(N2.TERM==="dumb")return Q;if(EO.platform==="win32"){let J=JM.release().split(".");if(Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in N2){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((J)=>(J in N2)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((J)=>(J in N2))||N2.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in N2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(N2.TEAMCITY_VERSION)?1:0;if(N2.COLORTERM==="truecolor")return 3;if(N2.TERM==="xterm-kitty")return 3;if(N2.TERM==="xterm-ghostty")return 3;if(N2.TERM==="wezterm")return 3;if("TERM_PROGRAM"in N2){let J=Number.parseInt((N2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(N2.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(N2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(N2.TERM))return 1;if("COLORTERM"in N2)return 1;return Q}function CQ(_,C={}){let U=zM(_,{streamIsTTY:_&&_.isTTY,...C});return KM(U)}var RM={stdout:CQ({isTTY:_Q.isatty(1)}),stderr:CQ({isTTY:_Q.isatty(2)})},BQ=RM;function OQ(_,C,U){let G=_.indexOf(C);if(G===-1)return _;let A=C.length,Q=0,J="";do J+=_.slice(Q,G)+C+U,Q=G+A,G=_.indexOf(C,Q);while(G!==-1);return J+=_.slice(Q),J}function GQ(_,C,U,G){let A=0,Q="";do{let J=_[G-1]==="\r";Q+=_.slice(A,J?G-1:G)+C+(J?`\r
|
|
176
|
+
`:`
|
|
177
|
+
`)+U,A=G+1,G=_.indexOf(`
|
|
178
|
+
`,A)}while(G!==-1);return Q+=_.slice(A),Q}var{stdout:XQ,stderr:UQ}=BQ,qO=Symbol("GENERATOR"),O_=Symbol("STYLER"),b1=Symbol("IS_EMPTY"),uQ=["ansi","ansi","ansi256","ansi16m"],G_=Object.create(null),HM=(_,C={})=>{if(C.level&&!(Number.isInteger(C.level)&&C.level>=0&&C.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let U=XQ?XQ.level:0;_.level=C.level===void 0?U:C.level};var NM=(_)=>{let C=(...U)=>U.join(" ");return HM(C,_),Object.setPrototypeOf(C,V1.prototype),C};function V1(_){return NM(_)}Object.setPrototypeOf(V1.prototype,Function.prototype);for(let[_,C]of Object.entries(wF))G_[_]={get(){let U=_9(this,wO(C.open,C.close,this[O_]),this[b1]);return Object.defineProperty(this,_,{value:U}),U}};G_.visible={get(){let _=_9(this,this[O_],!0);return Object.defineProperty(this,"visible",{value:_}),_}};var PO=(_,C,U,...G)=>{if(_==="rgb"){if(C==="ansi16m")return wF[U].ansi16m(...G);if(C==="ansi256")return wF[U].ansi256(wF.rgbToAnsi256(...G));return wF[U].ansi(wF.rgbToAnsi(...G))}if(_==="hex")return PO("rgb",C,U,...wF.hexToRgb(...G));return wF[U][_](...G)},MM=["rgb","hex","ansi256"];for(let _ of MM){G_[_]={get(){let{level:U}=this;return function(...G){let A=wO(PO(_,uQ[U],"color",...G),wF.color.close,this[O_]);return _9(this,A,this[b1])}}};let C="bg"+_[0].toUpperCase()+_.slice(1);G_[C]={get(){let{level:U}=this;return function(...G){let A=wO(PO(_,uQ[U],"bgColor",...G),wF.bgColor.close,this[O_]);return _9(this,A,this[b1])}}}}var EM=Object.defineProperties(()=>{},{...G_,level:{enumerable:!0,get(){return this[qO].level},set(_){this[qO].level=_}}}),wO=(_,C,U)=>{let G,A;if(U===void 0)G=_,A=C;else G=U.openAll+_,A=C+U.closeAll;return{open:_,close:C,openAll:G,closeAll:A,parent:U}},_9=(_,C,U)=>{let G=(...A)=>qM(G,A.length===1?""+A[0]:A.join(" "));return Object.setPrototypeOf(G,EM),G[qO]=_,G[O_]=C,G[b1]=U,G},qM=(_,C)=>{if(_.level<=0||!C)return _[b1]?"":C;let U=_[O_];if(U===void 0)return C;let{openAll:G,closeAll:A}=U;if(C.includes("\x1B"))while(U!==void 0)C=OQ(C,U.close,U.open),U=U.parent;let Q=C.indexOf(`
|
|
179
|
+
`);if(Q!==-1)C=GQ(C,A,G,Q);return G+C+A};Object.defineProperties(V1.prototype,G_);var PM=V1(),$k=V1({level:UQ?UQ.level:0});var r0=PM;var wM=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,IM=/^ansi256\(\s?(\d+)\s?\)$/,kM=(_)=>{return _ in r0},vM=(_,C,U)=>{if(!C)return _;if(kM(C)){if(U==="foreground")return r0[C](_);let G=`bg${C[0].toUpperCase()+C.slice(1)}`;return r0[G](_)}if(C.startsWith("#"))return U==="foreground"?r0.hex(C)(_):r0.bgHex(C)(_);if(C.startsWith("ansi256")){let G=IM.exec(C);if(!G)return _;let A=Number(G[1]);return U==="foreground"?r0.ansi256(A)(_):r0.bgAnsi256(A)(_)}if(C.startsWith("rgb")){let G=wM.exec(C);if(!G)return _;let A=Number(G[1]),Q=Number(G[2]),J=Number(G[3]);return U==="foreground"?r0.rgb(A,Q,J)(_):r0.bgRgb(A,Q,J)(_)}return _},T8=vM;var TM=(_,C,U,G)=>{if(U.style.borderStyle){let A=U.yogaNode.getComputedWidth(),Q=U.yogaNode.getComputedHeight(),J=typeof U.style.borderStyle==="string"?ZQ.default[U.style.borderStyle]:U.style.borderStyle,L=U.style.borderTopColor??U.style.borderColor,W=U.style.borderBottomColor??U.style.borderColor,H=U.style.borderLeftColor??U.style.borderColor,T=U.style.borderRightColor??U.style.borderColor,h=U.style.borderTopDimColor??U.style.borderDimColor,E=U.style.borderBottomDimColor??U.style.borderDimColor,q=U.style.borderLeftDimColor??U.style.borderDimColor,w=U.style.borderRightDimColor??U.style.borderDimColor,V=U.style.borderTop!==!1,b=U.style.borderBottom!==!1,S=U.style.borderLeft!==!1,s=U.style.borderRight!==!1,t=A-(S?1:0)-(s?1:0),x=V?T8((S?J.topLeft:"")+J.top.repeat(t)+(s?J.topRight:""),L,"foreground"):void 0;if(V&&h)x=r0.dim(x);let FD=Q;if(V)FD-=1;if(b)FD-=1;let ZD=(T8(J.left,H,"foreground")+`
|
|
180
|
+
`).repeat(FD);if(q)ZD=r0.dim(ZD);let BD=(T8(J.right,T,"foreground")+`
|
|
181
|
+
`).repeat(FD);if(w)BD=r0.dim(BD);let XD=b?T8((S?J.bottomLeft:"")+J.bottom.repeat(t)+(s?J.bottomRight:""),W,"foreground"):void 0;if(b&&E)XD=r0.dim(XD);let i=V?1:0;if(x)G.write(_,C,x,{transformers:[]});if(S)G.write(_,C+i,ZD,{transformers:[]});if(s)G.write(_+A-1,C+i,BD,{transformers:[]});if(XD)G.write(_,C+Q-1,XD,{transformers:[]})}},AQ=TM;var SM=(_,C)=>{let U=_.childNodes[0]?.yogaNode;if(U){let G=U.getComputedLeft(),A=U.getComputedTop();C=`
|
|
182
|
+
`.repeat(A)+NO(C,G)}return C},LQ=(_,C,U)=>{let{offsetX:G=0,offsetY:A=0,transformers:Q=[],skipStaticElements:J}=U;if(J&&_.internal_static)return;let{yogaNode:L}=_;if(L){if(L.getDisplay()===lD.DISPLAY_NONE)return;let W=G+L.getComputedLeft(),H=A+L.getComputedTop(),T=Q;if(typeof _.internal_transform==="function")T=[_.internal_transform,...Q];if(_.nodeName==="ink-text"){let E=s4(_);if(E.length>0){let q=Z6(E),w=rL(L);if(q>w){let V=_.style.textWrap??"wrap";E=o4(E,w,V)}E=SM(_,E),C.write(W,H,E,{transformers:T})}return}let h=!1;if(_.nodeName==="ink-box"){AQ(W,H,_,C);let E=_.style.overflowX==="hidden"||_.style.overflow==="hidden",q=_.style.overflowY==="hidden"||_.style.overflow==="hidden";if(E||q){let w=E?W+L.getComputedBorder(lD.EDGE_LEFT):void 0,V=E?W+L.getComputedWidth()-L.getComputedBorder(lD.EDGE_RIGHT):void 0,b=q?H+L.getComputedBorder(lD.EDGE_TOP):void 0,S=q?H+L.getComputedHeight()-L.getComputedBorder(lD.EDGE_BOTTOM):void 0;C.clip({x1:w,x2:V,y1:b,y2:S}),h=!0}}if(_.nodeName==="ink-root"||_.nodeName==="ink-box"){for(let E of _.childNodes)LQ(E,C,{offsetX:W,offsetY:H,transformers:T,skipStaticElements:J});if(h)C.unclip()}}},IO=LQ;var bM=new Set([27,155]),VM="0".codePointAt(0),hM="9".codePointAt(0),vO=new Set,kO=new Map;for(let[_,C]of R2.codes)vO.add(R2.color.ansi(C)),kO.set(R2.color.ansi(_),R2.color.ansi(C));function fM(_){if(vO.has(_))return _;if(kO.has(_))return kO.get(_);if(_=_.slice(2),_.includes(";"))_=_[0]+"0";let C=R2.codes.get(Number.parseInt(_,10));if(C)return R2.color.ansi(C);return R2.reset.open}function jM(_){for(let C=0;C<_.length;C++){let U=_.codePointAt(C);if(U>=VM&&U<=hM)return C}return-1}function yM(_,C){_=_.slice(C,C+19);let U=jM(_);if(U!==-1){let G=_.indexOf("m",U);if(G===-1)G=_.length;return _.slice(0,G+1)}}function gM(_,C=Number.POSITIVE_INFINITY){let U=[],G=0,A=0;while(G<_.length){let Q=_.codePointAt(G);if(bM.has(Q)){let W=yM(_,G);if(W){U.push({type:"ansi",code:W,endCode:fM(W)}),G+=W.length;continue}}let J=A6(Q),L=String.fromCodePoint(Q);if(U.push({type:"character",value:L,isFullWidth:J}),G+=L.length,A+=J?2:L.length,A>=C)break}return U}function QQ(_){let C=[];for(let U of _)if(U.code===R2.reset.open)C=[];else if(vO.has(U.code))C=C.filter((G)=>G.endCode!==U.code);else C=C.filter((G)=>G.endCode!==U.endCode),C.push(U);return C}function xM(_){return QQ(_).map(({endCode:G})=>G).reverse().join("")}function TO(_,C,U){let G=gM(_,U),A=[],Q=0,J="",L=!1;for(let W of G){if(U!==void 0&&Q>=U)break;if(W.type==="ansi"){if(A.push(W),L)J+=W.code}else{if(!L&&Q>=C)L=!0,A=QQ(A),J=A.map(({code:H})=>H).join("");if(L)J+=W.value;Q+=W.isFullWidth?2:W.value.length}}return J+=xM(A),J}var $Q=new Set([27,155]),C9=new Set,SO=new Map;for(let[_,C]of R2.codes)C9.add(R2.color.ansi(C)),SO.set(R2.color.ansi(_),R2.color.ansi(C));var B9="\x1B]8;;",bO=B9.split("").map((_)=>_.charCodeAt(0)),WQ="\x07",bk=WQ.charCodeAt(0),mM=`\x1B]8;;${WQ}`;function JQ(_){if(C9.has(_))return _;if(SO.has(_))return SO.get(_);if(_.startsWith(B9))return mM;if(_=_.slice(2),_.includes(";"))_=_[0]+"0";let C=R2.codes.get(parseInt(_,10));if(C)return R2.color.ansi(C);else return R2.reset.open}function h1(_){return _.map((C)=>C.code).join("")}function VO(_){return O9([],_)}function O9(_,C){let U=[..._];for(let G of C)if(G.code===R2.reset.open)U=[];else if(C9.has(G.code))U=U.filter((A)=>A.endCode!==G.code);else U=U.filter((A)=>A.endCode!==G.endCode),U.push(G);return U}function hO(_){return VO(_).reverse().map((C)=>({...C,code:C.endCode}))}function G9(_,C){let U=new Set(C.map((A)=>A.endCode)),G=new Set(_.map((A)=>A.code));return[...hO(_.filter((A)=>!U.has(A.endCode))),...C.filter((A)=>!G.has(A.code))]}function YQ(_){let C=[],U=[];for(let G of _)if(G.type==="ansi")C=O9(C,[G]);else if(G.type==="char")U.push({...G,styles:[...C]});return U}function KQ(_){let C="";for(let U=0;U<_.length;U++){let G=_[U];if(U===0)C+=h1(G.styles);else C+=h1(G9(_[U-1].styles,G.styles));if(C+=G.value,U===_.length-1)C+=h1(G9(G.styles,[]))}return C}function cM(_){for(let C=0;C<_.length;C++){let U=_.charCodeAt(C);if(U>=48&&U<=57)return C}return-1}function pM(_,C){_=_.slice(C);for(let G=1;G<bO.length;G++)if(_.charCodeAt(G)!==bO[G])return;let U=_.indexOf("\x07",B9.length);if(U===-1)return;return _.slice(0,U+1)}function lM(_,C){_=_.slice(C,C+19);let U=cM(_);if(U!==-1){let G=_.indexOf("m",U);if(G===-1)G=_.length;return _.slice(0,G+1)}}function zQ(_,C=Number.POSITIVE_INFINITY){let U=[],G=0,A=0;while(G<_.length){let Q=_.codePointAt(G);if($Q.has(Q)){let W=pM(_,G)||lM(_,G);if(W){U.push({type:"ansi",code:W,endCode:JQ(W)}),G+=W.length;continue}}let J=A6(Q),L=String.fromCodePoint(Q);if(U.push({type:"char",value:L,fullWidth:J}),G+=L.length,A+=J?2:L.length,A>=C)break}return U}class f1{constructor(_){Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]});let{width:C,height:U}=_;this.width=C,this.height=U}write(_,C,U,G){let{transformers:A}=G;if(!U)return;this.operations.push({type:"write",x:_,y:C,text:U,transformers:A})}clip(_){this.operations.push({type:"clip",clip:_})}unclip(){this.operations.push({type:"unclip"})}get(){let _=[];for(let G=0;G<this.height;G++){let A=[];for(let Q=0;Q<this.width;Q++)A.push({type:"char",value:" ",fullWidth:!1,styles:[]});_.push(A)}let C=[];for(let G of this.operations){if(G.type==="clip")C.push(G.clip);if(G.type==="unclip")C.pop();if(G.type==="write"){let{text:A,transformers:Q}=G,{x:J,y:L}=G,W=A.split(`
|
|
183
|
+
`),H=C[C.length-1];if(H){let h=typeof H?.x1==="number"&&typeof H?.x2==="number",E=typeof H?.y1==="number"&&typeof H?.y2==="number";if(h){let q=Z6(A);if(J+q<H.x1||J>H.x2)continue}if(E){let q=W.length;if(L+q<H.y1||L>H.y2)continue}if(h){if(W=W.map((q)=>{let w=J<H.x1?H.x1-J:0,V=v3(q),b=J+V>H.x2?H.x2-J:V;return TO(q,w,b)}),J<H.x1)J=H.x1}if(E){let q=L<H.y1?H.y1-L:0,w=W.length,V=L+w>H.y2?H.y2-L:w;if(W=W.slice(q,V),L<H.y1)L=H.y1}}let T=0;for(let[h,E]of W.entries()){let q=_[L+T];if(!q)continue;for(let b of Q)E=b(E,h);let w=YQ(zQ(E)),V=J;for(let b of w){q[V]=b;let S=b.fullWidth||b.value.length>1;if(S)q[V+1]={type:"char",value:"",fullWidth:!1,styles:b.styles};V+=S?2:1}T++}}}return{output:_.map((G)=>{let A=G.filter((Q)=>Q!==void 0);return KQ(A).trimEnd()}).join(`
|
|
184
|
+
`),height:_.length}}}var dM=(_)=>{if(_.yogaNode){let C=new f1({width:_.yogaNode.getComputedWidth(),height:_.yogaNode.getComputedHeight()});IO(_,C,{skipStaticElements:!0});let U;if(_.staticNode?.yogaNode)U=new f1({width:_.staticNode.yogaNode.getComputedWidth(),height:_.staticNode.yogaNode.getComputedHeight()}),IO(_.staticNode,U,{skipStaticElements:!1});let{output:G,height:A}=C.get();return{output:G,outputHeight:A,staticOutput:U?`${U.get().output}
|
|
185
|
+
`:""}}return{output:"",outputHeight:0,staticOutput:""}},RQ=dM;import IQ from"process";var qQ=H0(EQ(),1),PQ=H0(XO(),1);import nM from"process";var aM=qQ.default(()=>{PQ.default(()=>{nM.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),wQ=aM;var u9=!1,X_={};X_.show=(_=IQ.stderr)=>{if(!_.isTTY)return;u9=!1,_.write("\x1B[?25h")};X_.hide=(_=IQ.stderr)=>{if(!_.isTTY)return;wQ(),u9=!0,_.write("\x1B[?25l")};X_.toggle=(_,C)=>{if(_!==void 0)u9=_;if(u9)X_.show(C);else X_.hide(C)};var U_=X_;var rM=(_,{showCursor:C=!1}={})=>{let U=0,G="",A=!1,Q=(J)=>{if(!C&&!A)U_.hide(),A=!0;let L=J+`
|
|
186
|
+
`;if(L===G)return;G=L,_.write(P1.eraseLines(U)+L),U=L.split(`
|
|
187
|
+
`).length};return Q.clear=()=>{_.write(P1.eraseLines(U)),G="",U=0},Q.done=()=>{if(G="",U=0,!C)U_.show(),A=!1},Q},oM={create:rM},kQ=oM;var sM=new WeakMap,u_=sM;var U8=H0(B2(),1);import{EventEmitter as AE}from"events";import LE from"process";var vQ=H0(B2(),1),TQ=vQ.createContext({exit(){}});TQ.displayName="InternalAppContext";var Z9=TQ;var SQ=H0(B2(),1);import{EventEmitter as tM}from"events";import eM from"process";var bQ=SQ.createContext({stdin:eM.stdin,internal_eventEmitter:new tM,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0});bQ.displayName="InternalStdinContext";var A9=bQ;var VQ=H0(B2(),1);import DE from"process";var hQ=VQ.createContext({stdout:DE.stdout,write(){}});hQ.displayName="InternalStdoutContext";var L9=hQ;var fQ=H0(B2(),1);import FE from"process";var jQ=fQ.createContext({stderr:FE.stderr,write(){}});jQ.displayName="InternalStderrContext";var jO=jQ;var yQ=H0(B2(),1),gQ=yQ.createContext({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});gQ.displayName="InternalFocusContext";var Q9=gQ;var x2=H0(B2(),1),xO=H0(dQ(),1);import*as W9 from"fs";import{cwd as sQ}from"process";var UE=(_,C=2)=>{return _.replace(/^\t+/gm,(U)=>" ".repeat(U.length*C))},iQ=UE;var uE=(_,C)=>{let U=[],G=_-C,A=_+C;for(let Q=G;Q<=A;Q++)U.push(Q);return U},ZE=(_,C,U={})=>{var G;if(typeof _!=="string")throw TypeError("Source code is missing.");if(!C||C<1)throw TypeError("Line number must start from `1`.");let A=iQ(_).split(/\r?\n/);if(C>A.length)return;return uE(C,(G=U.around)!==null&&G!==void 0?G:3).filter((Q)=>A[Q-1]!==void 0).map((Q)=>({line:Q,value:A[Q-1]}))},nQ=ZE;var $9=H0(B2(),1),gO=$9.forwardRef(({children:_,...C},U)=>{return $9.default.createElement("ink-box",{ref:U,style:{...C,overflowX:C.overflowX??C.overflow??"visible",overflowY:C.overflowY??C.overflow??"visible"}},_)});gO.displayName="Box";gO.defaultProps={flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1};var r=gO;var aQ=H0(B2(),1);function Y({color:_,backgroundColor:C,dimColor:U=!1,bold:G=!1,italic:A=!1,underline:Q=!1,strikethrough:J=!1,inverse:L=!1,wrap:W="wrap",children:H}){if(H===void 0||H===null)return null;let T=(h)=>{if(U)h=r0.dim(h);if(_)h=T8(h,_,"foreground");if(C)h=T8(h,C,"background");if(G)h=r0.bold(h);if(A)h=r0.italic(h);if(Q)h=r0.underline(h);if(J)h=r0.strikethrough(h);if(L)h=r0.inverse(h);return h};return aQ.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:W},internal_transform:T},H)}var rQ=(_)=>{return _?.replace(`file://${sQ()}/`,"")},oQ=new xO.default({cwd:sQ(),internals:xO.default.nodeInternals()});function mO({error:_}){let C=_.stack?_.stack.split(`
|
|
188
|
+
`).slice(1):void 0,U=C?oQ.parseLine(C[0]):void 0,G=rQ(U?.file),A,Q=0;if(G&&U?.line&&W9.existsSync(G)){let J=W9.readFileSync(G,"utf8");if(A=nQ(J,U.line),A)for(let{line:L}of A)Q=Math.max(Q,String(L).length)}return x2.default.createElement(r,{flexDirection:"column",padding:1},x2.default.createElement(r,null,x2.default.createElement(Y,{backgroundColor:"red",color:"white"}," ","ERROR"," "),x2.default.createElement(Y,null," ",_.message)),U&&G&&x2.default.createElement(r,{marginTop:1},x2.default.createElement(Y,{dimColor:!0},G,":",U.line,":",U.column)),U&&A&&x2.default.createElement(r,{marginTop:1,flexDirection:"column"},A.map(({line:J,value:L})=>x2.default.createElement(r,{key:J},x2.default.createElement(r,{width:Q+1},x2.default.createElement(Y,{dimColor:J!==U.line,backgroundColor:J===U.line?"red":void 0,color:J===U.line?"white":void 0},String(J).padStart(Q," "),":")),x2.default.createElement(Y,{key:J,backgroundColor:J===U.line?"red":void 0,color:J===U.line?"white":void 0}," "+L)))),_.stack&&x2.default.createElement(r,{marginTop:1,flexDirection:"column"},_.stack.split(`
|
|
189
|
+
`).slice(1).map((J)=>{let L=oQ.parseLine(J);if(!L)return x2.default.createElement(r,{key:J},x2.default.createElement(Y,{dimColor:!0},"- "),x2.default.createElement(Y,{dimColor:!0,bold:!0},J));return x2.default.createElement(r,{key:J},x2.default.createElement(Y,{dimColor:!0},"- "),x2.default.createElement(Y,{dimColor:!0,bold:!0},L.function),x2.default.createElement(Y,{dimColor:!0,color:"gray"}," ","(",rQ(L.file)??"",":",L.line,":",L.column,")"))})))}var QE="\t",$E="\x1B[Z",WE="\x1B";class j1 extends U8.PureComponent{constructor(){super(...arguments);Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:{isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0}}),Object.defineProperty(this,"rawModeEnabledCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"internal_eventEmitter",{enumerable:!0,configurable:!0,writable:!0,value:new AE}),Object.defineProperty(this,"handleSetRawMode",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{let{stdin:C}=this.props;if(!this.isRawModeSupported())if(C===LE.stdin)throw Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
190
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);else throw Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
191
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(C.setEncoding("utf8"),_){if(this.rawModeEnabledCount===0)C.ref(),C.setRawMode(!0),C.addListener("readable",this.handleReadable);this.rawModeEnabledCount++;return}if(--this.rawModeEnabledCount===0)C.setRawMode(!1),C.removeListener("readable",this.handleReadable),C.unref()}}),Object.defineProperty(this,"handleReadable",{enumerable:!0,configurable:!0,writable:!0,value:()=>{let _;while((_=this.props.stdin.read())!==null)this.handleInput(_),this.internal_eventEmitter.emit("input",_)}}),Object.defineProperty(this,"handleInput",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{if(_==="\x03"&&this.props.exitOnCtrlC)this.handleExit();if(_===WE&&this.state.activeFocusId)this.setState({activeFocusId:void 0});if(this.state.isFocusEnabled&&this.state.focusables.length>0){if(_===QE)this.focusNext();if(_===$E)this.focusPrevious()}}}),Object.defineProperty(this,"handleExit",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{if(this.isRawModeSupported())this.handleSetRawMode(!1);this.props.onExit(_)}}),Object.defineProperty(this,"enableFocus",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState({isFocusEnabled:!0})}}),Object.defineProperty(this,"disableFocus",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState({isFocusEnabled:!1})}}),Object.defineProperty(this,"focus",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{this.setState((C)=>{if(!C.focusables.some((G)=>G?.id===_))return C;return{activeFocusId:_}})}}),Object.defineProperty(this,"focusNext",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState((_)=>{let C=_.focusables[0]?.id;return{activeFocusId:this.findNextFocusable(_)??C}})}}),Object.defineProperty(this,"focusPrevious",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState((_)=>{let C=_.focusables[_.focusables.length-1]?.id;return{activeFocusId:this.findPreviousFocusable(_)??C}})}}),Object.defineProperty(this,"addFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(_,{autoFocus:C})=>{this.setState((U)=>{let G=U.activeFocusId;if(!G&&C)G=_;return{activeFocusId:G,focusables:[...U.focusables,{id:_,isActive:!0}]}})}}),Object.defineProperty(this,"removeFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{this.setState((C)=>({activeFocusId:C.activeFocusId===_?void 0:C.activeFocusId,focusables:C.focusables.filter((U)=>{return U.id!==_})}))}}),Object.defineProperty(this,"activateFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{this.setState((C)=>({focusables:C.focusables.map((U)=>{if(U.id!==_)return U;return{id:_,isActive:!0}})}))}}),Object.defineProperty(this,"deactivateFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{this.setState((C)=>({activeFocusId:C.activeFocusId===_?void 0:C.activeFocusId,focusables:C.focusables.map((U)=>{if(U.id!==_)return U;return{id:_,isActive:!1}})}))}}),Object.defineProperty(this,"findNextFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{let C=_.focusables.findIndex((U)=>{return U.id===_.activeFocusId});for(let U=C+1;U<_.focusables.length;U++){let G=_.focusables[U];if(G?.isActive)return G.id}return}}),Object.defineProperty(this,"findPreviousFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(_)=>{let C=_.focusables.findIndex((U)=>{return U.id===_.activeFocusId});for(let U=C-1;U>=0;U--){let G=_.focusables[U];if(G?.isActive)return G.id}return}})}static getDerivedStateFromError(_){return{error:_}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return U8.default.createElement(Z9.Provider,{value:{exit:this.handleExit}},U8.default.createElement(A9.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC,internal_eventEmitter:this.internal_eventEmitter}},U8.default.createElement(L9.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},U8.default.createElement(jO.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},U8.default.createElement(Q9.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?U8.default.createElement(mO,{error:this.state.error}):this.props.children)))))}componentDidMount(){U_.hide(this.props.stdout)}componentWillUnmount(){if(U_.show(this.props.stdout),this.isRawModeSupported())this.handleSetRawMode(!1)}componentDidCatch(_){this.handleExit(_)}}Object.defineProperty(j1,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"InternalApp"});var Z_=eQ.env.CI==="false"?!1:F$.default,tQ=()=>{};class J9{constructor(_){if(Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"log",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"throttledLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isUnmounted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastOutput",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fullStaticOutput",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exitPromise",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"restoreConsole",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"unsubscribeResize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resized",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.calculateLayout(),this.onRender()}}),Object.defineProperty(this,"resolveExitPromise",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"rejectExitPromise",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"unsubscribeExit",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"calculateLayout",{enumerable:!0,configurable:!0,writable:!0,value:()=>{let C=this.options.stdout.columns||80;this.rootNode.yogaNode.setWidth(C),this.rootNode.yogaNode.calculateLayout(void 0,void 0,lD.DIRECTION_LTR)}}),Object.defineProperty(this,"onRender",{enumerable:!0,configurable:!0,writable:!0,value:()=>{if(this.isUnmounted)return;let{output:C,outputHeight:U,staticOutput:G}=RQ(this.rootNode),A=G&&G!==`
|
|
192
|
+
`;if(this.options.debug){if(A)this.fullStaticOutput+=G;this.options.stdout.write(this.fullStaticOutput+C);return}if(Z_){if(A)this.options.stdout.write(G);this.lastOutput=C;return}if(A)this.fullStaticOutput+=G;if(U>=this.options.stdout.rows){this.options.stdout.write(P1.clearTerminal+this.fullStaticOutput+C),this.lastOutput=C;return}if(A)this.log.clear(),this.options.stdout.write(G),this.log(C);if(!A&&C!==this.lastOutput)this.throttledLog(C);this.lastOutput=C}}),_O(this),this.options=_,this.rootNode=t4("ink-root"),this.rootNode.onComputeLayout=this.calculateLayout,this.rootNode.onRender=_.debug?this.onRender:cO.default(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=kQ.create(_.stdout),this.throttledLog=_.debug?this.log:cO.default(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=Q6.createContainer(this.rootNode,0,null,!1,null,"id",()=>{},null),this.unsubscribeExit=_$.default(this.unmount,{alwaysLast:!1}),eQ.env.DEV==="true")Q6.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"});if(_.patchConsole)this.patchConsole();if(!Z_)_.stdout.on("resize",this.resized),this.unsubscribeResize=()=>{_.stdout.off("resize",this.resized)}}render(_){let C=D$.default.createElement(j1,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},_);Q6.updateContainer(C,this.container,null,tQ)}writeToStdout(_){if(this.isUnmounted)return;if(this.options.debug){this.options.stdout.write(_+this.fullStaticOutput+this.lastOutput);return}if(Z_){this.options.stdout.write(_);return}this.log.clear(),this.options.stdout.write(_),this.log(this.lastOutput)}writeToStderr(_){if(this.isUnmounted)return;if(this.options.debug){this.options.stderr.write(_),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(Z_){this.options.stderr.write(_);return}this.log.clear(),this.options.stderr.write(_),this.log(this.lastOutput)}unmount(_){if(this.isUnmounted)return;if(this.calculateLayout(),this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole==="function")this.restoreConsole();if(typeof this.unsubscribeResize==="function")this.unsubscribeResize();if(Z_)this.options.stdout.write(this.lastOutput+`
|
|
193
|
+
`);else if(!this.options.debug)this.log.done();if(this.isUnmounted=!0,Q6.updateContainer(null,this.container,null,tQ),u_.delete(this.options.stdout),_ instanceof Error)this.rejectExitPromise(_);else this.resolveExitPromise()}async waitUntilExit(){if(!this.exitPromise)this.exitPromise=new Promise((_,C)=>{this.resolveExitPromise=_,this.rejectExitPromise=C});return this.exitPromise}clear(){if(!Z_&&!this.options.debug)this.log.clear()}patchConsole(){if(this.options.debug)return;this.restoreConsole=FA((_,C)=>{if(_==="stdout")this.writeToStdout(C);if(_==="stderr"){if(!C.startsWith("The above error occurred"))this.writeToStderr(C)}})}}var YE=(_,C)=>{let U={stdout:Y9.stdout,stdin:Y9.stdin,stderr:Y9.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,...KE(C)},G=zE(U.stdout,()=>new J9(U));return G.render(_),{rerender:G.render,unmount(){G.unmount()},waitUntilExit:G.waitUntilExit,cleanup:()=>u_.delete(U.stdout),clear:G.clear}},pO=YE,KE=(_={})=>{if(_ instanceof JE)return{stdout:_,stdin:Y9.stdin};return _},zE=(_,C)=>{let U=u_.get(_);if(!U)U=C(),u_.set(_,U);return U};var K9=H0(B2(),1);var RE=H0(B2(),1);var HE=H0(B2(),1);var NE=H0(B2(),1);var lO=H0(B2(),1);function C$(_){return _.toUpperCase()===_&&_.toLowerCase()!==_}import{Buffer as ME}from"buffer";var EE=/^(?:\x1b)([a-zA-Z0-9])$/,qE=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,B$={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},O$=[...Object.values(B$),"backspace"],PE=(_)=>{return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(_)},wE=(_)=>{return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(_)},IE=(_="")=>{let C;if(ME.isBuffer(_))if(_[0]>127&&_[1]===void 0)_[0]-=128,_="\x1B"+String(_);else _=String(_);else if(_!==void 0&&typeof _!=="string")_=String(_);else if(!_)_="";let U={name:"",ctrl:!1,meta:!1,shift:!1,option:!1,sequence:_,raw:_};if(U.sequence=U.sequence||_||U.name,_==="\r")U.raw=void 0,U.name="return";else if(_===`
|
|
194
|
+
`)U.name="enter";else if(_==="\t")U.name="tab";else if(_==="\b"||_==="\x1B\b")U.name="backspace",U.meta=_.charAt(0)==="\x1B";else if(_==="\x7F"||_==="\x1B\x7F")U.name="delete",U.meta=_.charAt(0)==="\x1B";else if(_==="\x1B"||_==="\x1B\x1B")U.name="escape",U.meta=_.length===2;else if(_===" "||_==="\x1B ")U.name="space",U.meta=_.length===2;else if(_<="\x1A")U.name=String.fromCharCode(_.charCodeAt(0)+97-1),U.ctrl=!0;else if(_.length===1&&_>="0"&&_<="9")U.name="number";else if(_.length===1&&_>="a"&&_<="z")U.name=_;else if(_.length===1&&_>="A"&&_<="Z")U.name=_.toLowerCase(),U.shift=!0;else if(C=EE.exec(_))U.meta=!0,U.shift=/^[A-Z]$/.test(C[1]);else if(C=qE.exec(_)){let G=[..._];if(G[0]==="\x1B"&&G[1]==="\x1B")U.option=!0;let A=[C[1],C[2],C[4],C[6]].filter(Boolean).join(""),Q=(C[3]||C[5]||1)-1;U.ctrl=!!(Q&4),U.meta=!!(Q&10),U.shift=!!(Q&1),U.code=A,U.name=B$[A],U.shift=PE(A)||U.shift,U.ctrl=wE(A)||U.ctrl}return U},G$=IE;var X$=H0(B2(),1);var kE=()=>X$.useContext(A9),j3=kE;var vE=(_,C={})=>{let{stdin:U,setRawMode:G,internal_exitOnCtrlC:A,internal_eventEmitter:Q}=j3();lO.useEffect(()=>{if(C.isActive===!1)return;return G(!0),()=>{G(!1)}},[C.isActive,G]),lO.useEffect(()=>{if(C.isActive===!1)return;let J=(L)=>{let W=G$(L),H={upArrow:W.name==="up",downArrow:W.name==="down",leftArrow:W.name==="left",rightArrow:W.name==="right",pageDown:W.name==="pagedown",pageUp:W.name==="pageup",return:W.name==="return",escape:W.name==="escape",ctrl:W.ctrl,shift:W.shift,tab:W.name==="tab",backspace:W.name==="backspace",delete:W.name==="delete",meta:W.meta||W.name==="escape"||W.option},T=W.ctrl?W.name:W.sequence;if(O$.includes(W.name))T="";if(T.startsWith("\x1B"))T=T.slice(1);if(T.length===1&&typeof T[0]==="string"&&C$(T[0]))H.shift=!0;if(!(T==="c"&&H.ctrl)||!A)Q6.batchedUpdates(()=>{_(T,H)})};return Q?.on("input",J),()=>{Q?.removeListener("input",J)}},[C.isActive,U,A,_])},IF=vE;var U$=H0(B2(),1);var TE=()=>U$.useContext(Z9),_2=TE;var u$=H0(B2(),1);var SE=()=>u$.useContext(L9),dO=SE;var bE=H0(B2(),1);var iO=H0(B2(),1);var VE=H0(B2(),1);var A_=H0(B2(),1);var $$=H0(Q$(),1);function fE({type:_="dots"}){let[C,U]=A_.useState(0),G=$$.default[_];return A_.useEffect(()=>{let A=setInterval(()=>{U((Q)=>{return Q===G.frames.length-1?0:Q+1})},G.interval);return()=>{clearInterval(A)}},[G]),A_.default.createElement(Y,null,G.frames[C])}var W$=fE;var L_=H0(B2(),1);function jE({value:_,placeholder:C="",focus:U=!0,mask:G,highlightPastedText:A=!1,showCursor:Q=!0,onChange:J,onSubmit:L}){let[W,H]=L_.useState({cursorOffset:(_||"").length,cursorWidth:0}),{cursorOffset:T,cursorWidth:h}=W;L_.useEffect(()=>{H((b)=>{if(!U||!Q)return b;let S=_||"";if(b.cursorOffset>S.length-1)return{cursorOffset:S.length,cursorWidth:0};return b})},[_,U,Q]);let E=A?h:0,q=G?G.repeat(_.length):_,w=q,V=C?r0.grey(C):void 0;if(Q&&U){V=C.length>0?r0.inverse(C[0])+r0.grey(C.slice(1)):r0.inverse(" "),w=q.length>0?"":r0.inverse(" ");let b=0;for(let S of q)w+=b>=T-E&&b<=T?r0.inverse(S):S,b++;if(q.length>0&&T===q.length)w+=r0.inverse(" ")}return IF((b,S)=>{if(S.upArrow||S.downArrow||S.ctrl&&b==="c"||S.tab||S.shift&&S.tab)return;if(S.return){if(L)L(_);return}let s=T,t=_,x=0;if(S.leftArrow){if(Q)s--}else if(S.rightArrow){if(Q)s++}else if(S.backspace||S.delete){if(T>0)t=_.slice(0,T-1)+_.slice(T,_.length),s--}else if(t=_.slice(0,T)+b+_.slice(T,_.length),s+=b.length,b.length>1)x=b.length;if(T<0)s=0;if(T>_.length)s=_.length;if(H({cursorOffset:s,cursorWidth:x}),t!==_)J(t)},{isActive:U}),L_.default.createElement(Y,null,C?q.length>0?w:V:w)}var S8=jE;import*as CF from"fs";import*as S9 from"path";import kF from"fs";import yE from"os";import J$ from"path";var nO=448,aO=384;function R9(){let _=process.env.PIONEER_CONFIG_DIR||J$.join(yE.homedir(),".pioneer");return{configDir:_,configFile:J$.join(_,"config.json")}}var gE=process.env.PIONEER_API_URL||"https://api.pioneer.ai",Q_={local:"ws://localhost:5001/mle-agent/ws",dev:"wss://api-dev.pioneer.ai/mle-agent/ws",stg:"wss://api-stg.pioneer.ai/mle-agent/ws",prod:"wss://api.pioneer.ai/mle-agent/ws"};function y1(){if(process.env.PIONEER_WS_URL)return process.env.PIONEER_WS_URL;let _=process.env.PIONEER_ENV;if(_&&Q_[_])return Q_[_];let C=M2();if(C.includes("execute-api")&&C.includes("/dev"))return Q_.dev;if(C.includes("api-dev.pioneer.ai"))return Q_.dev;if(C.includes("api-stg.pioneer.ai"))return Q_.stg;if(C==="https://api.pioneer.ai"||C==="https://api.pioneer.ai/")return Q_.prod;return`${C.replace(/^https:/,"wss:").replace(/^http:/,"ws:").replace(/\/$/,"")}/mle-agent/ws`}function Y$(_){let C=_.trim().toLowerCase();return C==="localhost"?"127.0.0.1":C}function K$(){try{let _=Y$(new URL(y1()).hostname),C=Y$(new URL(M2()).hostname);if(_!==C)return`WebSocket host (${new URL(y1()).hostname}) does not match REST API host (${new URL(M2()).hostname}). Unset PIONEER_WS_URL unless you intend a split setup, and ensure PIONEER_API_URL matches where your API key is valid.`}catch{return}return}function rO(){let{configDir:_}=R9();if(!kF.existsSync(_))kF.mkdirSync(_,{recursive:!0,mode:nO});kF.chmodSync(_,nO)}function xE(){let{configDir:_,configFile:C}=R9();try{if(kF.existsSync(_))kF.chmodSync(_,nO)}catch{}try{if(kF.existsSync(C))kF.chmodSync(C,aO)}catch{}}function oO(_){let{configFile:C}=R9();kF.writeFileSync(C,JSON.stringify(_,null,2),{encoding:"utf-8",mode:aO}),kF.chmodSync(C,aO)}function FF(){try{let{configFile:_}=R9();if(xE(),kF.existsSync(_)){let C=kF.readFileSync(_,"utf-8");return JSON.parse(C)}}catch{}return{}}function $6(_){rO();let C=FF(),U=mE(C,_);oO(U)}function mE(_,C){let U={..._};for(let G of Object.keys(C)){let A=C[G],Q=U[G];if(A!==null&&typeof A==="object"&&!Array.isArray(A)&&Q!==null&&typeof Q==="object"&&!Array.isArray(Q))U[G]={...Q,...A};else if(A!==void 0)U[G]=A}return U}function z$(){let _=FF();delete _.apiKey,rO(),oO(_)}function d3(){let _=process.env.PIONEER_API_KEY?.trim();if(_)return _;return FF().apiKey}function M2(){let _=process.env.PIONEER_API_URL?.trim();if(_)return _;let C=FF();if(C.baseUrl)return C.baseUrl;return gE}function R$(){return FF().lastAgentConversationId}function sO(_){if(!_)return;$6({lastAgentConversationId:_})}function H$(){return FF().mleModel}function g1(_){if(_)return _;if(process.env.HF_TOKEN)return process.env.HF_TOKEN;return FF().hfToken}function tO(_){$6({hfToken:_})}function N$(){let _=FF();delete _.hfToken,rO(),oO(_)}import{randomUUID as pE}from"crypto";import M$ from"os";var W6={name:"@fastino-ai/pioneer-cli",version:"0.2.11",description:"Pioneer CLI - AI training platform with chat agent",type:"module",files:["dist/**","README.md"],publishConfig:{access:"public"},bin:{pioneer:"dist/index.js"},scripts:{build:"bun run scripts/build.ts",prepack:"bun run build",start:"bun run src/index.tsx",chat:"bun run src/index.tsx chat",dev:"bun run --hot src/index.tsx",typecheck:"tsc --noEmit",test:"bun test","test:ws-e2e":"bun test tests/ws_tool_browse_url_e2e.test.ts","test:agent-smoke":"bun test tests/agent_prompt_browse_mock_ws.test.ts","test:agent-live-auth":"RUN_AGENT_REST_PROBE_LIVE=1 bun test tests/agent_live_rest_probe.test.ts","smoke:agent-ws":"bun run scripts/agent-ws-smoke.ts","test:coverage":"bun test --coverage","release:check-version":"bun run scripts/check-release-version.ts","release:pack":"bun run scripts/release-pack.ts"},dependencies:{"@anthropic-ai/sdk":"^0.39.0","@inkkit/ink-markdown":"^1.0.0",ink:"^4.4.1","ink-spinner":"^5.0.0","ink-text-input":"^5.0.1",openai:"^4.77.0",react:"^18.3.1",ws:"^8.18.0"},devDependencies:{"@types/node":"^22.0.0","@types/react":"^18.3.0","@types/ws":"^8.18.1","bun-types":"^1.1.0","ink-testing-library":"^4.0.0",typescript:"^5.6.3"},engines:{bun:">=1.1.0"}};function x1(){return`pioneer-cli/${W6.version}`}function H9(_={}){let C=process.versions.bun;return{source:"pioneer-cli",client_name:"pioneer-cli",client_type:"cli",cli_version:W6.version,cli_turn_id:pE(),runtime:C?"bun":"node",runtime_version:C??process.version,os_platform:M$.platform(),os_arch:M$.arch(),..._}}function q$(_){return["Authentication failed. Please login to Pioneer:",""," pioneer auth login","","Don't have an account? Sign up at https://agent.pioneer.ai/",_?`
|
|
195
|
+
Details: ${_}`:""].filter(Boolean).join(`
|
|
196
|
+
`)}function P$(_,C){return _===401||_===403||C.toLowerCase().includes("authentication")||C.toLowerCase().includes("api key")||C.toLowerCase().includes("unauthorized")}function N9(_){if(!_)return;if(typeof _==="string")return _;if(Array.isArray(_)){let C=_.map((U)=>N9(U)).filter((U)=>Boolean(U&&U.trim()));return C.length>0?C.join("; "):void 0}if(typeof _==="object"){let C=_;if(typeof C.detail==="string")return C.detail;if(C.detail!==void 0){let U=N9(C.detail);if(U)return U}if(typeof C.message==="string")return C.message;if(typeof C.error==="string")return C.error;if(typeof C.msg==="string")return C.msg;if(Array.isArray(C.loc)&&typeof C.msg==="string")return`${C.loc.join(".")}: ${C.msg}`}return}async function nD(_,C,U){let G=M2().replace(/\/$/,""),A=d3(),Q=`${G}${C}`,J={"Content-Type":"application/json","User-Agent":x1()};if(A)J["X-API-Key"]=A;try{let L=await fetch(Q,{method:_,headers:J,body:U?JSON.stringify(U):void 0}),W=await L.text(),H;try{H=JSON.parse(W)}catch{}if(!L.ok){let T=H?JSON.stringify(H):W||`HTTP ${L.status}`,h=N9(H)||W||`HTTP ${L.status}`;if(P$(L.status,T))return{ok:!1,status:L.status,error:q$(h)};return{ok:!1,status:L.status,error:h}}return{ok:!0,status:L.status,data:H}}catch(L){return{ok:!1,status:0,error:L instanceof Error?L.message:String(L)}}}async function eO(_){let U=`${M2().replace(/\/$/,"")}/felix/datasets`;try{let G=await fetch(U,{method:"GET",headers:{"Content-Type":"application/json","User-Agent":x1(),"X-API-Key":_}});if(G.ok)return{ok:!0,status:G.status};if(G.status===401||G.status===403)return{ok:!1,status:G.status,error:"Invalid API key"};let A=await G.text();return{ok:!1,status:G.status,error:A||`HTTP ${G.status}`}}catch(G){return{ok:!1,status:0,error:G instanceof Error?G.message:String(G)}}}async function DG(_={}){let C=new URLSearchParams;if(_.includeAllVersions)C.set("include_all_versions","true");let U=C.toString(),G=U?`/felix/datasets?${U}`:"/felix/datasets";return nD("GET",G)}async function FG(_){return nD("GET",`/felix/datasets/${_.name}/${_.version}`)}async function lE(_){return nD("POST","/felix/datasets/upload/url",_)}async function dE(_){return nD("POST","/felix/datasets/upload/process",_)}async function w$(_){return nD("DELETE",`/felix/datasets/${_.name}/${_.version}`)}async function I$(_,C){try{let U=await import("fs"),G=await import("path"),A=U.readFileSync(_),Q=G.basename(_),J=G.extname(Q).slice(1),L=C.format||J||"jsonl",W=await lE({dataset_name:C.dataset_name,dataset_type:C.dataset_type,format:L,content_type:"application/octet-stream"});if(!W.ok||!W.data)return{ok:!1,status:W.status,error:W.error||"Failed to get upload URL"};let{dataset_id:H}=W.data,T=W.data.upload_url||W.data.presigned_url;if(!T)return{ok:!1,status:500,error:"Upload URL not provided by backend"};let h=await fetch(T,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:A});if(!h.ok)return{ok:!1,status:h.status,error:`Failed to upload file to S3: HTTP ${h.status}`};return await dE({dataset_id:H,dataset_name:C.dataset_name,dataset_type:C.dataset_type,format:L,schema:C.schema,project_id:C.project_id})}catch(U){return{ok:!1,status:0,error:U instanceof Error?U.message:String(U)}}}async function k$(_,C="jsonl",U){let G=M2().replace(/\/$/,""),A=d3(),Q=`${G}/felix/datasets/${_.name}/${_.version}/download?format=${C}`,J=_.name.replace(/[^a-zA-Z0-9-_]/g,"_");if(!U)U=`${J}_${_.version}.${C}`;let L={"User-Agent":x1()};if(A)L["X-API-Key"]=A;try{let W=await fetch(Q,{method:"GET",headers:L});if(!W.ok){let q=await W.text();return{ok:!1,status:W.status,error:q||`HTTP ${W.status}`}}let H=await import("fs"),T=await import("path"),h=await W.arrayBuffer();H.writeFileSync(U,Buffer.from(h));let E=T.resolve(U);return{ok:!0,status:200,data:{download_url:Q,file_path:E,size:h.byteLength,dataset_name:_.name,version:_.version}}}catch(W){return{ok:!1,status:0,error:W instanceof Error?W.message:String(W)}}}async function v$(_,C,U){return nD("POST","/felix/dataset/analyze",{dataset_name:_.name,dataset_version:_.version,task_type:C,analyses:U})}async function T$(_){return nD("POST","/felix/dataset/analyze_llm",_)}var iE=2000,nE=300;function E$(_){return new Promise((C)=>setTimeout(C,_))}function M9(_){return`${_}-dataset-${Date.now()}`}async function aE(_,C={}){let U=new URLSearchParams;if(C.isSeed)U.set("is_seed","true");if(C.synthesisSessionId)U.set("synthesis_session_id",C.synthesisSessionId);let G=U.toString(),A=G?`/generate?${G}`:"/generate";return nD("POST",A,_)}async function rE(_){return nD("GET",`/generate/jobs/${_}`)}async function oE(_,C={}){let U=C.pollIntervalMs??iE,G=C.maxAttempts??nE;for(let A=0;A<G;A++){let Q=await rE(_);if(!Q.ok||!Q.data){if(Q.status===404&&A<5){await E$(U);continue}return{ok:!1,status:Q.status,error:Q.error??"Failed to fetch generation status"}}if(Q.data.status==="ready")return Q;if(Q.data.status==="failed")return{ok:!1,status:Q.status||500,error:Q.data.error??"Generation failed"};await E$(U)}return{ok:!1,status:408,error:`Generation timed out for job ${_}. Use 'pioneer dataset get <name[:version]>' once ready.`}}async function E9(_){let C=await aE(_);if(!C.ok||!C.data)return{ok:!1,status:C.status,error:C.error??"Failed to start generation job"};return oE(C.data.job_id)}async function S$(_){return E9({task_type:"ner",dataset_name:_.dataset_name??M9("ner"),labels:_.labels,num_examples:_.num_examples,domain_description:_.domain_description,seed:_.seed,session_id:_.session_id,config_num_examples:_.config_num_examples,temperature:_.temperature,constraints:_.constraints,project_id:_.project_id,generation_profile:_.generation_profile,include_reasoning_trace:_.include_reasoning_trace,reasoning_effort:_.reasoning_effort,quality:_.quality,min_criteria:_.min_criteria,target_choices:_.target_choices,type:_.type,visibility:_.visibility,negative_ratio:_.negative_ratio,split_ratio:_.split_ratio,multiplicator:_.multiplicator,use_meta_felix:_.use_meta_felix,classified_examples:_.classified_examples})}async function b$(_){return nD("POST","/generate/ner/label-existing",_)}async function V$(_){return nD("POST","/generate/ner/infer-labels",_)}async function h$(_){return E9({task_type:"classification",dataset_name:_.dataset_name??M9("classification"),labels:_.labels,num_examples:_.num_examples,domain_description:_.domain_description,seed:_.seed,class_balance:_.class_balance,session_id:_.session_id,config_num_examples:_.config_num_examples,temperature:_.temperature,batch_size:_.batch_size,constraints:_.constraints,multi_label:_.multi_label,project_id:_.project_id,generation_profile:_.generation_profile,include_reasoning_trace:_.include_reasoning_trace,reasoning_effort:_.reasoning_effort,quality:_.quality,min_criteria:_.min_criteria,target_choices:_.target_choices,split_ratio:_.split_ratio,multiplicator:_.multiplicator,use_meta_felix:_.use_meta_felix,type:_.type,visibility:_.visibility,negative_ratio:_.negative_ratio})}async function f$(_){return nD("POST","/generate/classification/label-existing",_)}async function j$(_){return nD("POST","/generate/classification/infer-labels",_)}async function y$(_){return E9({task_type:"custom",dataset_name:_.dataset_name??M9("custom"),prompt:_.prompt,output_format:_.output_format,infer_output_format:_.infer_output_format,num_examples:_.num_examples,seed:_.seed,session_id:_.session_id,min_criteria:_.min_criteria,temperature:_.temperature,constraints:_.constraints,project_id:_.project_id,generation_profile:_.generation_profile,include_reasoning_trace:_.include_reasoning_trace,reasoning_effort:_.reasoning_effort,target_choices:_.target_choices,quality:_.quality,split_ratio:_.split_ratio,negative_ratio:_.negative_ratio,multiplicator:_.multiplicator,use_meta_felix:_.use_meta_felix,type:_.type,visibility:_.visibility})}async function g$(_){return nD("POST","/generate/fields/label-existing",_)}async function x$(_){return nD("POST","/generate/fields/infer-fields",_)}async function m$(_){return nD("POST","/generate/improve-prompt",_)}async function c$(_){return nD("POST","/generate/infer-advanced",_)}async function J6(_={}){let C=new URLSearchParams;if(_.status)C.set("status",_.status);if(_.project_id)C.set("project_id",_.project_id);if(_.limit!==void 0)C.set("limit",String(_.limit));let U=C.toString(),G=U?`/felix/training-jobs?${U}`:"/felix/training-jobs";return nD("GET",G)}async function $_(_){return nD("GET",`/felix/training-jobs/${_}`)}async function _G(_,C){return nD("PATCH",`/felix/training-jobs/${_}`,C)}async function p$(_){return nD("GET",`/felix/training-jobs/${_}/logs`)}async function l$(_){return nD("DELETE",`/felix/training-jobs/${_}`)}function sE(_){if(typeof _!=="string")return!1;return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(_)}async function tE(_={}){let C=new URLSearchParams;if(_.includeBase!==void 0)C.set("include_base",String(_.includeBase));let U=C.toString(),G=U?`/felix/models?${U}`:"/felix/models",A=await nD("GET",G);if(A.ok||A.status!==404)return A;let Q=await nD("GET","/v1/models");if(!Q.ok)return{ok:!1,status:Q.status,error:Q.error??"Failed to list deployed models."};let L=(Q.data?.data??[]).filter((W)=>W&&(_.includeBase||W.owned_by!=="anthropic")).map((W)=>{let H=typeof W.id==="string"?W.id:"";return{id:H,job_id:sE(H)?H:null,model_name:W.display_name||H||void 0,is_base_model:W.owned_by==="anthropic"||W.owned_by==="openai",deployed_at:W.created_at??null,last_used_at:null,invocation_count:0,created_at:W.created_at??null,updated_at:W.created_at??null}});return{ok:!0,status:Q.status,data:{success:!0,models:L,count:L.length}}}async function d$(_){return nD("DELETE",`/felix/models/${_}`)}async function eE(){return nD("GET","/felix/trained-models")}async function i$(){let[_,C,U]=await Promise.all([tE(),eE(),Dq()]);if(!_.ok)return{ok:!1,status:_.status,error:_.error};if(!C.ok)return{ok:!1,status:C.status,error:C.error};if(!U.ok)return{ok:!1,status:U.status,error:U.error};return{ok:!0,status:200,data:{deployed:_.data?.models??[],trained:C.data?.training_jobs??[],projects:U.data?.projects??[]}}}async function CG(_){return nD("GET",`/felix/training-jobs/${_}/download`)}async function BG(_){return nD("POST","/inference",_)}async function OG(_){return nD("POST","/v1/completions",_)}async function W_(){return nD("GET","/base-models")}async function n$(_){let C=M2().replace(/\/$/,""),U=d3(),G=`${C}/auto-agent/clarify`,A={"Content-Type":"application/json","User-Agent":x1()};if(U)A["X-API-Key"]=U;try{let Q=await fetch(G,{method:"POST",headers:A,body:JSON.stringify({..._,client_metadata:_.client_metadata??H9({transport:"rest"})})}),J=await Q.text(),L;try{L=JSON.parse(J)}catch{}let W=(h)=>{let E=H(h);if(E)return E;let q=h.split(`
|
|
197
|
+
`).map((V)=>V.trim()).filter((V)=>V.startsWith("data:")),w={answer:"",conversation_id:""};for(let V of q){let b=V.slice(5).trim();if(!b)continue;let S;try{S=JSON.parse(b)}catch{continue}if(typeof S==="object"&&S){let s=typeof S.type==="string"?S.type:void 0;if(s==="delta"&&typeof S.content==="string")w.answer+=S.content;if(typeof S.content==="string"&&!w.answer)w.answer=S.content;if(typeof S.answer==="string")w.answer=S.answer;if(typeof S.conversation_id==="string")w.conversation_id=S.conversation_id;if(typeof S.tool_calls_made==="number")w.tool_calls_made=S.tool_calls_made;if(s==="complete"){if(typeof S.conversation_id==="string")w.conversation_id=S.conversation_id;if(typeof S.answer==="string")w.answer=S.answer}}}if(w.answer||w.conversation_id)return w;return},H=(h)=>{if(!h.trim())return;if(typeof L!=="object"||L===null)return;let E=L,q=typeof E.answer==="string"?E.answer:"",w=typeof E.answer==="string"&&typeof E.conversation_id==="string"?E.conversation_id:typeof E.conversation_id==="string"?E.conversation_id:"";if(!q&&!w&&typeof E.detail!=="string")return;return{answer:q,conversation_id:w,...typeof E.tool_calls_made==="number"?{tool_calls_made:E.tool_calls_made}:{}}},T=W(J);if(!Q.ok){let h=L?JSON.stringify(L):J||`HTTP ${Q.status}`,E=N9(L)||J||`HTTP ${Q.status}`;if(P$(Q.status,h))return{ok:!1,status:Q.status,error:q$(E)};return{ok:!1,status:Q.status,error:E}}if(T)return{ok:!0,status:Q.status,data:T};return{ok:!0,status:Q.status,data:{answer:J||"",conversation_id:""}}}catch(Q){return{ok:!1,status:0,error:Q instanceof Error?Q.message:String(Q)}}}async function a$(_){return nD("POST","/mle-agent/sessions",_)}async function q9(_){return nD("GET",`/mle-agent/sessions/${_}`)}async function r$(){return nD("GET","/mle-agent/sessions")}async function o$(_,C){return nD("POST",`/mle-agent/sessions/${_}/messages`,C)}async function s$(_){return E9({task_type:"decoder",dataset_name:_.dataset_name??M9("decoder"),domain_description:_.domain_description,instruction:_.instruction,num_examples:_.num_examples,temperature:_.temperature,generation_profile:_.generation_profile,quality:_.quality,constraints:_.constraints,project_id:_.project_id,include_reasoning_trace:_.include_reasoning_trace,reasoning_effort:_.reasoning_effort,use_meta_felix:_.use_meta_felix,session_id:_.session_id,config_num_examples:_.config_num_examples,min_criteria:_.min_criteria,target_choices:_.target_choices,split_ratio:_.split_ratio,negative_ratio:_.negative_ratio,multiplicator:_.multiplicator,type:_.type,visibility:_.visibility})}async function t$(){return nD("GET","/felix/baseline-models")}async function e$(_){return nD("GET",`/felix/evaluations/${_}`)}async function DW(_){let{dataset:C,...U}=_,G=_.base_model??_.model_id;return nD("POST","/felix/evaluations",{...U,base_model:G,dataset_name:C.name,dataset_version:C.version})}async function FW(_){return nD("GET",`/felix/datasets/${_.name}/${_.version}/evaluations`)}async function _W(_){return nD("DELETE",`/felix/evaluations/${_}`)}async function CW(_){return nD("PATCH",`/felix/evaluations/${_.evaluation_id}/project`,{project_id:_.project_id})}async function BW(){return nD("GET","/felix/benchmarks")}async function OW(_){return nD("POST","/felix/benchmarks/evaluate",_)}async function GW(_){return nD("GET",`/felix/benchmarks/evaluate/${_}`)}async function XW(_){return nD("POST",`/felix/benchmarks/evaluate/${_}/cancel`)}async function UW(_){let{dataset:C,...U}=_;return nD("POST","/felix/data-editing/scan-pii",{...U,dataset_name:C.name,dataset_version:C.version})}async function uW(_){let{dataset:C,...U}=_;return nD("POST","/felix/data-editing/scan-phd",{...U,dataset_name:C.name,dataset_version:C.version})}async function ZW(_){let{dataset:C,...U}=_;return nD("POST","/felix/dataset/outliers/dismiss",{...U,dataset_name:C.name,dataset_version:C.version})}async function AW(_){let{dataset:C,...U}=_;return nD("POST","/felix/data-editing/subsample",{...U,dataset_name:C.name,dataset_version:C.version})}async function LW(_){let{dataset:C,...U}=_;return nD("POST","/felix/data-editing/check-labels",{...U,dataset_name:C.name,dataset_version:C.version})}async function QW(_,C){return nD("POST",`/felix/datasets/${_.name}/${_.version}/push-to-hub`,C)}async function $W(_,C){return nD("POST",`/felix/training-jobs/${_}/push-to-hub`,C)}async function WW(_){return nD("POST","/felix/datasets/pull-from-hub",_)}async function Dq(){return nD("GET","/projects")}async function GG(_){return nD("POST","/projects",_)}async function P9(_){return nD("GET",`/projects/${_}`)}async function JW(_,C){return nD("PATCH",`/projects/${_}`,C)}async function YW(_){return nD("DELETE",`/projects/${_}`)}async function KW(_){return nD("GET",`/projects/${_}/dataset-count`)}async function XG(_){return nD("GET",`/projects/${_}/quality-metrics`)}async function UG(_,C){return nD("POST",`/projects/${_}/deployments`,C)}async function zW(_,C){return nD("POST",`/projects/${_}/deployments/${C}/rollback`)}import RW from"ws";function _q(_){let C=_.indexOf("{");if(C<0)return;let U=0,G=!1,A=!1;for(let Q=C;Q<_.length;Q++){let J=_[Q];if(G){if(A)A=!1;else if(J==="\\")A=!0;else if(J==='"')G=!1;continue}if(J==='"'){G=!0;continue}if(J==="{")U++;else if(J==="}"){if(U--,U===0)return _.slice(C,Q+1)}}return}function w9(_,C){if(C>20)throw SyntaxError("Tool arguments nesting too deep (server/client schema mismatch).");if(_===null||_===void 0)return{};if(typeof _==="object"&&!Array.isArray(_)){let U=_;if("arguments"in U){let G=U.arguments;if(typeof G==="string")try{let A=JSON.parse(G.trim());return w9(A,C+1)}catch{}else if(G&&typeof G==="object"&&!Array.isArray(G))return w9(G,C+1)}return U}if(typeof _==="string"){let U=_.trim();if(!U)return{};for(let G=0;G<10;G++)try{let A=JSON.parse(U);if(typeof A==="string"){let Q=A.trim();if(!Q||Q===U)break;U=Q;continue}if(A&&typeof A==="object"&&!Array.isArray(A))return w9(A,C+1);break}catch{let A=_q(U);if(A&&A!==U){U=A;continue}break}throw SyntaxError("Tool arguments were not valid JSON (server/client schema mismatch). Retry the turn or upgrade the Pioneer CLI.")}return{}}function m1(_){return w9(_,0)}function Cq(_,C){if(C!==void 0&&C.length>0)return JSON.stringify({ok:!1,error:C});return JSON.stringify({ok:!0,content:_??""})}function Bq(){return typeof process.versions.bun>"u"}function Oq(_){let C=_.message;if(typeof C==="string"&&C.trim())return C.trim();let U=_.error;if(U&&typeof U==="object"&&U!==null){let G=U;if(typeof G.message==="string"&&G.message.trim())return G.message.trim()}if(typeof U==="string"&&U.trim())return U.trim();try{return JSON.stringify(_)}catch{return"WebSocket server returned type:error with an unrecognized shape."}}class uG{ws=null;wsUrl;apiKey;callbacks={};state="disconnected";messageResolvers=new Map;donePromise=null;doneResolver=null;doneCalled=!1;terminalChatError=null;constructor(){this.wsUrl=y1(),this.apiKey=d3()}refreshCredentials(){this.apiKey=d3(),this.wsUrl=y1()}formatWsHandshakeHint(_){let C=/^https?:\/\/(?!(127\.0\.0\.1|localhost)\b)/i.test(M2()),U=/api-dev\.pioneer\.ai|api-stg\.pioneer\.ai/.test(_),G=[];if(U||C)G.push("This environment may not expose WebSockets on /mle-agent/ws (the upgrade must return HTTP 101)."),G.push("For local Brain: export PIONEER_API_URL=http://127.0.0.1:5001 (WebSocket becomes ws://127.0.0.1:5001/mle-agent/ws), or set PIONEER_WS_URL to your agent WebSocket URL.");return G.push("Use `pioneer agent --mode research` if you intend the REST clarify flow (Pro) instead."),G.join(" ")}failConnect(_,C,U){if(_.current)return;_.current=!0,this.state="disconnected",C(Error(U))}async connect(){if(this.state==="connected")return;if(this.state==="connecting")return new Promise((U)=>{let G=setInterval(()=>{if(this.state==="connected")clearInterval(G),U()},100)});this.state="connecting",this.refreshCredentials();let _={},C=this.apiKey?.trim();if(C)_.headers={"X-API-Key":C};return new Promise((U,G)=>{let A={current:!1};if(this.ws=new RW(this.wsUrl,_),this.ws.on("open",()=>{if(A.current)return;A.current=!0,this.state="connected";let Q=this.apiKey?.trim();if(Q)this.ws?.send(JSON.stringify({type:"auth",api_key:Q}));U()}),Bq())this.ws.on("unexpected-response",(Q,J)=>{let L=J.statusCode??0,W=(J.statusMessage??"").trim(),H="";if(L===401)H=" Unauthorized \u2014 verify API key for this environment (pioneer auth login or PIONEER_API_KEY).";else if(L===403)H=" Forbidden \u2014 URL/environment mismatch, insufficient permission, or wrong route (not always auth).";else if(L===404)H=" Path not found \u2014 wrong host or WebSocket route not deployed here.";else if(L>=500)H=" Server or gateway error during upgrade.";let T=`WebSocket upgrade failed: HTTP ${L}${W?` ${W}`:""} (${this.wsUrl}).${H} ${this.formatWsHandshakeHint(this.wsUrl)}`.trim();this.failConnect(A,G,T)});this.ws.on("error",(Q)=>{this.state="disconnected";let J=Q instanceof Error?Q.message:Q.message||Q.error?.message||"WebSocket connection failed",L=J;if(/^Expected 101|^Unexpected server response/i.test(J))L=`${J} (${this.wsUrl}). ${this.formatWsHandshakeHint(this.wsUrl)}`;this.failConnect(A,G,L)}),this.ws.on("close",()=>{if(this.state="disconnected",!this.doneCalled)this.doneCalled=!0,this.callbacks.onDone?.(void 0,void 0);if(this.doneResolver)this.doneResolver(),this.doneResolver=null}),this.ws.on("message",async(Q)=>{try{let J=JSON.parse(Q.toString());await this.handleMessage(J)}catch(J){console.error("Failed to parse WebSocket message:",J)}})})}async handleMessage(_){switch(_.type){case"auth_required":if(this.refreshCredentials(),this.apiKey?.trim())this.send({type:"auth",api_key:this.apiKey.trim()});else{if(this.terminalChatError=Error(`Agent WebSocket requires authentication but no API key is configured for ${M2()}. Run \`pioneer auth login\` or export PIONEER_API_KEY for this environment.`),!this.doneCalled)this.doneCalled=!0;if(this.doneResolver)this.doneResolver(),this.doneResolver=null}break;case"auth_success":break;case"stream":this.callbacks.onStream?.(_.content);break;case"tool_start":try{let C=_.args??_.arguments;this.callbacks.onToolStart?.(_.name,_.call_id,m1(C))}catch{this.callbacks.onToolStart?.(_.name,_.call_id,{})}break;case"tool_call":if(this.callbacks.onToolCall){let C;try{let G=_.args??_.arguments;C=m1(G)}catch(G){let A=G instanceof Error?G.message:String(G);this.sendToolResult(_.call_id,null,A);break}let U={call_id:_.call_id,tool:_.tool,args:C};try{let G=await this.callbacks.onToolCall(U);this.sendToolResult(U.call_id,G)}catch(G){let A=G instanceof Error?G.message:String(G);this.sendToolResult(U.call_id,null,A)}}else this.sendToolResult(_.call_id,null,"No tool executor configured on client");break;case"tool_result":this.callbacks.onToolResult?.(_.name,_.call_id,_.result);break;case"tool_error":this.callbacks.onToolError?.(_.name,_.call_id,_.error);break;case"assistant_message":this.callbacks.onAssistantMessage?.(_.content);break;case"error":{let C=Oq(_),U=Error(C);if(this.terminalChatError=U,this.doneResolver)this.doneResolver(),this.doneResolver=null;break}case"done":if(!this.doneCalled){this.doneCalled=!0;let C=_.messages,U=typeof _.session_id==="string"?_.session_id:void 0;this.callbacks.onDone?.(C,U)}if(this.doneResolver)this.doneResolver(),this.doneResolver=null;break;case"ping":this.send({type:"pong"});break;case"budget_warning":console.warn("Budget warning:",_.warnings);break}}send(_){if(this.ws?.readyState===RW.OPEN)this.ws.send(JSON.stringify(_))}sendToolResult(_,C,U){this.send({type:"tool_result",call_id:_,result:Cq(C,U),...U&&{error:U}})}async chat(_,C,U={}){if(this.state!=="connected")await this.connect();if(this.callbacks=C,this.doneCalled=!1,this.terminalChatError=null,this.refreshCredentials(),this.donePromise=new Promise((G)=>{this.doneResolver=G}),this.send({type:"chat",message:_,client_type:"cli",client_metadata:U.clientMetadata??H9({transport:"websocket"}),...U.conversationId?{conversation_id:U.conversationId,session_id:U.conversationId}:{},history:U.history||[],file_references:U.fileReferences||[],config:U.config}),await this.donePromise,this.terminalChatError){let G=this.terminalChatError;throw this.terminalChatError=null,G}}disconnect(){if(this.ws)this.ws.close(),this.ws=null;this.state="disconnected"}isConnected(){return this.state==="connected"}getRestApiUrl(){return M2()}getWebSocketUrl(){return this.wsUrl}async health(){try{this.refreshCredentials();let _=M2(),C={"Content-Type":"application/json"},U=this.apiKey?.trim();if(U)C["X-API-Key"]=U;return(await fetch(`${_}/health`,{headers:C})).ok}catch{return!1}}async probeAgentRestAuth(){this.refreshCredentials();let _=M2().replace(/\/$/,""),C={Accept:"application/json"},U=this.apiKey?.trim();if(U)C["X-API-Key"]=U;let G=[`${_}/mle-agent/tools?client_type=cli`,`${_}/openapi.json`],A=0,Q="",J="";for(let L of G)try{let W=await fetch(L,{method:"GET",headers:C,signal:AbortSignal.timeout(15000)});if(W.ok)return{ok:!0};let H=await W.text().catch(()=>"");if(W.status===404)continue;if(A=W.status,Q=H.slice(0,900),W.status===401||W.status===403)return{ok:!1,status:W.status,detail:Q};return{ok:!1,status:W.status,detail:Q}}catch(W){J=W instanceof Error?W.message:String(W);continue}if(A>=400&&A!==404)return{ok:!1,status:A,detail:Q};if(J)return{ok:!1,detail:J};return{ok:!0}}async listTools(){this.refreshCredentials();let C=`${M2()}/mle-agent/tools?client_type=cli`,U={"Content-Type":"application/json"},G=this.apiKey?.trim();if(G)U["X-API-Key"]=G;let A=await fetch(C,{headers:U});if(!A.ok)throw Error(`Failed to list tools: ${A.status}`);return(await A.json()).tools||[]}}async function HW(_){let C=await Promise.race([_.probeAgentRestAuth(),new Promise((Q,J)=>setTimeout(()=>J(Error("Agent credential probe timed out")),12000))]);if(C.ok)return;let U=K$(),G=[],A=C.status;if(A===401||A===403)if(G.push(`The Pioneer REST API rejected your credentials (HTTP ${A}) at ${M2()}. `+"The standard CLI agent uses the same API key over WebSocket \u2014 fix credentials before retrying."),!d3()?.trim())G.push("No API key is configured: run `pioneer auth login` or export PIONEER_API_KEY.");else G.push(`Your API key may be for a different environment than ${M2()}. Align PIONEER_API_URL, ~/.pioneer/config.json baseUrl, and \`pioneer auth login\` with the Brain that issued the key.`);else G.push(`Could not verify REST credentials at ${M2()}: ${C.detail??"unknown error"}`.trim());if(U)G.push(U);throw Error(G.join(`
|
|
198
|
+
`))}import{spawn as NW}from"child_process";function ZG(_={}){let{cwd:C=process.cwd(),timeout:U=60000,maxOutput:G=1e5}=_;return{name:"bash",description:"Execute a bash command. Use this to run shell commands, install packages, manage files, etc.",parameters:[{name:"command",type:"string",description:"The bash command to execute",required:!0},{name:"workdir",type:"string",description:"Working directory for the command (optional, defaults to current directory)",required:!1}],async execute(A){let Q=A.command,J=A.workdir||C;if(!Q||typeof Q!=="string")return{toolCallId:"",output:"",success:!1,error:"Command is required and must be a string"};return new Promise((L)=>{let W="",H="",T=!1,h=NW("bash",["-c",Q],{cwd:J,env:{...process.env,..._.env},stdio:["ignore","pipe","pipe"]}),E=setTimeout(()=>{T=!0,h.kill("SIGTERM"),setTimeout(()=>h.kill("SIGKILL"),5000)},U);h.stdout.on("data",(q)=>{let w=q.toString();if(W.length+w.length<=G)W+=w;else if(W.length<G)W+=w.slice(0,G-W.length),W+=`
|
|
199
|
+
... (output truncated)`}),h.stderr.on("data",(q)=>{let w=q.toString();if(H.length+w.length<=G)H+=w;else if(H.length<G)H+=w.slice(0,G-H.length),H+=`
|
|
200
|
+
... (output truncated)`}),h.on("close",(q)=>{clearTimeout(E);let w="";if(W)w+=W;if(H)w+=(w?`
|
|
201
|
+
`:"")+H;if(T)w+=`
|
|
202
|
+
(Command timed out after ${U/1000}s)`;L({toolCallId:"",output:w||"(no output)",success:!T&&q===0,error:T?`Command timed out after ${U/1000}s`:q!==0?`Command exited with code ${q}`:void 0})}),h.on("error",(q)=>{clearTimeout(E),L({toolCallId:"",output:"",success:!1,error:`Failed to execute command: ${q.message}`})})})}}}async function*MW(_,C={}){let{cwd:U=process.cwd(),timeout:G=60000}=C,A=NW("bash",["-c",_],{cwd:U,env:{...process.env,...C.env},stdio:["ignore","pipe","pipe"]}),Q=!1,J=setTimeout(()=>{Q=!0,A.kill("SIGTERM"),setTimeout(()=>A.kill("SIGKILL"),5000)},G),L=[],W=[],H=!1,T=null;A.stdout.on("data",(E)=>{L.push(E.toString())}),A.stderr.on("data",(E)=>{W.push(E.toString())});let h=new Promise((E)=>{A.on("close",(q)=>{clearTimeout(J),H=!0,T=Q?-1:q,E(T)}),A.on("error",()=>{clearTimeout(J),H=!0,T=-1,E(-1)})});while(!H||L.length>0||W.length>0){while(L.length>0)yield{type:"stdout",data:L.shift()};while(W.length>0)yield{type:"stderr",data:W.shift()};if(!H)await new Promise((E)=>setTimeout(E,10))}yield{type:"exit",data:T??-1}}import*as z3 from"fs";import*as u8 from"path";function c1(_,C){if(!C.allowedPaths||C.allowedPaths.length===0)return!0;let U=u8.resolve(_);return C.allowedPaths.some((G)=>U.startsWith(u8.resolve(G)))}function EW(_={}){let{maxFileSize:C=1048576}=_;return{name:"read_file",description:"Read the contents of a file. Returns the file content as text.",parameters:[{name:"path",type:"string",description:"Path to the file to read",required:!0},{name:"start_line",type:"number",description:"Starting line number (1-based, optional)",required:!1},{name:"end_line",type:"number",description:"Ending line number (1-based, inclusive, optional)",required:!1}],async execute(U){let{path:G,start_line:A,end_line:Q}=U;if(!G)return{toolCallId:"",output:"",success:!1,error:"Path is required"};if(!c1(G,_))return{toolCallId:"",output:"",success:!1,error:"Path not allowed"};try{let J=z3.statSync(G);if(J.size>C)return{toolCallId:"",output:"",success:!1,error:`File too large (${J.size} bytes). Max: ${C} bytes`};let L=z3.readFileSync(G,"utf-8");if(A!==void 0||Q!==void 0){let W=L.split(`
|
|
203
|
+
`),H=Math.max(1,A||1)-1,T=Q?Math.min(W.length,Q):W.length;L=W.slice(H,T).join(`
|
|
204
|
+
`)}return{toolCallId:"",output:L,success:!0}}catch(J){return{toolCallId:"",output:"",success:!1,error:J instanceof Error?J.message:String(J)}}}}}function qW(_={}){return{name:"write_file",description:"Write content to a file. Creates the file if it doesn't exist, overwrites if it does.",parameters:[{name:"path",type:"string",description:"Path to the file to write",required:!0},{name:"content",type:"string",description:"Content to write to the file",required:!0}],async execute(C){let{path:U,content:G}=C;if(!U)return{toolCallId:"",output:"",success:!1,error:"Path is required"};if(G===void 0)return{toolCallId:"",output:"",success:!1,error:"Content is required"};if(!c1(U,_))return{toolCallId:"",output:"",success:!1,error:"Path not allowed"};try{let A=u8.dirname(U);if(!z3.existsSync(A))z3.mkdirSync(A,{recursive:!0});return z3.writeFileSync(U,G,"utf-8"),{toolCallId:"",output:`Successfully wrote ${G.length} characters to ${U}`,success:!0}}catch(A){return{toolCallId:"",output:"",success:!1,error:A instanceof Error?A.message:String(A)}}}}}function PW(_={}){return{name:"list_directory",description:"List files and directories in a given path.",parameters:[{name:"path",type:"string",description:"Path to the directory to list",required:!0},{name:"recursive",type:"boolean",description:"Whether to list recursively (default: false)",required:!1},{name:"max_depth",type:"number",description:"Maximum depth for recursive listing (default: 3)",required:!1}],async execute(C){let U=C.path,G=C.recursive||!1,A=C.max_depth||3;if(!U)return{toolCallId:"",output:"",success:!1,error:"Path is required"};if(!c1(U,_))return{toolCallId:"",output:"",success:!1,error:"Path not allowed"};try{return{toolCallId:"",output:wW(U,G,A,0).join(`
|
|
205
|
+
`),success:!0}}catch(Q){return{toolCallId:"",output:"",success:!1,error:Q instanceof Error?Q.message:String(Q)}}}}}function wW(_,C,U,G){let A=[],Q=z3.readdirSync(_,{withFileTypes:!0});for(let J of Q){let L=u8.join(_,J.name),W=" ".repeat(G);if(J.isDirectory()){if(A.push(`${W}${J.name}/`),C&&G<U)try{A.push(...wW(L,C,U,G+1))}catch{}}else A.push(`${W}${J.name}`)}return A}function IW(_={}){return{name:"search_files",description:"Search for files by name pattern or content using grep.",parameters:[{name:"path",type:"string",description:"Directory to search in",required:!0},{name:"pattern",type:"string",description:"Search pattern (regex for content, glob for filename)",required:!0},{name:"type",type:"string",description:"Search type: 'content' (grep) or 'filename' (find)",required:!1}],async execute(C){let{path:U,pattern:G}=C,A=C.type||"content";if(!U||!G)return{toolCallId:"",output:"",success:!1,error:"Path and pattern are required"};if(!c1(U,_))return{toolCallId:"",output:"",success:!1,error:"Path not allowed"};try{if(A==="filename")return{toolCallId:"",output:kW(U,G).join(`
|
|
206
|
+
`)||"No matches found",success:!0};else return{toolCallId:"",output:vW(U,G).join(`
|
|
207
|
+
`)||"No matches found",success:!0}}catch(Q){return{toolCallId:"",output:"",success:!1,error:Q instanceof Error?Q.message:String(Q)}}}}}function kW(_,C,U=[]){try{let G=z3.readdirSync(_,{withFileTypes:!0}),A=new RegExp(C.replace(/\*/g,".*").replace(/\?/g,"."));for(let Q of G){let J=u8.join(_,Q.name);if(A.test(Q.name))U.push(J);if(Q.isDirectory())try{kW(J,C,U)}catch{}}}catch{}return U}function vW(_,C,U=[]){try{let G=z3.readdirSync(_,{withFileTypes:!0}),A=new RegExp(C,"gm");for(let Q of G){let J=u8.join(_,Q.name);if(Q.isDirectory())try{vW(J,C,U)}catch{}else try{let L=z3.readFileSync(J,"utf-8");if(L.match(A)){let H=L.split(`
|
|
208
|
+
`);for(let T=0;T<H.length;T++){if(A.test(H[T]))U.push(`${J}:${T+1}: ${H[T].trim()}`);A.lastIndex=0}}}catch{}}}catch{}return U.slice(0,100)}function TW(_={}){return{name:"edit_file",description:"Edit a file by replacing specific text. Use this for targeted edits.",parameters:[{name:"path",type:"string",description:"Path to the file to edit",required:!0},{name:"old_text",type:"string",description:"The exact text to replace (must match exactly)",required:!0},{name:"new_text",type:"string",description:"The new text to insert",required:!0}],async execute(C){let{path:U,old_text:G,new_text:A}=C;if(!U||G===void 0||A===void 0)return{toolCallId:"",output:"",success:!1,error:"Path, old_text, and new_text are required"};if(!c1(U,_))return{toolCallId:"",output:"",success:!1,error:"Path not allowed"};try{let Q=z3.readFileSync(U,"utf-8");if(!Q.includes(G))return{toolCallId:"",output:"",success:!1,error:"old_text not found in file. Make sure it matches exactly."};return Q=Q.replace(G,A),z3.writeFileSync(U,Q,"utf-8"),{toolCallId:"",output:`Successfully edited ${U}`,success:!0}}catch(Q){return{toolCallId:"",output:"",success:!1,error:Q instanceof Error?Q.message:String(Q)}}}}}var Gq=new Set(["click","type","navigate","scroll","select","extract","execute_js","hover","wait","go_back","press_key"]);function SW(_){return Gq.has(_)}function Xq(_){let U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.exec(_);if(!U)return null;let G=[U[1],U[2],U[3],U[4]].map((A)=>Number.parseInt(A,10));if(G.some((A)=>A>255))return null;return G}function Uq(_){let C=_.replace(/^\[|\]$/g,"").toLowerCase();if(C==="localhost"||C.endsWith(".localhost"))return!0;if(C==="0.0.0.0")return!0;if(C==="::1")return!0;if(new Set(["metadata.google.internal","metadata","169.254.169.254"]).has(C))return!0;let G=Xq(C);if(G){let[A,Q]=G;if(A===10)return!0;if(A===127)return!0;if(A===0)return!0;if(A===169&&Q===254)return!0;if(A===172&&Q>=16&&Q<=31)return!0;if(A===192&&Q===168)return!0;if(A===100&&Q>=64&&Q<=127)return!0}return!1}function uq(_){let C;try{C=new URL(_)}catch{throw Error(`Invalid URL: ${_}`)}if(C.protocol!=="http:"&&C.protocol!=="https:")throw Error(`Only http and https URLs are allowed (got ${C.protocol}).`);if(!C.hostname)throw Error("URL must include a hostname.");if(Uq(C.hostname))throw Error(`Refusing to fetch host "${C.hostname}" (private/internal networks are blocked).`);if(C.username||C.password)throw Error("URLs with embedded credentials are not allowed.");return C}function Zq(_){let C=_.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gis,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gis,"");return C=C.replace(/<[^>]+>/g,`
|
|
209
|
+
`),C=C.replace(/ /gi," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&#(\d+);/g,(G,A)=>String.fromCharCode(Number.parseInt(A,10))),C.split(/\r?\n/).map((G)=>G.trim()).filter(Boolean).join(`
|
|
210
|
+
`)}function bW(_={}){let C=_.maxChars??120000,U=_.fetchTimeoutMs??45000,G=_.maxRedirects??8;return{name:"browse_url",description:"Fetch a public HTTP(S) URL and return page body as readable text (HTML is stripped). Use for docs, specs, blogs, JSON APIs returning text. Does not run JavaScript. Cannot access private IPs, localhost, or authenticated sessions.",parameters:[{name:"url",type:"string",description:"Full https:// or http:// URL to retrieve",required:!0},{name:"max_chars",type:"number",description:`Max characters of body text to return (default ${C})`,required:!1}],async execute(A){let Q=typeof A.url==="string"?A.url.trim():"",J=typeof A.max_chars==="number"&&Number.isFinite(A.max_chars)?Math.min(Math.max(1024,A.max_chars),C):C;if(!Q)return{toolCallId:"",output:"",success:!1,error:"url is required"};try{let L=Q,W;for(let V=0;V<=G;V++){uq(L);let b=new URL(L),S=await fetch(b.href,{method:"GET",redirect:"manual",headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,text/plain;q=0.8,*/*;q=0.5","User-Agent":"PioneerCLI/1.0 (browse_url; agent; +https://pioneer.ai)"},signal:AbortSignal.timeout(U)});if(S.status>=300&&S.status<400){let s=S.headers.get("location");if(!s)throw Error(`Redirect ${S.status} without Location header`);L=new URL(s,L).href;continue}W=S;break}if(!W)throw Error("Fetch failed (no response)");if(!W.ok){let V=(await W.text()).slice(0,2000);return{toolCallId:"",output:"",success:!1,error:`HTTP ${W.status} ${W.statusText}
|
|
211
|
+
${V}`}}let H=(W.headers.get("content-type")||"").toLowerCase(),T=await W.text(),h;if(H.includes("json")||H.includes("xml")||H.includes("text/plain"))h=T;else h=Zq(T);let q=`URL: ${L}
|
|
212
|
+
Content-Type: ${H||"unknown"}
|
|
213
|
+
|
|
214
|
+
`+h;return{toolCallId:"",output:q.length>J?q.slice(0,J)+`
|
|
215
|
+
|
|
216
|
+
[\u2026truncated\u2026]`:q,success:!0}}catch(L){return{toolCallId:"",output:"",success:!1,error:L instanceof Error?L.message:String(L)}}}}}function Aq(_){let C=_.trim().toLowerCase();return{run_terminal_cmd:"bash",run_terminal_command:"bash",shell:"bash",execute_bash:"bash",exec_bash:"bash",terminal_command:"bash",list_dir:"list_directory"}[C]??_.trim()}function AG(){let _={},C=d3();if(C&&!process.env.PIONEER_API_KEY?.trim())_.PIONEER_API_KEY=C;if(!process.env.PIONEER_API_URL?.trim())_.PIONEER_API_URL=M2();return _}class LG{tools=new Map;workingDirectory;bashTimeoutMs;bashSpawnEnv;constructor(_={}){this.workingDirectory=_.workingDirectory||process.cwd(),this.bashTimeoutMs=_.bashTimeout||60000,this.bashSpawnEnv=AG();let C={basePath:this.workingDirectory,allowedPaths:_.allowedPaths,maxFileSize:_.maxFileSize||1048576},U=Object.keys(this.bashSpawnEnv).length>0?this.bashSpawnEnv:void 0;this.registerTool(ZG({cwd:this.workingDirectory,timeout:this.bashTimeoutMs,env:U})),this.registerTool(EW(C)),this.registerTool(qW(C)),this.registerTool(TW(C)),this.registerTool(PW(C)),this.registerTool(IW(C)),this.registerTool(bW())}registerTool(_){this.tools.set(_.name,_)}async execute(_,C){let U=m1(C),G=Aq(_),A=this.tools.get(G);if(!A)throw Error(`Unknown tool: ${_}. Available tools: ${this.getToolNames().join(", ")}`);let Q=this.mapArguments(G,U),J=await A.execute(Q);if(!J.success)throw Error(J.error||`Tool ${_} failed`);return J.output}mapArguments(_,C){let U={...C};switch(_){case"read_file":if("file_path"in C)U.path=C.file_path,delete U.file_path;break;case"write_file":if("file_path"in C)U.path=C.file_path,delete U.file_path;break;case"edit_file":if("file_path"in C)U.path=C.file_path,delete U.file_path;break;case"list_directory":break;case"search_files":if(C.search_content)U.type="content";else U.type="filename";delete U.search_content,delete U.max_results;break;case"bash":if(typeof U.command==="string"){let G=U.command.trim();if(G.startsWith("{"))try{let A=JSON.parse(G);if(A&&typeof A==="object"&&!Array.isArray(A)){let Q=A.command;if(typeof Q==="string")U.command=Q}}catch{}}if(typeof U.command!=="string"||!U.command.trim()){if(typeof U.cmd==="string")U.command=U.cmd;else if(typeof U.shell_command==="string")U.command=U.shell_command}break;case"browse_url":if(typeof U.max_chars==="string")U.max_chars=Number.parseInt(U.max_chars,10);break}return U}getToolNames(){return Array.from(this.tools.keys())}getTool(_){return this.tools.get(_)}hasTool(_){return this.tools.has(_)}getWorkingDirectory(){return this.workingDirectory}setWorkingDirectory(_){this.workingDirectory=_;let C=Object.keys(this.bashSpawnEnv).length>0?this.bashSpawnEnv:void 0;this.registerTool(ZG({cwd:_,timeout:this.bashTimeoutMs,env:C}))}}import VW from"crypto";import QG from"os";var Lq="/cli/telemetry";function Qq(){let _=FF();if(_.telemetry?.anonymousId)return _.telemetry.anonymousId;let C=VW.randomUUID();return $6({telemetry:{..._.telemetry,anonymousId:C}}),C}function $G(){if(process.env.PIONEER_TELEMETRY==="false")return!1;if(process.env.PIONEER_TELEMETRY==="true")return!0;return FF().telemetry?.enabled===!0}function WG(){return FF().telemetry?.enabled!==void 0}function Y6(_){let C=FF();$6({telemetry:{...C.telemetry,enabled:_,anonymousId:_?C.telemetry?.anonymousId||VW.randomUUID():C.telemetry?.anonymousId}})}function $q(_,C){if(!$G())return;let G=`${M2().replace(/\/$/,"")}${Lq}`,A=d3(),Q={event:_,installation_id:Qq(),cli_version:W6.version,os_type:QG.type(),os_platform:QG.platform(),os_arch:QG.arch(),...C},J={"Content-Type":"application/json"};if(A)J["X-API-Key"]=A;try{fetch(G,{method:"POST",headers:J,body:JSON.stringify(Q)}).catch(()=>{})}catch{}}function Wq(_,C){$q(_,C)}function hW(_,C){Wq("cli_command",{command:_,subcommand:C})}var u=H0(YG(),1),Yq=`
|
|
217
|
+
\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
218
|
+
\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557
|
|
219
|
+
\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
|
|
220
|
+
\u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557
|
|
221
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551
|
|
222
|
+
\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D
|
|
223
|
+
`.trim(),Kq=new Set(["user_id","root_dataset_id","dataset_path","trained_model_path","job_reference"]);function HG(_){if(_===null||_===void 0)return _;if(Array.isArray(_))return _.map(HG);if(typeof _==="object"){let C={};for(let[U,G]of Object.entries(_))if(!Kq.has(U))C[U]=HG(G);return C}return _}function zq(_){return JSON.stringify(HG(_),null,2)}function NG(_){if(_===null||_===void 0)return;if(typeof _==="string")return _;if(Array.isArray(_)){let C=_.map((U)=>NG(U)).filter((U)=>Boolean(U&&U.trim()));return C.length>0?C.join("; "):void 0}if(typeof _==="object"){let C=_;if(typeof C.detail==="string")return C.detail;if(C.detail!==void 0){let U=NG(C.detail);if(U)return U}if(typeof C.message==="string")return C.message;if(typeof C.error==="string")return C.error;if(typeof C.msg==="string")return C.msg;if(Array.isArray(C.loc)&&typeof C.msg==="string")return`${C.loc.join(".")}: ${C.msg}`}return}function i1(_){let C=_.trim();if(!C)return _;if(!(C.startsWith("{")&&C.endsWith("}")||C.startsWith("[")&&C.endsWith("]")))return _;try{let G=JSON.parse(C);return NG(G)||_}catch{return _}}function _F(_){if(!_)return null;let C=_.lastIndexOf(":");if(C===-1)return{name:_,version:"latest"};return{name:_.slice(0,C),version:_.slice(C+1)}}var fW=new Set(["help","h","version","v","private","save","multi-label","include-spans","echo","include-confidence","format-results","reasoning-trace","use-meta-felix","json","all"]);function Rq(_){let C=[],U={},G=[];for(let A=0;A<_.length;A++){let Q=_[A];if(Q.startsWith("--")){let J=Q.slice(2),L=_[A+1];if(L&&!L.startsWith("-"))U[J]=L,A++;else if(fW.has(J))U[J]="true";else G.push(`--${J}`),U[J]=""}else if(Q.startsWith("-")&&Q.length===2){let J=Q.slice(1),L=_[A+1];if(L&&!L.startsWith("-"))U[J]=L,A++;else if(fW.has(J))U[J]="true";else G.push(`-${J}`),U[J]=""}else C.push(Q)}return{command:C,flags:U,parseErrors:G}}function jW(_){if(!_)return{value:void 0};try{let C=JSON.parse(_);if(!C||Array.isArray(C)||typeof C!=="object")return{error:"--example must be a JSON object"};return{value:C}}catch{return{error:"--example must be valid JSON"}}}var Z2=({message:_})=>u.jsxDEV(r,{children:[u.jsxDEV(Y,{color:"yellow",children:u.jsxDEV(W$,{type:"dots"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" ",_??"Loading..."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l=({error:_})=>u.jsxDEV(r,{children:u.jsxDEV(Y,{color:"red",children:["Error: ",i1(_)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A8=({message:_})=>u.jsxDEV(r,{children:u.jsxDEV(Y,{color:"green",children:["\u2713 ",_]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lW=({data:_})=>u.jsxDEV(r,{children:u.jsxDEV(Y,{children:zq(_)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Hq=({onComplete:_})=>{let[C,U]=j.useState("yes"),{isRawModeSupported:G}=j3();return IF((A,Q)=>{if(Q.leftArrow||Q.rightArrow)U((J)=>J==="yes"?"no":"yes");if(Q.return)Y6(C==="yes"),_();if(A==="y"||A==="Y")Y6(!0),_();if(A==="n"||A==="N")Y6(!1),_()},{isActive:G}),u.jsxDEV(r,{flexDirection:"column",paddingX:1,children:[u.jsxDEV(Y,{bold:!0,color:"cyan",children:"Pioneer CLI - Usage Analytics"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Help improve Pioneer by sharing usage data?"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"What we collect:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" - Commands and features used"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" - Session duration, tool usage"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" - OS and CLI version"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"We never collect your prompts or file contents."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Change anytime: pioneer telemetry [enable|disable]"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{children:[u.jsxDEV(Y,{children:"Share usage data? "},void 0,!1,void 0,this),u.jsxDEV(Y,{color:C==="yes"?"green":"gray",bold:C==="yes",children:C==="yes"?"[Yes]":" Yes "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" / "},void 0,!1,void 0,this),u.jsxDEV(Y,{color:C==="no"?"red":"gray",bold:C==="no",children:C==="no"?"[No]":" No "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" (Y/N or arrow keys)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},Nq=({action:_})=>{let{exit:C}=_2(),[U,G]=j.useState(null);if(j.useEffect(()=>{if(_==="enable")Y6(!0),G("Telemetry enabled. Thank you for helping improve Pioneer!");else if(_==="disable")Y6(!1),G("Telemetry disabled. No usage data will be collected.");else{let A=$G();G(`Telemetry is currently ${A?"enabled":"disabled"}.`)}setTimeout(()=>C(),500)},[_,C]),!U)return null;return u.jsxDEV(r,{flexDirection:"column",children:[_==="enable"&&u.jsxDEV(A8,{message:U},void 0,!1,void 0,this),_==="disable"&&u.jsxDEV(Y,{color:"yellow",children:U},void 0,!1,void 0,this),!_&&u.jsxDEV(Y,{children:U},void 0,!1,void 0,this),!_&&u.jsxDEV(Y,{dimColor:!0,children:"Use 'pioneer telemetry enable' or 'pioneer telemetry disable' to change."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Mq=({apiKeyFromFlag:_})=>{let{exit:C}=_2(),{isRawModeSupported:U}=j3(),[G,A]=j.useState(""),[Q,J]=j.useState(_?"validating":"input"),[L,W]=j.useState("");j.useEffect(()=>{if(_)H(_)},[_]);let H=async(T)=>{if(!T.trim()){W("API key cannot be empty"),J("error"),setTimeout(()=>C(),1500);return}J("validating");let h=await eO(T.trim());if(h.ok)$6({apiKey:T.trim()}),J("done");else if(h.status===401||h.status===403)W(`Invalid API key (HTTP ${h.status}). Please check and try again.`),J("error");else W(`Connection failed (HTTP ${h.status}): ${h.error??"Unknown error"}`),J("error");setTimeout(()=>C(),1500)};if(Q==="validating")return u.jsxDEV(Z2,{message:"Validating API key..."},void 0,!1,void 0,this);if(Q==="done")return u.jsxDEV(A8,{message:"Logged in successfully. API key saved."},void 0,!1,void 0,this);if(Q==="error")return u.jsxDEV(l,{error:L},void 0,!1,void 0,this);if(!U)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Interactive input not supported in this terminal."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Use: pioneer auth login --key YOUR_API_KEY"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{children:"Enter your Pioneer API key:"},void 0,!1,void 0,this),u.jsxDEV(r,{children:[u.jsxDEV(Y,{color:"cyan",children:"> "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:G,onChange:A,onSubmit:H,mask:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},Eq=()=>{let{exit:_}=_2();return j.useEffect(()=>{z$(),setTimeout(()=>_(),500)},[_]),u.jsxDEV(A8,{message:"Logged out. API key cleared."},void 0,!1,void 0,this)},qq=({tokenFromFlag:_})=>{let{exit:C}=_2(),{isRawModeSupported:U}=j3(),[G,A]=j.useState(""),[Q,J]=j.useState(_?"done":"input");j.useEffect(()=>{if(_)tO(_),setTimeout(()=>C(),500)},[_,C]);let L=async(W)=>{if(!W.trim())return;tO(W.trim()),J("done"),setTimeout(()=>C(),500)};if(Q==="done")return u.jsxDEV(A8,{message:"Hugging Face token saved."},void 0,!1,void 0,this);if(!U)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Interactive input not supported in this terminal."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Use: pioneer auth hf --token YOUR_HF_TOKEN"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{children:"Enter your Hugging Face token:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Get one at: https://huggingface.co/settings/tokens"},void 0,!1,void 0,this),u.jsxDEV(r,{children:[u.jsxDEV(Y,{color:"cyan",children:"> "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:G,onChange:A,onSubmit:L,mask:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},Pq=()=>{let{exit:_}=_2();return j.useEffect(()=>{N$(),setTimeout(()=>_(),500)},[_]),u.jsxDEV(A8,{message:"Hugging Face token cleared."},void 0,!1,void 0,this)},wq=()=>{let{exit:_}=_2(),C=g1();return j.useEffect(()=>{setTimeout(()=>_(),500)},[_]),u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{children:["Hugging Face token:"," ",u.jsxDEV(Y,{color:C?"green":"red",children:C?"Configured":"Not set"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!C&&u.jsxDEV(Y,{dimColor:!0,children:"Run 'pioneer auth hf' to set your token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Iq=()=>{let{exit:_}=_2(),C=d3(),U=M2(),G=Boolean(process.env.PIONEER_API_KEY),[A,Q]=j.useState(C?"checking":"no-key"),[J,L]=j.useState(null);return j.useEffect(()=>{let W=!1;if(!C)return Q("no-key"),L(null),()=>{W=!0};return Q("checking"),L(null),(async()=>{let H=await eO(C);if(W)return;if(H.ok){Q("valid");return}if(H.status===401||H.status===403){Q("invalid"),L(H.error?i1(H.error):null);return}Q("error"),L(H.error?i1(H.error):`HTTP ${H.status}`)})(),()=>{W=!0}},[C]),j.useEffect(()=>{if(A==="checking")return;let W=setTimeout(()=>_(),A==="error"?2000:1200);return()=>clearTimeout(W)},[A,_]),u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{children:["Base URL: ",U]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:["Logged in (key configured):"," ",u.jsxDEV(Y,{color:C?"green":"red",children:C?"Yes":"No"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&u.jsxDEV(Y,{dimColor:!0,children:["Key source: ",G?"PIONEER_API_KEY environment variable":"saved config"]},void 0,!0,void 0,this),C&&u.jsxDEV(Y,{children:["Key valid for current backend:"," ",u.jsxDEV(Y,{color:A==="valid"?"green":A==="invalid"?"red":A==="error"?"yellow":"cyan",children:A==="valid"?"Yes":A==="invalid"?"No":A==="error"?"Unable to verify":"Checking..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A==="invalid"&&u.jsxDEV(Y,{dimColor:!0,children:"This API key is not valid for this backend. Dev and prod/local keys are different."},void 0,!1,void 0,this),J&&A!=="checking"&&u.jsxDEV(Y,{dimColor:!0,children:["Details: ",J]},void 0,!0,void 0,this),!C&&u.jsxDEV(Y,{dimColor:!0,children:"Run 'pioneer auth login' to configure an API key."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};function u0({action:_,successMessage:C}){let{exit:U}=_2(),[G,A]=j.useState("loading"),[Q,J]=j.useState(null),[L,W]=j.useState("");if(j.useEffect(()=>{(async()=>{let H=await _();if(H.ok)J(H.data??null),A("done");else W(H.error??"Unknown error"),A("error");setTimeout(()=>U(),500)})()},[_,U]),G==="loading")return u.jsxDEV(Z2,{},void 0,!1,void 0,this);if(G==="error")return u.jsxDEV(l,{error:L},void 0,!1,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[C&&u.jsxDEV(A8,{message:C},void 0,!1,void 0,this),Q&&u.jsxDEV(lW,{data:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function yW(_){return _.filter((C)=>Boolean(C&&typeof C.content==="string"&&typeof C.role==="string")).map((C)=>{let G={role:C.role==="user"||C.role==="assistant"||C.role==="tool"?C.role:"assistant",content:C.content},A=C;if(A.tool_call_id)G.tool_call_id=A.tool_call_id;if(A.tool_calls&&Array.isArray(A.tool_calls))G.tool_calls=A.tool_calls.filter((Q)=>Boolean(Q)&&typeof Q.id==="string"&&typeof Q.name==="string"&&typeof Q.args==="object"&&Q.args!==null).map((Q)=>({id:Q.id,name:Q.name,args:Q.args}));return G})}function p1(_,C){return _.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1 ($2)").split(/(`[^`]+`|\*\*[^*]+\*\*|__[^_]+__)/g).map((A,Q)=>{let J=`${C}-${Q}`;if(A.startsWith("**")&&A.endsWith("**"))return u.jsxDEV(Y,{bold:!0,children:A.slice(2,-2)},J,!1,void 0,this);if(A.startsWith("__")&&A.endsWith("__"))return u.jsxDEV(Y,{bold:!0,children:A.slice(2,-2)},J,!1,void 0,this);if(A.startsWith("`")&&A.endsWith("`"))return u.jsxDEV(Y,{color:"cyan",children:A.slice(1,-1)},J,!1,void 0,this);return u.jsxDEV(j.default.Fragment,{children:A},J,!1,void 0,this)})}var dW=({content:_})=>{let C=_.replace(/\r\n/g,`
|
|
224
|
+
`).split(`
|
|
225
|
+
`),U=[],G=!1;return C.forEach((A,Q)=>{let J=A.replace(/\s+$/,""),L=J.trim(),W=`agent-md-${Q}`;if(L.startsWith("```")){G=!G;return}if(G){U.push(u.jsxDEV(Y,{dimColor:!0,wrap:"wrap",children:J},W,!1,void 0,this));return}if(!L){if(U.length>0)U.push(u.jsxDEV(Y,{children:" "},W,!1,void 0,this));return}let H=L.match(/^(#{1,6})\s+(.+)$/);if(H){U.push(u.jsxDEV(Y,{bold:!0,color:"cyan",wrap:"wrap",children:p1(H[2],W)},W,!1,void 0,this));return}let T=L.match(/^[-*+]\s+(.+)$/);if(T){U.push(u.jsxDEV(Y,{wrap:"wrap",children:[u.jsxDEV(Y,{dimColor:!0,children:"- "},void 0,!1,void 0,this),p1(T[1],W)]},W,!0,void 0,this));return}let h=L.match(/^(\d+)[.)]\s+(.+)$/);if(h){U.push(u.jsxDEV(Y,{wrap:"wrap",children:[u.jsxDEV(Y,{dimColor:!0,children:[h[1],". "]},void 0,!0,void 0,this),p1(h[2],W)]},W,!0,void 0,this));return}let E=L.match(/^>\s?(.+)$/);if(E){U.push(u.jsxDEV(Y,{dimColor:!0,wrap:"wrap",children:p1(E[1],W)},W,!1,void 0,this));return}U.push(u.jsxDEV(Y,{wrap:"wrap",children:p1(L,W)},W,!1,void 0,this))}),u.jsxDEV(r,{flexDirection:"column",children:U},void 0,!1,void 0,this)},iW=({turn:_})=>{if(_.role==="user")return u.jsxDEV(r,{marginBottom:1,children:u.jsxDEV(Y,{dimColor:!0,wrap:"wrap",children:["You: ",_.content]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return u.jsxDEV(r,{flexDirection:"column",marginBottom:1,children:[u.jsxDEV(Y,{color:"green",bold:!0,children:"Agent:"},void 0,!1,void 0,this),u.jsxDEV(r,{marginLeft:2,children:u.jsxDEV(dW,{content:_.content},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},kq=({content:_})=>u.jsxDEV(r,{flexDirection:"column",marginBottom:1,children:[u.jsxDEV(Y,{color:"green",bold:!0,children:["Agent: ",u.jsxDEV(Y,{color:"gray",children:"(streaming...)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.jsxDEV(r,{marginLeft:2,children:u.jsxDEV(dW,{content:_},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vq=120000;async function nW(_){let C=_.startsWith("!")?_.slice(1).trim():"";if(!C)throw Error("Empty shell command after !");let U=AG(),G=Object.keys(U).length>0?U:void 0,A="";for await(let J of MW(C,{cwd:process.cwd(),timeout:vq,env:G}))if(J.type==="stdout"||J.type==="stderr")A+=String(J.data);let Q=A.trim();return Q.length?Q:"(no output)"}function Tq(_){return _.filter((C)=>(C.role==="user"||C.role==="assistant")&&typeof C.content==="string"&&C.content.trim().length>0).map((C)=>({role:C.role,content:C.content.trim()}))}function gW(_){if(!_?.length)return[];let C=[];for(let U of _){if(U.role!=="user"&&U.role!=="assistant")continue;if(!(typeof U.content==="string"?U.content.trim():""))continue;C.push({role:U.role,content:U.content})}return C}function aW(_,C){let U=_.toLowerCase(),{research:G,onSwitch:A,onClear:Q,onExit:J,getStatus:L,onResponse:W}=C;if(!U.startsWith("/"))return!1;if(U==="/help"||U==="/?")return W(["Commands:","/help - Show this help","/clear - Clear local transcript and context","/status - Show current mode and conversation","/mode - Show current mode","/mode standard - Switch to standard WebSocket agent","/mode research - Switch to research agent","/exit - Exit the CLI","!<cmd> - Run a local shell command without the agent"].join(`
|
|
226
|
+
`)),!0;if(U==="/clear")return Q(),W("Cleared local transcript and context for this agent session.",{replaceTranscript:!0}),!0;if(U==="/status")return W(L()),!0;if(U==="/exit"||U==="/quit")return J(),!0;if(/^\/\s+/.test(_))return!1;if(!U.startsWith("/mode"))return W(`Unknown command: ${_}. Use /help for available commands.`),!0;let H=U.split(/\s+/).filter(Boolean);if(H.length===1)return W(`Current mode: ${G?"research (REST / auto-agent)":"standard (WebSocket)"}. Use /mode standard or /mode research to switch.`),!0;let T=H[1];if(T==="research"){if(G)W("Already in research mode.");else A?.("research");return!0}if(T==="standard"||T==="std"){if(!G)W("Already in standard mode.");else A?.("standard");return!0}return W("Unknown /mode argument. Use /mode standard or /mode research."),!0}function Sq({conversationId:_,history:C,firstMessage:U,allowSessionCreation:G=!0,onSessionSync:A,onRequestMode:Q,onFirstMessageConsumed:J}){let{isRawModeSupported:L}=j3(),{exit:W}=_2(),[H,T]=j.useState(""),[h,E]=j.useState(!1),[q,w]=j.useState(""),[V,b]=j.useState("Start typing..."),[S,s]=j.useState(_),[t,x]=j.useState(""),[FD,ZD]=j.useState([]),[BD,XD]=j.useState(Boolean(_)&&C===void 0),[i,RD]=j.useState(!0),[jD,dD]=j.useState([]),[PD,oD]=j.useState(-1),QD=j.useRef([]),ID=j.useRef(!1),ED=j.useRef(null),mD=j.useRef(null);if(!mD.current)mD.current=new LG({workingDirectory:process.cwd(),bashTimeout:120000});if(!ED.current)ED.current=new uG;let KD=(kD)=>{T(kD),oD(-1)},Q0=(kD)=>{let JD=kD.trim();if(!JD)return;dD((AD)=>{if(AD.length>0&&AD[AD.length-1]===JD)return AD;return[...AD,JD]})},E0=(kD)=>{if(kD)sO(kD)},yD=(kD)=>{if(!kD?.length)return"";return[...kD].reverse().find((AD)=>AD.role==="assistant"&&typeof AD.content==="string"&&AD.content.trim())?.content?.trim()??""};j.useEffect(()=>{if(C!==void 0){let AD=yW(C);QD.current=AD,ZD(gW(AD)),XD(!1);return}if(!_){XD(!1);return}let kD=!0;return(async()=>{let AD=await q9(_);if(!kD)return;if(!AD.ok){let B0=(AD.error||"").toLowerCase();if(AD.status===404||B0.includes("session not found")||B0.includes("not found")||B0.includes("does not exist"))QD.current=[],ZD([]),w("Could not load session history. This session could not be found on the backend. Resume is not available."),RD(!1);else w(`Could not load session history for ${_}: ${AD.error||"Unable to load conversation history."} Proceeding without preloaded history.`);XD(!1);return}let gD=(AD.data?.messages??[]).map((B0)=>{if(typeof B0.role!=="string"||typeof B0.content!=="string")return;return{role:B0.role,content:B0.content}}).filter((B0)=>B0!==void 0);QD.current=yW(gD),ZD(gW(QD.current)),XD(!1)})(),()=>{kD=!1}},[_,C]),j.useEffect(()=>{return()=>{ED.current?.disconnect()}},[]);let MD=j.useRef(!1);j.useEffect(()=>{if(MD.current&&!h){let kD=setTimeout(()=>{KD("")},0);return MD.current=h,()=>clearTimeout(kD)}MD.current=h},[h]);let v0=async(kD)=>{if(BD)return;let JD=kD.trim();if(!JD||h)return;if(aW(JD,{research:!1,onSwitch:Q,onClear:()=>{QD.current=[],ZD([]),x(""),w(""),A?.({conversationId:S,history:[]})},onExit:W,getStatus:()=>["Mode: standard (WebSocket)",`Conversation: ${S||"new conversation"}`,`Visible turns: ${FD.length} (including local commands)`].join(`
|
|
227
|
+
`),onResponse:($0,D2)=>{let N0=[{role:"user",content:JD},{role:"assistant",content:$0}];ZD((m0)=>D2?.replaceTranscript?N0:[...m0,...N0])}})){Q0(JD),w(""),x(""),KD("");return}if(JD.startsWith("!")){Q0(JD),KD(""),w(""),x(""),ZD(($0)=>[...$0,{role:"user",content:JD}]),E(!0),b("Running local shell...");try{let $0=await nW(JD);ZD((D2)=>[...D2,{role:"assistant",content:$0}])}catch($0){let D2=$0 instanceof Error?$0.message:String($0);ZD((N0)=>[...N0,{role:"assistant",content:`Local shell error: ${D2}`}])}finally{E(!1),b("Ready for next message.")}return}if(Q0(JD),!i&&!G){w("Unable to resume this session because the conversation record is unavailable."),E(!1),b("Ready for next message.");return}if(!G&&!S&&!QD.current.length){w("Unable to resume this session because no valid conversation id is available."),E(!1),b("Ready for next message.");return}w(""),x(""),KD(""),ZD(($0)=>[...$0,{role:"user",content:JD}]),E(!0),b("Connecting to agent...");let AD=ED.current,gD=mD.current,B0=H$(),j0="",x0=($0)=>{j0+=$0,x(j0)};try{if(!await Promise.race([AD.health(),new Promise((sD,W0)=>setTimeout(()=>W0(Error("Agent health check timed out")),4000))]))throw Error("Agent runtime is not reachable (health check failed).");await HW(AD),await Promise.race([AD.connect(),new Promise((sD,W0)=>setTimeout(()=>W0(Error("WebSocket connection timed out")),8000))]),b("Thinking...");let D2,N0;await AD.chat(JD,{onStream:(sD)=>{x0(sD)},onAssistantMessage:(sD)=>{x0(sD)},onToolCall:async(sD)=>{if(SW(sD.tool))return`Browser UI tool "${sD.tool}" runs only inside the Pioneer web app (Browser Use).
|
|
228
|
+
Use browse_url for public HTTP(S) pages, Felix tools for Pioneer data/APIs, bash/read_file locally.`;b(`Running tool: ${sD.tool}`);try{return await gD.execute(sD.tool,sD.args)}catch(W0){return W0 instanceof Error?W0.message:String(W0)}},onDone:(sD,W0)=>{D2=sD,N0=W0}},{history:QD.current,...S?{conversationId:S}:{},...B0?{config:{model:B0}}:{},fileReferences:[]});let m0=D2??QD.current;QD.current=m0;let F2=yD(D2)||j0.trim();if(!F2.trim()){w("Agent returned no response content from the WebSocket runtime."),x(""),KD(""),E(!1),b("Ready for next message.");return}ZD((sD)=>[...sD,{role:"assistant",content:F2}]);let A2=N0??S;if(N0)s(N0),E0(N0);else if(A2)E0(A2);let o0=Tq(m0.length?m0:D2??[]);A?.({conversationId:N0??S,history:o0}),x(""),b("Ready for next message."),KD(""),E(!1)}catch($0){let D2=$0 instanceof Error?$0.message:String($0);w(D2||"WebSocket agent request failed."),x(""),b("Ready for next message."),KD(""),E(!1)}};return IF((kD,JD)=>{if(JD.ctrl&&kD==="c"){W();return}if(h)return;if(JD.upArrow){if(!jD.length)return;let AD=PD===-1?jD.length-1:Math.max(0,PD-1);oD(AD),T(jD[AD]??"");return}if(JD.downArrow){if(PD===-1)return;let AD=PD+1;if(AD>=jD.length){oD(-1),T("");return}oD(AD),T(jD[AD]??"");return}},{isActive:L}),j.useEffect(()=>{if(!U||ID.current)return;if(BD)return;ID.current=!0,J?.(),v0(U)},[U,BD]),u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Agent mode selected."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:["Mode: standard (WebSocket)"," ",S?`(conversation ${S})`:"(new conversation)"]},void 0,!0,void 0,this),BD?u.jsxDEV(Z2,{message:"Loading conversation history..."},void 0,!1,void 0,this):null,u.jsxDEV(r,{flexDirection:"column",marginTop:1,children:[FD.map((kD,JD)=>u.jsxDEV(iW,{turn:kD},`ws-turn-${JD}`,!1,void 0,this)),t?u.jsxDEV(kq,{content:t},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),u.jsxDEV(r,{marginTop:1,children:h?u.jsxDEV(Z2,{message:V},void 0,!1,void 0,this):!L?u.jsxDEV(Y,{dimColor:!0,children:"Raw mode not supported \u2014 use an interactive terminal (TTY)."},void 0,!1,void 0,this):u.jsxDEV(r,{children:[u.jsxDEV(Y,{color:"cyan",children:"> "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:H,onChange:(kD)=>KD(kD),onSubmit:(kD)=>void v0(kD),placeholder:"Message... (/help, !<cmd>)",focus:!0,showCursor:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q&&u.jsxDEV(r,{marginTop:1,children:u.jsxDEV(l,{error:q},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Use /help for commands. Prefix ! to run local shell. Ctrl+C to exit."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function EG({initialMode:_,conversationId:C,history:U,firstMessage:G,allowSessionCreation:A}){let[Q,J]=j.useState(_),[L,W]=j.useState({conversationId:C,history:U??[]}),[H,T]=j.useState(G),h=Q===_?H:void 0,E=(q)=>{W((w)=>({conversationId:q.conversationId??w.conversationId,history:q.history}))};if(Q==="research")return u.jsxDEV(bq,{conversationId:L.conversationId,history:L.history.length?L.history:U,mode:"research",firstMessage:h,allowSessionCreation:A,onSessionSync:E,onRequestMode:J,onFirstMessageConsumed:()=>T(void 0)},"research",!1,void 0,this);return u.jsxDEV(Sq,{conversationId:L.conversationId,history:L.history.length?L.history:U,firstMessage:h,allowSessionCreation:A,onSessionSync:E,onRequestMode:J,onFirstMessageConsumed:()=>T(void 0)},"standard",!1,void 0,this)}function bq({conversationId:_,history:C,mode:U,firstMessage:G,allowSessionCreation:A=!0,onSessionSync:Q,onRequestMode:J,onFirstMessageConsumed:L}){let{isRawModeSupported:W}=j3(),{exit:H}=_2(),[T,h]=j.useState(""),[E,q]=j.useState(!1),[w,V]=j.useState(""),[b,S]=j.useState("Start typing..."),[s,t]=j.useState(_),x=(JD)=>{let AD=JD?.trim().toLowerCase();return AD==="user"||AD==="human"?"user":"assistant"},FD=(JD)=>JD.map((AD)=>({role:x(AD.role),content:AD.content})),[ZD,BD]=j.useState(C??[]),[XD,i]=j.useState(()=>FD(C??[])),[RD,jD]=j.useState(Boolean(_)&&C===void 0),[dD,PD]=j.useState(!0),[oD,QD]=j.useState([]),[ID,ED]=j.useState(-1),mD=j.useRef(!1),KD=(JD)=>{h(JD),ED(-1)},Q0=(JD)=>JD.filter((AD)=>{let gD=AD.role?.trim().toLowerCase();return(gD==="user"||gD==="human")&&typeof AD.content==="string"}).map((AD)=>AD.content.trim()).filter((AD)=>AD.length>0),E0=XD,yD=(JD)=>{let AD=JD.trim();if(!AD)return;QD((gD)=>{if(gD.length>0&&gD[gD.length-1]===AD)return gD;return[...gD,AD]})};j.useEffect(()=>{let JD=C??[];if(BD(JD),i(FD(JD)),QD(Q0(JD)),C!==void 0||!_)jD(!1)},[C]),j.useEffect(()=>{if(!_||C!==void 0){jD(!1);return}let JD=!0;return(async()=>{let gD=await q9(_);if(!JD)return;if(!gD.ok){let j0=(gD.error||"").toLowerCase();if(gD.status===404||j0.includes("session not found")||j0.includes("not found")||j0.includes("does not exist")){BD([]),i([]),V("Could not load session history. This session could not be found on the backend. Resume is not available."),PD(!1),jD(!1);return}V(`Could not load session history for ${_}: ${gD.error||"Unable to load conversation history."} Proceeding without preloaded history.`),PD(!0),jD(!1);return}let B0=(gD.data?.messages??[]).map((j0)=>{if(typeof j0.role!=="string"||typeof j0.content!=="string")return;return{role:j0.role,content:j0.content}}).filter((j0)=>j0!==void 0);BD(B0),i(FD(B0)),QD(Q0(B0)),jD(!1)})(),()=>{JD=!1}},[_,C]);let MD=j.useRef(!1);j.useEffect(()=>{if(MD.current&&!E){let JD=setTimeout(()=>{KD("")},0);return MD.current=E,()=>clearTimeout(JD)}MD.current=E},[E]);let v0=async(JD)=>{if(RD)return;let AD=JD.trim();if(!AD||E)return;if(aW(AD,{research:U==="research",onSwitch:J,onClear:()=>{BD([]),i([]),V(""),Q?.({conversationId:s,history:[]})},onExit:H,getStatus:()=>[`Mode: ${U==="research"?"research (REST / auto-agent)":"standard"}`,`Conversation: ${s||"new conversation"}`,`Visible turns: ${E0.length} (including local commands)`].join(`
|
|
229
|
+
`),onResponse:(sD,W0)=>{let s2=[{role:"user",content:AD},{role:"assistant",content:sD}];i((C3)=>W0?.replaceTranscript?s2:[...C3,...s2])}})){yD(AD),V(""),KD("");return}if(AD.startsWith("!")){yD(AD),KD(""),V("");try{let sD=await nW(AD);i((W0)=>[...W0,{role:"user",content:AD},{role:"assistant",content:sD}])}catch(sD){let W0=sD instanceof Error?sD.message:String(sD);i((s2)=>[...s2,{role:"user",content:AD},{role:"assistant",content:`Local shell error: ${W0}`}])}S("Ready for next message.");return}if(yD(AD),!dD&&!A){V("Unable to resume this session because the conversation record is unavailable."),q(!1),S("Ready for next message.");return}let gD=[...ZD,{role:"user",content:AD}];BD(gD),i((sD)=>[...sD,{role:"user",content:AD}]),KD(""),V(""),q(!0),S("Thinking...");let B0=s;if(!B0&&!A){V("Unable to resume this session because no valid conversation id is available."),KD(""),q(!1),S("Ready for next message.");return}if(!B0){S("Creating conversation...");let sD=await a$({first_message:AD,title:AD.slice(0,80)||"New agent session"});if(!sD.ok){V(`Failed to create conversation: ${sD.error||"Unknown error."}`),KD(""),q(!1),S("Ready for next message.");return}let W0=sD.data?.id;if(!W0){V("Failed to create conversation: Missing conversation id from server response."),KD(""),q(!1),S("Ready for next message.");return}B0=W0,t(B0),kD(B0)}let x0=await(async(sD)=>n$({message:AD,...sD?{conversation_id:sD}:{},...gD.length?{history:gD}:{}}))(B0),$0=(x0.error||"").toLowerCase(),D2=x0.status===404||$0.includes("session not found")||$0.includes("not found")||$0.includes("does not exist");if(!x0.ok){if($0.includes("failed to get session")&&D2)if(!A)V("Unable to resume this session. It is not available on the backend."),PD(!1);else V("Failed to resume session on the backend. Please start a new message to create a new session.");else if(x0.status===403&&$0.includes("deep research mode"))V(`Research mode requires a Pro subscription.
|
|
230
|
+
To run this command, upgrade your account to Pro and retry.
|
|
231
|
+
Go to Manage subscription under Billing at https://agent.pioneer.ai/account.`);else V(x0.error||"Agent request failed.");KD(""),q(!1),S("Ready for next message.");return}let N0=x0.data;if(!N0){V("Agent request did not return a usable response."),KD(""),q(!1),S("Ready for next message.");return}let m0=N0.answer?.trim()||"No response content yet.";V("");let F2=B0??N0.conversation_id;if(F2)t(F2),kD(F2);let A2={role:"assistant",content:m0};if(F2)o$(F2,{messages:[{role:"user",content:AD},{role:"assistant",content:m0}]});let o0=[...gD,A2];BD((sD)=>[...sD,A2]),i((sD)=>[...sD,{role:"assistant",content:m0}]),Q?.({conversationId:F2,history:o0}),S("Ready for next message."),KD(""),q(!1)};IF((JD,AD)=>{if(AD.ctrl&&JD==="c"){H();return}if(E)return;if(AD.upArrow){if(!oD.length)return;let gD=ID===-1?oD.length-1:Math.max(0,ID-1);ED(gD),h(oD[gD]??"");return}if(AD.downArrow){if(ID===-1)return;let gD=ID+1;if(gD>=oD.length){ED(-1),h("");return}ED(gD),h(oD[gD]??"");return}},{isActive:W});let kD=(JD)=>{if(JD)sO(JD)};return j.useEffect(()=>{return()=>{kD(s)}},[s]),j.useEffect(()=>{if(!G||mD.current)return;if(RD)return;mD.current=!0,L?.(),v0(G)},[G,RD]),u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Agent mode selected."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:["Mode: ",U==="research"?"research (REST / auto-agent)":"standard"," ",s?`(conversation ${s})`:"(new conversation)"]},void 0,!0,void 0,this),RD?u.jsxDEV(Z2,{message:"Loading conversation history..."},void 0,!1,void 0,this):null,u.jsxDEV(r,{flexDirection:"column",marginTop:1,children:E0.map((JD,AD)=>u.jsxDEV(iW,{turn:JD},`agent-turn-${AD}`,!1,void 0,this))},void 0,!1,void 0,this),u.jsxDEV(r,{marginTop:1,children:E?u.jsxDEV(Z2,{message:b},void 0,!1,void 0,this):!W?u.jsxDEV(Y,{dimColor:!0,children:"Raw mode not supported \u2014 use an interactive terminal (TTY)."},void 0,!1,void 0,this):u.jsxDEV(r,{children:[u.jsxDEV(Y,{color:"cyan",children:"> "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:T,onChange:(JD)=>KD(JD),onSubmit:(JD)=>void v0(JD),placeholder:"Message... (/help, !<cmd>)",focus:!0,showCursor:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w&&u.jsxDEV(r,{marginTop:1,children:u.jsxDEV(l,{error:w},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Use /help for commands. Prefix ! to run local shell. Ctrl+C to exit."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Vq({mode:_}){let{isRawModeSupported:C}=j3(),[U,G]=j.useState(!1),[A,Q]=j.useState(),[J]=j.useState(()=>R$()),[L,W]=j.useState(""),[H,T]=j.useState(0),[h,E]=j.useState([]),[q,w]=j.useState(""),[V,b]=j.useState("Loading sessions..."),[S,s]=j.useState(!1),[t,x]=j.useState(""),[FD,ZD]=j.useState(void 0);j.useEffect(()=>{if(!A?.id){ZD(void 0),x("");return}let i=!0;return(async()=>{s(!0),x("");let jD=await q9(A.id);if(!i)return;if(!jD.ok){x(`Could not load selected session ${A.id}: ${jD.error||"Unknown error."}`),ZD(void 0),s(!1);return}let dD=(jD.data?.messages??[]).map((PD)=>{if(typeof PD?.role!=="string"||typeof PD?.content!=="string")return;return{role:PD.role,content:PD.content}}).filter((PD)=>PD!==void 0);ZD(dD),s(!1)})(),()=>{i=!1,s(!1)}},[A?.id]),j.useEffect(()=>{let i=!0;return(async()=>{try{let jD=await r$();if(!i)return;if(!jD.ok){w(jD.error||"Could not load agent sessions."),b(""),G(!0),E([]);return}let dD=(jD.data?.sessions??[]).map((PD)=>({id:PD.id,title:PD.title||"(untitled)",updated_at:PD.updated_at||new Date().toISOString(),is_archived:PD.is_archived}));if(dD.sort((PD,oD)=>{let QD=Date.parse(PD.updated_at),ID=Date.parse(oD.updated_at);if(Number.isNaN(QD)||Number.isNaN(ID))return 0;return ID-QD}),J){let PD=dD.findIndex((oD)=>oD.id===J);if(PD>=0)T(PD)}E(dD),b(""),G(!0);return}catch(jD){if(!i)return;let dD=jD instanceof Error?jD.message:"Could not load agent sessions.";w(dD),b(""),E([]),G(!0)}})(),()=>{i=!1}},[]);let BD=(i)=>`${i.title||"(untitled)"} ${i.is_archived?"[archived] ":""}(updated ${i.updated_at})`,XD=h.filter((i)=>{let RD=`${i.title} ${i.id}`.toLowerCase(),jD=L.trim().toLowerCase();return jD.length===0||RD.includes(jD)});if(IF((i,RD)=>{if(!XD.length)return;if(RD.upArrow){T((jD)=>jD===0?XD.length-1:jD-1);return}if(RD.downArrow){T((jD)=>jD===XD.length-1?0:jD+1);return}if(RD.return){let jD=XD[H];if(!jD){w("No matching sessions found.");return}w(""),Q({id:jD.id})}},{isActive:C}),!C)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Interactive input is not supported in this terminal."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Use interactive mode for this environment:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" agent --help"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(q&&!h.length)return u.jsxDEV(l,{error:q},void 0,!1,void 0,this);if(!U)return u.jsxDEV(Z2,{message:V||"Loading sessions..."},void 0,!1,void 0,this);if(!h.length)return u.jsxDEV(l,{error:"No agent sessions found. Start a new conversation with `pioneer agent` and try again."},void 0,!1,void 0,this);if(A?.id){if(S)return u.jsxDEV(Z2,{message:`Loading conversation ${A.id}...`},void 0,!1,void 0,this);if(t)return u.jsxDEV(l,{error:t},void 0,!1,void 0,this);return u.jsxDEV(EG,{initialMode:_??"standard",conversationId:A.id,history:FD,allowSessionCreation:!1},void 0,!1,void 0,this)}return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Agent sessions:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[J?`Last session: ${J}. `:"","Type to filter. Use \u2191/\u2193 to navigate and Enter to select."]},void 0,!0,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Search title or session ID."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),XD.length===0?u.jsxDEV(Y,{color:"yellow",children:['No sessions match "',L,'".']},void 0,!0,void 0,this):XD.slice(0,12).map((i,RD)=>{let jD=RD===H;return u.jsxDEV(Y,{color:jD?"cyan":void 0,children:`${jD?">":" "} ${BD(i)} (${i.id})`},i.id,!1,void 0,this)}),u.jsxDEV(r,{marginTop:1,children:[u.jsxDEV(Y,{color:"cyan",children:"> "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:L,onChange:W,onSubmit:(i)=>{let RD=i.trim().toLowerCase();if(!RD&&!XD.length)return;let dD=XD.find((PD)=>PD.id.toLowerCase()===RD||PD.title.toLowerCase()===RD)??XD[H];if(!dD?.id){w("No matching session found.");return}w(""),Q({id:dD.id})}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&u.jsxDEV(l,{error:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hq({conversationId:_,history:C,mode:U,allowSessionCreation:G=!0}){let[A,Q]=j.useState(""),[J,L]=j.useState([]),[W,H]=j.useState(-1),[T,h]=j.useState(!1),[E,q]=j.useState(""),{isRawModeSupported:w}=j3(),{exit:V}=_2(),b=!w,S=(t)=>{let x=t.trim();if(!x)return;L((FD)=>{if(FD.length>0&&FD[FD.length-1]===x)return FD;return[...FD,x]})},s=(t)=>{Q(t),H(-1)};if(IF((t,x)=>{if(x.ctrl&&t==="c"){V();return}if(T)return;if(x.upArrow){if(!J.length)return;let FD=W===-1?J.length-1:Math.max(0,W-1);H(FD),Q(J[FD]??"");return}if(x.downArrow){if(W===-1)return;let FD=W+1;if(FD>=J.length){H(-1),Q("");return}H(FD),Q(J[FD]??"");return}},{isActive:w}),j.useEffect(()=>{if(!b)return;let t=setTimeout(()=>{process.exit(0)},75);return()=>clearTimeout(t)},[b]),!w)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Interactive input is not supported in this terminal."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Use interactive mode for this environment:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:` agent${U==="research"?" --mode research":""}`},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" agent --help"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!T)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Agent mode selected."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Type your message and press enter to start:"},void 0,!1,void 0,this),u.jsxDEV(r,{children:[u.jsxDEV(Y,{color:"cyan",children:"> "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:A,onChange:(t)=>s(t),onSubmit:(t)=>{let x=t.trim();if(!x)return;S(x),q(x),h(!0)},placeholder:"Your first message...",focus:!0,showCursor:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Type Ctrl+C to cancel."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(EG,{initialMode:U==="research"?"research":"standard",conversationId:_,history:C,firstMessage:E,allowSessionCreation:G},void 0,!1,void 0,this)}function fq({name:_,icon:C,repo:U,description:G,example:A}){let[Q,J]=j.useState(""),[L,W]=j.useState([]),[H,T]=j.useState(!0),[h,E]=j.useState(""),[q,w]=j.useState(null),{isRawModeSupported:V}=j3(),[b,S]=j.useState(0);j.useEffect(()=>{(async()=>{let ZD=await W_();if(!ZD.ok){E(ZD.error??"Unable to load base models."),T(!1);return}let BD=ZD.data?Array.isArray(ZD.data.models)?ZD.data.models:ZD.data:[];W(BD.sort((XD,i)=>XD.id.localeCompare(i.id))),T(!1)})()},[]);let s=Q.trim().toLowerCase(),x=L.filter((ZD)=>{let BD=`${ZD.id} ${ZD.name??""} ${ZD.label??""} ${ZD.description??""}`.toLowerCase();return s.length===0||BD.includes(s)});j.useEffect(()=>{S(0)},[Q]);let FD=(ZD)=>{let BD=ZD.trim();if(!BD)return x[b]?.id;let XD=L.find((i)=>i.id.toLowerCase()===BD.toLowerCase());if(XD)return XD.id;return x[b]?.id};if(j.useEffect(()=>{if(b>=x.length)S(x.length>0?x.length-1:0)},[b,x.length]),IF((ZD,BD)=>{if(!x.length)return;if(BD.upArrow){S((XD)=>XD===0?x.length-1:XD-1);return}if(BD.downArrow){S((XD)=>XD===x.length-1?0:XD+1);return}if(BD.return){let XD=FD(Q);if(!XD){E("No matching models found. Refine your search and try again.");return}w(XD)}},{isActive:V}),h)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:h},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Try again with --model explicitly, or check your API connectivity."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(q)return u.jsxDEV(u0,{action:()=>GG({name:_??q,...C?{icon:C}:{},...U?{repo:U}:{},...G?{description:G}:{},active_model_id:q,selected_model_id:q,...A?{example:A}:{}}),successMessage:"Model entry created"},void 0,!1,void 0,this);if(H)return u.jsxDEV(Z2,{message:"Loading supported models..."},void 0,!1,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Choose a base model for this entry"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Type to filter. Use \u2191/\u2193 to navigate and Enter to select."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Type any part of model id, name, label, or description."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(S8,{value:Q,onChange:(ZD)=>J(ZD),onSubmit:(ZD)=>{let BD=FD(ZD);if(!BD){E("No matching models found. Refine your search and try again.");return}w(BD)},placeholder:"e.g. qwen/qwen3-8b"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),x.length===0?u.jsxDEV(Y,{dimColor:!0,children:"No matching models found."},void 0,!1,void 0,this):u.jsxDEV(r,{flexDirection:"column",children:x.map((ZD,BD)=>{let XD=[ZD.label,ZD.task_type].filter(Boolean).join(" \xB7 "),i=`${ZD.id}${XD?` (${XD})`:""}`,RD=BD===b;return u.jsxDEV(Y,{color:RD?"cyan":void 0,bold:RD,children:[RD?"\u25B6 ":" ",i]},ZD.id,!0,void 0,this)})},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Press Enter to select the highlighted model."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:["Tip: You can still run ",'model endpoints create --model "<base-model-id>"'," for exact model ids."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function K6({rawId:_,render:C}){let U=T9(_),[G,A]=j.useState(U?"resolved":"resolving"),[Q,J]=j.useState(U?_:""),[L,W]=j.useState("");if(j.useEffect(()=>{if(U)return;let H=!0;return(async()=>{let T=await J6();if(!H)return;if(!T.ok){W(T.error??"Failed to look up training jobs."),A("error");return}let h=T.data?.training_jobs??[],E=_.toLowerCase(),q=h.filter((w)=>typeof w.id==="string"&&w.id.toLowerCase().startsWith(E));if(q.length===0){W(`No training job matches "${_}". Run \`pioneer job list\` to see available IDs.`),A("error");return}if(q.length>1){let w=q.slice(0,5).map((V)=>`${V.id} (${V.model_name??"\u2014"})`).join(", ");W(`Ambiguous job id "${_}". Matches: ${w}${q.length>5?"\u2026":""}. Use a longer prefix or the full UUID.`),A("error");return}J(q[0].id),A("resolved")})(),()=>{H=!1}},[_,U]),G==="resolving")return u.jsxDEV(Z2,{message:`Resolving job id ${_}...`},void 0,!1,void 0,this);if(G==="error")return u.jsxDEV(l,{error:L},void 0,!1,void 0,this);return C(Q)}function K_(_){if(!_)return"\u2014";return _.length>8?_.slice(0,8):_}function rW(_){if(!_)return"\u2014";let C=_.split("/");return C[C.length-1]||_}function b9(_){if(!_)return"\u2014";let C=Date.parse(_);if(Number.isNaN(C))return _;let U=Date.now()-C,G=Math.round(U/1000);if(G<60)return`${Math.max(G,0)}s ago`;let A=Math.round(G/60);if(A<60)return`${A}m ago`;let Q=Math.round(A/60);if(Q<24)return`${Q}h ago`;let J=Math.round(Q/24);if(J<30)return`${J}d ago`;let L=Math.round(J/30);if(L<12)return`${L}mo ago`;return`${Math.round(J/365)}y ago`}function V9(_){let C=(_??"").toLowerCase();if(C==="complete"||C==="completed"||C==="succeeded")return"green";if(C==="failed"||C==="error"||C==="cancelled"||C==="canceled")return"red";if(C==="running"||C==="training"||C==="in_progress")return"cyan";if(C==="pending"||C==="queued"||C==="starting")return"yellow";return}function J_(_,C){if(_.length===C)return _;if(_.length>C){if(C<=1)return _.slice(0,C);return`${_.slice(0,Math.max(C-1,1))}\u2026`}return _+" ".repeat(C-_.length)}function jq(_){return _.map((C)=>({id:K_(C.id),model:C.model_name?.trim()||"\u2014",baseModel:rW(C.base_model),task:C.task_type?.trim()||"\u2014",status:C.status?.trim()||"\u2014",created:b9(C.created_at)}))}function yq(_,C,U){let G=_.map((H)=>{let T=H.header.length,h=C.reduce((q,w)=>Math.max(q,(w[H.key]??"").length),0),E=Math.max(T,h);return Math.max(H.minWidth,Math.min(H.maxWidth,E))}),A=(_.length-1)*2,Q=Math.max(40,U-1),J=G.reduce((H,T)=>H+T,0)+A;if(J<=Q)return G;let L=J-Q,W=_.map((H,T)=>H.flexible?T:-1).filter((H)=>H>=0);while(L>0){let H=!1;for(let T of W){if(L<=0)break;if(G[T]>_[T].minWidth)G[T]=G[T]-1,L-=1,H=!0}if(!H)break}return G}function gq(){let{stdout:_}=dO(),[C,U]=j.useState(()=>{let G=_?.columns;if(typeof G==="number"&&G>0)return G;let A=parseInt(process.env.COLUMNS??"",10);return Number.isFinite(A)&&A>0?A:80});return j.useEffect(()=>{if(!_)return;let G=()=>{if(typeof _.columns==="number"&&_.columns>0)U(_.columns)};return _.on("resize",G),()=>{_.off("resize",G)}},[_]),C}function h9({columns:_,rows:C,footer:U}){let G=gq(),A=yq(_,C,G),Q=_.map((J,L)=>J_(J.header,A[L]));return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,dimColor:!0,children:Q.join(" ")},void 0,!1,void 0,this),C.map((J,L)=>{let W=_.map((H,T)=>{let h=J[H.key]??"";return J_(String(h),A[T])});return u.jsxDEV(Y,{children:_.map((H,T)=>{let h=W[T],E=H.color?.(J);return u.jsxDEV(j.default.Fragment,{children:[T>0?" ":"",E?u.jsxDEV(Y,{color:E,children:h},void 0,!1,void 0,this):h]},String(H.key),!0,void 0,this)})},L,!1,void 0,this)}),U?u.jsxDEV(r,{marginTop:1,children:u.jsxDEV(Y,{dimColor:!0,children:U},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function a1({rows:_,footer:C}){if(_.length===0)return u.jsxDEV(Y,{dimColor:!0,children:"No data."},void 0,!1,void 0,this);let U=_.map((A)=>({field:A.label.toUpperCase(),value:A.value,__valueColor:A.valueColor??""}));return u.jsxDEV(h9,{columns:[{key:"field",header:"FIELD",minWidth:6,maxWidth:24},{key:"value",header:"VALUE",minWidth:10,maxWidth:80,flexible:!0,color:(A)=>A.__valueColor||void 0}],rows:U,footer:C},void 0,!1,void 0,this)}var xq=[{key:"id",header:"ID",minWidth:8,maxWidth:8},{key:"model",header:"MODEL",minWidth:8,maxWidth:32,flexible:!0},{key:"baseModel",header:"BASE MODEL",minWidth:10,maxWidth:30,flexible:!0},{key:"task",header:"TASK",minWidth:4,maxWidth:14,flexible:!0},{key:"status",header:"STATUS",minWidth:6,maxWidth:10,color:(_)=>V9(_.status)},{key:"created",header:"CREATED",minWidth:7,maxWidth:10}];function mq(){let{exit:_}=_2(),[C,U]=j.useState("loading"),[G,A]=j.useState([]),[Q,J]=j.useState("");if(j.useEffect(()=>{(async()=>{let L=await J6();if(!L.ok)J(L.error??"Failed to load training jobs."),U("error");else A(L.data?.training_jobs??[]),U("done");setTimeout(()=>_(),500)})()},[_]),C==="loading")return u.jsxDEV(Z2,{message:"Loading training jobs..."},void 0,!1,void 0,this);if(C==="error")return u.jsxDEV(l,{error:Q},void 0,!1,void 0,this);if(G.length===0)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{children:"No training jobs found."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Create one with `pioneer agent` \u2014 it will guide you through picking a base model and datasets."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(h9,{columns:xq,rows:jq(G),footer:`${G.length} job${G.length===1?"":"s"} \xB7 the short ID prefix above is enough for \`pioneer job get/logs/delete\` \xB7 use \`--json\` for raw JSON`},void 0,!1,void 0,this)}function Z8(_){if(!_)return"\u2014";let C=Date.parse(_);if(Number.isNaN(C))return _;let U=new Date(C),G=(T)=>T.toString().padStart(2,"0"),A=U.getUTCFullYear(),Q=G(U.getUTCMonth()+1),J=G(U.getUTCDate()),L=G(U.getUTCHours()),W=G(U.getUTCMinutes()),H=G(U.getUTCSeconds());return`${A}-${Q}-${J} ${L}:${W}:${H} UTC (${b9(_)})`}function cq(_,C){if(!_||!C)return"\u2014";let U=Date.parse(_),G=Date.parse(C);if(Number.isNaN(U)||Number.isNaN(G)||G<U)return"\u2014";let A=Math.floor((G-U)/1000),Q=Math.floor(A/86400),J=Math.floor(A%86400/3600),L=Math.floor(A%3600/60),W=A%60,H=[];if(Q)H.push(`${Q}d`);if(J)H.push(`${J}h`);if(L)H.push(`${L}m`);if(!H.length||W)H.push(`${W}s`);return H.join(" ")}function pq(_){if(!_||_.length===0)return"\u2014";return _.map((C)=>{let U=C?.name??"(unnamed)",G=C?.version!=null&&C.version!==""?` (v${C.version})`:"";return`${U}${G}`}).join(", ")}function oW(_){if(!_||_.length===0)return"\u2014";return _.join(", ")}function sW(_){if(_===!0)return"yes";if(_===!1)return"no";return"\u2014"}function b8(_){if(typeof _!=="number"||Number.isNaN(_))return"\u2014";return Number.isInteger(_)?String(_):_.toString()}function v9(_){if(typeof _!=="number"||Number.isNaN(_))return"\u2014";let C=_>1?_:_*100;return`${Number.isInteger(C)?C:C.toFixed(1)}%`}function I2(_){if(typeof _==="string"){let C=_.trim();return C.length?C:"\u2014"}return"\u2014"}function lq(_){let C=_,U=typeof C.provider_name==="string"?C.provider_name:void 0,G=typeof C.progress_percent==="number"?C.progress_percent:void 0,A=typeof C.current_epoch==="number"?C.current_epoch:void 0,Q=[{label:"ID",value:I2(_.id)},{label:"Model",value:I2(_.model_name)},{label:"Base model",value:I2(_.base_model)},{label:"Task",value:I2(_.task_type)},{label:"Status",value:I2(_.status),valueColor:V9(_.status)},{label:"Provider",value:I2(U)},{label:"Datasets",value:pq(_.datasets)},{label:"Labels",value:oW(_.labels)},{label:"Epochs",value:b8(_.nr_epochs)},{label:"Batch size",value:b8(_.batch_size)},{label:"Learning rate",value:b8(_.learning_rate)},{label:"Validation split",value:v9(_.validation_data_percentage)},{label:"Auto-selected",value:sW(_.model_auto_selected)},{label:"Version",value:I2(_.version_number)},{label:"Created",value:Z8(_.created_at)},{label:"Started",value:Z8(_.started_at)},{label:"Completed",value:Z8(_.completed_at)},{label:"Duration",value:cq(_.started_at,_.completed_at)},{label:"Updated",value:Z8(_.updated_at)}];if(G!==void 0)Q.splice(5,0,{label:"Progress",value:`${G.toFixed(1)}%${A!=null?` (epoch ${A})`:""}`});if(_.error_message)Q.push({label:"Error",value:_.error_message,valueColor:"red"});return Q}function dq({jobId:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState(null),[J,L]=j.useState("");if(j.useEffect(()=>{let W=!0;return(async()=>{let H=await $_(_);if(!W)return;if(!H.ok)L(H.error??"Failed to load training job."),G("error");else Q(H.data??null),G("done");setTimeout(()=>C(),500)})(),()=>{W=!1}},[_,C]),U==="loading")return u.jsxDEV(Z2,{message:`Loading training job ${_}...`},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:J},void 0,!1,void 0,this);if(!A)return u.jsxDEV(l,{error:"Training job response was empty."},void 0,!1,void 0,this);return u.jsxDEV(a1,{rows:lq(A),footer:`Use \`pioneer job get ${_} --json\` for the raw JSON payload.`},void 0,!1,void 0,this)}var iq=[{key:"id",header:"ID",minWidth:12,maxWidth:36,flexible:!0},{key:"name",header:"NAME",minWidth:8,maxWidth:30,flexible:!0},{key:"type",header:"TYPE",minWidth:4,maxWidth:8},{key:"context",header:"CONTEXT",minWidth:7,maxWidth:8},{key:"inference",header:"INFERENCE",minWidth:9,maxWidth:9,color:(_)=>_.inference==="yes"?"green":"red"},{key:"training",header:"TRAINING",minWidth:8,maxWidth:8,color:(_)=>_.training==="yes"?"green":"red"}];function nq(_){if(typeof _!=="number"||!Number.isFinite(_)||_<=0)return"\u2014";if(_>=1e6){let C=_/1e6;return`${Number.isInteger(C)?C:C.toFixed(1)}M`}if(_>=1000){let C=_/1000;return`${Number.isInteger(C)?C:C.toFixed(0)}K`}return String(_)}function xW(){let{exit:_}=_2(),[C,U]=j.useState("loading"),[G,A]=j.useState([]),[Q,J]=j.useState("");if(j.useEffect(()=>{(async()=>{let W=await W_();if(!W.ok)J(W.error??"Failed to load base models."),U("error");else A(tW(W.data)),U("done");setTimeout(()=>_(),500)})()},[_]),C==="loading")return u.jsxDEV(Z2,{message:"Loading base models..."},void 0,!1,void 0,this);if(C==="error")return u.jsxDEV(l,{error:Q},void 0,!1,void 0,this);if(G.length===0)return u.jsxDEV(Y,{children:"No base models available."},void 0,!1,void 0,this);let L=G.map((W)=>{let H=W.supports_inference??W.supports_on_demand_inference;return{id:W.id||"\u2014",name:(W.label||W.name||W.id||"\u2014").trim()||"\u2014",type:W.task_type||"\u2014",context:nq(W.context_window),inference:H===void 0?"\u2014":H?"yes":"no",training:W.supports_training===void 0?"\u2014":W.supports_training?"yes":"no"}});return u.jsxDEV(h9,{columns:iq,rows:L,footer:`${G.length} base model${G.length===1?"":"s"} \xB7 use \`--json\` for raw JSON`},void 0,!1,void 0,this)}var n1=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function aq({modelId:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState(null),[J,L]=j.useState(null),[W,H]=j.useState(null),[T,h]=j.useState("");if(j.useEffect(()=>{let V=!0;return(async()=>{let b=await P9(_);if(!V)return;if(!b.ok){h(b.error??"Failed to load model endpoint."),G("error"),setTimeout(()=>C(),500);return}Q(b.data??null);let S=await KW(_);if(!V)return;if(S.ok)L(S.data??null);let s=b.data?.selected_model_id??"";if(n1.test(s)){let t=await $_(s);if(!V)return;if(t.ok)H(t.data??null)}G("done"),setTimeout(()=>C(),500)})(),()=>{V=!1}},[_,C]),U==="loading")return u.jsxDEV(Z2,{message:`Loading model endpoint ${_}...`},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:T},void 0,!1,void 0,this);if(!A)return u.jsxDEV(l,{error:"Model endpoint response was empty."},void 0,!1,void 0,this);let E=A.selected_model_id??"",q=(()=>{if(!E)return"\u2014";if(W){let V=[];if(W.model_name)V.push(W.model_name);if(W.base_model)V.push(`base: ${W.base_model}`);let b=V.length?` (${V.join(", ")})`:"";return`${K_(E)}${b}`}return n1.test(E)?K_(E):E})(),w=[{label:"ID",value:I2(A.id)},{label:"Name",value:I2(A.name)},{label:"Description",value:I2(A.description)},{label:"Icon",value:I2(A.icon)},{label:"Repo",value:I2(A.repo)},{label:"Selected model",value:q},{label:"Created",value:Z8(A.created_at)},{label:"Updated",value:Z8(A.updated_at)}];if(J)w.push({label:"Datasets",value:b8(J.dataset_count)},{label:"Can delete",value:sW(J.can_delete),valueColor:J.can_delete?"green":"yellow"});return u.jsxDEV(a1,{rows:w,footer:`Use \`pioneer model endpoints get ${_} --json\` for the raw JSON payload.`},void 0,!1,void 0,this)}function rq({modelId:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState(null),[J,L]=j.useState("");if(j.useEffect(()=>{let H=!0;return(async()=>{let T=await XG(_);if(!H)return;if(!T.ok)L(T.error??"Failed to load quality metrics."),G("error");else Q(T.data??null),G("done");setTimeout(()=>C(),500)})(),()=>{H=!1}},[_,C]),U==="loading")return u.jsxDEV(Z2,{message:`Loading quality metrics for ${_}...`},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:J},void 0,!1,void 0,this);if(!A)return u.jsxDEV(l,{error:"Quality metrics response was empty."},void 0,!1,void 0,this);let W=[{label:"Model ID",value:I2(A.project_id)},{label:"Total judged",value:b8(A.total_judged)},{label:"Pass count",value:b8(A.pass_count),valueColor:"green"},{label:"Fail count",value:b8(A.fail_count),valueColor:A.fail_count>0?"red":void 0},{label:"Uncertain count",value:b8(A.uncertain_count),valueColor:A.uncertain_count>0?"yellow":void 0},{label:"Pass rate",value:v9(A.pass_rate),valueColor:"green"},{label:"Fail rate",value:v9(A.fail_rate),valueColor:A.fail_rate>0?"red":void 0}];return u.jsxDEV(a1,{rows:W,footer:`Use \`pioneer model endpoints quality-metrics ${_} --json\` for the raw JSON payload.`},void 0,!1,void 0,this)}function mW(_){let C=(_??"").trim().toLowerCase();return C==="complete"||C==="completed"||C==="succeeded"||C==="deployed"}function cW(_){if(!_)return"";return(_.toLowerCase().split("/").pop()??"").replace(/-instruct$/,"").replace(/-chat$/,"").replace(/-base$/,"").replace(/-it$/,"").replace(/-hf$/,"").trim()}function oq(_,C){if(!C)return!0;let U=cW(C),G=cW(_.base_model);if(!U||!G)return!0;return U===G||U.startsWith(G)||G.startsWith(U)}function sq({modelId:_,reason:C,showAll:U}){let{exit:G}=_2(),{isRawModeSupported:A}=j3(),[Q,J]=j.useState("loading"),[L,W]=j.useState([]),[H,T]=j.useState(void 0),[h,E]=j.useState(!1),[q,w]=j.useState("none"),[V,b]=j.useState(""),[S,s]=j.useState(""),[t,x]=j.useState(0),[FD,ZD]=j.useState(null),[BD,XD]=j.useState(null);j.useEffect(()=>{let ID=!0;return(async()=>{let ED=(kD)=>!!kD&&/socket|ECONNRESET|fetch failed|network|EAI_AGAIN|timeout/i.test(kD),mD=async(kD)=>{let JD=await kD();if(!JD.ok&&(JD.status===0||ED(JD.error)))await new Promise((AD)=>setTimeout(AD,250)),JD=await kD();return JD},KD=(kD)=>kD.slice().sort((JD,AD)=>{let gD=Date.parse(JD.completed_at??JD.updated_at??JD.created_at??""),B0=Date.parse(AD.completed_at??AD.updated_at??AD.created_at??"");if(Number.isNaN(gD)||Number.isNaN(B0))return 0;return B0-gD}),Q0=await mD(()=>P9(_));if(!ID)return;if(!Q0.ok&&(Q0.status===404||Q0.status===403)){let kD=Q0.status===403?"You do not have access to this endpoint.":"This endpoint does not exist on the current backend.";b(`${kD} (model id: ${_})
|
|
232
|
+
List valid endpoints with: pioneer model endpoints list`),J("error"),setTimeout(()=>G(),500);return}let E0=Q0.ok?Q0.data?.selected_model_id:void 0;T(E0??void 0);let yD=[],MD=!1,v0="none";if(!U){let kD=await mD(()=>J6({project_id:_}));if(!ID)return;if(kD.ok){let JD=KD((kD.data?.training_jobs??[]).filter((AD)=>mW(AD.status)));if(JD.length>0)yD=JD,MD=!0,v0="project"}}if(yD.length===0){let kD=await mD(()=>J6());if(!ID)return;if(!kD.ok){b(kD.error??"Failed to load training jobs."),J("error"),setTimeout(()=>G(),500);return}let JD=KD((kD.data?.training_jobs??[]).filter((AD)=>mW(AD.status)));if(!U&&E0){let AD=JD.filter((gD)=>oq(gD,E0));if(AD.length>0)yD=AD,MD=!0,v0="family";else yD=JD}else yD=JD}E(MD),w(v0),W(yD),J("picking")})(),()=>{ID=!1}},[G,_,U]);let i=L.filter((ID)=>{let ED=S.trim().toLowerCase();if(!ED)return!0;return(ID.id??"").toLowerCase().includes(ED)||(ID.model_name??"").toLowerCase().includes(ED)||(ID.base_model??"").toLowerCase().includes(ED)}),RD=async(ID)=>{ZD(ID),J("deploying");let ED=L.find((KD)=>KD.id===ID);if(!ED||ED.project_id!==_){let KD=await _G(ID,{project_id:_});if(!KD.ok){let Q0=KD.status===403?"You do not have permission to assign this job to this project.":KD.error??"Failed to link job to project.";b(`Could not assign job to project before deploy: ${Q0}`),J("error"),setTimeout(()=>G(),1500);return}}let mD=await UG(_,{training_job_id:ID,...C?{reason:C}:{}});if(!mD.ok){let KD=mD.error??"Deployment failed.";if(mD.status===404)KD=`Backend rejected the deploy with 404 "${mD.error??"Resource not found."}".
|
|
233
|
+
`+` \u2022 Project ${_} and training job ${ID} both exist and are linked.
|
|
234
|
+
`+` \u2022 Inspect job state: pioneer job get ${ID}`;b(KD),J("error")}else{let KD=mD.data&&typeof mD.data==="object"&&ED?.base_model?{...mD.data,base_model:mD.data.base_model??ED.base_model}:mD.data;XD(KD),J("done")}setTimeout(()=>G(),1500)};if(IF((ID,ED)=>{if(Q!=="picking"||!i.length){if(ED.return&&Q==="picking"&&!i.length)b("No matching jobs.");return}if(ED.upArrow){x((mD)=>mD===0?i.length-1:mD-1);return}if(ED.downArrow){x((mD)=>mD===i.length-1?0:mD+1);return}if(ED.return){let mD=i[t];if(mD?.id)RD(mD.id);return}if(ED.backspace||ED.delete){s((mD)=>mD.slice(0,-1)),x(0);return}if(ID&&!ED.ctrl&&!ED.meta)s((mD)=>mD+ID),x(0)},{isActive:A&&Q==="picking"}),!A)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Interactive job picker requires a TTY."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"List trained jobs with `pioneer job list` and pass an explicit ID:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:[" pioneer model endpoints deploy ",_," --job <training-job-id>"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(Q==="loading")return u.jsxDEV(Z2,{message:"Loading deployable training jobs..."},void 0,!1,void 0,this);if(Q==="error")return u.jsxDEV(l,{error:V},void 0,!1,void 0,this);if(Q==="deploying")return u.jsxDEV(Z2,{message:`Deploying job ${FD} to endpoint ${_}...`},void 0,!1,void 0,this);if(Q==="done")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(A8,{message:`Deployment initiated for endpoint ${_} from job ${FD}`},void 0,!1,void 0,this),BD?u.jsxDEV(Y,{dimColor:!0,children:JSON.stringify(BD,null,2)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);if(L.length===0)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"No deployable training jobs found."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Only jobs with status `complete` / `succeeded` / `deployed` are eligible."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Run `pioneer job list` to inspect job statuses, or start training with `pioneer agent`."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let jD=i.slice(0,12),dD=Math.max(0,Math.min(t-jD.length+1,i.length-jD.length)),PD=i.slice(dD,dD+jD.length),oD="Type to filter \xB7 \u2191/\u2193 navigate \xB7 Enter to deploy",QD=(()=>{let ID=L.length,ED=`job${ID===1?"":"s"}`;if(U){let mD=H?` Endpoint base model: "${H}".`:"";return`Showing all ${ID} deployable ${ED} (--all).${mD} ${oD}.`}if(h&&q==="project")return`Showing ${ID} ${ED} scoped to this endpoint via project_id. ${oD} \xB7 pass --all to see every job.`;if(h&&q==="family"&&H)return`Showing ${ID} ${ED} matching base model "${H}". ${oD} \xB7 pass --all to disable family match.`;if(H)return`No jobs scoped to this endpoint and none match base model "${H}". Showing all ${ID} deployable ${ED} as fallback. ${oD}.`;return`Showing ${ID} deployable ${ED}. ${oD}.`})();return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:["Pick a training job to deploy to endpoint ",u.jsxDEV(Y,{color:"cyan",children:_},void 0,!1,void 0,this),":"]},void 0,!0,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:QD},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),S?u.jsxDEV(Y,{children:[u.jsxDEV(Y,{dimColor:!0,children:"Filter: "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,PD.length===0?u.jsxDEV(Y,{color:"yellow",children:["No jobs match `",S,"`."]},void 0,!0,void 0,this):PD.map((ID,ED)=>{let mD=dD+ED,KD=mD===t,Q0=K_(ID.id),E0=ID.model_name?.trim()||"\u2014",yD=rW(ID.base_model),MD=ID.status??"\u2014",v0=b9(ID.completed_at??ID.updated_at??ID.created_at);return u.jsxDEV(Y,{color:KD?"cyan":void 0,bold:KD,children:[KD?"\u25B6 ":" ",J_(Q0,8)," ",J_(E0,28)," ",J_(yD,22)," ",u.jsxDEV(Y,{color:V9(MD),children:J_(MD,10)},void 0,!1,void 0,this)," ",v0]},ID.id||mD,!0,void 0,this)}),V?u.jsxDEV(r,{marginTop:1,children:u.jsxDEV(Y,{color:"red",children:V},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function tq({jobId:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState(null),[J,L]=j.useState("");if(j.useEffect(()=>{let b=!0;return(async()=>{let S=await CG(_);if(!b)return;if(!S.ok)L(S.error??"Failed to fetch model artifact download URL."),G("error");else Q(S.data??null),G("done");setTimeout(()=>C(),500)})(),()=>{b=!1}},[_,C]),U==="loading")return u.jsxDEV(Z2,{message:`Fetching download URL for ${_}...`},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:J},void 0,!1,void 0,this);if(!A)return u.jsxDEV(l,{error:"Download response was empty."},void 0,!1,void 0,this);let W=(b)=>{let S=A[b];return typeof S==="string"&&S.trim()?S:void 0},H=(b)=>{let S=A[b];return typeof S==="number"?S:void 0},T=W("download_url")||W("url"),h=W("expires_at")||W("expiry"),E=H("size")??H("size_bytes"),q=W("filename")||W("file_name"),w=W("content_type")||W("mime_type"),V=[{label:"Job ID",value:_},{label:"Filename",value:I2(q)},{label:"Content type",value:I2(w)},{label:"Size",value:E!==void 0?`${E.toLocaleString()} bytes`:"\u2014"},{label:"Expires",value:h?Z8(h):"\u2014"},{label:"Download URL",value:T||"\u2014",valueColor:T?"cyan":void 0}];return u.jsxDEV(a1,{rows:V,footer:T?'Tip: pipe the URL into curl, e.g. `curl -L -o artifact.zip "$URL"` \xB7 use `--json` for raw JSON':`Use \`pioneer model artifacts download ${_} --json\` for the raw JSON payload.`},void 0,!1,void 0,this)}function eq({jobId:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState([]),[J,L]=j.useState("");if(j.useEffect(()=>{(async()=>{let H=await p$(_);if(H.ok&&H.data)Q(H.data.logs||[]),G("done");else L(H.error??"Unknown error"),G("error");setTimeout(()=>C(),500)})()},[_,C]),U==="loading")return u.jsxDEV(Z2,{},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:J},void 0,!1,void 0,this);let W=(H)=>{return`[${new Date(H.timestamp).toLocaleTimeString()}] [${H.level}] ${H.message}`};return u.jsxDEV(r,{flexDirection:"column",children:A.length===0?u.jsxDEV(Y,{dimColor:!0,children:"No logs available"},void 0,!1,void 0,this):A.map((H)=>u.jsxDEV(Y,{color:H.level==="ERROR"?"red":H.level==="WARNING"?"yellow":void 0,children:W(H)},H.id,!1,void 0,this))},void 0,!1,void 0,this)}var Y_=S9.join(process.cwd(),"datasets");function DP(){if(!CF.existsSync(Y_))CF.mkdirSync(Y_,{recursive:!0})}function FP(){if(!CF.existsSync(Y_))return[];return CF.readdirSync(Y_).filter((C)=>C.endsWith(".json")).map((C)=>{let U=S9.join(Y_,C),G=CF.statSync(U),A=[],Q="unknown";try{let J=JSON.parse(CF.readFileSync(U,"utf-8"));A=Array.isArray(J)?J:J.data??[];let L=A[0];Q=J.task_type??(L?.spans?"ner":L?.label?"classification":"custom")}catch{}return{id:C.replace(".json",""),name:C.replace(".json",""),path:U,type:Q,size:G.size,sample_size:A.length,created_at:G.birthtime.toISOString(),source:"local"}})}function pW(_,C,U){DP();let G=`${_.replace(/[^a-zA-Z0-9-_]/g,"_")}.json`,A=S9.join(Y_,G);return CF.writeFileSync(A,JSON.stringify({task_type:U,data:C},null,2)),A}function I9({action:_,datasetName:C,datasetType:U,saveToRemote:G}){let{exit:A}=_2(),[Q,J]=j.useState("loading"),[L,W]=j.useState(null),[H,T]=j.useState(null),[h,E]=j.useState(!1),[q,w]=j.useState(0),[V,b]=j.useState("");if(j.useEffect(()=>{(async()=>{let S=await _();if(S.ok&&S.data){let s=S.data.data??[];w(Array.isArray(s)?s.length:0);let t=S.data.dataset;if(t?.id)T(t.id);else if(!G){let x=C||`${U}-${Date.now()}`,FD=pW(x,s,U);W(FD)}else{E(!0);let x=C||`${U}-${Date.now()}`,FD=pW(x,s,U);W(FD)}J("done")}else b(S.error??"Unknown error"),J("error");setTimeout(()=>A(),500)})()},[_,A,C,U,G]),Q==="loading")return u.jsxDEV(Z2,{},void 0,!1,void 0,this);if(Q==="error")return u.jsxDEV(l,{error:V},void 0,!1,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(A8,{message:`${U.toUpperCase()} dataset generated (${q} examples)`},void 0,!1,void 0,this),H&&u.jsxDEV(Y,{color:"green",children:["Saved to remote: ",H]},void 0,!0,void 0,this),h&&u.jsxDEV(Y,{color:"yellow",children:"\u26A0 Remote save failed (check server logs). Saved locally instead."},void 0,!1,void 0,this),L&&u.jsxDEV(Y,{color:"cyan",children:["Saved to: ",L]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function _P(_,C="jsonl"){if(!_)return C;let U=_.toLowerCase().split(".").pop();if(U==="csv"||U==="jsonl"||U==="parquet")return U;return C}function CP(_){if(!_)return"\u2014";return _.length>8?_.slice(0,8):_}function MG(_){if(typeof _!=="number"||Number.isNaN(_))return"\u2014";return _.toLocaleString()}var BP=[{key:"source",header:"SOURCE",minWidth:6,maxWidth:6,color:(_)=>_.source==="remote"?"cyan":"green"},{key:"id",header:"ID",minWidth:8,maxWidth:8},{key:"name",header:"NAME",minWidth:10,maxWidth:38,flexible:!0},{key:"version",header:"VERSION",minWidth:4,maxWidth:8},{key:"type",header:"TYPE",minWidth:4,maxWidth:14,flexible:!0},{key:"samples",header:"SAMPLES",minWidth:7,maxWidth:10},{key:"created",header:"CREATED",minWidth:7,maxWidth:10}];function OP(){let{exit:_}=_2(),[C,U]=j.useState("loading"),[G,A]=j.useState(null),[Q,J]=j.useState(null),[L,W]=j.useState([]);if(j.useEffect(()=>{(async()=>{let q=await DG();if(W(FP()),q.ok)A(q.data??null);else J(q.error??"Unknown error");U("done"),setTimeout(()=>_(),500)})()},[_]),C==="loading")return u.jsxDEV(Z2,{},void 0,!1,void 0,this);let T=(G?.datasets??[]).map((q)=>({source:"remote",id:CP(q.id),name:q.dataset_name||"\u2014",version:q.version_number?`v${q.version_number}`:"v1",type:q.dataset_type||"\u2014",samples:MG(q.sample_size),created:b9(q.created_at)})),h=L.map((q)=>({source:"local",id:"\u2014",name:q.name,version:"\u2014",type:q.type||"\u2014",samples:MG(q.sample_size),created:"\u2014"})),E=[...T,...h];if(E.length===0&&!Q)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{children:"No datasets found."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Use the Pioneer web app at agent.pioneer.ai to create datasets, or drop JSON/JSONL files in ./datasets/."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[Q?u.jsxDEV(r,{flexDirection:"column",marginBottom:E.length?1:0,children:Q.split(`
|
|
235
|
+
`).map((q,w)=>u.jsxDEV(Y,{color:"red",children:q},w,!1,void 0,this))},void 0,!1,void 0,this):null,E.length>0?u.jsxDEV(h9,{columns:BP,rows:E,footer:`${T.length} remote \xB7 ${h.length} local \xB7 use \`pioneer dataset get <name[:version]>\` for details \xB7 use \`--json\` for raw JSON`},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function GP(_){let C=[{label:"ID",value:I2(_.id)},{label:"Name",value:I2(_.dataset_name)},{label:"Version",value:_.version_number?`v${_.version_number}`:"\u2014"},{label:"Type",value:I2(_.dataset_type)},{label:"Status",value:I2(_.status),valueColor:V9(_.status)},{label:"Samples",value:MG(_.sample_size)},{label:"Train ratio",value:_.train_ratio!=null?v9(_.train_ratio):"\u2014"},{label:"Visibility",value:I2(_.visibility)},{label:"Labels",value:oW(_.labels)},{label:"Annotation status",value:I2(_.annotation_status)},{label:"Project ID",value:I2(_.project_id)},{label:"Root dataset ID",value:I2(_.root_dataset_id)},{label:"Created",value:Z8(_.created_at)},{label:"Updated",value:Z8(_.updated_at)}];if(_.processing_error)C.push({label:"Error",value:_.processing_error,valueColor:"red"});return C}function XP({dataset:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState(null),[J,L]=j.useState("");if(j.useEffect(()=>{let W=!0;return(async()=>{let H=await FG(_);if(!W)return;if(!H.ok)L(H.error??"Failed to load dataset."),G("error");else Q(H.data??null),G("done");setTimeout(()=>C(),500)})(),()=>{W=!1}},[_.name,_.version,C]),U==="loading")return u.jsxDEV(Z2,{message:`Loading dataset ${_.name}:${_.version}...`},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:J},void 0,!1,void 0,this);if(!A)return u.jsxDEV(l,{error:"Dataset response was empty."},void 0,!1,void 0,this);return u.jsxDEV(a1,{rows:GP(A),footer:`Use \`pioneer dataset get ${_.name}:${_.version} --json\` for the raw JSON payload.`},void 0,!1,void 0,this)}function UP({dataset:_,format:C,output:U}){let{exit:G}=_2(),[A,Q]=j.useState("loading"),[J,L]=j.useState(null),[W,H]=j.useState("");if(j.useEffect(()=>{(async()=>{let T=await k$(_,C,U);if(T.ok)L(T.data??null),Q("done");else H(T.error??"Unknown error"),Q("error");setTimeout(()=>G(),500)})()},[_,C,U,G]),A==="loading")return u.jsxDEV(Z2,{message:"Downloading dataset..."},void 0,!1,void 0,this);if(A==="error")return u.jsxDEV(l,{error:W},void 0,!1,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(A8,{message:"Dataset downloaded successfully"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" ","File: ",u.jsxDEV(Y,{color:"cyan",children:J?.file_path},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" ","Size:"," ",u.jsxDEV(Y,{color:"yellow",children:J?.size?`${(J.size/1024).toFixed(2)} KB`:"Unknown"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" ","Format: ",u.jsxDEV(Y,{color:"green",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function uP({model:_,index:C}){let U=(H)=>{switch(H?.toLowerCase()){case"complete":case"completed":return"green";case"failed":case"error":return"red";case"running":case"in_progress":return"yellow";case"pending":return"blue";default:return"gray"}},G=(H)=>{switch(H?.toLowerCase()){case"complete":case"completed":return"\u2713";case"failed":case"error":return"\u2717";case"running":case"in_progress":return"\u25CF";case"pending":return"\u25CB";default:return"?"}},A=(H,T)=>{if(!H||!T)return"N/A";let h=new Date(T).getTime()-new Date(H).getTime(),E=Math.floor(h/60000),q=Math.floor(h%60000/1000);return`${E}m${q}s`},Q=(H)=>{if(!H)return"N/A";let T=new Date(H);return T.toLocaleDateString()+" "+T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},J=_.datasets&&_.datasets.length>0?`${_.datasets[0].name}:${_.datasets[0].version}`:"N/A",L=_.base_model?.split("/")[1]||_.base_model||"N/A",W=_.metrics?(()=>{let H=[];if(_.metrics.final_training_loss!==void 0)H.push(`TL:${_.metrics.final_training_loss.toFixed(3)}`);if(_.metrics.final_validation_loss!==void 0)H.push(`VL:${_.metrics.final_validation_loss.toFixed(3)}`);else if(_.metrics.eval_validation_loss!==void 0)H.push(`VL:${_.metrics.eval_validation_loss.toFixed(3)}`);else if(_.metrics.best_validation_loss!==void 0)H.push(`VL:${_.metrics.best_validation_loss.toFixed(3)}`);if(_.metrics.eval_f1_score!==void 0)H.push(`F1:${_.metrics.eval_f1_score.toFixed(2)}`);if(_.metrics.eval_precision!==void 0)H.push(`P:${_.metrics.eval_precision.toFixed(2)}`);if(_.metrics.eval_recall!==void 0)H.push(`R:${_.metrics.eval_recall.toFixed(2)}`);if(_.metrics.eval_accuracy!==void 0)H.push(`A:${_.metrics.eval_accuracy.toFixed(2)}`);return H.join(" ")})():"";return u.jsxDEV(r,{flexDirection:"column",marginTop:C>0?0:0,children:u.jsxDEV(r,{children:[u.jsxDEV(Y,{bold:!0,color:U(_.status),children:G(_.status)},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{width:28,children:u.jsxDEV(Y,{bold:!0,color:"cyan",children:(_.model_name||"Unnamed").substring(0,26)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:38,children:u.jsxDEV(Y,{dimColor:!0,children:_.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:20,children:u.jsxDEV(Y,{color:"magenta",children:L.substring(0,18)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:24,children:u.jsxDEV(Y,{color:"blue",children:J.substring(0,22)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:30,children:u.jsxDEV(Y,{color:"green",children:W||"N/A"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:7,children:u.jsxDEV(Y,{color:"cyan",children:A(_.started_at,_.completed_at)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:18,children:u.jsxDEV(Y,{dimColor:!0,children:Q(_.completed_at||_.started_at||_.created_at)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function ZP({model:_,index:C}){let U=(Q)=>{if(!Q)return"N/A";let J=new Date(Q);return J.toLocaleDateString()+" "+J.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},G=(Q)=>{if(!Q)return"Never";let J=new Date,L=new Date(Q),W=J.getTime()-L.getTime(),H=Math.floor(W/86400000),T=Math.floor(W%86400000/3600000);if(H>0)return`${H}d ago`;if(T>0)return`${T}h ago`;return"Recently"},A=_.is_base_model?`[BASE] ${_.model_name||"Unnamed"}`:_.model_name||"Unnamed";return u.jsxDEV(r,{flexDirection:"column",marginTop:C>0?0:0,children:u.jsxDEV(r,{children:[u.jsxDEV(Y,{bold:!0,color:"green",children:"\u25CF"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{width:28,children:u.jsxDEV(Y,{bold:!0,color:"cyan",children:A.substring(0,26)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:38,children:u.jsxDEV(Y,{dimColor:!0,children:_.is_base_model?"N/A":_.job_id},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:7,children:u.jsxDEV(Y,{color:"yellow",children:_.invocation_count},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:10,children:u.jsxDEV(Y,{color:_.last_used_at?"green":"gray",children:G(_.last_used_at)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:18,children:u.jsxDEV(Y,{dimColor:!0,children:U(_.deployed_at)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function AP({model:_,index:C,jobIndex:U}){let G=(W)=>{if(!W)return"N/A";let H=new Date(W);return H.toLocaleDateString()+" "+H.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},A=(W)=>{let H=W.indexOf("/");return H>=0?W.slice(H+1):W},Q=_.selected_model_id??"",J=Q&&n1.test(Q)?U?.get(Q):void 0,L=(()=>{if(!Q)return"N/A";if(J){let W=J.model_name??K_(Q),H=J.base_model?` \u2190 ${A(J.base_model)}`:"";return`${W}${H}`}return n1.test(Q)?K_(Q):A(Q)})();return u.jsxDEV(r,{flexDirection:"column",marginTop:C>0?0:0,children:[u.jsxDEV(r,{children:[u.jsxDEV(Y,{bold:!0,color:"green",children:"\u25CF"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{width:28,children:u.jsxDEV(Y,{bold:!0,color:"cyan",children:_.name?.substring(0,26)||"Unnamed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:38,children:u.jsxDEV(Y,{dimColor:!0,children:_.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:36,children:u.jsxDEV(Y,{color:"magenta",wrap:"truncate-end",children:L},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:18,children:u.jsxDEV(Y,{dimColor:!0,children:G(_.created_at)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.description&&u.jsxDEV(r,{marginLeft:2,children:u.jsxDEV(Y,{dimColor:!0,children:_.description},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function k9({filter:_}){let{exit:C}=_2(),[U,G]=j.useState("loading"),[A,Q]=j.useState(null),[J,L]=j.useState(new Map),[W,H]=j.useState("");if(j.useEffect(()=>{(async()=>{let q=await i$();if(!q.ok){H(q.error??"Unknown error"),G("error"),setTimeout(()=>C(),500);return}Q(q.data??null);let V=(q.data?.projects??[]).some((b)=>b.selected_model_id&&n1.test(b.selected_model_id));if(_==="registered"&&V){let b=await J6();if(b.ok){let S=new Map;for(let s of b.data?.training_jobs??[])if(s.id)S.set(s.id,s);L(S)}}G("done"),setTimeout(()=>C(),500)})()},[C,_]),U==="loading")return u.jsxDEV(Z2,{},void 0,!1,void 0,this);if(U==="error")return u.jsxDEV(l,{error:W},void 0,!1,void 0,this);let T=_==="registered",h=_==="deployed"||_==="artifacts",E=_==="trained"||_==="artifacts";return u.jsxDEV(r,{flexDirection:"column",children:[T&&u.jsxDEV(u.Fragment,{children:[u.jsxDEV(Y,{bold:!0,color:"cyan",children:["Model Entries (",A?.projects.length??0,")"]},void 0,!0,void 0,this),A?.projects.length===0?u.jsxDEV(Y,{dimColor:!0,children:" No model entries"},void 0,!1,void 0,this):u.jsxDEV(r,{flexDirection:"column",marginTop:1,children:[u.jsxDEV(r,{marginBottom:0,children:[u.jsxDEV(Y,{bold:!0,dimColor:!0,children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{width:28,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Name"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:38,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Model ID"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:36,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Active Model"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:18,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Created"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A?.projects.map((q,w)=>u.jsxDEV(AP,{model:q,index:w,jobIndex:J},q.id||w,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T&&(h||E)&&u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),h&&u.jsxDEV(u.Fragment,{children:[u.jsxDEV(Y,{bold:!0,color:"cyan",children:["Deployed Models (",A?.deployed.length??0,")"]},void 0,!0,void 0,this),A?.deployed.length===0?u.jsxDEV(Y,{dimColor:!0,children:" No deployed models"},void 0,!1,void 0,this):u.jsxDEV(r,{flexDirection:"column",marginTop:1,children:[u.jsxDEV(r,{marginBottom:0,children:[u.jsxDEV(Y,{bold:!0,dimColor:!0,children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{width:28,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Name"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:38,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Job ID"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:7,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Calls"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:10,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Last Used"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:18,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Deployed"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A?.deployed.map((q,w)=>u.jsxDEV(ZP,{model:q,index:w},q.id||w,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&E&&u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),E&&u.jsxDEV(u.Fragment,{children:[u.jsxDEV(Y,{bold:!0,color:"cyan",children:["Trained Models (",A?.trained.length??0,")"]},void 0,!0,void 0,this),A?.trained.length===0?u.jsxDEV(Y,{dimColor:!0,children:" No trained models"},void 0,!1,void 0,this):u.jsxDEV(r,{flexDirection:"column",marginTop:1,children:[u.jsxDEV(r,{marginBottom:0,children:[u.jsxDEV(Y,{bold:!0,dimColor:!0,children:" "},void 0,!1,void 0,this),u.jsxDEV(r,{width:28,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Name"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:38,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Job ID"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:20,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Base Model"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:24,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Dataset"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:30,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Metrics"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:7,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Time"},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.jsxDEV(r,{width:18,children:u.jsxDEV(Y,{bold:!0,dimColor:!0,children:"Completed"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A?.trained.map((q,w)=>u.jsxDEV(uP,{model:q,index:w},q.id||w,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tW(_){if(!_)return[];if(Array.isArray(_))return _;if(Array.isArray(_.models))return _.models;return[]}function T9(_){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_)}function KG(_){if(_.length===0)return"";return`
|
|
236
|
+
Try one of these decoder models: ${_.slice(0,4).join(", ")}`}function d1(_){return _.trim()}function eW(_){if(!_)return"";return`${_.task_type??""}`.trim().toLowerCase()}function zG(_){if(!_)return!1;if(_.supports_inference!==void 0)return _.supports_inference;if(_.supports_on_demand_inference!==void 0)return _.supports_on_demand_inference;return!0}function RG(_){let C=eW(_);return C==="decoder"||C==="llm"||C==="generative"}function LP(_){let C=_.toLowerCase();return C.includes("/v1/completions")||C.includes("without a chat template")||C.includes("text completion")}function DJ(_,C){if(!C)return _;return`System instruction:
|
|
237
|
+
${C}
|
|
238
|
+
|
|
239
|
+
User prompt:
|
|
240
|
+
${_}
|
|
241
|
+
|
|
242
|
+
Assistant response:`}function l1(_){if(!_)return[];return _.split(",").map((C)=>C.trim()).filter(Boolean)}function QP({modelId:_,prompt:C,systemMsg:U,maxTokens:G,temperature:A,topP:Q,includeReasoningTrace:J,projectId:L}){let{exit:W}=_2(),[H,T]=j.useState("checking"),[h,E]=j.useState(null),[q,w]=j.useState("");if(j.useEffect(()=>{let V=!0;return(async()=>{let b=await W_(),S=b.ok&&b.data?tW(b.data):[],s=S.filter((XD)=>RG(XD)&&zG(XD)).map((XD)=>XD.id),t=d1(_),x=(XD)=>{if(!V)return;w(XD),T("error"),setTimeout(()=>W(),500)},FD=S.find((XD)=>XD.id===t);if(FD&&(!RG(FD)||!zG(FD))){let XD=FD.label||FD.name||FD.id,i=eW(FD)||"unknown",RD=zG(FD);x(`Model '${XD}' is type '${i}' and is not decoder-compatible for inference${RD?"":" (supports_inference = false)"} (supports_inference: ${String(FD.supports_inference??"unknown")}, task_type: ${i}).`+KG(s));return}if(S.length>0&&!T9(t)&&!FD){x(`Model '${_}' is not a recognized decoder base model and is not a valid job UUID. Use 'model list' to copy a full training job UUID or provide a known decoder catalog ID.`);return}if(T9(t)){let XD=await $_(t);if(XD.ok&&XD.data){let i=XD.data.task_type?.toLowerCase();if(i&&!RG({task_type:i})){x(`Training job '${t}' has task_type '${i}', so it is not decoder-compatible.`+KG(s));return}}}if(!V)return;T("running");let ZD=[];if(U)ZD.push({role:"system",content:U});ZD.push({role:"user",content:C});let BD=await BG({model_id:t,task:"generate",messages:ZD,max_tokens:G,temperature:A,...Q!==void 0?{top_p:Q}:{},...J?{include_reasoning_trace:!0}:{},...L?{project_id:L}:{}});if(!V)return;if(BD.ok&&BD.data)E(BD.data),T("done");else{let XD=BD.error??"Unknown error",i=i1(XD),RD=i;if(LP(i)){let jD=await OG({model:t,prompt:DJ(C,U),max_tokens:G,temperature:A,...Q!==void 0?{extra_body:{top_p:Q}}:{}});if(!V)return;if(jD.ok&&jD.data){E(jD.data),T("done"),setTimeout(()=>W(),500);return}RD=`Decoder chat inference failed, and raw text fallback via /v1/completions also failed.
|
|
243
|
+
`+i1(jD.error??"Unknown error")}else if(i.toLowerCase().includes("inference failed"))RD=`${i}
|
|
244
|
+
Decoder inference request reached the backend but failed to execute.`+KG(s);w(RD),T("error")}setTimeout(()=>W(),500)})(),()=>{V=!1}},[_,C,U,G,A,Q,J,L,W]),H==="checking")return u.jsxDEV(Z2,{message:"Checking decoder model compatibility..."},void 0,!1,void 0,this);if(H==="running")return u.jsxDEV(Z2,{message:"Running decoder inference..."},void 0,!1,void 0,this);if(H==="error")return u.jsxDEV(l,{error:q},void 0,!1,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:h&&u.jsxDEV(lW,{data:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var e0=({context:_="root"})=>{let{exit:C}=_2();if(j.useEffect(()=>{setTimeout(()=>C(),500)},[C]),_==="auth")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Auth Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{bold:!0,children:" Pioneer API:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" auth login Login with API key (interactive)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" auth login --key ","<key>"," Login with API key (non-interactive)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" auth logout Clear stored API key"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" auth status Show auth status"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{bold:!0,children:" Hugging Face:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" auth hf Set Hugging Face token (interactive)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" auth hf --token ","<token>"," Set Hugging Face token (non-interactive)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" auth hf logout Clear stored HF token"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" auth hf status Show HF token status"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(_==="dataset")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Dataset Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:' Dataset format: name[:version] (version defaults to "latest")'},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Examples: my-dataset, my-dataset:v1, my-dataset:latest"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" dataset list List all datasets (tabular). Add --json for raw JSON."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset get ","<name[:version]>"," Get dataset details (key/value layout). Add --json for raw JSON."]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Other dataset subcommands (generate/edit/upload/etc.) are temporarily hidden in this version."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Use the Pioneer web app at agent.pioneer.ai to create or edit datasets."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(_==="dataset-edit")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Dataset Edit Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:' Dataset format: name[:version] (version defaults to "latest")'},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset edit scan-pii ","<name[:version]>"," Scan for PII"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --columns ","<col1,col2>"," Columns to scan (optional, scans all if omitted)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --threshold ","<n>"," Detection threshold (default: 0.5)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" dataset edit scan-phd ","<name[:version]>"," Scan for prompt injection"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --columns ","<col1,col2>"," Columns to scan (optional, scans all if omitted)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --threshold ","<n>"," Detection threshold (default: 0.5)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" dataset edit dismiss-outlier ","<name[:version]>"," Dismiss an outlier fingerprint"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --fingerprint ","<hash>"," Outlier fingerprint from dataset analysis"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" dataset edit subsample ","<name[:version]>"," Create a subsample"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --n ","<count>"," Target sample count (required)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --method ","<type>"," Method: random, balanced, stratified"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --label-column ","<col>"," Column for balanced sampling"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --seed ","<n>"," Random seed"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" dataset edit check-labels ","<name[:version]>"," Check label quality with AI"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --text-column ","<col>"," Text column (required)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --label-column ","<col>"," Label column (required)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --sample-size ","<n>"," Samples to check (default: 10)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(_==="dataset-analyze")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Dataset Analyze Command:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:[" ","<id>",' format: name[:version] (version defaults to "latest")']},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset analyze ","<id>"," Analyze a dataset"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{bold:!0,children:" Required Options:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --task-type ","<type>"," Task type (required)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" Options: ner, classification, generative"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --analyses ","<a1,a2,...>"," Analyses to run (required, comma-separated)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" Options: distribution, duplicates, outliers, splits, diversity"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" LLM-only analysis:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset analyze-llm ","<id>"," --task-type ","<type>"," --description ","<text>"," --labels ","<l1,l2>"," "]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{bold:!0,children:" Example:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" dataset analyze abc123 --task-type ner --analyses distribution,duplicates"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:' dataset analyze-llm abc123 --task-type ner --description "NER quality analysis"'},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(_==="job")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Job Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" job list List training jobs (tabular). Add --json for raw JSON."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" job get ","<id>"," Get job details (key/value layout). Add --json for raw JSON. Accepts a unique short prefix from `job list`."]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" job logs ","<id>"," Get job logs"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" job delete ","<id>"," Delete a training job"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" To create a training job, use `pioneer agent` \u2014 it will help you pick a base model,"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" select datasets, and configure training conversationally."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(_==="model-endpoints")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Model Endpoint Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Aliases: model_endpoints ..."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model endpoints list"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model endpoints create"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --name ","<name>"," Optional (defaults to model id)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --icon ","<icon>"," Optional"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --repo ","<repo-url>"," Optional"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --description ","<text>"," Optional"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --model ","<base-model-id>"," Optional (starts interactive picker when omitted)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --example ","<json>"," Optional"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints get ","<model-id>"," Get endpoint details (key/value layout, includes dataset count). Add --json for raw JSON."]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints update ","<model-id>"," Update endpoint metadata"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --name ","<name>"," --icon ","<icon>"," --repo ","<repo-url>"," --description ","<text>"," --model-id ","<id>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints delete ","<model-id>"," Delete an endpoint/model entry"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints quality-metrics ","<model-id>"," Show LLMAJ pass/fail metrics. Add --json for raw JSON."]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints deploy ","<model-id>"," [--job ","<training-job-id>","] [--reason ","<text>","] [--all]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" If --job is omitted, pick from a list of deployable jobs interactively. By default the list is filtered to jobs whose base model matches the endpoint; pass --all to bypass that filter."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" model endpoints rollback ","<model-id>"," ","<deployment-id>"," Rollback endpoint to previous deployment"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(_==="model-artifacts")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Model Artifact Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Aliases: model_artifacts ..."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model artifacts list Show both trained and deployed artifacts"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model artifacts trained List trained artifacts"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model artifacts deployed List deployed artifacts"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" model artifacts download ","<job-id>"," Get a signed download URL for the artifact (key/value layout). Add --json for raw JSON."]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model artifacts delete ","<job-id>"," Delete deployed artifact record"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model artifacts upload ","<job-id>"," --to hf Upload trained model artifact to Hugging Face"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --repo ","<repo>"," HF repo (required, e.g., username/model)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" --private Make repo private"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Note: Set HF token with 'pioneer auth hf' first"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Note: Use full job ID (not partial ID shown in list)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(_==="model")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Model Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model endpoints ... (alias: model_endpoints) Manage model catalog entries (from /projects)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model artifacts ... (alias: model_artifacts) Manage trained/deployed artifacts (from /felix)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model base-models List available base models (tabular)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model endpoints list"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model endpoints create"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" model endpoints get ","<model-id>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints quality-metrics ","<model-id>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints deploy ","<model-id>"," [--job ","<training-job-id>","] [--reason ","<text>","] [--all]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" model endpoints rollback ","<model-id>"," ","<deployment-id>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" model artifacts list"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model artifacts trained"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model artifacts deployed"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" model artifacts download ","<job-id>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Most read commands accept `--json` for the raw JSON payload."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(_==="inference")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Inference Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" inference base-models"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" List base models from /base-models"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" inference encoder ","<model-id>"," --text ","<text>"," --labels ","<labels>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" Run encoder inference via /inference"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --task ","<task>"," extract_entities | classify_text | extract_json | schema"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --labels ","<labels>"," Comma-separated labels (or use --schema JSON)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --schema ","<json>"," JSON schema object for advanced tasks"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --threshold ","<n>"," Confidence threshold (0-1, default: 0.5)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --project-id ","<id>"," Associate inference with a project"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" inference decoder ","<model-id>"," --prompt ","<text>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" Run decoder generation via /inference"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --system ","<text>"," System message (optional)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --max-tokens ","<n>"," Max tokens (default: 256)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --temperature ","<n>"," Sampling temperature (default: 0.7)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --top-p ","<n>"," Top-p sampling (0-1)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" --reasoning-trace Include reasoning trace when supported"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --project-id ","<id>"," Associate inference with a project"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" Example model IDs: Qwen/Qwen3-8B, meta-llama/Llama-3.1-8B-Instruct"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" inference completions ","<model-id>"," --prompt ","<text>"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" Run raw text completion via /v1/completions"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --max-tokens ","<n>"," Max tokens (default: 256)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --temperature ","<n>"," Sampling temperature (default: 0.7)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --top-p ","<n>"," Top-p (sent via extra_body)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --stop ","<a,b,c>"," Stop sequences (comma-separated)"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" --echo true Echo prompt in output"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --provider ","<name>"," Provider override (optional)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(_==="eval")return u.jsxDEV(l,{error:"The 'eval' command group is temporarily hidden for this version."},void 0,!1,void 0,this);if(_==="benchmark")return u.jsxDEV(l,{error:"The 'benchmark' command group is temporarily hidden for this version."},void 0,!1,void 0,this);if(_==="agent")return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Agent Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" agent Start interactive agent chat"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" --mode ","<research>"," --mode research uses Pro workflow"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Omit --mode to use the default standard interactive mode."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" agent sessions List and resume previous sessions"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" agent resume ","[conversation-id]"," List sessions, then resume a selected conversation"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --conversation-id ","<id>"," Continue an existing conversation"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --filters ","<json>"," Reserved for future query filters"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:[" --history ","<json>"," Optional message history JSON"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Example: pioneer agent"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Example: pioneer agent --mode research"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Then type: Analyze failures and propose retraining plan"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Then type: Draft a short status summary"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Example: pioneer agent resume"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Example: pioneer agent resume b042f7a1-0e7e-4f78-96df-a1cc2d4afcdf"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"In the interactive agent, type /mode standard or /mode research to switch runtime."},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" /help shows slash command summary."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{color:"cyan",children:Yq},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{bold:!0,children:"Usage:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" pioneer ","<command>"," ","[options]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{bold:!0,children:"Commands:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" auth Authentication (login, logout, status)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" model Manage model endpoints and artifacts"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" job Manage training jobs"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" agent Run agent chat (research is the only explicit alternate mode)"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" telemetry Manage anonymous usage analytics"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:["Run 'pioneer ","<command>"," --help' for details on a specific command."]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Get started:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" 1. Sign up at https://app.pioneer.ai"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" 2. Run: pioneer auth login"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" 3. Start building with: pioneer agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},$P=({command:_,flags:C,parseErrors:U})=>{let{isRawModeSupported:G}=j3(),[A,Q]=j.useState(!WG()),[J,L,...W]=_,H=L==="model_endpoints"?"endpoints":L==="model_artifacts"?"artifacts":L,T=U.length>0,h=J==="model"&&H==="endpoints"&&W[0]==="create"&&U.length===1&&U[0]==="--model";if(J==="inference"||J==="eval"||J==="benchmark")return u.jsxDEV(l,{error:`The '${J}' command group is temporarily hidden for this version. Use 'pioneer --help' to see available commands.`},void 0,!1,void 0,this);if(J==="dataset"){let E=new Set(["list","get","help",void 0,""]),q=L??"";if(!(C.help==="true"||q===""||q==="help")&&!E.has(q))return u.jsxDEV(l,{error:`'dataset ${q}' is temporarily hidden for this version. Available: pioneer dataset list, pioneer dataset get <name[:version]>.`},void 0,!1,void 0,this)}if(T&&!h){let E={"--model":"<base-model-id>","--mode":J==="agent"||J==="agents"?"<research>":"<value>","--conversation-id":"<session-id>","--conversation":"<session-id>","--history":"<json>","--filters":"<json>","--format":"<format>","--text":"<text>","--prompt":"<text>","--name":"<name>","--repo":"<url>","--icon":"<icon>","--description":"<text>","--api-key":"<key>","--api-url":"<url>","--message":"<text>","--inputs":"<json>","--labels":"<json-array>","--label-column":"<column>","--text-column":"<column>","--output":"<path>","--format-results":"<true|false>","--include-confidence":"<true|false>","--include-spans":"<true|false>","--reasoning-trace":"<true|false>","--reasoning-effort":"<low|medium|high>"},q=(w)=>{if(w==="--mode"&&J==="agent")return"<research> (default is standard when omitted)";return E[w]??"<value>"};return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"One or more flags are missing values. Please provide values for: "},void 0,!1,void 0,this),U.map((w)=>u.jsxDEV(Y,{dimColor:!0,children:["- ",w," ",q(w)]},w,!0,void 0,this))]},void 0,!0,void 0,this)}if(j.useEffect(()=>{if(!G&&!WG())Y6(!1),Q(!1)},[G]),j.useEffect(()=>{if(J&&!A)hW(J,J==="model"&&H!==L?L||H:H)},[J,L,H,A]),A&&G&&!C.help&&C.version!=="true"&&C.v!=="true")return u.jsxDEV(Hq,{onComplete:()=>Q(!1)},void 0,!1,void 0,this);if(!J)return u.jsxDEV(e0,{},void 0,!1,void 0,this);if(J==="auth"){if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"auth"},void 0,!1,void 0,this);if(L==="login")return u.jsxDEV(Mq,{apiKeyFromFlag:C.key},void 0,!1,void 0,this);if(L==="logout")return u.jsxDEV(Eq,{},void 0,!1,void 0,this);if(L==="status")return u.jsxDEV(Iq,{},void 0,!1,void 0,this);if(L==="hf"){let E=W[0];if(!E)return u.jsxDEV(qq,{tokenFromFlag:C.token},void 0,!1,void 0,this);if(E==="logout")return u.jsxDEV(Pq,{},void 0,!1,void 0,this);if(E==="status")return u.jsxDEV(wq,{},void 0,!1,void 0,this);return u.jsxDEV(e0,{context:"auth"},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"auth"},void 0,!1,void 0,this)}if(J==="telemetry")return u.jsxDEV(Nq,{action:L},void 0,!1,void 0,this);if(J==="dataset"){if(L==="edit"){let E=W[0];if(C.help==="true"||!E||E==="help")return u.jsxDEV(e0,{context:"dataset-edit"},void 0,!1,void 0,this);if(E==="scan-pii"&&W[1]){let q=_F(W[1]);if(!q)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[1]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);let w=C.columns?.split(",").filter(Boolean),V=C.threshold?parseFloat(C.threshold):void 0;return u.jsxDEV(u0,{action:()=>UW({dataset:q,columns:w?.length?w:void 0,threshold:V})},void 0,!1,void 0,this)}if(E==="scan-phd"&&W[1]){let q=_F(W[1]);if(!q)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[1]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);let w=C.columns?.split(",").filter(Boolean),V=C.threshold?parseFloat(C.threshold):void 0;return u.jsxDEV(u0,{action:()=>uW({dataset:q,columns:w?.length?w:void 0,threshold:V})},void 0,!1,void 0,this)}if(E==="subsample"&&W[1]){let q=_F(W[1]);if(!q)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[1]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);let w=C.n?parseInt(C.n,10):void 0,V=C.method,b=C["label-column"],S=C.seed?parseInt(C.seed,10):void 0;if(!w)return u.jsxDEV(l,{error:"--n is required (target sample count)"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>AW({dataset:q,n:w,method:V,label_column:b,seed:S}),successMessage:"Subsample created"},void 0,!1,void 0,this)}if(E==="check-labels"&&W[1]){let q=_F(W[1]);if(!q)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[1]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);let w=C["text-column"],V=C["label-column"],b=C["sample-size"]?parseInt(C["sample-size"],10):void 0;if(!w||!V)return u.jsxDEV(l,{error:"--text-column and --label-column are required"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>LW({dataset:q,text_column:w,label_column:V,sample_size:b})},void 0,!1,void 0,this)}if(E==="dismiss-outlier"&&W[1]){let q=_F(W[1]),w=C.fingerprint;if(!q)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[1]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);if(!w)return u.jsxDEV(l,{error:"--fingerprint is required (from dataset analysis output)"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>ZW({dataset:q,fingerprint:w}),successMessage:`Outlier dismissed for dataset ${W[1]}`},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"dataset-edit"},void 0,!1,void 0,this)}if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"dataset"},void 0,!1,void 0,this);if(L==="upload"){let E=C.to;if(!W[0]&&!E)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Dataset Upload:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Upload to Pioneer:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset upload ","<file>"," --name ","<name>"," [--type ","<type>","]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Upload to Hugging Face:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset upload ","<id>"," --to hf --repo ","<repo>"," [--hf-token ","<token>","] [--private]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:[" ","<id>",' format: name[:version] (version defaults to "latest")']},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(E==="hf"){let V=W[0];if(!V)return u.jsxDEV(l,{error:"Dataset required: dataset upload <name[:version]> --to hf --repo <repo>"},void 0,!1,void 0,this);let b=_F(V);if(!b)return u.jsxDEV(l,{error:`Invalid dataset format: ${V}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);let S=C.repo,s=C["hf-token"],t=C.private?.toLowerCase()==="true";if(!S)return u.jsxDEV(l,{error:"--repo is required (e.g., username/dataset-name)"},void 0,!1,void 0,this);let x=g1(s);if(!x)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Hugging Face token required."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Set your token with:"},void 0,!1,void 0,this),u.jsxDEV(Y,{color:"cyan",children:" pioneer auth hf"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Get a token at: https://huggingface.co/settings/tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(u0,{action:()=>QW(b,{hf_token:x,repo_id:S,private:t}),successMessage:`Dataset uploaded to Hugging Face: ${S}`},void 0,!1,void 0,this)}let{name:q,type:w}=C;if(!q)return u.jsxDEV(l,{error:"--name is required for dataset upload"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>I$(W[0],{dataset_name:q,dataset_type:w}),successMessage:"Dataset uploaded"},void 0,!1,void 0,this)}if(L==="download"){let E=C.from;if(!W[0]&&!E)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Dataset Download:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Download from Pioneer:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset download ","<id>"," [--format jsonl|csv|parquet] [--output ","<path>","]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Download from Hugging Face:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" dataset download --from hf --repo ","<repo>"," [--hf-token ","<token>","] [--name ","<name>","]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:[" ","<id>",' format: name[:version] (version defaults to "latest")']},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(E==="hf"){let b=C.repo,S=C["hf-token"],s=C.name,t=C.revision;if(!b)return u.jsxDEV(l,{error:"--repo is required (e.g., username/dataset-name)"},void 0,!1,void 0,this);let x=g1(S);if(!x)return u.jsxDEV(l,{error:"HuggingFace token is required. Set HF_TOKEN env var or use --hf-token flag."},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>WW({repo_id:b,hf_token:x,name:s,revision:t}),successMessage:`Dataset downloaded from Hugging Face: ${b}`},void 0,!1,void 0,this)}let q=_F(W[0]);if(!q)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[0]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);let w=C.output||C.o,V=C.format||_P(w,"jsonl");return u.jsxDEV(UP,{dataset:q,format:V,output:w},void 0,!1,void 0,this)}if(L==="list"){if(C.json==="true")return u.jsxDEV(u0,{action:DG},void 0,!1,void 0,this);return u.jsxDEV(OP,{},void 0,!1,void 0,this)}if(L==="get"&&W[0]){let E=_F(W[0]);if(!E)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[0]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);if(C.json==="true")return u.jsxDEV(u0,{action:()=>FG(E)},void 0,!1,void 0,this);return u.jsxDEV(XP,{dataset:E},void 0,!1,void 0,this)}if(L==="delete"&&W[0]){let E=_F(W[0]);if(!E)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[0]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>w$(E),successMessage:`Dataset ${W[0]} deleted`},void 0,!1,void 0,this)}if(L==="analyze-llm"){let E=W[0],q=C["task-type"],w=C.description||C["task-description"],V=l1(C.labels);if(!E||!q)return u.jsxDEV(e0,{context:"dataset-analyze"},void 0,!1,void 0,this);if(!["ner","classification","generative"].includes(q))return u.jsxDEV(l,{error:"--task-type must be one of: ner, classification, generative"},void 0,!1,void 0,this);let b=_F(E);if(!b)return u.jsxDEV(l,{error:`Invalid dataset format: ${E}. Use name:version format.`},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>T$({task_type:q,dataset_name:b.name,dataset_version:b.version,...w?{task_description:w}:{},...V.length?{labels:V}:{}})},void 0,!1,void 0,this)}if(L==="analyze"){let E=W[0],q=C["task-type"],w=C.analyses?.split(",");if(!E||!q||!w||w.length===0)return u.jsxDEV(e0,{context:"dataset-analyze"},void 0,!1,void 0,this);let V=_F(E);if(!V)return u.jsxDEV(l,{error:`Invalid dataset format: ${E}. Use name:version format.`},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>v$(V,q,w)},void 0,!1,void 0,this)}if(L==="generate"){let E=W[0],q=C.num?parseInt(C.num,10):void 0,w=C.domain,V=C.save?.toLowerCase()==="true",b=C.name,S=C.quality,s=C["generation-profile"],t=C["reasoning-trace"]===void 0?void 0:C["reasoning-trace"].toLowerCase()!=="false",x=C["reasoning-effort"];if(s&&!["auto","fast","balanced","quality"].includes(s))return u.jsxDEV(l,{error:"--generation-profile must be one of: auto, fast, balanced, quality"},void 0,!1,void 0,this);if(x&&!["low","medium","high"].includes(x))return u.jsxDEV(l,{error:"--reasoning-effort must be one of: low, medium, high"},void 0,!1,void 0,this);let BD=C.multiplicator,XD=C["use-meta-felix"]?C["use-meta-felix"].toLowerCase()!=="false":void 0,i=C["min-criteria"]?parseInt(C["min-criteria"],10):void 0;if(C["min-criteria"]&&Number.isNaN(i))return u.jsxDEV(l,{error:"--min-criteria must be a number"},void 0,!1,void 0,this);let RD=C["target-choices"]?parseInt(C["target-choices"],10):void 0;if(C["target-choices"]&&Number.isNaN(RD))return u.jsxDEV(l,{error:"--target-choices must be a number"},void 0,!1,void 0,this);let jD=C["project-id"],dD=C.type;if(dD&&!["training","evaluation","split"].includes(dD))return u.jsxDEV(l,{error:"--type must be one of: training, evaluation, split"},void 0,!1,void 0,this);let PD=C.visibility;if(PD&&!["private","public"].includes(PD))return u.jsxDEV(l,{error:"--visibility must be private or public"},void 0,!1,void 0,this);let oD=C["split-ratio"],QD=oD&&oD.includes(":")?(()=>{let[yD,MD]=oD.split(":").map((v0)=>parseFloat(v0));if(Number.isNaN(yD)||Number.isNaN(MD))return;return{training:yD,evaluation:MD}})():oD?(()=>{try{return JSON.parse(oD)}catch{return}})():void 0,ID=C["negative-ratio"]?parseFloat(C["negative-ratio"]):void 0;if(C["negative-ratio"]&&Number.isNaN(ID))return u.jsxDEV(l,{error:"--negative-ratio must be a number"},void 0,!1,void 0,this);let ED=C["classified-examples"],mD=C.quality;if(mD&&!["light","medium","heavy"].includes(mD))return u.jsxDEV(l,{error:"--quality must be light, medium, or heavy"},void 0,!1,void 0,this);if(oD&&QD===void 0)return u.jsxDEV(l,{error:"--split-ratio must be training:evaluation or a JSON object"},void 0,!1,void 0,this);let KD;if(BD)try{let yD=JSON.parse(BD);if(typeof yD!=="object"||yD===null||Array.isArray(yD))return u.jsxDEV(l,{error:"--multiplicator must be a valid JSON object"},void 0,!1,void 0,this);KD=yD}catch{return u.jsxDEV(l,{error:"--multiplicator must be valid JSON"},void 0,!1,void 0,this)}let Q0;if(ED)try{let yD=JSON.parse(ED);if(!Array.isArray(yD))return u.jsxDEV(l,{error:"--classified-examples must be a JSON array"},void 0,!1,void 0,this);Q0=yD}catch{return u.jsxDEV(l,{error:"--classified-examples must be valid JSON"},void 0,!1,void 0,this)}if(BD&&KD===void 0)return u.jsxDEV(l,{error:"--multiplicator must be a valid JSON object"},void 0,!1,void 0,this);let E0={quality:S,generation_profile:s,...t!==void 0?{include_reasoning_trace:t}:{},...x?{reasoning_effort:x}:{},...BD?{multiplicator:KD}:{},...XD!==void 0?{use_meta_felix:XD}:{},...i!==void 0?{min_criteria:i}:{},...RD!==void 0?{target_choices:RD}:{},...jD?{project_id:jD}:{},...dD?{type:dD}:{},...PD?{visibility:PD}:{},...QD?{split_ratio:QD}:{},...ID!==void 0?{negative_ratio:ID}:{},...ED?{classified_examples:Q0}:{}};if(E==="ner"){let yD=C.labels?.split(",");if(!yD||yD.length===0)return u.jsxDEV(l,{error:"--labels is required (comma-separated)"},void 0,!1,void 0,this);return u.jsxDEV(I9,{action:()=>S$({labels:yD,num_examples:q,domain_description:w,save_dataset:V,dataset_name:b,...E0}),datasetName:b||"ner-dataset",datasetType:"ner",saveToRemote:V},void 0,!1,void 0,this)}if(E==="classification"){let yD=C.labels?.split(",");if(!yD||yD.length===0)return u.jsxDEV(l,{error:"--labels is required (comma-separated)"},void 0,!1,void 0,this);let MD=C["multi-label"]?.toLowerCase()==="true";return u.jsxDEV(I9,{action:()=>h$({labels:yD,num_examples:q,domain_description:w,multi_label:MD,save_dataset:V,dataset_name:b,...E0}),datasetName:b||"classification-dataset",datasetType:"classification",saveToRemote:V},void 0,!1,void 0,this)}if(E==="custom"){let{prompt:yD,format:MD}=C;if(!yD||!MD)return u.jsxDEV(l,{error:"--prompt and --format are required"},void 0,!1,void 0,this);let v0;try{v0=JSON.parse(MD)}catch{return u.jsxDEV(l,{error:"--format must be valid JSON"},void 0,!1,void 0,this)}return u.jsxDEV(I9,{action:()=>y$({prompt:yD,output_format:v0,num_examples:q,save_dataset:V,dataset_name:b,...E0}),datasetName:b||"custom-dataset",datasetType:"custom",saveToRemote:V},void 0,!1,void 0,this)}if(E==="decoder"){let yD=C.instruction;if(!w)return u.jsxDEV(l,{error:"--domain is required for decoder generation"},void 0,!1,void 0,this);return u.jsxDEV(I9,{action:()=>s$({domain_description:w,instruction:yD,num_examples:q,save_dataset:V,dataset_name:b,...E0}),datasetName:b||"decoder-dataset",datasetType:"custom",saveToRemote:V},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"dataset"},void 0,!1,void 0,this)}if(L==="infer"){let E=W[0];if(E==="improve-prompt"){let w=C.prompt||C.domain;if(!w)return u.jsxDEV(l,{error:"--prompt is required for infer improve-prompt"},void 0,!1,void 0,this);let V=C["data-type"];return u.jsxDEV(u0,{action:()=>m$({prompt:w,...V?{data_type:V}:{}})},void 0,!1,void 0,this)}if(E==="infer-advanced"||E==="advanced"){let w=C.prompt||C.domain,V=C["data-type"],b=l1(C.labels);if(!w)return u.jsxDEV(l,{error:"--prompt is required for dataset infer infer-advanced"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>c$({prompt:w,...V?{data_type:V}:{},...b.length>0?{labels:b}:{}})},void 0,!1,void 0,this)}let q=C.domain;if(!q)return u.jsxDEV(l,{error:"--domain is required"},void 0,!1,void 0,this);if(E==="ner")return u.jsxDEV(u0,{action:()=>V$({domain_description:q})},void 0,!1,void 0,this);if(E==="classification")return u.jsxDEV(u0,{action:()=>j$({domain_description:q})},void 0,!1,void 0,this);if(E==="fields")return u.jsxDEV(u0,{action:()=>x$({domain_description:q})},void 0,!1,void 0,this);return u.jsxDEV(e0,{context:"dataset"},void 0,!1,void 0,this)}if(L==="label-existing"){let E=W[0],q=l1(C.labels),w=C.inputs,V=C.name,b=C.save?.toLowerCase()==="true",S=C.domain,s=C["project-id"];if(!w)return u.jsxDEV(l,{error:"--inputs is required for label-existing commands"},void 0,!1,void 0,this);if(b&&!V)return u.jsxDEV(l,{error:"--name is required when --save=true for label-existing"},void 0,!1,void 0,this);let t;try{t=JSON.parse(w)}catch{return u.jsxDEV(l,{error:"--inputs must be valid JSON"},void 0,!1,void 0,this)}if(E==="ner"||E==="classification"){if(!q||q.length===0)return u.jsxDEV(l,{error:"--labels is required for label-existing ner|classification"},void 0,!1,void 0,this);if(!Array.isArray(t)||t.length===0||!t.every((FD)=>typeof FD==="string"))return u.jsxDEV(l,{error:"--inputs must be a JSON array of strings for ner/classification"},void 0,!1,void 0,this);let x={labels:q,inputs:t,dataset_name:V};if(E==="ner")return u.jsxDEV(u0,{action:()=>b$({...x,domain_description:S,save_dataset:b,project_id:s})},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>f$({...x,domain_description:S,save_dataset:b,project_id:s})},void 0,!1,void 0,this)}if(E==="fields"){let x=C["input-fields"],FD=C["output-fields"];if(!x||!FD)return u.jsxDEV(l,{error:"--input-fields and --output-fields are required for fields labeling"},void 0,!1,void 0,this);let ZD,BD;try{ZD=JSON.parse(x),BD=JSON.parse(FD)}catch{return u.jsxDEV(l,{error:"--input-fields and --output-fields must be valid JSON"},void 0,!1,void 0,this)}if(!Array.isArray(ZD)||!Array.isArray(BD)||ZD.length===0||BD.length===0)return u.jsxDEV(l,{error:"--input-fields and --output-fields must be non-empty arrays"},void 0,!1,void 0,this);let XD=ZD.every((RD)=>RD&&typeof RD==="object"&&!Array.isArray(RD)),i=BD.every((RD)=>RD&&typeof RD==="object"&&!Array.isArray(RD));if(!XD||!i)return u.jsxDEV(l,{error:"--input-fields and --output-fields must be arrays of objects"},void 0,!1,void 0,this);if(!Array.isArray(t)||t.length===0||!t.every((RD)=>RD&&typeof RD==="object"&&!Array.isArray(RD)))return u.jsxDEV(l,{error:"--inputs must be a JSON array of objects for fields"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>g$({input_fields:ZD,output_fields:BD,inputs:t,dataset_name:V,save_dataset:b,domain_description:S,project_id:s})},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"dataset"},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"dataset"},void 0,!1,void 0,this)}if(J==="job"){if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"job"},void 0,!1,void 0,this);if(L==="list"){if(C.json==="true")return u.jsxDEV(u0,{action:J6},void 0,!1,void 0,this);return u.jsxDEV(mq,{},void 0,!1,void 0,this)}if(L==="get"&&W[0]){let E=C.json==="true";return u.jsxDEV(K6,{rawId:W[0],render:(q)=>E?u.jsxDEV(u0,{action:()=>$_(q)},void 0,!1,void 0,this):u.jsxDEV(dq,{jobId:q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(L==="logs"&&W[0])return u.jsxDEV(K6,{rawId:W[0],render:(E)=>u.jsxDEV(eq,{jobId:E},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(L==="delete"&&W[0])return u.jsxDEV(K6,{rawId:W[0],render:(E)=>u.jsxDEV(u0,{action:()=>l$(E),successMessage:`Training job ${E} deleted`},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(L==="create")return u.jsxDEV(l,{error:"`pioneer job create` has been removed.\n"+"Use `pioneer agent` to create training jobs conversationally \u2014 it will help you pick a base model,\n"+"select datasets, and configure training without needing to remember flags or dataset IDs."},void 0,!1,void 0,this);return u.jsxDEV(e0,{context:"job"},void 0,!1,void 0,this)}if(J==="inference"){if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"inference"},void 0,!1,void 0,this);if(L==="base-models"||L==="models"||L==="list"){if(C.json==="true")return u.jsxDEV(u0,{action:W_},void 0,!1,void 0,this);return u.jsxDEV(xW,{},void 0,!1,void 0,this)}if(L==="encoder"){let E=W[0];if(!E)return u.jsxDEV(l,{error:"Model ID required. Usage: inference encoder <model-id> --text <text> --labels <labels>"},void 0,!1,void 0,this);let q=d1(E),w=C.text;if(!w)return u.jsxDEV(l,{error:"--text is required for encoder inference"},void 0,!1,void 0,this);let V=C.task||"extract_entities";if(!["extract_entities","classify_text","extract_json","schema"].includes(V))return u.jsxDEV(l,{error:"--task must be one of: extract_entities, classify_text, extract_json, schema"},void 0,!1,void 0,this);let b=l1(C.labels),S=C.schema,s=null;if(S)try{let XD=JSON.parse(S);if(Array.isArray(XD)){if(!XD.every((i)=>typeof i==="string"))return u.jsxDEV(l,{error:"--schema JSON array must contain only strings"},void 0,!1,void 0,this);s=XD}else if(XD&&typeof XD==="object")s=XD;else return u.jsxDEV(l,{error:"--schema must be a JSON object or array of strings"},void 0,!1,void 0,this)}catch{return u.jsxDEV(l,{error:"--schema must be valid JSON"},void 0,!1,void 0,this)}else if(b.length>0)s=b;if(!s)return u.jsxDEV(l,{error:"Provide --labels or --schema for encoder inference"},void 0,!1,void 0,this);let t=C.threshold?parseFloat(C.threshold):0.5;if(Number.isNaN(t)||t<0||t>1)return u.jsxDEV(l,{error:"--threshold must be a number between 0 and 1"},void 0,!1,void 0,this);let x=C["include-confidence"]===void 0||C["include-confidence"].toLowerCase()!=="false",FD=C["include-spans"]?.toLowerCase()==="true",ZD=C["format-results"]===void 0||C["format-results"].toLowerCase()!=="false",BD=C["project-id"];return u.jsxDEV(u0,{action:()=>BG({model_id:q,task:V,text:w,schema:s,threshold:t,include_confidence:x,include_spans:FD,format_results:ZD,...BD?{project_id:BD}:{}})},void 0,!1,void 0,this)}if(L==="decoder"){let E=W[0];if(!E)return u.jsxDEV(l,{error:"Model ID required. Usage: inference decoder <model-id> --prompt <text>"},void 0,!1,void 0,this);let q=d1(E),w=C.prompt;if(!w)return u.jsxDEV(l,{error:"--prompt is required for decoder inference"},void 0,!1,void 0,this);let V=C.system,b=C["max-tokens"]?parseInt(C["max-tokens"],10):256;if(Number.isNaN(b)||b<1)return u.jsxDEV(l,{error:"--max-tokens must be a positive integer"},void 0,!1,void 0,this);let S=C.temperature?parseFloat(C.temperature):0.7;if(Number.isNaN(S)||S<0||S>2)return u.jsxDEV(l,{error:"--temperature must be a number between 0 and 2"},void 0,!1,void 0,this);let s=C["top-p"]?parseFloat(C["top-p"]):void 0;if(s!==void 0&&(Number.isNaN(s)||s<0||s>1))return u.jsxDEV(l,{error:"--top-p must be a number between 0 and 1"},void 0,!1,void 0,this);let t=C["reasoning-trace"]!==void 0&&C["reasoning-trace"].toLowerCase()!=="false",x=C["project-id"];return u.jsxDEV(QP,{modelId:q,prompt:w,systemMsg:V,maxTokens:b,temperature:S,topP:s,includeReasoningTrace:t,projectId:x},void 0,!1,void 0,this)}if(L==="completions"){let E=W[0];if(!E)return u.jsxDEV(l,{error:"Model ID required. Usage: inference completions <model-id> --prompt <text>"},void 0,!1,void 0,this);let q=d1(E),w=C.prompt;if(!w)return u.jsxDEV(l,{error:"--prompt is required for text completions"},void 0,!1,void 0,this);let V=C.system,b=C["max-tokens"]?parseInt(C["max-tokens"],10):256;if(Number.isNaN(b)||b<1)return u.jsxDEV(l,{error:"--max-tokens must be a positive integer"},void 0,!1,void 0,this);let S=C.temperature?parseFloat(C.temperature):0.7;if(Number.isNaN(S)||S<0||S>2)return u.jsxDEV(l,{error:"--temperature must be a number between 0 and 2"},void 0,!1,void 0,this);let s=C["top-p"]?parseFloat(C["top-p"]):void 0;if(s!==void 0&&(Number.isNaN(s)||s<0||s>1))return u.jsxDEV(l,{error:"--top-p must be a number between 0 and 1"},void 0,!1,void 0,this);let t=l1(C.stop),x=t.length===0?void 0:t.length===1?t[0]:t,FD=C.echo?.toLowerCase()==="true",ZD=C.provider,BD={};if(s!==void 0)BD.top_p=s;if(ZD)BD.provider=ZD;return u.jsxDEV(u0,{action:()=>OG({model:q,prompt:DJ(w,V),max_tokens:b,temperature:S,...x!==void 0?{stop:x}:{},...FD?{echo:!0}:{},...Object.keys(BD).length>0?{extra_body:BD}:{}})},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"inference"},void 0,!1,void 0,this)}if(J==="model"){if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"model"},void 0,!1,void 0,this);if(H==="base-models"||H==="models"){if(C.json==="true")return u.jsxDEV(u0,{action:W_},void 0,!1,void 0,this);return u.jsxDEV(xW,{},void 0,!1,void 0,this)}if(H==="endpoints"){let E=W[0],q=W.slice(1);if(C.help==="true"||!E||E==="help")return u.jsxDEV(e0,{context:"model-endpoints"},void 0,!1,void 0,this);if(E==="create"){let{name:w,icon:V,repo:b,description:S}=C,s=C.model||"",t=C.example;if(C["model-id"])return u.jsxDEV(l,{error:"Use --model to specify the base model reference. --model-id is deprecated."},void 0,!1,void 0,this);if(C["base-model"]||C["active-model-id"])return u.jsxDEV(l,{error:"Use --model to specify the model reference. --base-model and --active-model-id are no longer supported."},void 0,!1,void 0,this);if(!s){let FD=jW(t);if(FD.error)return u.jsxDEV(l,{error:FD.error},void 0,!1,void 0,this);return u.jsxDEV(fq,{name:w,icon:V,repo:b,description:S,example:FD.value},void 0,!1,void 0,this)}let x=jW(t);if(x.error)return u.jsxDEV(l,{error:x.error},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>GG({name:w??s,...V?{icon:V}:{},...b?{repo:b}:{},...S?{description:S}:{},...s?{active_model_id:s}:{},...s?{selected_model_id:s}:{},...x.value?{example:x.value}:{}}),successMessage:"Model entry created"},void 0,!1,void 0,this)}if(E==="list")return u.jsxDEV(k9,{filter:"registered"},void 0,!1,void 0,this);if(E==="get"){let w=q[0];if(!w)return u.jsxDEV(l,{error:"Model ID required: model endpoints get <model-id>"},void 0,!1,void 0,this);if(C.json==="true")return u.jsxDEV(u0,{action:()=>P9(w)},void 0,!1,void 0,this);return u.jsxDEV(aq,{modelId:w},void 0,!1,void 0,this)}if(E==="update"){let w=q[0];if(!w)return u.jsxDEV(l,{error:"Model ID required: model endpoints update <model-id>"},void 0,!1,void 0,this);let{name:V,icon:b,repo:S,description:s}=C,t=C["model-id"];if(!V&&!b&&!S&&!s&&!t)return u.jsxDEV(l,{error:"Provide at least one field to update: --name, --icon, --repo, --description, or --model-id"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>JW(w,{...V?{name:V}:{},...b?{icon:b}:{},...S?{repo:S}:{},...s?{description:s}:{},...t?{selected_model_id:t}:{}}),successMessage:"Model updated"},void 0,!1,void 0,this)}if(E==="delete"){let w=q[0];if(!w)return u.jsxDEV(l,{error:"Model ID required: model endpoints delete <model-id>"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>YW(w),successMessage:`Model ${w} deleted`},void 0,!1,void 0,this)}if(E==="dataset-count"||E==="count")return u.jsxDEV(l,{error:"`pioneer model endpoints dataset-count` has been removed.\nThe dataset count and `can_delete` flag are now surfaced inline in `pioneer model endpoints get <model-id>`."},void 0,!1,void 0,this);if(E==="quality-metrics"||E==="quality"){let w=q[0];if(!w)return u.jsxDEV(l,{error:"Model ID required: model endpoints quality-metrics <model-id>"},void 0,!1,void 0,this);if(C.json==="true")return u.jsxDEV(u0,{action:()=>XG(w)},void 0,!1,void 0,this);return u.jsxDEV(rq,{modelId:w},void 0,!1,void 0,this)}if(E==="deploy"){let w=q[0],V=C.job;if(!w)return u.jsxDEV(l,{error:"Model ID required: model endpoints deploy <model-id> [--job <training-job-id>]"},void 0,!1,void 0,this);let b=C.reason;if(!V){if(!G)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Interactive job picker requires a TTY."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"List trained jobs with `pioneer job list` and pass an explicit ID:"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:[" pioneer model endpoints deploy ",w," --job <training-job-id>"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);let S=C.all==="true";return u.jsxDEV(sq,{modelId:w,reason:b,showAll:S},void 0,!1,void 0,this)}return u.jsxDEV(K6,{rawId:V,render:(S)=>u.jsxDEV(u0,{action:async()=>{let s=await $_(S),t=await _G(S,{project_id:w});if(!t.ok)return t;let x=await UG(w,{training_job_id:S,...b?{reason:b}:{}});if(x.ok&&x.data&&s.ok&&s.data?.base_model&&!x.data.base_model)return{...x,data:{...x.data,base_model:s.data.base_model}};return x},successMessage:`Deployment initiated for project ${w} from job ${S}`},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(E==="rollback"){let w=q[0],V=q[1];if(!w)return u.jsxDEV(l,{error:"Model ID required: model endpoints rollback <model-id> <deployment-id>"},void 0,!1,void 0,this);if(!V)return u.jsxDEV(l,{error:"Deployment ID required: model endpoints rollback <model-id> <deployment-id>"},void 0,!1,void 0,this);if(V.length!==36)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Invalid deployment ID: must be full UUID (36 characters)"},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:[" Provided: ",V," (",V.length," characters)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(u0,{action:()=>zW(w,V),successMessage:`Rollback initiated for endpoint ${w} using deployment ${V}`},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"model-endpoints"},void 0,!1,void 0,this)}if(H==="artifacts"){let E=W[0],q=W.slice(1);if(C.help==="true"||!E||E==="help")return u.jsxDEV(e0,{context:"model-artifacts"},void 0,!1,void 0,this);if(E==="list")return u.jsxDEV(k9,{filter:"artifacts"},void 0,!1,void 0,this);if(E==="trained")return u.jsxDEV(k9,{filter:"trained"},void 0,!1,void 0,this);if(E==="deployed")return u.jsxDEV(k9,{filter:"deployed"},void 0,!1,void 0,this);if(E==="download"){if(!q[0])return u.jsxDEV(l,{error:"Job ID required: model artifacts download <job-id>"},void 0,!1,void 0,this);return u.jsxDEV(K6,{rawId:q[0],render:(w)=>C.json==="true"?u.jsxDEV(u0,{action:()=>CG(w)},void 0,!1,void 0,this):u.jsxDEV(tq,{jobId:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(E==="delete"){if(!q[0])return u.jsxDEV(l,{error:"Model ID required: model artifacts delete <job-id>"},void 0,!1,void 0,this);return u.jsxDEV(K6,{rawId:q[0],render:(w)=>u.jsxDEV(u0,{action:()=>d$(w),successMessage:`Model ${w} deleted`},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(E==="upload"){let w=C.to;if(!q[0]&&!w)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(Y,{bold:!0,children:"Model Upload:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" Upload to Hugging Face:"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:[" model artifacts upload ","<job-id>"," --to hf --repo ","<repo>"," [--hf-token ","<token>","] [--private]"]},void 0,!0,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:" Supported destinations: hf (more coming soon)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(w==="hf"){if(!q[0])return u.jsxDEV(l,{error:"Job ID required: model artifacts upload <job-id> --to hf --repo <repo>"},void 0,!1,void 0,this);let V=q[0],b=C.repo,S=C["hf-token"],s=C.private?.toLowerCase()==="true";if(!b)return u.jsxDEV(l,{error:"--repo is required (e.g., username/model-name)"},void 0,!1,void 0,this);let t=g1(S);if(!t)return u.jsxDEV(r,{flexDirection:"column",children:[u.jsxDEV(l,{error:"Hugging Face token required."},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{children:"Set your token with:"},void 0,!1,void 0,this),u.jsxDEV(Y,{color:"cyan",children:" pioneer auth hf"},void 0,!1,void 0,this),u.jsxDEV(Y,{children:" "},void 0,!1,void 0,this),u.jsxDEV(Y,{dimColor:!0,children:"Get a token at: https://huggingface.co/settings/tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u.jsxDEV(K6,{rawId:V,render:(x)=>u.jsxDEV(u0,{action:()=>$W(x,{hf_token:t,repo_id:b,private:s}),successMessage:`Model uploaded to Hugging Face: ${b}`},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return u.jsxDEV(l,{error:"--to is required. Supported destinations: hf"},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"model-artifacts"},void 0,!1,void 0,this)}if(L==="predict"||L==="generate")return u.jsxDEV(l,{error:"model predict and model generate are no longer supported. Use model endpoints/... and model artifacts/... instead."},void 0,!1,void 0,this);return u.jsxDEV(l,{error:`Unknown model command: model ${L}. Use 'pioneer model_endpoints ...', 'pioneer model endpoints ...', 'pioneer model_artifacts ...', or 'pioneer model artifacts ...'.`},void 0,!1,void 0,this)}if(J==="eval"){if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"eval"},void 0,!1,void 0,this);if(L==="list"&&W[0]){let E=_F(W[0]);if(!E)return u.jsxDEV(l,{error:`Invalid dataset format: ${W[0]}. Use name[:version] format (e.g., my-dataset or my-dataset:v1).`},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>FW(E)},void 0,!1,void 0,this)}if(L==="list"&&!W[0])return u.jsxDEV(l,{error:"Dataset required: eval list <name[:version]>"},void 0,!1,void 0,this);if(L==="baseline-models")return u.jsxDEV(u0,{action:t$},void 0,!1,void 0,this);if(L==="get"&&W[0])return u.jsxDEV(u0,{action:()=>e$(W[0])},void 0,!1,void 0,this);if(L==="delete"&&W[0]){let E=W[0];return u.jsxDEV(u0,{action:async()=>{let q=await _W(E);if(!q.ok&&(q.status===401||q.status===403)&&q.error){let w=q.error.toLowerCase();if(w.includes("jwt")||w.includes("api key access")||w.includes("table")||w.includes("requires authentication"))return{ok:!1,status:q.status,error:"Evaluation deletion requires a JWT-authenticated session. Run 'pioneer auth login' to sign in with your account credentials."}}return q}},void 0,!1,void 0,this)}if(L==="update"){let q=W[0]==="project"?W[1]:W[0];if(!q)return u.jsxDEV(e0,{context:"eval"},void 0,!1,void 0,this);let w=C["project-id"];if(!w)return u.jsxDEV(l,{error:"--project-id is required"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>CW({evaluation_id:q,project_id:w}),successMessage:`Evaluation ${q} reassigned`},void 0,!1,void 0,this)}if(L==="create"){let E=C["model-id"],q=C.dataset,w=C["task-type"],V=C["text-column"],b=C["label-column"];if(!E||!q)return u.jsxDEV(l,{error:"--model-id and --dataset are required"},void 0,!1,void 0,this);let S=_F(q);if(!S)return u.jsxDEV(l,{error:`Invalid dataset format: ${q}. Use name:version format.`},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>DW({model_id:E,dataset:S,...w?{task_type:w}:{},...V?{text_column:V}:{},...b?{label_column:b}:{}}),successMessage:"Evaluation created"},void 0,!1,void 0,this)}return u.jsxDEV(e0,{context:"eval"},void 0,!1,void 0,this)}if(J==="benchmark"){if(C.help==="true"||!L||L==="help")return u.jsxDEV(e0,{context:"benchmark"},void 0,!1,void 0,this);if(L==="list")return u.jsxDEV(u0,{action:BW},void 0,!1,void 0,this);if(L==="run"){let E=C["model-id"],q=C.task,w=C.benchmark,V=C["max-samples"]?parseInt(C["max-samples"],10):void 0,b=C.split;if(!E||!q||!w)return u.jsxDEV(l,{error:"--model-id, --task, and --benchmark are required"},void 0,!1,void 0,this);let S=d1(E);if(!T9(S))return u.jsxDEV(l,{error:"Benchmark model-id must be a training job UUID (example: 72c1ac92-3a89-439d-afe3-687d8a935c06)."},void 0,!1,void 0,this);if(q!=="ner"&&q!=="text_classification")return u.jsxDEV(l,{error:"--task must be either ner or text_classification"},void 0,!1,void 0,this);if(V!==void 0&&(Number.isNaN(V)||V<1))return u.jsxDEV(l,{error:"--max-samples must be a positive integer"},void 0,!1,void 0,this);return u.jsxDEV(u0,{action:()=>OW({model_id:S,task:q,benchmark:w,max_samples:V,split:b}),successMessage:"Benchmark evaluation started"},void 0,!1,void 0,this)}if(L==="get"&&W[0])return u.jsxDEV(u0,{action:()=>GW(W[0])},void 0,!1,void 0,this);if(L==="cancel"&&W[0])return u.jsxDEV(u0,{action:()=>XW(W[0]),successMessage:"Benchmark evaluation cancelled"},void 0,!1,void 0,this);return u.jsxDEV(e0,{context:"benchmark"},void 0,!1,void 0,this)}if(J==="agent"){if(C.help==="true"||L==="help")return u.jsxDEV(e0,{context:"agent"},void 0,!1,void 0,this);if(L&&L!=="resume"&&L!=="sessions"&&!L.startsWith("-"))return u.jsxDEV(l,{error:`Invalid agent command syntax. Use one of:
|
|
245
|
+
pioneer agent
|
|
246
|
+
pioneer agent --mode research
|
|
247
|
+
pioneer agent sessions
|
|
248
|
+
pioneer agent resume [conversation-id]`},void 0,!1,void 0,this);if(C.message)return u.jsxDEV(l,{error:"The --message flag has been removed for agent. Run `pioneer agent` or `pioneer agent --mode research` and provide input interactively."},void 0,!1,void 0,this);let E=C.mode,q=["research"],w=E?E.toLowerCase():void 0;if(w&&!q.includes(w))return u.jsxDEV(l,{error:"--mode must be one of: research"},void 0,!1,void 0,this);let V=w==="research"?"research":"standard",b;if(C.history)try{let S=JSON.parse(C.history);if(!Array.isArray(S))return u.jsxDEV(l,{error:"--history must be a JSON array"},void 0,!1,void 0,this);b=S}catch{return u.jsxDEV(l,{error:"--history must be valid JSON"},void 0,!1,void 0,this)}if(C.filters)return u.jsxDEV(l,{error:"--filters is not supported for /auto-agent/clarify. Omit this flag for now."},void 0,!1,void 0,this);if(L==="resume"||L==="sessions"){if(!G)return u.jsxDEV(l,{error:"Interactive input is not supported in this terminal.\\nUse interactive mode for this environment: agent --help"},void 0,!1,void 0,this);if(W[0]||C["conversation-id"]){let S=W[0]??C["conversation-id"];return u.jsxDEV(EG,{initialMode:V,conversationId:S,history:b,allowSessionCreation:!1},void 0,!1,void 0,this)}return u.jsxDEV(Vq,{mode:V},void 0,!1,void 0,this)}return u.jsxDEV(hq,{conversationId:C["conversation-id"],history:b,mode:V,allowSessionCreation:!0},void 0,!1,void 0,this)}if(J==="notebook")return u.jsxDEV(l,{error:"The notebook command is deprecated and has been removed from this CLI."},void 0,!1,void 0,this);return u.jsxDEV(e0,{},void 0,!1,void 0,this)};async function WP(){let _=process.argv.slice(2),{command:C,flags:U,parseErrors:G}=Rq(_);if(U.version==="true"||U.v==="true")console.log(`pioneer ${W6.version}`),process.exit(0);await pO(u.jsxDEV($P,{command:C,flags:U,parseErrors:G},void 0,!1,void 0,this)).waitUntilExit()}if(process.env.PIONEER_SKIP_AUTORUN!=="true")WP();export{Sq as StandardWsInteractiveSession,mq as JobListCommand,sq as DeployJobPickerCommand,bq as AutoAgentInteractiveSession,Vq as AgentResumeCommand};
|