genaicode 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/dist/ai-service/common.js +3 -2
- package/dist/ai-service/common.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/main/config-lib.d.ts +1 -36
- package/dist/main/config-lib.js.map +1 -1
- package/dist/main/config-types.d.ts +36 -0
- package/dist/main/config-types.js +2 -0
- package/dist/main/config-types.js.map +1 -0
- package/dist/main/config.d.ts +1 -1
- package/dist/main/config.js +1 -1
- package/dist/main/config.js.map +1 -1
- package/dist/main/plugin-loader.d.ts +1 -1
- package/dist/main/ui/backend/service.d.ts +1 -1
- package/dist/main/ui/frontend/assets/index-BAAQr5b1.js +1747 -0
- package/dist/main/ui/frontend/index.html +1 -1
- package/dist/prompt/function-calling.js +2 -1
- package/dist/prompt/function-calling.js.map +1 -1
- package/dist/prompt/function-defs/ask-question.d.ts +1 -0
- package/dist/prompt/function-defs/ask-question.js +88 -72
- package/dist/prompt/function-defs/ask-question.js.map +1 -1
- package/dist/prompt/function-defs/optimize-context.js +2 -2
- package/dist/prompt/function-defs/optimize-context.js.map +1 -1
- package/dist/prompt/prompt-service.js +2 -1
- package/dist/prompt/prompt-service.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.js +2 -2
- package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js +3 -3
- package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/context-optimization.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js +2 -2
- package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +5 -5
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.js +4 -4
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +3 -3
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +136 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/lint.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/lint.js +27 -7
- package/dist/prompt/steps/step-ask-question/handlers/lint.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js +3 -3
- package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js +7 -7
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-permissions.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js +3 -3
- package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +4 -16
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +7 -8
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/steps/step-context-optimization.d.ts +3 -0
- package/dist/prompt/steps/step-context-optimization.js +60 -48
- package/dist/prompt/steps/step-context-optimization.js.map +1 -1
- package/dist/prompt/systemprompt.d.ts +2 -1
- package/dist/prompt/systemprompt.js +12 -4
- package/dist/prompt/systemprompt.js.map +1 -1
- package/package.json +1 -1
- package/dist/main/ui/frontend/assets/index-DY7-_JMu.js +0 -1759
|
@@ -0,0 +1,1747 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function cv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hf={exports:{}},U={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ro=Symbol.for("react.element"),dv=Symbol.for("react.portal"),fv=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),hv=Symbol.for("react.profiler"),mv=Symbol.for("react.provider"),yv=Symbol.for("react.context"),vv=Symbol.for("react.forward_ref"),gv=Symbol.for("react.suspense"),xv=Symbol.for("react.memo"),wv=Symbol.for("react.lazy"),uc=Symbol.iterator;function Sv(e){return e===null||typeof e!="object"?null:(e=uc&&e[uc]||e["@@iterator"],typeof e=="function"?e:null)}var mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yf=Object.assign,vf={};function jr(e,t,n){this.props=e,this.context=t,this.refs=vf,this.updater=n||mf}jr.prototype.isReactComponent={};jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gf(){}gf.prototype=jr.prototype;function Ua(e,t,n){this.props=e,this.context=t,this.refs=vf,this.updater=n||mf}var Va=Ua.prototype=new gf;Va.constructor=Ua;yf(Va,jr.prototype);Va.isPureReactComponent=!0;var cc=Array.isArray,xf=Object.prototype.hasOwnProperty,Ha={current:null},wf={key:!0,ref:!0,__self:!0,__source:!0};function Sf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)xf.call(t,r)&&!wf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ro,type:e,key:i,ref:s,props:o,_owner:Ha.current}}function kv(e,t){return{$$typeof:Ro,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ro}function Cv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dc=/\/+/g;function zs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Cv(""+e.key):t.toString(36)}function di(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ro:case dv:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+zs(s,0):r,cc(o)?(n="",e!=null&&(n=e.replace(dc,"$&/")+"/"),di(o,t,n,"",function(c){return c})):o!=null&&(Wa(o)&&(o=kv(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(dc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",cc(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+zs(i,l);s+=di(i,t,n,a,o)}else if(a=Sv(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+zs(i,l++),s+=di(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Uo(e,t,n){if(e==null)return e;var r=[],o=0;return di(e,r,"","",function(i){return t.call(n,i,o++)}),r}function jv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Re={current:null},fi={transition:null},Ev={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:fi,ReactCurrentOwner:Ha};function kf(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Uo,forEach:function(e,t,n){Uo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Uo(e,function(){t++}),t},toArray:function(e){return Uo(e,function(t){return t})||[]},only:function(e){if(!Wa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=jr;U.Fragment=fv;U.Profiler=hv;U.PureComponent=Ua;U.StrictMode=pv;U.Suspense=gv;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ev;U.act=kf;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=yf({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ha.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)xf.call(t,a)&&!wf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Ro,type:e.type,key:o,ref:i,props:r,_owner:s}};U.createContext=function(e){return e={$$typeof:yv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mv,_context:e},e.Consumer=e};U.createElement=Sf;U.createFactory=function(e){var t=Sf.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:vv,render:e}};U.isValidElement=Wa;U.lazy=function(e){return{$$typeof:wv,_payload:{_status:-1,_result:e},_init:jv}};U.memo=function(e,t){return{$$typeof:xv,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=fi.transition;fi.transition={};try{e()}finally{fi.transition=t}};U.unstable_act=kf;U.useCallback=function(e,t){return Re.current.useCallback(e,t)};U.useContext=function(e){return Re.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Re.current.useDeferredValue(e)};U.useEffect=function(e,t){return Re.current.useEffect(e,t)};U.useId=function(){return Re.current.useId()};U.useImperativeHandle=function(e,t,n){return Re.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Re.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Re.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Re.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Re.current.useReducer(e,t,n)};U.useRef=function(e){return Re.current.useRef(e)};U.useState=function(e){return Re.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Re.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Re.current.useTransition()};U.version="18.3.1";hf.exports=U;var C=hf.exports;const Le=cv(C);var Cf={exports:{}},Qe={},jf={exports:{}},Ef={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/(function(e){function t(T,L){var D=T.length;T.push(L);e:for(;0<D;){var Y=D-1>>>1,X=T[Y];if(0<o(X,L))T[Y]=L,T[D]=X,D=Y;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],D=T.pop();if(D!==L){T[0]=D;e:for(var Y=0,X=T.length,pn=X>>>1;Y<pn;){var at=2*(Y+1)-1,Dt=T[at],Be=at+1,Et=T[Be];if(0>o(Dt,D))Be<X&&0>o(Et,Dt)?(T[Y]=Et,T[Be]=D,Y=Be):(T[Y]=Dt,T[at]=D,Y=at);else if(Be<X&&0>o(Et,D))T[Y]=Et,T[Be]=D,Y=Be;else break e}}return L}function o(T,L){var D=T.sortIndex-L.sortIndex;return D!==0?D:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],d=1,f=null,p=3,g=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=T)r(c),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(c)}}function S(T){if(x=!1,v(T),!y)if(n(a)!==null)y=!0,q(j);else{var L=n(c);L!==null&&B(S,L.startTime-T)}}function j(T,L){y=!1,x&&(x=!1,m(P),P=-1),g=!0;var D=p;try{for(v(L),f=n(a);f!==null&&(!(f.expirationTime>L)||T&&!W());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,p=f.priorityLevel;var X=Y(f.expirationTime<=L);L=e.unstable_now(),typeof X=="function"?f.callback=X:f===n(a)&&r(a),v(L)}else r(a);f=n(a)}if(f!==null)var pn=!0;else{var at=n(c);at!==null&&B(S,at.startTime-L),pn=!1}return pn}finally{f=null,p=D,g=!1}}var N=!1,$=null,P=-1,A=5,I=-1;function W(){return!(e.unstable_now()-I<A)}function F(){if($!==null){var T=e.unstable_now();I=T;var L=!0;try{L=$(!0,T)}finally{L?G():(N=!1,$=null)}}else N=!1}var G;if(typeof h=="function")G=function(){h(F)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,O=lt.port2;lt.port1.onmessage=F,G=function(){O.postMessage(null)}}else G=function(){k(F,0)};function q(T){$=T,N||(N=!0,G())}function B(T,L){P=k(function(){T(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,q(j))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(T){switch(p){case 1:case 2:case 3:var L=3;break;default:L=p}var D=p;p=L;try{return T()}finally{p=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var D=p;p=T;try{return L()}finally{p=D}},e.unstable_scheduleCallback=function(T,L,D){var Y=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?Y+D:Y):D=Y,T){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=D+X,T={id:d++,callback:L,priorityLevel:T,startTime:D,expirationTime:X,sortIndex:-1},D>Y?(T.sortIndex=D,t(c,T),n(a)===null&&T===n(c)&&(x?(m(P),P=-1):x=!0,B(S,D-Y))):(T.sortIndex=X,t(a,T),y||g||(y=!0,q(j))),T},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(T){var L=p;return function(){var D=p;p=L;try{return T.apply(this,arguments)}finally{p=D}}}})(Ef);jf.exports=Ef;var bv=jf.exports;/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Nv=C,Ke=bv;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var bf=new Set,lo={};function Ln(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){for(lo[e]=t,e=0;e<t.length;e++)bf.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),El=Object.prototype.hasOwnProperty,$v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fc={},pc={};function Rv(e){return El.call(pc,e)?!0:El.call(fc,e)?!1:$v.test(e)?pc[e]=!0:(fc[e]=!0,!1)}function Pv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tv(e,t,n,r){if(t===null||typeof t>"u"||Pv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Pe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ja=/[\-:]([a-z])/g;function Ka(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ja,Ka);ke[t]=new Pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ja,Ka);ke[t]=new Pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ja,Ka);ke[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qa(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Tv(t,n,o,r)&&(n=null),r||o===null?Rv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var At=Nv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vo=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Un=Symbol.for("react.fragment"),Ga=Symbol.for("react.strict_mode"),bl=Symbol.for("react.profiler"),Nf=Symbol.for("react.provider"),$f=Symbol.for("react.context"),qa=Symbol.for("react.forward_ref"),Nl=Symbol.for("react.suspense"),$l=Symbol.for("react.suspense_list"),Ya=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Rf=Symbol.for("react.offscreen"),hc=Symbol.iterator;function _r(e){return e===null||typeof e!="object"?null:(e=hc&&e[hc]||e["@@iterator"],typeof e=="function"?e:null)}var le=Object.assign,Fs;function Wr(e){if(Fs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fs=t&&t[1]||""}return`
|
|
26
|
+
`+Fs+e}var Bs=!1;function Us(e,t){if(!e||Bs)return"";Bs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
27
|
+
`),i=r.stack.split(`
|
|
28
|
+
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
|
29
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Bs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wr(e):""}function _v(e){switch(e.tag){case 5:return Wr(e.type);case 16:return Wr("Lazy");case 13:return Wr("Suspense");case 19:return Wr("SuspenseList");case 0:case 2:case 15:return e=Us(e.type,!1),e;case 11:return e=Us(e.type.render,!1),e;case 1:return e=Us(e.type,!0),e;default:return""}}function Rl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Un:return"Fragment";case Bn:return"Portal";case bl:return"Profiler";case Ga:return"StrictMode";case Nl:return"Suspense";case $l:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Nf:return(e._context.displayName||"Context")+".Provider";case qa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ya:return t=e.displayName||null,t!==null?t:Rl(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return Rl(e(t))}catch{}}return null}function Lv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rl(t);case 8:return t===Ga?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iv(e){var t=Pf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ho(e){e._valueTracker||(e._valueTracker=Iv(e))}function Tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _i(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pl(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _f(e,t){t=t.checked,t!=null&&Qa(e,"checked",t,!1)}function Tl(e,t){_f(e,t);var n=on(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_l(e,t.type,n):t.hasOwnProperty("defaultValue")&&_l(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _l(e,t,n){(t!=="number"||_i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jr=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ll(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Jr(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function Lf(e,t){var n=on(t.value),r=on(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function gc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function If(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Il(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?If(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wo,Of=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wo=Wo||document.createElement("div"),Wo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ov=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(e){Ov.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qr[t]=qr[e]})});function Af(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qr.hasOwnProperty(e)&&qr[e]?(""+t).trim():t+"px"}function Df(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Af(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Av=le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ol(e,t){if(t){if(Av[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Al(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dl=null;function Xa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ml=null,tr=null,nr=null;function xc(e){if(e=_o(e)){if(typeof Ml!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ps(t),Ml(e.stateNode,e.type,t))}}function Mf(e){tr?nr?nr.push(e):nr=[e]:tr=e}function zf(){if(tr){var e=tr,t=nr;if(nr=tr=null,xc(e),t)for(e=0;e<t.length;e++)xc(t[e])}}function Ff(e,t){return e(t)}function Bf(){}var Vs=!1;function Uf(e,t,n){if(Vs)return e(t,n);Vs=!0;try{return Ff(e,t,n)}finally{Vs=!1,(tr!==null||nr!==null)&&(Bf(),zf())}}function uo(e,t){var n=e.stateNode;if(n===null)return null;var r=ps(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var zl=!1;if(_t)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){zl=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{zl=!1}function Dv(e,t,n,r,o,i,s,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Yr=!1,Li=null,Ii=!1,Fl=null,Mv={onError:function(e){Yr=!0,Li=e}};function zv(e,t,n,r,o,i,s,l,a){Yr=!1,Li=null,Dv.apply(Mv,arguments)}function Fv(e,t,n,r,o,i,s,l,a){if(zv.apply(this,arguments),Yr){if(Yr){var c=Li;Yr=!1,Li=null}else throw Error(R(198));Ii||(Ii=!0,Fl=c)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Vf(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wc(e){if(In(e)!==e)throw Error(R(188))}function Bv(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return wc(o),e;if(i===r)return wc(o),t;i=i.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Hf(e){return e=Bv(e),e!==null?Wf(e):null}function Wf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Wf(e);if(t!==null)return t;e=e.sibling}return null}var Jf=Ke.unstable_scheduleCallback,Sc=Ke.unstable_cancelCallback,Uv=Ke.unstable_shouldYield,Vv=Ke.unstable_requestPaint,ce=Ke.unstable_now,Hv=Ke.unstable_getCurrentPriorityLevel,Za=Ke.unstable_ImmediatePriority,Kf=Ke.unstable_UserBlockingPriority,Oi=Ke.unstable_NormalPriority,Wv=Ke.unstable_LowPriority,Qf=Ke.unstable_IdlePriority,us=null,Ct=null;function Jv(e){if(Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(us,e,void 0,(e.current.flags&128)===128)}catch{}}var pt=Math.clz32?Math.clz32:Gv,Kv=Math.log,Qv=Math.LN2;function Gv(e){return e>>>=0,e===0?32:31-(Kv(e)/Qv|0)|0}var Jo=64,Ko=4194304;function Kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ai(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Kr(l):(i&=s,i!==0&&(r=Kr(i)))}else s=n&~o,s!==0?r=Kr(s):i!==0&&(r=Kr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-pt(t),o=1<<n,r|=e[n],t&=~o;return r}function qv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-pt(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=qv(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Bl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gf(){var e=Jo;return Jo<<=1,!(Jo&4194240)&&(Jo=64),e}function Hs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function Xv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-pt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function eu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var K=0;function qf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Yf,tu,Xf,Zf,ep,Ul=!1,Qo=[],Gt=null,qt=null,Yt=null,co=new Map,fo=new Map,Wt=[],Zv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function kc(e,t){switch(e){case"focusin":case"focusout":Gt=null;break;case"dragenter":case"dragleave":qt=null;break;case"mouseover":case"mouseout":Yt=null;break;case"pointerover":case"pointerout":co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fo.delete(t.pointerId)}}function Ir(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_o(t),t!==null&&tu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function eg(e,t,n,r,o){switch(t){case"focusin":return Gt=Ir(Gt,e,t,n,r,o),!0;case"dragenter":return qt=Ir(qt,e,t,n,r,o),!0;case"mouseover":return Yt=Ir(Yt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return co.set(i,Ir(co.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,fo.set(i,Ir(fo.get(i)||null,e,t,n,r,o)),!0}return!1}function tp(e){var t=vn(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=Vf(n),t!==null){e.blockedOn=t,ep(e.priority,function(){Xf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dl=r,n.target.dispatchEvent(r),Dl=null}else return t=_o(n),t!==null&&tu(t),e.blockedOn=n,!1;t.shift()}return!0}function Cc(e,t,n){pi(e)&&n.delete(t)}function tg(){Ul=!1,Gt!==null&&pi(Gt)&&(Gt=null),qt!==null&&pi(qt)&&(qt=null),Yt!==null&&pi(Yt)&&(Yt=null),co.forEach(Cc),fo.forEach(Cc)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,Ul||(Ul=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,tg)))}function po(e){function t(o){return Or(o,e)}if(0<Qo.length){Or(Qo[0],e);for(var n=1;n<Qo.length;n++){var r=Qo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gt!==null&&Or(Gt,e),qt!==null&&Or(qt,e),Yt!==null&&Or(Yt,e),co.forEach(t),fo.forEach(t),n=0;n<Wt.length;n++)r=Wt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wt.length&&(n=Wt[0],n.blockedOn===null);)tp(n),n.blockedOn===null&&Wt.shift()}var rr=At.ReactCurrentBatchConfig,Di=!0;function ng(e,t,n,r){var o=K,i=rr.transition;rr.transition=null;try{K=1,nu(e,t,n,r)}finally{K=o,rr.transition=i}}function rg(e,t,n,r){var o=K,i=rr.transition;rr.transition=null;try{K=4,nu(e,t,n,r)}finally{K=o,rr.transition=i}}function nu(e,t,n,r){if(Di){var o=Vl(e,t,n,r);if(o===null)el(e,t,r,Mi,n),kc(e,r);else if(eg(o,e,t,n,r))r.stopPropagation();else if(kc(e,r),t&4&&-1<Zv.indexOf(e)){for(;o!==null;){var i=_o(o);if(i!==null&&Yf(i),i=Vl(e,t,n,r),i===null&&el(e,t,r,Mi,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else el(e,t,r,null,n)}}var Mi=null;function Vl(e,t,n,r){if(Mi=null,e=Xa(r),e=vn(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Vf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Mi=e,null}function np(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Hv()){case Za:return 1;case Kf:return 4;case Oi:case Wv:return 16;case Qf:return 536870912;default:return 16}default:return 16}}var Kt=null,ru=null,hi=null;function rp(){if(hi)return hi;var e,t=ru,n=t.length,r,o="value"in Kt?Kt.value:Kt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return hi=o.slice(e,1<r?1-r:void 0)}function mi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Go(){return!0}function jc(){return!1}function Ge(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Go:jc,this.isPropagationStopped=jc,this}return le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Go)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Go)},persist:function(){},isPersistent:Go}),t}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ou=Ge(Er),To=le({},Er,{view:0,detail:0}),og=Ge(To),Ws,Js,Ar,cs=le({},To,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ar&&(Ar&&e.type==="mousemove"?(Ws=e.screenX-Ar.screenX,Js=e.screenY-Ar.screenY):Js=Ws=0,Ar=e),Ws)},movementY:function(e){return"movementY"in e?e.movementY:Js}}),Ec=Ge(cs),ig=le({},cs,{dataTransfer:0}),sg=Ge(ig),lg=le({},To,{relatedTarget:0}),Ks=Ge(lg),ag=le({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),ug=Ge(ag),cg=le({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dg=Ge(cg),fg=le({},Er,{data:0}),bc=Ge(fg),pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mg[e])?!!t[e]:!1}function iu(){return yg}var vg=le({},To,{key:function(e){if(e.key){var t=pg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iu,charCode:function(e){return e.type==="keypress"?mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gg=Ge(vg),xg=le({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nc=Ge(xg),wg=le({},To,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iu}),Sg=Ge(wg),kg=le({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cg=Ge(kg),jg=le({},cs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Eg=Ge(jg),bg=[9,13,27,32],su=_t&&"CompositionEvent"in window,Xr=null;_t&&"documentMode"in document&&(Xr=document.documentMode);var Ng=_t&&"TextEvent"in window&&!Xr,op=_t&&(!su||Xr&&8<Xr&&11>=Xr),$c=" ",Rc=!1;function ip(e,t){switch(e){case"keyup":return bg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function $g(e,t){switch(e){case"compositionend":return sp(t);case"keypress":return t.which!==32?null:(Rc=!0,$c);case"textInput":return e=t.data,e===$c&&Rc?null:e;default:return null}}function Rg(e,t){if(Vn)return e==="compositionend"||!su&&ip(e,t)?(e=rp(),hi=ru=Kt=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return op&&t.locale!=="ko"?null:t.data;default:return null}}var Pg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pg[e.type]:t==="textarea"}function lp(e,t,n,r){Mf(r),t=zi(t,"onChange"),0<t.length&&(n=new ou("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zr=null,ho=null;function Tg(e){gp(e,0)}function ds(e){var t=Jn(e);if(Tf(t))return e}function _g(e,t){if(e==="change")return t}var ap=!1;if(_t){var Qs;if(_t){var Gs="oninput"in document;if(!Gs){var Tc=document.createElement("div");Tc.setAttribute("oninput","return;"),Gs=typeof Tc.oninput=="function"}Qs=Gs}else Qs=!1;ap=Qs&&(!document.documentMode||9<document.documentMode)}function _c(){Zr&&(Zr.detachEvent("onpropertychange",up),ho=Zr=null)}function up(e){if(e.propertyName==="value"&&ds(ho)){var t=[];lp(t,ho,e,Xa(e)),Uf(Tg,t)}}function Lg(e,t,n){e==="focusin"?(_c(),Zr=t,ho=n,Zr.attachEvent("onpropertychange",up)):e==="focusout"&&_c()}function Ig(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ds(ho)}function Og(e,t){if(e==="click")return ds(t)}function Ag(e,t){if(e==="input"||e==="change")return ds(t)}function Dg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:Dg;function mo(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!El.call(t,o)||!yt(e[o],t[o]))return!1}return!0}function Lc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ic(e,t){var n=Lc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Lc(n)}}function cp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dp(){for(var e=window,t=_i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_i(e.document)}return t}function lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Mg(e){var t=dp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cp(n.ownerDocument.documentElement,n)){if(r!==null&&lu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ic(n,i);var s=Ic(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zg=_t&&"documentMode"in document&&11>=document.documentMode,Hn=null,Hl=null,eo=null,Wl=!1;function Oc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wl||Hn==null||Hn!==_i(r)||(r=Hn,"selectionStart"in r&&lu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),eo&&mo(eo,r)||(eo=r,r=zi(Hl,"onSelect"),0<r.length&&(t=new ou("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hn)))}function qo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:qo("Animation","AnimationEnd"),animationiteration:qo("Animation","AnimationIteration"),animationstart:qo("Animation","AnimationStart"),transitionend:qo("Transition","TransitionEnd")},qs={},fp={};_t&&(fp=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function fs(e){if(qs[e])return qs[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fp)return qs[e]=t[n];return e}var pp=fs("animationend"),hp=fs("animationiteration"),mp=fs("animationstart"),yp=fs("transitionend"),vp=new Map,Ac="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function an(e,t){vp.set(e,t),Ln(t,[e])}for(var Ys=0;Ys<Ac.length;Ys++){var Xs=Ac[Ys],Fg=Xs.toLowerCase(),Bg=Xs[0].toUpperCase()+Xs.slice(1);an(Fg,"on"+Bg)}an(pp,"onAnimationEnd");an(hp,"onAnimationIteration");an(mp,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(yp,"onTransitionEnd");dr("onMouseEnter",["mouseout","mouseover"]);dr("onMouseLeave",["mouseout","mouseover"]);dr("onPointerEnter",["pointerout","pointerover"]);dr("onPointerLeave",["pointerout","pointerover"]);Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ug=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function Dc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Fv(r,t,void 0,e),e.currentTarget=null}function gp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;Dc(o,l,c),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,c=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;Dc(o,l,c),i=a}}}if(Ii)throw e=Fl,Ii=!1,Fl=null,e}function te(e,t){var n=t[ql];n===void 0&&(n=t[ql]=new Set);var r=e+"__bubble";n.has(r)||(xp(t,e,2,!1),n.add(r))}function Zs(e,t,n){var r=0;t&&(r|=4),xp(n,e,r,t)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function yo(e){if(!e[Yo]){e[Yo]=!0,bf.forEach(function(n){n!=="selectionchange"&&(Ug.has(n)||Zs(n,!1,e),Zs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yo]||(t[Yo]=!0,Zs("selectionchange",!1,t))}}function xp(e,t,n,r){switch(np(t)){case 1:var o=ng;break;case 4:o=rg;break;default:o=nu}n=o.bind(null,t,n,e),o=void 0,!zl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function el(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=vn(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}Uf(function(){var c=i,d=Xa(n),f=[];e:{var p=vp.get(e);if(p!==void 0){var g=ou,y=e;switch(e){case"keypress":if(mi(n)===0)break e;case"keydown":case"keyup":g=gg;break;case"focusin":y="focus",g=Ks;break;case"focusout":y="blur",g=Ks;break;case"beforeblur":case"afterblur":g=Ks;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=sg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Sg;break;case pp:case hp:case mp:g=ug;break;case yp:g=Cg;break;case"scroll":g=og;break;case"wheel":g=Eg;break;case"copy":case"cut":case"paste":g=dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Nc}var x=(t&4)!==0,k=!x&&e==="scroll",m=x?p!==null?p+"Capture":null:p;x=[];for(var h=c,v;h!==null;){v=h;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,m!==null&&(S=uo(h,m),S!=null&&x.push(vo(h,S,v)))),k)break;h=h.return}0<x.length&&(p=new g(p,y,null,n,d),f.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==Dl&&(y=n.relatedTarget||n.fromElement)&&(vn(y)||y[Lt]))break e;if((g||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=c,y=y?vn(y):null,y!==null&&(k=In(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=c),g!==y)){if(x=Ec,S="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(x=Nc,S="onPointerLeave",m="onPointerEnter",h="pointer"),k=g==null?p:Jn(g),v=y==null?p:Jn(y),p=new x(S,h+"leave",g,n,d),p.target=k,p.relatedTarget=v,S=null,vn(d)===c&&(x=new x(m,h+"enter",y,n,d),x.target=v,x.relatedTarget=k,S=x),k=S,g&&y)t:{for(x=g,m=y,h=0,v=x;v;v=An(v))h++;for(v=0,S=m;S;S=An(S))v++;for(;0<h-v;)x=An(x),h--;for(;0<v-h;)m=An(m),v--;for(;h--;){if(x===m||m!==null&&x===m.alternate)break t;x=An(x),m=An(m)}x=null}else x=null;g!==null&&Mc(f,p,g,x,!1),y!==null&&k!==null&&Mc(f,k,y,x,!0)}}e:{if(p=c?Jn(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var j=_g;else if(Pc(p))if(ap)j=Ag;else{j=Ig;var N=Lg}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(j=Og);if(j&&(j=j(e,c))){lp(f,j,n,d);break e}N&&N(e,p,c),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&_l(p,"number",p.value)}switch(N=c?Jn(c):window,e){case"focusin":(Pc(N)||N.contentEditable==="true")&&(Hn=N,Hl=c,eo=null);break;case"focusout":eo=Hl=Hn=null;break;case"mousedown":Wl=!0;break;case"contextmenu":case"mouseup":case"dragend":Wl=!1,Oc(f,n,d);break;case"selectionchange":if(zg)break;case"keydown":case"keyup":Oc(f,n,d)}var $;if(su)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Vn?ip(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(op&&n.locale!=="ko"&&(Vn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Vn&&($=rp()):(Kt=d,ru="value"in Kt?Kt.value:Kt.textContent,Vn=!0)),N=zi(c,P),0<N.length&&(P=new bc(P,e,null,n,d),f.push({event:P,listeners:N}),$?P.data=$:($=sp(n),$!==null&&(P.data=$)))),($=Ng?$g(e,n):Rg(e,n))&&(c=zi(c,"onBeforeInput"),0<c.length&&(d=new bc("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=$))}gp(f,t)})}function vo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=uo(e,n),i!=null&&r.unshift(vo(e,i,o)),i=uo(e,t),i!=null&&r.push(vo(e,i,o))),e=e.return}return r}function An(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mc(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,o?(a=uo(n,i),a!=null&&s.unshift(vo(n,a,l))):o||(a=uo(n,i),a!=null&&s.push(vo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Vg=/\r\n?/g,Hg=/\u0000|\uFFFD/g;function zc(e){return(typeof e=="string"?e:""+e).replace(Vg,`
|
|
30
|
+
`).replace(Hg,"")}function Xo(e,t,n){if(t=zc(t),zc(e)!==t&&n)throw Error(R(425))}function Fi(){}var Jl=null,Kl=null;function Ql(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gl=typeof setTimeout=="function"?setTimeout:void 0,Wg=typeof clearTimeout=="function"?clearTimeout:void 0,Fc=typeof Promise=="function"?Promise:void 0,Jg=typeof queueMicrotask=="function"?queueMicrotask:typeof Fc<"u"?function(e){return Fc.resolve(null).then(e).catch(Kg)}:Gl;function Kg(e){setTimeout(function(){throw e})}function tl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),po(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);po(t)}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Bc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var br=Math.random().toString(36).slice(2),kt="__reactFiber$"+br,go="__reactProps$"+br,Lt="__reactContainer$"+br,ql="__reactEvents$"+br,Qg="__reactListeners$"+br,Gg="__reactHandles$"+br;function vn(e){var t=e[kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lt]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bc(e);e!==null;){if(n=e[kt])return n;e=Bc(e)}return t}e=n,n=e.parentNode}return null}function _o(e){return e=e[kt]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ps(e){return e[go]||null}var Yl=[],Kn=-1;function un(e){return{current:e}}function re(e){0>Kn||(e.current=Yl[Kn],Yl[Kn]=null,Kn--)}function Z(e,t){Kn++,Yl[Kn]=e.current,e.current=t}var sn={},be=un(sn),Oe=un(!1),bn=sn;function fr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ae(e){return e=e.childContextTypes,e!=null}function Bi(){re(Oe),re(be)}function Uc(e,t,n){if(be.current!==sn)throw Error(R(168));Z(be,t),Z(Oe,n)}function wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Lv(e)||"Unknown",o));return le({},n,r)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,bn=be.current,Z(be,e),Z(Oe,Oe.current),!0}function Vc(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=wp(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,re(Oe),re(be),Z(be,e)):re(Oe),Z(Oe,n)}var $t=null,hs=!1,nl=!1;function Sp(e){$t===null?$t=[e]:$t.push(e)}function qg(e){hs=!0,Sp(e)}function cn(){if(!nl&&$t!==null){nl=!0;var e=0,t=K;try{var n=$t;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,hs=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),Jf(Za,cn),o}finally{K=t,nl=!1}}return null}var Qn=[],Gn=0,Vi=null,Hi=0,Ye=[],Xe=0,Nn=null,Rt=1,Pt="";function mn(e,t){Qn[Gn++]=Hi,Qn[Gn++]=Vi,Vi=e,Hi=t}function kp(e,t,n){Ye[Xe++]=Rt,Ye[Xe++]=Pt,Ye[Xe++]=Nn,Nn=e;var r=Rt;e=Pt;var o=32-pt(r)-1;r&=~(1<<o),n+=1;var i=32-pt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Rt=1<<32-pt(t)+o|n<<o|r,Pt=i+e}else Rt=1<<i|n<<o|r,Pt=e}function au(e){e.return!==null&&(mn(e,1),kp(e,1,0))}function uu(e){for(;e===Vi;)Vi=Qn[--Gn],Qn[Gn]=null,Hi=Qn[--Gn],Qn[Gn]=null;for(;e===Nn;)Nn=Ye[--Xe],Ye[Xe]=null,Pt=Ye[--Xe],Ye[Xe]=null,Rt=Ye[--Xe],Ye[Xe]=null}var We=null,He=null,oe=!1,ft=null;function Cp(e,t){var n=tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Hc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,We=e,He=Xt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,We=e,He=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nn!==null?{id:Rt,overflow:Pt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,We=e,He=null,!0):!1;default:return!1}}function Xl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zl(e){if(oe){var t=He;if(t){var n=t;if(!Hc(e,t)){if(Xl(e))throw Error(R(418));t=Xt(n.nextSibling);var r=We;t&&Hc(e,t)?Cp(r,n):(e.flags=e.flags&-4097|2,oe=!1,We=e)}}else{if(Xl(e))throw Error(R(418));e.flags=e.flags&-4097|2,oe=!1,We=e}}}function Wc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;We=e}function Zo(e){if(e!==We)return!1;if(!oe)return Wc(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ql(e.type,e.memoizedProps)),t&&(t=He)){if(Xl(e))throw jp(),Error(R(418));for(;t;)Cp(e,t),t=Xt(t.nextSibling)}if(Wc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){He=Xt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}He=null}}else He=We?Xt(e.stateNode.nextSibling):null;return!0}function jp(){for(var e=He;e;)e=Xt(e.nextSibling)}function pr(){He=We=null,oe=!1}function cu(e){ft===null?ft=[e]:ft.push(e)}var Yg=At.ReactCurrentBatchConfig;function Dr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function ei(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jc(e){var t=e._init;return t(e._payload)}function Ep(e){function t(m,h){if(e){var v=m.deletions;v===null?(m.deletions=[h],m.flags|=16):v.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function o(m,h){return m=nn(m,h),m.index=0,m.sibling=null,m}function i(m,h,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<h?(m.flags|=2,h):v):(m.flags|=2,h)):(m.flags|=1048576,h)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,h,v,S){return h===null||h.tag!==6?(h=ul(v,m.mode,S),h.return=m,h):(h=o(h,v),h.return=m,h)}function a(m,h,v,S){var j=v.type;return j===Un?d(m,h,v.props.children,S,v.key):h!==null&&(h.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vt&&Jc(j)===h.type)?(S=o(h,v.props),S.ref=Dr(m,h,v),S.return=m,S):(S=ki(v.type,v.key,v.props,null,m.mode,S),S.ref=Dr(m,h,v),S.return=m,S)}function c(m,h,v,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==v.containerInfo||h.stateNode.implementation!==v.implementation?(h=cl(v,m.mode,S),h.return=m,h):(h=o(h,v.children||[]),h.return=m,h)}function d(m,h,v,S,j){return h===null||h.tag!==7?(h=Cn(v,m.mode,S,j),h.return=m,h):(h=o(h,v),h.return=m,h)}function f(m,h,v){if(typeof h=="string"&&h!==""||typeof h=="number")return h=ul(""+h,m.mode,v),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Vo:return v=ki(h.type,h.key,h.props,null,m.mode,v),v.ref=Dr(m,null,h),v.return=m,v;case Bn:return h=cl(h,m.mode,v),h.return=m,h;case Vt:var S=h._init;return f(m,S(h._payload),v)}if(Jr(h)||_r(h))return h=Cn(h,m.mode,v,null),h.return=m,h;ei(m,h)}return null}function p(m,h,v,S){var j=h!==null?h.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return j!==null?null:l(m,h,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Vo:return v.key===j?a(m,h,v,S):null;case Bn:return v.key===j?c(m,h,v,S):null;case Vt:return j=v._init,p(m,h,j(v._payload),S)}if(Jr(v)||_r(v))return j!==null?null:d(m,h,v,S,null);ei(m,v)}return null}function g(m,h,v,S,j){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(v)||null,l(h,m,""+S,j);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Vo:return m=m.get(S.key===null?v:S.key)||null,a(h,m,S,j);case Bn:return m=m.get(S.key===null?v:S.key)||null,c(h,m,S,j);case Vt:var N=S._init;return g(m,h,v,N(S._payload),j)}if(Jr(S)||_r(S))return m=m.get(v)||null,d(h,m,S,j,null);ei(h,S)}return null}function y(m,h,v,S){for(var j=null,N=null,$=h,P=h=0,A=null;$!==null&&P<v.length;P++){$.index>P?(A=$,$=null):A=$.sibling;var I=p(m,$,v[P],S);if(I===null){$===null&&($=A);break}e&&$&&I.alternate===null&&t(m,$),h=i(I,h,P),N===null?j=I:N.sibling=I,N=I,$=A}if(P===v.length)return n(m,$),oe&&mn(m,P),j;if($===null){for(;P<v.length;P++)$=f(m,v[P],S),$!==null&&(h=i($,h,P),N===null?j=$:N.sibling=$,N=$);return oe&&mn(m,P),j}for($=r(m,$);P<v.length;P++)A=g($,m,P,v[P],S),A!==null&&(e&&A.alternate!==null&&$.delete(A.key===null?P:A.key),h=i(A,h,P),N===null?j=A:N.sibling=A,N=A);return e&&$.forEach(function(W){return t(m,W)}),oe&&mn(m,P),j}function x(m,h,v,S){var j=_r(v);if(typeof j!="function")throw Error(R(150));if(v=j.call(v),v==null)throw Error(R(151));for(var N=j=null,$=h,P=h=0,A=null,I=v.next();$!==null&&!I.done;P++,I=v.next()){$.index>P?(A=$,$=null):A=$.sibling;var W=p(m,$,I.value,S);if(W===null){$===null&&($=A);break}e&&$&&W.alternate===null&&t(m,$),h=i(W,h,P),N===null?j=W:N.sibling=W,N=W,$=A}if(I.done)return n(m,$),oe&&mn(m,P),j;if($===null){for(;!I.done;P++,I=v.next())I=f(m,I.value,S),I!==null&&(h=i(I,h,P),N===null?j=I:N.sibling=I,N=I);return oe&&mn(m,P),j}for($=r(m,$);!I.done;P++,I=v.next())I=g($,m,P,I.value,S),I!==null&&(e&&I.alternate!==null&&$.delete(I.key===null?P:I.key),h=i(I,h,P),N===null?j=I:N.sibling=I,N=I);return e&&$.forEach(function(F){return t(m,F)}),oe&&mn(m,P),j}function k(m,h,v,S){if(typeof v=="object"&&v!==null&&v.type===Un&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Vo:e:{for(var j=v.key,N=h;N!==null;){if(N.key===j){if(j=v.type,j===Un){if(N.tag===7){n(m,N.sibling),h=o(N,v.props.children),h.return=m,m=h;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vt&&Jc(j)===N.type){n(m,N.sibling),h=o(N,v.props),h.ref=Dr(m,N,v),h.return=m,m=h;break e}n(m,N);break}else t(m,N);N=N.sibling}v.type===Un?(h=Cn(v.props.children,m.mode,S,v.key),h.return=m,m=h):(S=ki(v.type,v.key,v.props,null,m.mode,S),S.ref=Dr(m,h,v),S.return=m,m=S)}return s(m);case Bn:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=cl(v,m.mode,S),h.return=m,m=h}return s(m);case Vt:return N=v._init,k(m,h,N(v._payload),S)}if(Jr(v))return y(m,h,v,S);if(_r(v))return x(m,h,v,S);ei(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=ul(v,m.mode,S),h.return=m,m=h),s(m)):n(m,h)}return k}var hr=Ep(!0),bp=Ep(!1),Wi=un(null),Ji=null,qn=null,du=null;function fu(){du=qn=Ji=null}function pu(e){var t=Wi.current;re(Wi),e._currentValue=t}function ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function or(e,t){Ji=e,du=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ie=!0),e.firstContext=null)}function rt(e){var t=e._currentValue;if(du!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Ji===null)throw Error(R(308));qn=e,Ji.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var gn=null;function hu(e){gn===null?gn=[e]:gn.push(e)}function Np(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,hu(t)):(n.next=o.next,o.next=n),t.interleaved=n,It(e,r)}function It(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ht=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,It(e,n)}return o=r.interleaved,o===null?(t.next=t,hu(r)):(t.next=o.next,o.next=t),r.interleaved=t,It(e,n)}function yi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}function Kc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ki(e,t,n,r){var o=e.updateQueue;Ht=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?i=c:s.next=c,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,d=c=a=null,l=i;do{var p=l.lane,g=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(p=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(g,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,p=typeof y=="function"?y.call(g,f,p):y,p==null)break e;f=le({},f,p);break e;case 2:Ht=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else g={eventTime:g,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,a=f):d=d.next=g,s|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(a=f),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Rn|=s,e.lanes=s,e.memoizedState=f}}function Qc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var Lo={},jt=un(Lo),xo=un(Lo),wo=un(Lo);function xn(e){if(e===Lo)throw Error(R(174));return e}function yu(e,t){switch(Z(wo,t),Z(xo,e),Z(jt,Lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Il(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Il(t,e)}re(jt),Z(jt,t)}function mr(){re(jt),re(xo),re(wo)}function Rp(e){xn(wo.current);var t=xn(jt.current),n=Il(t,e.type);t!==n&&(Z(xo,e),Z(jt,n))}function vu(e){xo.current===e&&(re(jt),re(xo))}var ie=un(0);function Qi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rl=[];function gu(){for(var e=0;e<rl.length;e++)rl[e]._workInProgressVersionPrimary=null;rl.length=0}var vi=At.ReactCurrentDispatcher,ol=At.ReactCurrentBatchConfig,$n=0,se=null,he=null,ye=null,Gi=!1,to=!1,So=0,Xg=0;function Ce(){throw Error(R(321))}function xu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yt(e[n],t[n]))return!1;return!0}function wu(e,t,n,r,o,i){if($n=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vi.current=e===null||e.memoizedState===null?n0:r0,e=n(r,o),to){i=0;do{if(to=!1,So=0,25<=i)throw Error(R(301));i+=1,ye=he=null,t.updateQueue=null,vi.current=o0,e=n(r,o)}while(to)}if(vi.current=qi,t=he!==null&&he.next!==null,$n=0,ye=he=se=null,Gi=!1,t)throw Error(R(300));return e}function Su(){var e=So!==0;return So=0,e}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ye===null?se.memoizedState=ye=e:ye=ye.next=e,ye}function ot(){if(he===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=ye===null?se.memoizedState:ye.next;if(t!==null)ye=t,he=e;else{if(e===null)throw Error(R(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},ye===null?se.memoizedState=ye=e:ye=ye.next=e}return ye}function ko(e,t){return typeof t=="function"?t(e):t}function il(e){var t=ot(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=he,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,c=i;do{var d=c.lane;if(($n&d)===d)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=f,s=r):a=a.next=f,se.lanes|=d,Rn|=d}c=c.next}while(c!==null&&c!==i);a===null?s=r:a.next=l,yt(r,t.memoizedState)||(Ie=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,se.lanes|=i,Rn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function sl(e){var t=ot(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);yt(i,t.memoizedState)||(Ie=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Pp(){}function Tp(e,t){var n=se,r=ot(),o=t(),i=!yt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ie=!0),r=r.queue,ku(Ip.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ye!==null&&ye.memoizedState.tag&1){if(n.flags|=2048,Co(9,Lp.bind(null,n,r,o,t),void 0,null),xe===null)throw Error(R(349));$n&30||_p(n,t,o)}return o}function _p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lp(e,t,n,r){t.value=n,t.getSnapshot=r,Op(t)&&Ap(e)}function Ip(e,t,n){return n(function(){Op(t)&&Ap(e)})}function Op(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yt(e,n)}catch{return!0}}function Ap(e){var t=It(e,1);t!==null&&ht(t,e,1,-1)}function Gc(e){var t=wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t.queue=e,e=e.dispatch=t0.bind(null,se,e),[t.memoizedState,e]}function Co(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Dp(){return ot().memoizedState}function gi(e,t,n,r){var o=wt();se.flags|=e,o.memoizedState=Co(1|t,n,void 0,r===void 0?null:r)}function ms(e,t,n,r){var o=ot();r=r===void 0?null:r;var i=void 0;if(he!==null){var s=he.memoizedState;if(i=s.destroy,r!==null&&xu(r,s.deps)){o.memoizedState=Co(t,n,i,r);return}}se.flags|=e,o.memoizedState=Co(1|t,n,i,r)}function qc(e,t){return gi(8390656,8,e,t)}function ku(e,t){return ms(2048,8,e,t)}function Mp(e,t){return ms(4,2,e,t)}function zp(e,t){return ms(4,4,e,t)}function Fp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bp(e,t,n){return n=n!=null?n.concat([e]):null,ms(4,4,Fp.bind(null,t,e),n)}function Cu(){}function Up(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vp(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hp(e,t,n){return $n&21?(yt(n,t)||(n=Gf(),se.lanes|=n,Rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ie=!0),e.memoizedState=n)}function Zg(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=ol.transition;ol.transition={};try{e(!1),t()}finally{K=n,ol.transition=r}}function Wp(){return ot().memoizedState}function e0(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jp(e))Kp(t,n);else if(n=Np(e,t,n,r),n!==null){var o=$e();ht(n,e,r,o),Qp(n,t,r)}}function t0(e,t,n){var r=tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jp(e))Kp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,yt(l,s)){var a=t.interleaved;a===null?(o.next=o,hu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Np(e,t,o,r),n!==null&&(o=$e(),ht(n,e,r,o),Qp(n,t,r))}}function Jp(e){var t=e.alternate;return e===se||t!==null&&t===se}function Kp(e,t){to=Gi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}var qi={readContext:rt,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},n0={readContext:rt,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,Fp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=e0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:Gc,useDebugValue:Cu,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=Gc(!1),t=e[0];return e=Zg.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,o=wt();if(oe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),xe===null)throw Error(R(349));$n&30||_p(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qc(Ip.bind(null,r,i,e),[e]),r.flags|=2048,Co(9,Lp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wt(),t=xe.identifierPrefix;if(oe){var n=Pt,r=Rt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=So++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Xg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},r0={readContext:rt,useCallback:Up,useContext:rt,useEffect:ku,useImperativeHandle:Bp,useInsertionEffect:Mp,useLayoutEffect:zp,useMemo:Vp,useReducer:il,useRef:Dp,useState:function(){return il(ko)},useDebugValue:Cu,useDeferredValue:function(e){var t=ot();return Hp(t,he.memoizedState,e)},useTransition:function(){var e=il(ko)[0],t=ot().memoizedState;return[e,t]},useMutableSource:Pp,useSyncExternalStore:Tp,useId:Wp,unstable_isNewReconciler:!1},o0={readContext:rt,useCallback:Up,useContext:rt,useEffect:ku,useImperativeHandle:Bp,useInsertionEffect:Mp,useLayoutEffect:zp,useMemo:Vp,useReducer:sl,useRef:Dp,useState:function(){return sl(ko)},useDebugValue:Cu,useDeferredValue:function(e){var t=ot();return he===null?t.memoizedState=e:Hp(t,he.memoizedState,e)},useTransition:function(){var e=sl(ko)[0],t=ot().memoizedState;return[e,t]},useMutableSource:Pp,useSyncExternalStore:Tp,useId:Wp,unstable_isNewReconciler:!1};function ct(e,t){if(e&&e.defaultProps){t=le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ta(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ys={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$e(),o=tn(e),i=Tt(r,o);i.payload=t,n!=null&&(i.callback=n),t=Zt(e,i,o),t!==null&&(ht(t,e,o,r),yi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$e(),o=tn(e),i=Tt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zt(e,i,o),t!==null&&(ht(t,e,o,r),yi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$e(),r=tn(e),o=Tt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zt(e,o,r),t!==null&&(ht(t,e,r,n),yi(t,e,r))}};function Yc(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!mo(n,r)||!mo(o,i):!0}function Gp(e,t,n){var r=!1,o=sn,i=t.contextType;return typeof i=="object"&&i!==null?i=rt(i):(o=Ae(t)?bn:be.current,r=t.contextTypes,i=(r=r!=null)?fr(e,o):sn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function na(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},mu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=rt(i):(i=Ae(t)?bn:be.current,o.context=fr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ta(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ys.enqueueReplaceState(o,o.state,null),Ki(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function yr(e,t){try{var n="",r=t;do n+=_v(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
+
Error generating stack: `+i.message+`
|
|
32
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ll(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ra(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var i0=typeof WeakMap=="function"?WeakMap:Map;function qp(e,t,n){n=Tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xi||(Xi=!0,pa=r),ra(e,t)},n}function Yp(e,t,n){n=Tt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ra(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ra(e,t),typeof r!="function"&&(en===null?en=new Set([this]):en.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Zc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new i0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=x0.bind(null,e,t,n),t.then(e,e))}function ed(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function td(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tt(-1,1),t.tag=2,Zt(n,t,1))),n.lanes|=1),e)}var s0=At.ReactCurrentOwner,Ie=!1;function Ne(e,t,n,r){t.child=e===null?bp(t,null,n,r):hr(t,e.child,n,r)}function nd(e,t,n,r,o){n=n.render;var i=t.ref;return or(t,o),r=wu(e,t,n,r,i,o),n=Su(),e!==null&&!Ie?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ot(e,t,o)):(oe&&n&&au(t),t.flags|=1,Ne(e,t,r,o),t.child)}function rd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Tu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Xp(e,t,i,r,o)):(e=ki(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:mo,n(s,r)&&e.ref===t.ref)return Ot(e,t,o)}return t.flags|=1,e=nn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Xp(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(mo(i,r)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ie=!0);else return t.lanes=e.lanes,Ot(e,t,o)}return oa(e,t,n,r,o)}function Zp(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Xn,Ve),Ve|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Z(Xn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Z(Xn,Ve),Ve|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Z(Xn,Ve),Ve|=r;return Ne(e,t,o,n),t.child}function eh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oa(e,t,n,r,o){var i=Ae(n)?bn:be.current;return i=fr(t,i),or(t,o),n=wu(e,t,n,r,i,o),r=Su(),e!==null&&!Ie?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ot(e,t,o)):(oe&&r&&au(t),t.flags|=1,Ne(e,t,n,o),t.child)}function od(e,t,n,r,o){if(Ae(n)){var i=!0;Ui(t)}else i=!1;if(or(t,o),t.stateNode===null)xi(e,t),Gp(t,n,r),na(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=rt(c):(c=Ae(n)?bn:be.current,c=fr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==c)&&Xc(t,s,r,c),Ht=!1;var p=t.memoizedState;s.state=p,Ki(t,r,s,o),a=t.memoizedState,l!==r||p!==a||Oe.current||Ht?(typeof d=="function"&&(ta(t,n,d,r),a=t.memoizedState),(l=Ht||Yc(t,n,l,r,p,a,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,$p(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ct(t.type,l),s.props=c,f=t.pendingProps,p=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=rt(a):(a=Ae(n)?bn:be.current,a=fr(t,a));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||p!==a)&&Xc(t,s,r,a),Ht=!1,p=t.memoizedState,s.state=p,Ki(t,r,s,o);var y=t.memoizedState;l!==f||p!==y||Oe.current||Ht?(typeof g=="function"&&(ta(t,n,g,r),y=t.memoizedState),(c=Ht||Yc(t,n,c,r,p,y,a)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ia(e,t,n,r,i,o)}function ia(e,t,n,r,o,i){eh(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Vc(t,n,!1),Ot(e,t,i);r=t.stateNode,s0.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=hr(t,e.child,null,i),t.child=hr(t,null,l,i)):Ne(e,t,l,i),t.memoizedState=r.state,o&&Vc(t,n,!0),t.child}function th(e){var t=e.stateNode;t.pendingContext?Uc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uc(e,t.context,!1),yu(e,t.containerInfo)}function id(e,t,n,r,o){return pr(),cu(o),t.flags|=256,Ne(e,t,n,r),t.child}var sa={dehydrated:null,treeContext:null,retryLane:0};function la(e){return{baseLanes:e,cachePool:null,transitions:null}}function nh(e,t,n){var r=t.pendingProps,o=ie.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Z(ie,o&1),e===null)return Zl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=xs(s,r,0,null),e=Cn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=la(n),t.memoizedState=sa,e):ju(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return l0(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=nn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=nn(l,i):(i=Cn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?la(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=sa,r}return i=e.child,e=i.sibling,r=nn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ju(e,t){return t=xs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ti(e,t,n,r){return r!==null&&cu(r),hr(t,e.child,null,n),e=ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function l0(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=ll(Error(R(422))),ti(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=xs({mode:"visible",children:r.children},o,0,null),i=Cn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&hr(t,e.child,null,s),t.child.memoizedState=la(s),t.memoizedState=sa,i);if(!(t.mode&1))return ti(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(R(419)),r=ll(i,r,void 0),ti(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ie||l){if(r=xe,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,It(e,o),ht(r,e,o,-1))}return Pu(),r=ll(Error(R(421))),ti(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=w0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,He=Xt(o.nextSibling),We=t,oe=!0,ft=null,e!==null&&(Ye[Xe++]=Rt,Ye[Xe++]=Pt,Ye[Xe++]=Nn,Rt=e.id,Pt=e.overflow,Nn=t),t=ju(t,r.children),t.flags|=4096,t)}function sd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ea(e.return,t,n)}function al(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function rh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ne(e,t,r.children,n),r=ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sd(e,n,t);else if(e.tag===19)sd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Z(ie,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Qi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),al(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Qi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}al(t,!0,n,null,i);break;case"together":al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function a0(e,t,n){switch(t.tag){case 3:th(t),pr();break;case 5:Rp(t);break;case 1:Ae(t.type)&&Ui(t);break;case 4:yu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Z(Wi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?nh(e,t,n):(Z(ie,ie.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);Z(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return rh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,Zp(e,t,n)}return Ot(e,t,n)}var oh,aa,ih,sh;oh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};aa=function(){};ih=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xn(jt.current);var i=null;switch(n){case"input":o=Pl(e,o),r=Pl(e,r),i=[];break;case"select":o=le({},o,{value:void 0}),r=le({},r,{value:void 0}),i=[];break;case"textarea":o=Ll(e,o),r=Ll(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fi)}Ol(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(lo.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(lo.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&te("scroll",e),i||l===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};sh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mr(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function u0(e,t,n){var r=t.pendingProps;switch(uu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return Ae(t.type)&&Bi(),je(t),null;case 3:return r=t.stateNode,mr(),re(Oe),re(be),gu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Zo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ft!==null&&(ya(ft),ft=null))),aa(e,t),je(t),null;case 5:vu(t);var o=xn(wo.current);if(n=t.type,e!==null&&t.stateNode!=null)ih(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return je(t),null}if(e=xn(jt.current),Zo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[kt]=t,r[go]=i,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(o=0;o<Qr.length;o++)te(Qr[o],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":mc(r,i),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},te("invalid",r);break;case"textarea":vc(r,i),te("invalid",r)}Ol(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Xo(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Xo(r.textContent,l,e),o=["children",""+l]):lo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&te("scroll",r)}switch(n){case"input":Ho(r),yc(r,i,!0);break;case"textarea":Ho(r),gc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Fi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=If(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[kt]=t,e[go]=r,oh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Al(n,r),n){case"dialog":te("cancel",e),te("close",e),o=r;break;case"iframe":case"object":case"embed":te("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qr.length;o++)te(Qr[o],e);o=r;break;case"source":te("error",e),o=r;break;case"img":case"image":case"link":te("error",e),te("load",e),o=r;break;case"details":te("toggle",e),o=r;break;case"input":mc(e,r),o=Pl(e,r),te("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=le({},r,{value:void 0}),te("invalid",e);break;case"textarea":vc(e,r),o=Ll(e,r),te("invalid",e);break;default:o=r}Ol(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?Df(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Of(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ao(e,a):typeof a=="number"&&ao(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(lo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&te("scroll",e):a!=null&&Qa(e,i,a,s))}switch(n){case"input":Ho(e),yc(e,r,!1);break;case"textarea":Ho(e),gc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?er(e,!!r.multiple,i,!1):r.defaultValue!=null&&er(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Fi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)sh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=xn(wo.current),xn(jt.current),Zo(t)){if(r=t.stateNode,n=t.memoizedProps,r[kt]=t,(i=r.nodeValue!==n)&&(e=We,e!==null))switch(e.tag){case 3:Xo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[kt]=t,t.stateNode=r}return je(t),null;case 13:if(re(ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&He!==null&&t.mode&1&&!(t.flags&128))jp(),pr(),t.flags|=98560,i=!1;else if(i=Zo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[kt]=t}else pr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),i=!1}else ft!==null&&(ya(ft),ft=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?me===0&&(me=3):Pu())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return mr(),aa(e,t),e===null&&yo(t.stateNode.containerInfo),je(t),null;case 10:return pu(t.type._context),je(t),null;case 17:return Ae(t.type)&&Bi(),je(t),null;case 19:if(re(ie),i=t.memoizedState,i===null)return je(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Mr(i,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Qi(e),s!==null){for(t.flags|=128,Mr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Z(ie,ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&ce()>vr&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Qi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!oe)return je(t),null}else 2*ce()-i.renderingStartTime>vr&&n!==1073741824&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ce(),t.sibling=null,n=ie.current,Z(ie,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function c0(e,t){switch(uu(t),t.tag){case 1:return Ae(t.type)&&Bi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),re(Oe),re(be),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vu(t),null;case 13:if(re(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ie),null;case 4:return mr(),null;case 10:return pu(t.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var ni=!1,Ee=!1,d0=typeof WeakSet=="function"?WeakSet:Set,_=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function ua(e,t,n){try{n()}catch(r){ue(e,t,r)}}var ld=!1;function f0(e,t){if(Jl=Di,e=dp(),lu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===i&&++d===r&&(a=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kl={focusedElem:e,selectionRange:n},Di=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,k=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:ct(t.type,x),k);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){ue(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return y=ld,ld=!1,y}function no(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ua(t,n,i)}o=o.next}while(o!==r)}}function vs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ca(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lh(e){var t=e.alternate;t!==null&&(e.alternate=null,lh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[go],delete t[ql],delete t[Qg],delete t[Gg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ah(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ah(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function da(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fi));else if(r!==4&&(e=e.child,e!==null))for(da(e,t,n),e=e.sibling;e!==null;)da(e,t,n),e=e.sibling}function fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fa(e,t,n),e=e.sibling;e!==null;)fa(e,t,n),e=e.sibling}var we=null,dt=!1;function zt(e,t,n){for(n=n.child;n!==null;)uh(e,t,n),n=n.sibling}function uh(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(us,n)}catch{}switch(n.tag){case 5:Ee||Yn(n,t);case 6:var r=we,o=dt;we=null,zt(e,t,n),we=r,dt=o,we!==null&&(dt?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(dt?(e=we,n=n.stateNode,e.nodeType===8?tl(e.parentNode,n):e.nodeType===1&&tl(e,n),po(e)):tl(we,n.stateNode));break;case 4:r=we,o=dt,we=n.stateNode.containerInfo,dt=!0,zt(e,t,n),we=r,dt=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ua(n,t,s),o=o.next}while(o!==r)}zt(e,t,n);break;case 1:if(!Ee&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ue(n,t,l)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,zt(e,t,n),Ee=r):zt(e,t,n);break;default:zt(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new d0),t.forEach(function(r){var o=S0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:we=l.stateNode,dt=!1;break e;case 3:we=l.stateNode.containerInfo,dt=!0;break e;case 4:we=l.stateNode.containerInfo,dt=!0;break e}l=l.return}if(we===null)throw Error(R(160));uh(i,s,o),we=null,dt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){ue(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ch(t,e),t=t.sibling}function ch(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ut(t,e),xt(e),r&4){try{no(3,e,e.return),vs(3,e)}catch(x){ue(e,e.return,x)}try{no(5,e,e.return)}catch(x){ue(e,e.return,x)}}break;case 1:ut(t,e),xt(e),r&512&&n!==null&&Yn(n,n.return);break;case 5:if(ut(t,e),xt(e),r&512&&n!==null&&Yn(n,n.return),e.flags&32){var o=e.stateNode;try{ao(o,"")}catch(x){ue(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&_f(o,i),Al(l,s);var c=Al(l,i);for(s=0;s<a.length;s+=2){var d=a[s],f=a[s+1];d==="style"?Df(o,f):d==="dangerouslySetInnerHTML"?Of(o,f):d==="children"?ao(o,f):Qa(o,d,f,c)}switch(l){case"input":Tl(o,i);break;case"textarea":Lf(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?er(o,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?er(o,!!i.multiple,i.defaultValue,!0):er(o,!!i.multiple,i.multiple?[]:"",!1))}o[go]=i}catch(x){ue(e,e.return,x)}}break;case 6:if(ut(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(x){ue(e,e.return,x)}}break;case 3:if(ut(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{po(t.containerInfo)}catch(x){ue(e,e.return,x)}break;case 4:ut(t,e),xt(e);break;case 13:ut(t,e),xt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Nu=ce())),r&4&&ud(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ee=(c=Ee)||d,ut(t,e),Ee=c):ut(t,e),xt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(_=e,d=e.child;d!==null;){for(f=_=d;_!==null;){switch(p=_,g=p.child,p.tag){case 0:case 11:case 14:case 15:no(4,p,p.return);break;case 1:Yn(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){ue(r,n,x)}}break;case 5:Yn(p,p.return);break;case 22:if(p.memoizedState!==null){dd(f);continue}}g!==null?(g.return=p,_=g):dd(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Af("display",s))}catch(x){ue(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(x){ue(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ut(t,e),xt(e),r&4&&ud(e);break;case 21:break;default:ut(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ah(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ao(o,""),r.flags&=-33);var i=ad(e);fa(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=ad(e);da(e,l,s);break;default:throw Error(R(161))}}catch(a){ue(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function p0(e,t,n){_=e,dh(e)}function dh(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var o=_,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||ni;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Ee;l=ni;var c=Ee;if(ni=s,(Ee=a)&&!c)for(_=o;_!==null;)s=_,a=s.child,s.tag===22&&s.memoizedState!==null?fd(o):a!==null?(a.return=s,_=a):fd(o);for(;i!==null;)_=i,dh(i),i=i.sibling;_=o,ni=l,Ee=c}cd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,_=i):cd(e)}}function cd(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ee||vs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ee)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ct(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Qc(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Qc(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&po(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ee||t.flags&512&&ca(t)}catch(p){ue(t,t.return,p)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function dd(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function fd(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vs(4,t)}catch(a){ue(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){ue(t,o,a)}}var i=t.return;try{ca(t)}catch(a){ue(t,i,a)}break;case 5:var s=t.return;try{ca(t)}catch(a){ue(t,s,a)}}}catch(a){ue(t,t.return,a)}if(t===e){_=null;break}var l=t.sibling;if(l!==null){l.return=t.return,_=l;break}_=t.return}}var h0=Math.ceil,Yi=At.ReactCurrentDispatcher,Eu=At.ReactCurrentOwner,nt=At.ReactCurrentBatchConfig,H=0,xe=null,pe=null,Se=0,Ve=0,Xn=un(0),me=0,jo=null,Rn=0,gs=0,bu=0,ro=null,_e=null,Nu=0,vr=1/0,bt=null,Xi=!1,pa=null,en=null,ri=!1,Qt=null,Zi=0,oo=0,ha=null,wi=-1,Si=0;function $e(){return H&6?ce():wi!==-1?wi:wi=ce()}function tn(e){return e.mode&1?H&2&&Se!==0?Se&-Se:Yg.transition!==null?(Si===0&&(Si=Gf()),Si):(e=K,e!==0||(e=window.event,e=e===void 0?16:np(e.type)),e):1}function ht(e,t,n,r){if(50<oo)throw oo=0,ha=null,Error(R(185));Po(e,n,r),(!(H&2)||e!==xe)&&(e===xe&&(!(H&2)&&(gs|=n),me===4&&Jt(e,Se)),De(e,r),n===1&&H===0&&!(t.mode&1)&&(vr=ce()+500,hs&&cn()))}function De(e,t){var n=e.callbackNode;Yv(e,t);var r=Ai(e,e===xe?Se:0);if(r===0)n!==null&&Sc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Sc(n),t===1)e.tag===0?qg(pd.bind(null,e)):Sp(pd.bind(null,e)),Jg(function(){!(H&6)&&cn()}),n=null;else{switch(qf(r)){case 1:n=Za;break;case 4:n=Kf;break;case 16:n=Oi;break;case 536870912:n=Qf;break;default:n=Oi}n=xh(n,fh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function fh(e,t){if(wi=-1,Si=0,H&6)throw Error(R(327));var n=e.callbackNode;if(ir()&&e.callbackNode!==n)return null;var r=Ai(e,e===xe?Se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=es(e,r);else{t=r;var o=H;H|=2;var i=hh();(xe!==e||Se!==t)&&(bt=null,vr=ce()+500,kn(e,t));do try{v0();break}catch(l){ph(e,l)}while(!0);fu(),Yi.current=i,H=o,pe!==null?t=0:(xe=null,Se=0,t=me)}if(t!==0){if(t===2&&(o=Bl(e),o!==0&&(r=o,t=ma(e,o))),t===1)throw n=jo,kn(e,0),Jt(e,r),De(e,ce()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,!(r&30)&&!m0(o)&&(t=es(e,r),t===2&&(i=Bl(e),i!==0&&(r=i,t=ma(e,i))),t===1))throw n=jo,kn(e,0),Jt(e,r),De(e,ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:yn(e,_e,bt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Nu+500-ce(),10<t)){if(Ai(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){$e(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Gl(yn.bind(null,e,_e,bt),t);break}yn(e,_e,bt);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-pt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*h0(r/1960))-r,10<r){e.timeoutHandle=Gl(yn.bind(null,e,_e,bt),r);break}yn(e,_e,bt);break;case 5:yn(e,_e,bt);break;default:throw Error(R(329))}}}return De(e,ce()),e.callbackNode===n?fh.bind(null,e):null}function ma(e,t){var n=ro;return e.current.memoizedState.isDehydrated&&(kn(e,t).flags|=256),e=es(e,t),e!==2&&(t=_e,_e=n,t!==null&&ya(t)),e}function ya(e){_e===null?_e=e:_e.push.apply(_e,e)}function m0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!yt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~bu,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-pt(t),r=1<<n;e[n]=-1,t&=~r}}function pd(e){if(H&6)throw Error(R(327));ir();var t=Ai(e,0);if(!(t&1))return De(e,ce()),null;var n=es(e,t);if(e.tag!==0&&n===2){var r=Bl(e);r!==0&&(t=r,n=ma(e,r))}if(n===1)throw n=jo,kn(e,0),Jt(e,t),De(e,ce()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yn(e,_e,bt),De(e,ce()),null}function $u(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(vr=ce()+500,hs&&cn())}}function Pn(e){Qt!==null&&Qt.tag===0&&!(H&6)&&ir();var t=H;H|=1;var n=nt.transition,r=K;try{if(nt.transition=null,K=1,e)return e()}finally{K=r,nt.transition=n,H=t,!(H&6)&&cn()}}function Ru(){Ve=Xn.current,re(Xn)}function kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Wg(n)),pe!==null)for(n=pe.return;n!==null;){var r=n;switch(uu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Bi();break;case 3:mr(),re(Oe),re(be),gu();break;case 5:vu(r);break;case 4:mr();break;case 13:re(ie);break;case 19:re(ie);break;case 10:pu(r.type._context);break;case 22:case 23:Ru()}n=n.return}if(xe=e,pe=e=nn(e.current,null),Se=Ve=t,me=0,jo=null,bu=gs=Rn=0,_e=ro=null,gn!==null){for(t=0;t<gn.length;t++)if(n=gn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}gn=null}return e}function ph(e,t){do{var n=pe;try{if(fu(),vi.current=qi,Gi){for(var r=se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Gi=!1}if($n=0,ye=he=se=null,to=!1,So=0,Eu.current=null,n===null||n.return===null){me=1,jo=t,pe=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=Se,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=ed(s);if(g!==null){g.flags&=-257,td(g,s,l,i,t),g.mode&1&&Zc(i,c,t),t=g,a=c;var y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){Zc(i,c,t),Pu();break e}a=Error(R(426))}}else if(oe&&l.mode&1){var k=ed(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),td(k,s,l,i,t),cu(yr(a,l));break e}}i=a=yr(a,l),me!==4&&(me=2),ro===null?ro=[i]:ro.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=qp(i,a,t);Kc(i,m);break e;case 1:l=a;var h=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(en===null||!en.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=Yp(i,l,t);Kc(i,S);break e}}i=i.return}while(i!==null)}yh(n)}catch(j){t=j,pe===n&&n!==null&&(pe=n=n.return);continue}break}while(!0)}function hh(){var e=Yi.current;return Yi.current=qi,e===null?qi:e}function Pu(){(me===0||me===3||me===2)&&(me=4),xe===null||!(Rn&268435455)&&!(gs&268435455)||Jt(xe,Se)}function es(e,t){var n=H;H|=2;var r=hh();(xe!==e||Se!==t)&&(bt=null,kn(e,t));do try{y0();break}catch(o){ph(e,o)}while(!0);if(fu(),H=n,Yi.current=r,pe!==null)throw Error(R(261));return xe=null,Se=0,me}function y0(){for(;pe!==null;)mh(pe)}function v0(){for(;pe!==null&&!Uv();)mh(pe)}function mh(e){var t=gh(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?yh(e):pe=t,Eu.current=null}function yh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=c0(n,t),n!==null){n.flags&=32767,pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,pe=null;return}}else if(n=u0(n,t,Ve),n!==null){pe=n;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);me===0&&(me=5)}function yn(e,t,n){var r=K,o=nt.transition;try{nt.transition=null,K=1,g0(e,t,n,r)}finally{nt.transition=o,K=r}return null}function g0(e,t,n,r){do ir();while(Qt!==null);if(H&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Xv(e,i),e===xe&&(pe=xe=null,Se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ri||(ri=!0,xh(Oi,function(){return ir(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=nt.transition,nt.transition=null;var s=K;K=1;var l=H;H|=4,Eu.current=null,f0(e,n),ch(n,e),Mg(Kl),Di=!!Jl,Kl=Jl=null,e.current=n,p0(n),Vv(),H=l,K=s,nt.transition=i}else e.current=n;if(ri&&(ri=!1,Qt=e,Zi=o),i=e.pendingLanes,i===0&&(en=null),Jv(n.stateNode),De(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Xi)throw Xi=!1,e=pa,pa=null,e;return Zi&1&&e.tag!==0&&ir(),i=e.pendingLanes,i&1?e===ha?oo++:(oo=0,ha=e):oo=0,cn(),null}function ir(){if(Qt!==null){var e=qf(Zi),t=nt.transition,n=K;try{if(nt.transition=null,K=16>e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Zi=0,H&6)throw Error(R(331));var o=H;for(H|=4,_=e.current;_!==null;){var i=_,s=i.child;if(_.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(_=c;_!==null;){var d=_;switch(d.tag){case 0:case 11:case 15:no(8,d,i)}var f=d.child;if(f!==null)f.return=d,_=f;else for(;_!==null;){d=_;var p=d.sibling,g=d.return;if(lh(d),d===c){_=null;break}if(p!==null){p.return=g,_=p;break}_=g}}}var y=i.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var k=x.sibling;x.sibling=null,x=k}while(x!==null)}}_=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,_=s;else e:for(;_!==null;){if(i=_,i.flags&2048)switch(i.tag){case 0:case 11:case 15:no(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,_=m;break e}_=i.return}}var h=e.current;for(_=h;_!==null;){s=_;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,_=v;else e:for(s=h;_!==null;){if(l=_,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:vs(9,l)}}catch(j){ue(l,l.return,j)}if(l===s){_=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,_=S;break e}_=l.return}}if(H=o,cn(),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(us,e)}catch{}r=!0}return r}finally{K=n,nt.transition=t}}return!1}function hd(e,t,n){t=yr(n,t),t=qp(e,t,1),e=Zt(e,t,1),t=$e(),e!==null&&(Po(e,1,t),De(e,t))}function ue(e,t,n){if(e.tag===3)hd(e,e,n);else for(;t!==null;){if(t.tag===3){hd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(en===null||!en.has(r))){e=yr(n,e),e=Yp(t,e,1),t=Zt(t,e,1),e=$e(),t!==null&&(Po(t,1,e),De(t,e));break}}t=t.return}}function x0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=$e(),e.pingedLanes|=e.suspendedLanes&n,xe===e&&(Se&n)===n&&(me===4||me===3&&(Se&130023424)===Se&&500>ce()-Nu?kn(e,0):bu|=n),De(e,t)}function vh(e,t){t===0&&(e.mode&1?(t=Ko,Ko<<=1,!(Ko&130023424)&&(Ko=4194304)):t=1);var n=$e();e=It(e,t),e!==null&&(Po(e,t,n),De(e,n))}function w0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vh(e,n)}function S0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),vh(e,n)}var gh;gh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)Ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ie=!1,a0(e,t,n);Ie=!!(e.flags&131072)}else Ie=!1,oe&&t.flags&1048576&&kp(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xi(e,t),e=t.pendingProps;var o=fr(t,be.current);or(t,n),o=wu(null,t,r,e,o,n);var i=Su();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,Ui(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mu(t),o.updater=ys,t.stateNode=o,o._reactInternals=t,na(t,r,e,n),t=ia(null,t,r,!0,i,n)):(t.tag=0,oe&&i&&au(t),Ne(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=C0(r),e=ct(r,e),o){case 0:t=oa(null,t,r,e,n);break e;case 1:t=od(null,t,r,e,n);break e;case 11:t=nd(null,t,r,e,n);break e;case 14:t=rd(null,t,r,ct(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),oa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),od(e,t,r,o,n);case 3:e:{if(th(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,$p(e,t),Ki(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=yr(Error(R(423)),t),t=id(e,t,r,n,o);break e}else if(r!==o){o=yr(Error(R(424)),t),t=id(e,t,r,n,o);break e}else for(He=Xt(t.stateNode.containerInfo.firstChild),We=t,oe=!0,ft=null,n=bp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===o){t=Ot(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return Rp(t),e===null&&Zl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ql(r,o)?s=null:i!==null&&Ql(r,i)&&(t.flags|=32),eh(e,t),Ne(e,t,s,n),t.child;case 6:return e===null&&Zl(t),null;case 13:return nh(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),nd(e,t,r,o,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Z(Wi,r._currentValue),r._currentValue=s,i!==null)if(yt(i.value,s)){if(i.children===o.children&&!Oe.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Tt(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ea(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ea(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ne(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,or(t,n),o=rt(o),r=r(o),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,o=ct(r,t.pendingProps),o=ct(r.type,o),rd(e,t,r,o,n);case 15:return Xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ct(r,o),xi(e,t),t.tag=1,Ae(r)?(e=!0,Ui(t)):e=!1,or(t,n),Gp(t,r,o),na(t,r,o,n),ia(null,t,r,!0,e,n);case 19:return rh(e,t,n);case 22:return Zp(e,t,n)}throw Error(R(156,t.tag))};function xh(e,t){return Jf(e,t)}function k0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tt(e,t,n,r){return new k0(e,t,n,r)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C0(e){if(typeof e=="function")return Tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qa)return 11;if(e===Ya)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ki(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Tu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Un:return Cn(n.children,o,i,t);case Ga:s=8,o|=8;break;case bl:return e=tt(12,n,t,o|2),e.elementType=bl,e.lanes=i,e;case Nl:return e=tt(13,n,t,o),e.elementType=Nl,e.lanes=i,e;case $l:return e=tt(19,n,t,o),e.elementType=$l,e.lanes=i,e;case Rf:return xs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nf:s=10;break e;case $f:s=9;break e;case qa:s=11;break e;case Ya:s=14;break e;case Vt:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=tt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Cn(e,t,n,r){return e=tt(7,e,r,t),e.lanes=n,e}function xs(e,t,n,r){return e=tt(22,e,r,t),e.elementType=Rf,e.lanes=n,e.stateNode={isHidden:!1},e}function ul(e,t,n){return e=tt(6,e,null,t),e.lanes=n,e}function cl(e,t,n){return t=tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function j0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hs(0),this.expirationTimes=Hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _u(e,t,n,r,o,i,s,l,a){return e=new j0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(i),e}function E0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function wh(e){if(!e)return sn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ae(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Ae(n))return wp(e,n,t)}return t}function Sh(e,t,n,r,o,i,s,l,a){return e=_u(n,r,!0,e,o,i,s,l,a),e.context=wh(null),n=e.current,r=$e(),o=tn(n),i=Tt(r,o),i.callback=t??null,Zt(n,i,o),e.current.lanes=o,Po(e,o,r),De(e,r),e}function ws(e,t,n,r){var o=t.current,i=$e(),s=tn(o);return n=wh(n),t.context===null?t.context=n:t.pendingContext=n,t=Tt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zt(o,t,s),e!==null&&(ht(e,o,s,i),yi(e,o,s)),s}function ts(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function md(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lu(e,t){md(e,t),(e=e.alternate)&&md(e,t)}function b0(){return null}var kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Iu(e){this._internalRoot=e}Ss.prototype.render=Iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));ws(e,t,null,null)};Ss.prototype.unmount=Iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){ws(null,e,null,null)}),t[Lt]=null}};function Ss(e){this._internalRoot=e}Ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wt.length&&t!==0&&t<Wt[n].priority;n++);Wt.splice(n,0,e),n===0&&tp(e)}};function Ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yd(){}function N0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=ts(s);i.call(c)}}var s=Sh(t,r,e,0,null,!1,!1,"",yd);return e._reactRootContainer=s,e[Lt]=s.current,yo(e.nodeType===8?e.parentNode:e),Pn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var c=ts(a);l.call(c)}}var a=_u(e,0,!1,null,null,!1,!1,"",yd);return e._reactRootContainer=a,e[Lt]=a.current,yo(e.nodeType===8?e.parentNode:e),Pn(function(){ws(t,a,n,r)}),a}function Cs(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=ts(s);l.call(a)}}ws(t,s,e,o)}else s=N0(n,t,e,o,r);return ts(s)}Yf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kr(t.pendingLanes);n!==0&&(eu(t,n|1),De(t,ce()),!(H&6)&&(vr=ce()+500,cn()))}break;case 13:Pn(function(){var r=It(e,1);if(r!==null){var o=$e();ht(r,e,1,o)}}),Lu(e,1)}};tu=function(e){if(e.tag===13){var t=It(e,134217728);if(t!==null){var n=$e();ht(t,e,134217728,n)}Lu(e,134217728)}};Xf=function(e){if(e.tag===13){var t=tn(e),n=It(e,t);if(n!==null){var r=$e();ht(n,e,t,r)}Lu(e,t)}};Zf=function(){return K};ep=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};Ml=function(e,t,n){switch(t){case"input":if(Tl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ps(r);if(!o)throw Error(R(90));Tf(r),Tl(r,o)}}}break;case"textarea":Lf(e,n);break;case"select":t=n.value,t!=null&&er(e,!!n.multiple,t,!1)}};Ff=$u;Bf=Pn;var $0={usingClientEntryPoint:!1,Events:[_o,Jn,ps,Mf,zf,$u]},zr={findFiberByHostInstance:vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},R0={bundleType:zr.bundleType,version:zr.version,rendererPackageName:zr.rendererPackageName,rendererConfig:zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:At.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hf(e),e===null?null:e.stateNode},findFiberByHostInstance:zr.findFiberByHostInstance||b0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{us=oi.inject(R0),Ct=oi}catch{}}Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$0;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ou(t))throw Error(R(200));return E0(e,t,null,n)};Qe.createRoot=function(e,t){if(!Ou(e))throw Error(R(299));var n=!1,r="",o=kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=_u(e,1,!1,null,null,n,!1,r,o),e[Lt]=t.current,yo(e.nodeType===8?e.parentNode:e),new Iu(t)};Qe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Hf(t),e=e===null?null:e.stateNode,e};Qe.flushSync=function(e){return Pn(e)};Qe.hydrate=function(e,t,n){if(!ks(t))throw Error(R(200));return Cs(null,e,t,!0,n)};Qe.hydrateRoot=function(e,t,n){if(!Ou(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=kh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Sh(t,null,e,1,n??null,o,!1,i,s),e[Lt]=t.current,yo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ss(t)};Qe.render=function(e,t,n){if(!ks(t))throw Error(R(200));return Cs(null,e,t,!1,n)};Qe.unmountComponentAtNode=function(e){if(!ks(e))throw Error(R(40));return e._reactRootContainer?(Pn(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1};Qe.unstable_batchedUpdates=$u;Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ks(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Cs(e,t,n,!1,r)};Qe.version="18.3.1-next-f1338f8080-20240426";function Ch(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ch)}catch(e){console.error(e)}}Ch(),Cf.exports=Qe;var P0=Cf.exports,jh,vd=P0;jh=vd.createRoot,vd.hydrateRoot;var Eh={exports:{}},js={};/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-jsx-runtime.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var T0=C,_0=Symbol.for("react.element"),L0=Symbol.for("react.fragment"),I0=Object.prototype.hasOwnProperty,O0=T0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A0={key:!0,ref:!0,__self:!0,__source:!0};function bh(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)I0.call(t,r)&&!A0.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:_0,type:e,key:i,ref:s,props:o,_owner:O0.current}}js.Fragment=L0;js.jsx=bh;js.jsxs=bh;Eh.exports=js;var u=Eh.exports,ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ge.apply(this,arguments)};function gr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ne="-ms-",io="-moz-",J="-webkit-",Nh="comm",Es="rule",Au="decl",D0="@import",$h="@keyframes",M0="@layer",Rh=Math.abs,Du=String.fromCharCode,va=Object.assign;function z0(e,t){return ve(e,0)^45?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}function Ph(e){return e.trim()}function Nt(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function Ci(e,t,n){return e.indexOf(t,n)}function ve(e,t){return e.charCodeAt(t)|0}function xr(e,t,n){return e.slice(t,n)}function St(e){return e.length}function Th(e){return e.length}function Gr(e,t){return t.push(e),e}function F0(e,t){return e.map(t).join("")}function gd(e,t){return e.filter(function(n){return!Nt(n,t)})}var bs=1,wr=1,_h=0,it=0,fe=0,Nr="";function Ns(e,t,n,r,o,i,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bs,column:wr,length:s,return:"",siblings:l}}function Ut(e,t){return va(Ns("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Dn(e){for(;e.root;)e=Ut(e.root,{children:[e]});Gr(e,e.siblings)}function B0(){return fe}function U0(){return fe=it>0?ve(Nr,--it):0,wr--,fe===10&&(wr=1,bs--),fe}function mt(){return fe=it<_h?ve(Nr,it++):0,wr++,fe===10&&(wr=1,bs++),fe}function jn(){return ve(Nr,it)}function ji(){return it}function $s(e,t){return xr(Nr,e,t)}function ga(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V0(e){return bs=wr=1,_h=St(Nr=e),it=0,[]}function H0(e){return Nr="",e}function dl(e){return Ph($s(it-1,xa(e===91?e+2:e===40?e+1:e)))}function W0(e){for(;(fe=jn())&&fe<33;)mt();return ga(e)>2||ga(fe)>3?"":" "}function J0(e,t){for(;--t&&mt()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return $s(e,ji()+(t<6&&jn()==32&&mt()==32))}function xa(e){for(;mt();)switch(fe){case e:return it;case 34:case 39:e!==34&&e!==39&&xa(fe);break;case 40:e===41&&xa(e);break;case 92:mt();break}return it}function K0(e,t){for(;mt()&&e+fe!==57;)if(e+fe===84&&jn()===47)break;return"/*"+$s(t,it-1)+"*"+Du(e===47?e:mt())}function Q0(e){for(;!ga(jn());)mt();return $s(e,it)}function G0(e){return H0(Ei("",null,null,null,[""],e=V0(e),0,[0],e))}function Ei(e,t,n,r,o,i,s,l,a){for(var c=0,d=0,f=s,p=0,g=0,y=0,x=1,k=1,m=1,h=0,v="",S=o,j=i,N=r,$=v;k;)switch(y=h,h=mt()){case 40:if(y!=108&&ve($,f-1)==58){Ci($+=z(dl(h),"&","&\f"),"&\f",Rh(c?l[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:$+=dl(h);break;case 9:case 10:case 13:case 32:$+=W0(y);break;case 92:$+=J0(ji()-1,7);continue;case 47:switch(jn()){case 42:case 47:Gr(q0(K0(mt(),ji()),t,n,a),a);break;default:$+="/"}break;case 123*x:l[c++]=St($)*m;case 125*x:case 59:case 0:switch(h){case 0:case 125:k=0;case 59+d:m==-1&&($=z($,/\f/g,"")),g>0&&St($)-f&&Gr(g>32?wd($+";",r,n,f-1,a):wd(z($," ","")+";",r,n,f-2,a),a);break;case 59:$+=";";default:if(Gr(N=xd($,t,n,c,d,o,l,v,S=[],j=[],f,i),i),h===123)if(d===0)Ei($,t,N,N,S,i,f,l,j);else switch(p===99&&ve($,3)===110?100:p){case 100:case 108:case 109:case 115:Ei(e,N,N,r&&Gr(xd(e,N,N,0,0,o,l,v,o,S=[],f,j),j),o,j,f,l,r?S:j);break;default:Ei($,N,N,N,[""],j,0,l,j)}}c=d=g=0,x=m=1,v=$="",f=s;break;case 58:f=1+St($),g=y;default:if(x<1){if(h==123)--x;else if(h==125&&x++==0&&U0()==125)continue}switch($+=Du(h),h*x){case 38:m=d>0?1:($+="\f",-1);break;case 44:l[c++]=(St($)-1)*m,m=1;break;case 64:jn()===45&&($+=dl(mt())),p=jn(),d=f=St(v=$+=Q0(ji())),h++;break;case 45:y===45&&St($)==2&&(x=0)}}return i}function xd(e,t,n,r,o,i,s,l,a,c,d,f){for(var p=o-1,g=o===0?i:[""],y=Th(g),x=0,k=0,m=0;x<r;++x)for(var h=0,v=xr(e,p+1,p=Rh(k=s[x])),S=e;h<y;++h)(S=Ph(k>0?g[h]+" "+v:z(v,/&\f/g,g[h])))&&(a[m++]=S);return Ns(e,t,n,o===0?Es:l,a,c,d,f)}function q0(e,t,n,r){return Ns(e,t,n,Nh,Du(B0()),xr(e,2,-2),0,r)}function wd(e,t,n,r,o){return Ns(e,t,n,Au,xr(e,0,r),xr(e,r+1,-1),r,o)}function Lh(e,t,n){switch(z0(e,t)){case 5103:return J+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+e+e;case 4789:return io+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+io+e+ne+e+e;case 5936:switch(ve(e,t+11)){case 114:return J+e+ne+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+ne+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+ne+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return J+e+ne+e+e;case 6165:return J+e+ne+"flex-"+e+e;case 5187:return J+e+z(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+ne+"flex-$1$2")+e;case 5443:return J+e+ne+"flex-item-"+z(e,/flex-|-self/g,"")+(Nt(e,/flex-|baseline/)?"":ne+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return J+e+ne+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return J+e+ne+z(e,"shrink","negative")+e;case 5292:return J+e+ne+z(e,"basis","preferred-size")+e;case 6060:return J+"box-"+z(e,"-grow","")+J+e+ne+z(e,"grow","positive")+e;case 4554:return J+z(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4200:if(!Nt(e,/flex-|baseline/))return ne+"grid-column-align"+xr(e,t)+e;break;case 2592:case 3360:return ne+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Nt(r.props,/grid-\w+-end/)})?~Ci(e+(n=n[t].value),"span",0)?e:ne+z(e,"-start","")+e+ne+"grid-row-span:"+(~Ci(n,"span",0)?Nt(n,/\d+/):+Nt(n,/\d+/)-+Nt(e,/\d+/))+";":ne+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Nt(r.props,/grid-\w+-start/)})?e:ne+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,J+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(St(e)-1-t>6)switch(ve(e,t+1)){case 109:if(ve(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+io+(ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ci(e,"stretch",0)?Lh(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,l,a,c){return ne+o+":"+i+c+(s?ne+o+"-span:"+(l?a:+a-+i)+c:"")+e});case 4949:if(ve(e,t+6)===121)return z(e,":",":"+J)+e;break;case 6444:switch(ve(e,ve(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+J+(ve(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+ne+"$2box$3")+e;case 100:return z(e,":",":"+ne)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function ns(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Y0(e,t,n,r){switch(e.type){case M0:if(e.children.length)break;case D0:case Au:return e.return=e.return||e.value;case Nh:return"";case $h:return e.return=e.value+"{"+ns(e.children,r)+"}";case Es:if(!St(e.value=e.props.join(",")))return""}return St(n=ns(e.children,r))?e.return=e.value+"{"+n+"}":""}function X0(e){var t=Th(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function Z0(e){return function(t){t.root||(t=t.return)&&e(t)}}function e1(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Au:e.return=Lh(e.value,e.length,n);return;case $h:return ns([Ut(e,{value:z(e.value,"@","@"+J)})],r);case Es:if(e.length)return F0(n=e.props,function(o){switch(Nt(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Dn(Ut(e,{props:[z(o,/:(read-\w+)/,":"+io+"$1")]})),Dn(Ut(e,{props:[o]})),va(e,{props:gd(n,r)});break;case"::placeholder":Dn(Ut(e,{props:[z(o,/:(plac\w+)/,":"+J+"input-$1")]})),Dn(Ut(e,{props:[z(o,/:(plac\w+)/,":"+io+"$1")]})),Dn(Ut(e,{props:[z(o,/:(plac\w+)/,ne+"input-$1")]})),Dn(Ut(e,{props:[o]})),va(e,{props:gd(n,r)});break}return""})}}var t1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ue={},Sr=typeof process<"u"&&Ue!==void 0&&(Ue.REACT_APP_SC_ATTR||Ue.SC_ATTR)||"data-styled",Ih="active",Oh="data-styled-version",Rs="6.1.13",Mu=`/*!sc*/
|
|
41
|
+
`,rs=typeof window<"u"&&"HTMLElement"in window,n1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ue!==void 0&&Ue.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ue.REACT_APP_SC_DISABLE_SPEEDY!==""?Ue.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ue.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ue!==void 0&&Ue.SC_DISABLE_SPEEDY!==void 0&&Ue.SC_DISABLE_SPEEDY!==""&&Ue.SC_DISABLE_SPEEDY!=="false"&&Ue.SC_DISABLE_SPEEDY),r1={},Ps=Object.freeze([]),kr=Object.freeze({});function Ah(e,t,n){return n===void 0&&(n=kr),e.theme!==n.theme&&e.theme||t||n.theme}var Dh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),o1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,i1=/(^-|-$)/g;function Sd(e){return e.replace(o1,"-").replace(i1,"")}var s1=/(a)(d)/gi,ii=52,kd=function(e){return String.fromCharCode(e+(e>25?39:97))};function wa(e){var t,n="";for(t=Math.abs(e);t>ii;t=t/ii|0)n=kd(t%ii)+n;return(kd(t%ii)+n).replace(s1,"$1-$2")}var fl,Mh=5381,Zn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},zh=function(e){return Zn(Mh,e)};function zu(e){return wa(zh(e)>>>0)}function l1(e){return e.displayName||e.name||"Component"}function pl(e){return typeof e=="string"&&!0}var Fh=typeof Symbol=="function"&&Symbol.for,Bh=Fh?Symbol.for("react.memo"):60115,a1=Fh?Symbol.for("react.forward_ref"):60112,u1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},c1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Uh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d1=((fl={})[a1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fl[Bh]=Uh,fl);function Cd(e){return("type"in(t=e)&&t.type.$$typeof)===Bh?Uh:"$$typeof"in e?d1[e.$$typeof]:u1;var t}var f1=Object.defineProperty,p1=Object.getOwnPropertyNames,jd=Object.getOwnPropertySymbols,h1=Object.getOwnPropertyDescriptor,m1=Object.getPrototypeOf,Ed=Object.prototype;function Vh(e,t,n){if(typeof t!="string"){if(Ed){var r=m1(t);r&&r!==Ed&&Vh(e,r,n)}var o=p1(t);jd&&(o=o.concat(jd(t)));for(var i=Cd(e),s=Cd(t),l=0;l<o.length;++l){var a=o[l];if(!(a in c1||n&&n[a]||s&&a in s||i&&a in i)){var c=h1(t,a);try{f1(e,a,c)}catch{}}}}return e}function Tn(e){return typeof e=="function"}function Fu(e){return typeof e=="object"&&"styledComponentId"in e}function wn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function os(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Eo(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Sa(e,t,n){if(n===void 0&&(n=!1),!n&&!Eo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Sa(e[r],t[r]);else if(Eo(t))for(var r in t)e[r]=Sa(e[r],t[r]);return e}function Bu(e,t){Object.defineProperty(e,"toString",{value:t})}function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var y1=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw ln(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(t+1),a=(s=0,n.length);s<a;s++)this.tag.insertRule(l,n[s])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Mu);return n},e}(),bi=new Map,is=new Map,Ni=1,si=function(e){if(bi.has(e))return bi.get(e);for(;is.has(Ni);)Ni++;var t=Ni++;return bi.set(e,t),is.set(t,e),t},v1=function(e,t){Ni=t+1,bi.set(e,t),is.set(t,e)},g1="style[".concat(Sr,"][").concat(Oh,'="').concat(Rs,'"]'),x1=new RegExp("^".concat(Sr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),w1=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},S1=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Mu),o=[],i=0,s=r.length;i<s;i++){var l=r[i].trim();if(l){var a=l.match(x1);if(a){var c=0|parseInt(a[1],10),d=a[2];c!==0&&(v1(d,c),w1(e,d,a[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}},bd=function(e){for(var t=document.querySelectorAll(g1),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Sr)!==Ih&&(S1(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function k1(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Hh=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(l){var a=Array.from(l.querySelectorAll("style[".concat(Sr,"]")));return a[a.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(Sr,Ih),r.setAttribute(Oh,Rs);var s=k1();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},C1=function(){function e(t){this.element=Hh(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw ln(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),j1=function(){function e(t){this.element=Hh(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),E1=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Nd=rs,b1={isServer:!rs,useCSSOMInjection:!n1},ss=function(){function e(t,n,r){t===void 0&&(t=kr),n===void 0&&(n={});var o=this;this.options=ge(ge({},b1),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&rs&&Nd&&(Nd=!1,bd(this)),Bu(this,function(){return function(i){for(var s=i.getTag(),l=s.length,a="",c=function(f){var p=function(m){return is.get(m)}(f);if(p===void 0)return"continue";var g=i.names.get(p),y=s.getGroup(f);if(g===void 0||!g.size||y.length===0)return"continue";var x="".concat(Sr,".g").concat(f,'[id="').concat(p,'"]'),k="";g!==void 0&&g.forEach(function(m){m.length>0&&(k+="".concat(m,","))}),a+="".concat(y).concat(x,'{content:"').concat(k,'"}').concat(Mu)},d=0;d<l;d++)c(d);return a}(o)})}return e.registerId=function(t){return si(t)},e.prototype.rehydrate=function(){!this.server&&rs&&bd(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ge(ge({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new E1(o):r?new C1(o):new j1(o)}(this.options),new y1(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(si(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(si(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(si(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),N1=/&/g,$1=/^\s*\/\/.*$/gm;function Wh(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Wh(n.children,t)),n})}function R1(e){var t,n,r,o=kr,i=o.options,s=i===void 0?kr:i,l=o.plugins,a=l===void 0?Ps:l,c=function(p,g,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):p},d=a.slice();d.push(function(p){p.type===Es&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(N1,n).replace(r,c))}),s.prefix&&d.push(e1),d.push(Y0);var f=function(p,g,y,x){g===void 0&&(g=""),y===void 0&&(y=""),x===void 0&&(x="&"),t=x,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var k=p.replace($1,""),m=G0(y||g?"".concat(y," ").concat(g," { ").concat(k," }"):k);s.namespace&&(m=Wh(m,s.namespace));var h=[];return ns(m,X0(d.concat(Z0(function(v){return h.push(v)})))),h};return f.hash=a.length?a.reduce(function(p,g){return g.name||ln(15),Zn(p,g.name)},Mh).toString():"",f}var P1=new ss,ka=R1(),Jh=Le.createContext({shouldForwardProp:void 0,styleSheet:P1,stylis:ka});Jh.Consumer;Le.createContext(void 0);function Ca(){return C.useContext(Jh)}var Kh=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=ka);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Bu(this,function(){throw ln(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ka),this.name+t.hash},e}(),T1=function(e){return e>="A"&&e<="Z"};function $d(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;T1(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Qh=function(e){return e==null||e===!1||e===""},Gh=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Qh(i)&&(Array.isArray(i)&&i.isCss||Tn(i)?r.push("".concat($d(o),":"),i,";"):Eo(i)?r.push.apply(r,gr(gr(["".concat(o," {")],Gh(i),!1),["}"],!1)):r.push("".concat($d(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in t1||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function rn(e,t,n,r){if(Qh(e))return[];if(Fu(e))return[".".concat(e.styledComponentId)];if(Tn(e)){if(!Tn(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return rn(o,t,n,r)}var i;return e instanceof Kh?n?(e.inject(n,r),[e.getName(r)]):[e]:Eo(e)?Gh(e):Array.isArray(e)?Array.prototype.concat.apply(Ps,e.map(function(s){return rn(s,t,n,r)})):[e.toString()]}function qh(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Tn(n)&&!Fu(n))return!1}return!0}var _1=zh(Rs),L1=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&qh(t),this.componentId=n,this.baseHash=Zn(_1,n),this.baseStyle=r,ss.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=wn(o,this.staticRulesId);else{var i=os(rn(this.rules,t,n,r)),s=wa(Zn(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}o=wn(o,s),this.staticRulesId=s}else{for(var a=Zn(this.baseHash,r.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f;else if(f){var p=os(rn(f,t,n,r));a=Zn(a,p+d),c+=p}}if(c){var g=wa(a>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(c,".".concat(g),void 0,this.componentId)),o=wn(o,g)}}return o},e}(),Cr=Le.createContext(void 0);Cr.Consumer;function I1(){var e=C.useContext(Cr);if(!e)throw ln(18);return e}function Rd(e){var t=Le.useContext(Cr),n=C.useMemo(function(){return function(r,o){if(!r)throw ln(14);if(Tn(r)){var i=r(o);return i}if(Array.isArray(r)||typeof r!="object")throw ln(8);return o?ge(ge({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?Le.createElement(Cr.Provider,{value:n},e.children):null}var hl={};function O1(e,t,n){var r=Fu(e),o=e,i=!pl(e),s=t.attrs,l=s===void 0?Ps:s,a=t.componentId,c=a===void 0?function(S,j){var N=typeof S!="string"?"sc":Sd(S);hl[N]=(hl[N]||0)+1;var $="".concat(N,"-").concat(zu(Rs+N+hl[N]));return j?"".concat(j,"-").concat($):$}(t.displayName,t.parentComponentId):a,d=t.displayName,f=d===void 0?function(S){return pl(S)?"styled.".concat(S):"Styled(".concat(l1(S),")")}(e):d,p=t.displayName&&t.componentId?"".concat(Sd(t.displayName),"-").concat(t.componentId):t.componentId||c,g=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var x=o.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;y=function(S,j){return x(S,j)&&k(S,j)}}else y=x}var m=new L1(n,p,r?o.componentStyle:void 0);function h(S,j){return function(N,$,P){var A=N.attrs,I=N.componentStyle,W=N.defaultProps,F=N.foldedComponentIds,G=N.styledComponentId,lt=N.target,O=Le.useContext(Cr),q=Ca(),B=N.shouldForwardProp||q.shouldForwardProp,T=Ah($,O,W)||kr,L=function(Dt,Be,Et){for(var Tr,hn=ge(ge({},Be),{className:void 0,theme:Et}),Ms=0;Ms<Dt.length;Ms+=1){var Bo=Tn(Tr=Dt[Ms])?Tr(hn):Tr;for(var Mt in Bo)hn[Mt]=Mt==="className"?wn(hn[Mt],Bo[Mt]):Mt==="style"?ge(ge({},hn[Mt]),Bo[Mt]):Bo[Mt]}return Be.className&&(hn.className=wn(hn.className,Be.className)),hn}(A,$,T),D=L.as||lt,Y={};for(var X in L)L[X]===void 0||X[0]==="$"||X==="as"||X==="theme"&&L.theme===T||(X==="forwardedAs"?Y.as=L.forwardedAs:B&&!B(X,D)||(Y[X]=L[X]));var pn=function(Dt,Be){var Et=Ca(),Tr=Dt.generateAndInjectStyles(Be,Et.styleSheet,Et.stylis);return Tr}(I,L),at=wn(F,G);return pn&&(at+=" "+pn),L.className&&(at+=" "+L.className),Y[pl(D)&&!Dh.has(D)?"class":"className"]=at,Y.ref=P,C.createElement(D,Y)}(v,S,j)}h.displayName=f;var v=Le.forwardRef(h);return v.attrs=g,v.componentStyle=m,v.displayName=f,v.shouldForwardProp=y,v.foldedComponentIds=r?wn(o.foldedComponentIds,o.styledComponentId):"",v.styledComponentId=p,v.target=r?o.target:e,Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=r?function(j){for(var N=[],$=1;$<arguments.length;$++)N[$-1]=arguments[$];for(var P=0,A=N;P<A.length;P++)Sa(j,A[P],!0);return j}({},o.defaultProps,S):S}}),Bu(v,function(){return".".concat(v.styledComponentId)}),i&&Vh(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function Pd(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Td=function(e){return Object.assign(e,{isCss:!0})};function Te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Tn(e)||Eo(e))return Td(rn(Pd(Ps,gr([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?rn(r):Td(rn(Pd(r,t)))}function ja(e,t,n){if(n===void 0&&(n=kr),!t)throw ln(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,Te.apply(void 0,gr([o],i,!1)))};return r.attrs=function(o){return ja(e,t,ge(ge({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ja(e,t,ge(ge({},n),o))},r}var Yh=function(e){return ja(O1,e)},w=Yh;Dh.forEach(function(e){w[e]=Yh(e)});var A1=function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=qh(t),ss.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,o){var i=o(os(rn(this.rules,n,r,o)),""),s=this.componentId+t;r.insertRules(s,s,i)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,o){t>2&&ss.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,o)},e}();function D1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Te.apply(void 0,gr([e],t,!1)),o="sc-global-".concat(zu(JSON.stringify(r))),i=new A1(r,o),s=function(a){var c=Ca(),d=Le.useContext(Cr),f=Le.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&l(f,a,c.styleSheet,d,c.stylis),Le.useLayoutEffect(function(){if(!c.styleSheet.server)return l(f,a,c.styleSheet,d,c.stylis),function(){return i.removeStyles(f,c.styleSheet)}},[f,a,c.styleSheet,d,c.stylis]),null};function l(a,c,d,f,p){if(i.isStatic)i.renderStyles(a,r1,d,p);else{var g=ge(ge({},c),{theme:Ah(c,f,s.defaultProps)});i.renderStyles(a,g,d,p)}}return Le.memo(s)}function Io(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=os(Te.apply(void 0,gr([e],t,!1))),o=zu(r);return new Kh(o,r)}const M1="/assets/logo-BGHkG1-J.png",z1="/assets/logo-dark-KAsU1C78.png",_d={name:"light",colors:{background:"#ffffffaa",pageBackground:"#ffffff",backgroundSecondary:"#f6f8fa",text:"#333333",textSecondary:"#6a737d",primary:"#0056b3",primaryHover:"#004494",error:"#d32f2f",errorHover:"#b71c1c",warning:"#f57c00",info:"#0288d1",secondary:"#616161",secondaryHover:"#424242",border:"#e1e4e8",buttonBg:"#e0e0e0",buttonText:"#333333",buttonHoverBg:"#bdbdbd",inputBg:"#ffffff",inputBorder:"#bdbdbd",inputText:"#333333",codeBackground:"#f5f5f5",codeText:"#24292e",systemMessageBackground:"#e3f2fd",systemMessageText:"#0d47a1",systemMessageBorder:"#bbdefb",systemMessageTimestamp:"#1565c0",disabled:"#9e9e9e",userMessageBackground:"#e8f5e9",userMessageText:"#1b5e20",userMessageTimestamp:"#2e7d32",menuBackdrop:"rgba(0, 0, 0, 0.5)",menuBackground:"#ffffff",menuHover:"#f6f8fa",menuBorder:"#e1e4e8",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",diffAddedText:"rgba(0, 128, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:M1,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Ld={name:"dark",colors:{background:"#00000055",pageBackground:"#1e1e1e",backgroundSecondary:"#2d333b",text:"#d4d4d4",textSecondary:"#8b949e",primary:"#58a6ff",primaryHover:"#79b8ff",secondary:"#8b949e",error:"#f44336",errorHover:"#d32f2f",secondaryHover:"#9aa3ad",warning:"#ffa726",info:"#29b6f6",border:"#30363d",buttonBg:"#21262d",buttonText:"#c9d1d9",buttonHoverBg:"#30363d",inputBg:"#0d1117",inputBorder:"#30363d",inputText:"#c9d1d9",codeBackground:"#161b22",codeText:"#c9d1d9",systemMessageBackground:"#1c2128",systemMessageText:"#8b949e",systemMessageBorder:"#30363d",systemMessageTimestamp:"#6e7681",disabled:"#41464b",userMessageBackground:"#1c4a7d",userMessageText:"#e6f3ff",userMessageTimestamp:"#a8c7f0",menuBackdrop:"rgba(0, 0, 0, 0.7)",menuBackground:"#1e1e1e",menuHover:"#2d333b",menuBorder:"#30363d",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",diffAddedText:"rgba(0, 255, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:z1,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},F1=({usage:e})=>{const[t,n]=C.useState("total"),r=f=>{n(f.target.value)},o=e.usageMetrics[t],i=e.usageMetrics[t].cost||0,s=Fr(i.toFixed(2)),l=Fr(o.rpm),a=Fr(o.rpd),c=Fr(Id(o.tpm)),d=Fr(Id(o.tpd));return u.jsx(U1,{children:u.jsxs(V1,{children:[u.jsx(H1,{onChange:r,value:t,children:Object.keys(e.usageMetrics).map(f=>u.jsx("option",{value:f,children:f},f))}),u.jsxs(Br,{children:[u.jsx(Ur,{children:"Cost:"}),u.jsxs(Vr,{children:["$",s]},s)]}),u.jsxs(Br,{children:[u.jsx(Ur,{children:"RPM:"}),u.jsx(Vr,{children:l},l)]}),u.jsxs(Br,{children:[u.jsx(Ur,{children:"RPD:"}),u.jsx(Vr,{children:a},a)]}),u.jsxs(Br,{children:[u.jsx(Ur,{children:"TPM:"}),u.jsx(Vr,{children:c},c)]}),u.jsxs(Br,{children:[u.jsx(Ur,{children:"TPD:"}),u.jsx(Vr,{children:d},d)]})]})})},Id=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Fr=e=>{const[t,n]=C.useState(e),r=C.useRef(e);return C.useEffect(()=>{e!==r.current&&(n(e),r.current=e)},[e]),t},B1=Io`
|
|
42
|
+
0% {
|
|
43
|
+
transform: scale(1);
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
50% {
|
|
47
|
+
transform: scale(1.2);
|
|
48
|
+
opacity: 0.7;
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
transform: scale(1);
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
`,U1=w.div`
|
|
55
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
padding: 4px 4px;
|
|
58
|
+
box-shadow:
|
|
59
|
+
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
60
|
+
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
61
|
+
`,V1=w.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-wrap: wrap;
|
|
64
|
+
gap: 8px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
`,H1=w.select`
|
|
67
|
+
padding: 2px 4px;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
70
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
71
|
+
color: ${({theme:e})=>e.colors.text};
|
|
72
|
+
font-size: 0.9em;
|
|
73
|
+
`,Br=w.div`
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
align-items: center;
|
|
77
|
+
margin-left: 8px;
|
|
78
|
+
`,Ur=w.span`
|
|
79
|
+
font-size: 0.8em;
|
|
80
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
81
|
+
`,Vr=w.span`
|
|
82
|
+
font-size: 0.9em;
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
color: ${({theme:e})=>e.colors.text};
|
|
85
|
+
animation: ${B1} 0.5s ease-in-out;
|
|
86
|
+
`;function Xh(e,t){return function(){return e.apply(t,arguments)}}const{toString:W1}=Object.prototype,{getPrototypeOf:Uu}=Object,Ts=(e=>t=>{const n=W1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>Ts(t)===e),_s=e=>t=>typeof t===e,{isArray:$r}=Array,bo=_s("undefined");function J1(e){return e!==null&&!bo(e)&&e.constructor!==null&&!bo(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zh=vt("ArrayBuffer");function K1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zh(e.buffer),t}const Q1=_s("string"),Je=_s("function"),em=_s("number"),Ls=e=>e!==null&&typeof e=="object",G1=e=>e===!0||e===!1,$i=e=>{if(Ts(e)!=="object")return!1;const t=Uu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},q1=vt("Date"),Y1=vt("File"),X1=vt("Blob"),Z1=vt("FileList"),ex=e=>Ls(e)&&Je(e.pipe),tx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=Ts(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},nx=vt("URLSearchParams"),[rx,ox,ix,sx]=["ReadableStream","Request","Response","Headers"].map(vt),lx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),$r(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(r=0;r<s;r++)l=i[r],t.call(null,e[l],l,e)}}function tm(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Sn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,nm=e=>!bo(e)&&e!==Sn;function Ea(){const{caseless:e}=nm(this)&&this||{},t={},n=(r,o)=>{const i=e&&tm(t,o)||o;$i(t[i])&&$i(r)?t[i]=Ea(t[i],r):$i(r)?t[i]=Ea({},r):$r(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Oo(arguments[r],n);return t}const ax=(e,t,n,{allOwnKeys:r}={})=>(Oo(t,(o,i)=>{n&&Je(o)?e[i]=Xh(o,n):e[i]=o},{allOwnKeys:r}),e),ux=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},dx=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Uu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},px=e=>{if(!e)return null;if($r(e))return e;let t=e.length;if(!em(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Uu(Uint8Array)),mx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},yx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vx=vt("HTMLFormElement"),gx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Od=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xx=vt("RegExp"),rm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Oo(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},wx=e=>{rm(e,(t,n)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Je(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sx=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return $r(e)?r(e):r(String(e).split(t)),n},kx=()=>{},Cx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ml="abcdefghijklmnopqrstuvwxyz",Ad="0123456789",om={DIGIT:Ad,ALPHA:ml,ALPHA_DIGIT:ml+ml.toUpperCase()+Ad},jx=(e=16,t=om.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ex(e){return!!(e&&Je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const bx=e=>{const t=new Array(10),n=(r,o)=>{if(Ls(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=$r(r)?[]:{};return Oo(r,(s,l)=>{const a=n(s,o+1);!bo(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},Nx=vt("AsyncFunction"),$x=e=>e&&(Ls(e)||Je(e))&&Je(e.then)&&Je(e.catch),im=((e,t)=>e?setImmediate:t?((n,r)=>(Sn.addEventListener("message",({source:o,data:i})=>{o===Sn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Sn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Je(Sn.postMessage)),Rx=typeof queueMicrotask<"u"?queueMicrotask.bind(Sn):typeof process<"u"&&process.nextTick||im,E={isArray:$r,isArrayBuffer:Zh,isBuffer:J1,isFormData:tx,isArrayBufferView:K1,isString:Q1,isNumber:em,isBoolean:G1,isObject:Ls,isPlainObject:$i,isReadableStream:rx,isRequest:ox,isResponse:ix,isHeaders:sx,isUndefined:bo,isDate:q1,isFile:Y1,isBlob:X1,isRegExp:xx,isFunction:Je,isStream:ex,isURLSearchParams:nx,isTypedArray:hx,isFileList:Z1,forEach:Oo,merge:Ea,extend:ax,trim:lx,stripBOM:ux,inherits:cx,toFlatObject:dx,kindOf:Ts,kindOfTest:vt,endsWith:fx,toArray:px,forEachEntry:mx,matchAll:yx,isHTMLForm:vx,hasOwnProperty:Od,hasOwnProp:Od,reduceDescriptors:rm,freezeMethods:wx,toObjectSet:Sx,toCamelCase:gx,noop:kx,toFiniteNumber:Cx,findKey:tm,global:Sn,isContextDefined:nm,ALPHABET:om,generateString:jx,isSpecCompliantForm:Ex,toJSONObject:bx,isAsyncFn:Nx,isThenable:$x,setImmediate:im,asap:Rx};function M(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}E.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const sm=M.prototype,lm={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lm[e]={value:e}});Object.defineProperties(M,lm);Object.defineProperty(sm,"isAxiosError",{value:!0});M.from=(e,t,n,r,o,i)=>{const s=Object.create(sm);return E.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),M.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Px=null;function ba(e){return E.isPlainObject(e)||E.isArray(e)}function am(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Dd(e,t,n){return e?e.concat(t).map(function(o,i){return o=am(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Tx(e){return E.isArray(e)&&!e.some(ba)}const _x=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function Is(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!E.isUndefined(k[x])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(E.isDate(y))return y.toISOString();if(!a&&E.isBlob(y))throw new M("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(y)||E.isTypedArray(y)?a&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,x,k){let m=y;if(y&&!k&&typeof y=="object"){if(E.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(E.isArray(y)&&Tx(y)||(E.isFileList(y)||E.endsWith(x,"[]"))&&(m=E.toArray(y)))return x=am(x),m.forEach(function(v,S){!(E.isUndefined(v)||v===null)&&t.append(s===!0?Dd([x],S,i):s===null?x:x+"[]",c(v))}),!1}return ba(y)?!0:(t.append(Dd(k,x,i),c(y)),!1)}const f=[],p=Object.assign(_x,{defaultVisitor:d,convertValue:c,isVisitable:ba});function g(y,x){if(!E.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),E.forEach(y,function(m,h){(!(E.isUndefined(m)||m===null)&&o.call(t,m,E.isString(h)?h.trim():h,x,p))===!0&&g(m,x?x.concat(h):[h])}),f.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Md(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vu(e,t){this._pairs=[],e&&Is(e,this,t)}const um=Vu.prototype;um.append=function(t,n){this._pairs.push([t,n])};um.toString=function(t){const n=t?function(r){return t.call(this,r,Md)}:Md;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Lx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cm(e,t,n){if(!t)return e;const r=n&&n.encode||Lx,o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class zd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ix=typeof URLSearchParams<"u"?URLSearchParams:Vu,Ox=typeof FormData<"u"?FormData:null,Ax=typeof Blob<"u"?Blob:null,Dx={isBrowser:!0,classes:{URLSearchParams:Ix,FormData:Ox,Blob:Ax},protocols:["http","https","file","blob","url","data"]},Hu=typeof window<"u"&&typeof document<"u",Na=typeof navigator=="object"&&navigator||void 0,Mx=Hu&&(!Na||["ReactNative","NativeScript","NS"].indexOf(Na.product)<0),zx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fx=Hu&&window.location.href||"http://localhost",Bx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hu,hasStandardBrowserEnv:Mx,hasStandardBrowserWebWorkerEnv:zx,navigator:Na,origin:Fx},Symbol.toStringTag,{value:"Module"})),Me={...Bx,...Dx};function Ux(e,t){return Is(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Me.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Vx(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hx(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function fm(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),a=i>=n.length;return s=!s&&E.isArray(o)?o.length:s,a?(E.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!E.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&E.isArray(o[s])&&(o[s]=Hx(o[s])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(Vx(r),o,n,0)}),n}return null}function Wx(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Ao={transitional:dm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(fm(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ux(t,this.formSerializer).toString();if((l=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Is(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Wx(t)):t}],transformResponse:[function(t){const n=this.transitional||Ao.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?M.from(l,M.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Ao.headers[e]={}});const Jx=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kx=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
87
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Jx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fd=Symbol("internals");function Hr(e){return e&&String(e).trim().toLowerCase()}function Ri(e){return e===!1||e==null?e:E.isArray(e)?e.map(Ri):String(e)}function Qx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Gx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yl(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function qx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Yx(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class ze{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,a,c){const d=Hr(a);if(!d)throw new Error("header name must be a non-empty string");const f=E.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||a]=Ri(l))}const s=(l,a)=>E.forEach(l,(c,d)=>i(c,d,a));if(E.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(E.isString(t)&&(t=t.trim())&&!Gx(t))s(Kx(t),n);else if(E.isHeaders(t))for(const[l,a]of t.entries())i(a,l,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Hr(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Qx(o);if(E.isFunction(n))return n.call(this,o,r);if(E.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hr(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||yl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Hr(s),s){const l=E.findKey(r,s);l&&(!n||yl(r,r[l],l,n))&&(delete r[l],o=!0)}}return E.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||yl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const s=E.findKey(r,i);if(s){n[s]=Ri(o),delete n[i];return}const l=t?qx(i):String(i).trim();l!==i&&delete n[i],n[l]=Ri(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
88
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fd]=this[Fd]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=Hr(s);r[l]||(Yx(o,s),r[l]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}}ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(ze);function vl(e,t){const n=this||Ao,r=t||n,o=ze.from(r.headers);let i=r.data;return E.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function pm(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(Rr,M,{__CANCEL__:!0});function hm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Xx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zx(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),d=r[i];s||(s=c),n[o]=a,r[o]=c;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const g=d&&c-d;return g?Math.round(p*1e3/g):void 0}}function ew(e,t){let n=0,r=1e3/t,o,i;const s=(c,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?s(c,d):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const ls=(e,t,n=3)=>{let r=0;const o=Zx(50,250);return ew(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,a=s-r,c=o(a),d=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:a,rate:c||void 0,estimated:c&&l&&d?(l-s)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Bd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ud=e=>(...t)=>E.asap(()=>e(...t)),tw=Me.hasStandardBrowserEnv?function(){const t=Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=E.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),nw=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),E.isString(r)&&s.push("path="+r),E.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ow(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mm(e,t){return e&&!rw(t)?ow(e,t):t}const Vd=e=>e instanceof ze?{...e}:e;function _n(e,t){t=t||{};const n={};function r(c,d,f){return E.isPlainObject(c)&&E.isPlainObject(d)?E.merge.call({caseless:f},c,d):E.isPlainObject(d)?E.merge({},d):E.isArray(d)?d.slice():d}function o(c,d,f){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function i(c,d){if(!E.isUndefined(d))return r(void 0,d)}function s(c,d){if(E.isUndefined(d)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,d)=>o(Vd(c),Vd(d),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=a[d]||o,p=f(e[d],t[d],d);E.isUndefined(p)&&f!==l||(n[d]=p)}),n}const ym=e=>{const t=_n({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=ze.from(s),t.url=cm(mm(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(E.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((a=s.getContentType())!==!1){const[c,...d]=a?a.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Me.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&tw(t.url))){const c=o&&i&&nw.read(i);c&&s.set(o,c)}return t},iw=typeof XMLHttpRequest<"u",sw=iw&&function(e){return new Promise(function(n,r){const o=ym(e);let i=o.data;const s=ze.from(o.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:c}=o,d,f,p,g,y;function x(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function m(){if(!k)return;const v=ze.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:v,config:e,request:k};hm(function($){n($),x()},function($){r($),x()},j),k=null}"onloadend"in k?k.onloadend=m:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(m)},k.onabort=function(){k&&(r(new M("Request aborted",M.ECONNABORTED,e,k)),k=null)},k.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||dm;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new M(S,j.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,k)),k=null},i===void 0&&s.setContentType(null),"setRequestHeader"in k&&E.forEach(s.toJSON(),function(S,j){k.setRequestHeader(j,S)}),E.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),c&&([p,y]=ls(c,!0),k.addEventListener("progress",p)),a&&k.upload&&([f,g]=ls(a),k.upload.addEventListener("progress",f),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=v=>{k&&(r(!v||v.type?new Rr(null,e,k):v),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const h=Xx(o.url);if(h&&Me.protocols.indexOf(h)===-1){r(new M("Unsupported protocol "+h+":",M.ERR_BAD_REQUEST,e));return}k.send(i||null)})},lw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,l();const d=c instanceof Error?c:this.reason;r.abort(d instanceof M?d:new Rr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new M(`timeout ${t} of ms exceeded`,M.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=()=>E.asap(l),a}},aw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},uw=async function*(e,t){for await(const n of cw(e))yield*aw(n,t)},cw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Hd=(e,t,n,r)=>{const o=uw(e,t);let i=0,s,l=a=>{s||(s=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:c,value:d}=await o.next();if(c){l(),a.close();return}let f=d.byteLength;if(n){let p=i+=f;n(p)}a.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(a){return l(a),o.return()}},{highWaterMark:2})},Os=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vm=Os&&typeof ReadableStream=="function",dw=Os&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fw=vm&&gm(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wd=64*1024,$a=vm&&gm(()=>E.isReadableStream(new Response("").body)),as={stream:$a&&(e=>e.body)};Os&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!as[t]&&(as[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new M(`Response type '${t}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const pw=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await dw(e)).byteLength},hw=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??pw(t)},mw=Os&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:a,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:p}=ym(e);c=c?(c+"").toLowerCase():"text";let g=lw([o,i&&i.toAbortSignal()],s),y;const x=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let k;try{if(a&&fw&&n!=="get"&&n!=="head"&&(k=await hw(d,r))!==0){let j=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(E.isFormData(r)&&(N=j.headers.get("content-type"))&&d.setContentType(N),j.body){const[$,P]=Bd(k,ls(Ud(a)));r=Hd(j.body,Wd,$,P)}}E.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;y=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let h=await fetch(y);const v=$a&&(c==="stream"||c==="response");if($a&&(l||v&&x)){const j={};["status","statusText","headers"].forEach(A=>{j[A]=h[A]});const N=E.toFiniteNumber(h.headers.get("content-length")),[$,P]=l&&Bd(N,ls(Ud(l),!0))||[];h=new Response(Hd(h.body,Wd,$,()=>{P&&P(),x&&x()}),j)}c=c||"text";let S=await as[E.findKey(as,c)||"text"](h,e);return!v&&x&&x(),await new Promise((j,N)=>{hm(j,N,{data:S,headers:ze.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:y})})}catch(m){throw x&&x(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,e,y),{cause:m.cause||m}):M.from(m,m&&m.code,e,y)}}),Ra={http:Px,xhr:sw,fetch:mw};E.forEach(Ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Jd=e=>`- ${e}`,yw=e=>E.isFunction(e)||e===null||e===!1,xm={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!yw(n)&&(r=Ra[(s=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
89
|
+
`+i.map(Jd).join(`
|
|
90
|
+
`):" "+Jd(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ra};function gl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Kd(e){return gl(e),e.headers=ze.from(e.headers),e.data=vl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xm.getAdapter(e.adapter||Ao.adapter)(e).then(function(r){return gl(e),r.data=vl.call(e,e.transformResponse,r),r.headers=ze.from(r.headers),r},function(r){return pm(r)||(gl(e),r&&r.response&&(r.response.data=vl.call(e,e.transformResponse,r.response),r.response.headers=ze.from(r.response.headers))),Promise.reject(r)})}const wm="1.7.7",Wu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qd={};Wu.transitional=function(t,n,r){function o(i,s){return"[Axios v"+wm+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new M(o(s," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Qd[s]&&(Qd[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function vw(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new M("option "+i+" must be "+a,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const Pa={assertOptions:vw,validators:Wu},Ft=Pa.validators;class En{constructor(t){this.defaults=t,this.interceptors={request:new zd,response:new zd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
91
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_n(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Pa.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:Pa.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=ze.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(a=a&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let d,f=0,p;if(!a){const y=[Kd.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),p=y.length,d=Promise.resolve(n);f<p;)d=d.then(y[f++],y[f++]);return d}p=l.length;let g=n;for(f=0;f<p;){const y=l[f++],x=l[f++];try{g=y(g)}catch(k){x.call(this,k);break}}try{d=Kd.call(this,g)}catch(y){return Promise.reject(y)}for(f=0,p=c.length;f<p;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=_n(this.defaults,t);const n=mm(t.baseURL,t.url);return cm(n,t.params,t.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(t){En.prototype[t]=function(n,r){return this.request(_n(r||{},{method:t,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,l){return this.request(_n(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}En.prototype[t]=n(),En.prototype[t+"Form"]=n(!0)});class Ju{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new Rr(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ju(function(o){t=o}),cancel:t}}}function gw(e){return function(n){return e.apply(null,n)}}function xw(e){return E.isObject(e)&&e.isAxiosError===!0}const Ta={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ta).forEach(([e,t])=>{Ta[t]=e});function Sm(e){const t=new En(e),n=Xh(En.prototype.request,t);return E.extend(n,En.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sm(_n(e,o))},n}const ae=Sm(Ao);ae.Axios=En;ae.CanceledError=Rr;ae.CancelToken=Ju;ae.isCancel=pm;ae.VERSION=wm;ae.toFormData=Is;ae.AxiosError=M;ae.Cancel=ae.CanceledError;ae.all=function(t){return Promise.all(t)};ae.spread=gw;ae.isAxiosError=xw;ae.mergeConfig=_n;ae.AxiosHeaders=ze;ae.formToJSON=e=>fm(E.isHTMLForm(e)?new FormData(e):e);ae.getAdapter=xm.getAdapter;ae.HttpStatusCode=Ta;ae.default=ae;const ww="/api",de=ae.create({baseURL:ww,headers:{"Content-Type":"application/json"}}),Sw=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};de.interceptors.request.use(e=>{var n;const t=(n=document.querySelector("body[data-security-token]"))==null?void 0:n.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));de.interceptors.response.use(e=>e,async e=>{var n;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const r=await Sw();if(r)return t.headers.Authorization=`Bearer ${r}`,(n=document.querySelector("body[data-security-token]"))==null||n.setAttribute("data-security-token",r),de(t)}return Promise.reject(e)});const kw=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await de.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(n){throw ae.isAxiosError(n)?n.response?new Error(n.response.data.error||"Failed to edit message"):n.request?new Error("No response received from server"):new Error(`Error setting up request: ${n.message}`):n instanceof Error?n:new Error("An unexpected error occurred while editing the message")}},Gd=async()=>(await de.get("/content")).data.content,Cw=async(e,t,n)=>{const r=new FormData;r.append("prompt",e),r.append("options",JSON.stringify(t)),n&&n.length>0&&n.forEach(o=>{r.append("images",o)});try{await de.post("/execute-codegen",r,{headers:{"Content-Type":"multipart/form-data"}})}catch(o){throw ae.isAxiosError(o)?o.response?new Error(`Server error: ${o.response.data.message||"Unknown error"}`):o.request?new Error("No response received from server"):new Error(`Error setting up request: ${o.message}`):new Error("An unexpected error occurred")}},km=async(e,t,n,r)=>{try{if(!e||typeof e!="string")throw new Error("Prompt must be a string");if(typeof t!="number"||t<0||t>2)throw new Error("Temperature must be a number between 0 and 2");if(typeof n!="boolean")throw new Error("Cheap parameter must be a boolean");return(await de.post("/generate-content",{prompt:e,temperature:t,cheap:n,options:r})).data.result}catch(o){if(ae.isAxiosError(o))if(o.response){const i=o.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${i}`)}else throw o.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${o.message}`);throw o instanceof Error?o:new Error("An unexpected error occurred during content generation")}},_a=async()=>(await de.get("/execution-status")).data.status,jw=async()=>{await de.post("/interrupt-execution")},Cm=async()=>{await de.post("/pause-execution")},jm=async()=>{await de.post("/resume-execution")},La=async()=>(await de.get("/current-question")).data.question,Ew=async(e,t,n,r)=>{await de.post("/answer-question",{questionId:e,answer:t,confirmed:n,options:r})},qd=async()=>(await de.get("/usage")).data,bw=async()=>(await de.get("/default-codegen-options")).data.options,Nw=async()=>(await de.get("/rcconfig")).data.rcConfig,$w=async e=>{await de.delete(`/delete-iteration/${e}`)},Em=async()=>(await de.get("/available-ai-services")).data.services,Rw=async()=>{try{return(await de.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Pw=async e=>{await de.post("/service-configuration",e)};de.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));function Do(e,t){const n=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(n)}function Mo(e,t){C.useEffect(()=>{const n=r=>{t(r.detail)};return document.addEventListener(e,n,!1),()=>{document.removeEventListener(e,n,!1)}},[e,t])}function Ku(){const[e,t]=C.useState([]),[n,r]=C.useState(null);return C.useEffect(()=>{(async()=>{try{const i=await Em();t(i)}catch(i){console.error("Error fetching AI services:",i),r("Failed to fetch available AI services.")}})()},[]),[e,n]}const zo=w.button`
|
|
92
|
+
background-color: transparent;
|
|
93
|
+
color: ${({theme:e})=>e.colors.text};
|
|
94
|
+
border: none;
|
|
95
|
+
border-radius: 50%;
|
|
96
|
+
width: 40px;
|
|
97
|
+
height: 40px;
|
|
98
|
+
font-size: 20px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
transition: background-color 0.3s;
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:focus {
|
|
110
|
+
outline: none;
|
|
111
|
+
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
|
|
112
|
+
}
|
|
113
|
+
`;function bm(){Do("openContentGenerationModel")}function Tw(){return u.jsx(zo,{onClick:bm,"aria-label":"Content generation modal",children:"✨"})}const _w=({currentService:e})=>{const[t,n]=C.useState(""),[r,o]=C.useState(e),[i,s]=C.useState(.7),[l,a]=C.useState(!1),[c,d]=C.useState(!1),[f,p]=C.useState(null),[g,y]=C.useState(null),[x,k]=C.useState(!1),m=()=>k(!1),[h]=Ku();if(Mo("openContentGenerationModel",()=>k(!0)),!x)return null;const v=async S=>{S.preventDefault(),d(!0),p(null),y(null);try{const j=await km(t,i,l,{aiService:r,askQuestion:!1});y(j)}catch(j){p(j instanceof Error?j.message:"An unexpected error occurred")}finally{d(!1)}};return u.jsx(Lw,{onClick:S=>S.target===S.currentTarget&&m(),children:u.jsxs(Iw,{children:[u.jsx(Ow,{onClick:m,children:"×"}),u.jsx("h2",{children:"Generate Content"}),u.jsxs(Aw,{onSubmit:v,children:[u.jsxs(li,{children:["Prompt",u.jsx(Dw,{value:t,onChange:S=>n(S.target.value),placeholder:"Enter your prompt here...",required:!0})]}),u.jsxs(li,{children:["AI Service",u.jsx(Mw,{value:r,onChange:S=>o(S.target.value),children:h.map(S=>u.jsx("option",{value:S,children:S},S))})]}),u.jsxs(li,{children:["Temperature (",i,")",u.jsxs(zw,{children:[u.jsx(Fw,{type:"range",min:"0",max:"2",step:"0.1",value:i,onChange:S=>s(Number(S.target.value))}),u.jsx(Bw,{children:i})]})]}),u.jsxs(li,{children:[u.jsx("input",{type:"checkbox",checked:l,onChange:S=>a(S.target.checked)}),"Use cheap mode"]}),u.jsx(Uw,{type:"submit",disabled:c||!t,children:c?"Generating...":"Generate"})]}),f&&u.jsx(Hw,{children:f}),g&&u.jsx(Vw,{children:g.map((S,j)=>u.jsxs("div",{children:[u.jsx("strong",{children:S.name}),u.jsx("pre",{children:JSON.stringify(S,null,2)})]},j))})]})})},Lw=w.div`
|
|
114
|
+
position: fixed;
|
|
115
|
+
top: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
right: 0;
|
|
118
|
+
bottom: 0;
|
|
119
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
z-index: 1000;
|
|
124
|
+
`,Iw=w.div`
|
|
125
|
+
background: ${({theme:e})=>e.colors.background};
|
|
126
|
+
padding: 2rem;
|
|
127
|
+
border-radius: 8px;
|
|
128
|
+
width: 90%;
|
|
129
|
+
max-width: 800px;
|
|
130
|
+
max-height: 90vh;
|
|
131
|
+
overflow-y: auto;
|
|
132
|
+
position: relative;
|
|
133
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
134
|
+
`,Ow=w.button`
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 1rem;
|
|
137
|
+
right: 1rem;
|
|
138
|
+
background: none;
|
|
139
|
+
border: none;
|
|
140
|
+
font-size: 1.5rem;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
color: ${({theme:e})=>e.colors.text};
|
|
143
|
+
&:hover {
|
|
144
|
+
opacity: 0.8;
|
|
145
|
+
}
|
|
146
|
+
`,Aw=w.form`
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
gap: 1rem;
|
|
150
|
+
`,li=w.label`
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: 0.5rem;
|
|
154
|
+
color: ${({theme:e})=>e.colors.text};
|
|
155
|
+
`,Dw=w.textarea`
|
|
156
|
+
padding: 0.5rem;
|
|
157
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
158
|
+
border-radius: 4px;
|
|
159
|
+
background: ${({theme:e})=>e.colors.background};
|
|
160
|
+
color: ${({theme:e})=>e.colors.text};
|
|
161
|
+
min-height: 100px;
|
|
162
|
+
resize: vertical;
|
|
163
|
+
`,Mw=w.select`
|
|
164
|
+
padding: 0.5rem;
|
|
165
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
background: ${({theme:e})=>e.colors.background};
|
|
168
|
+
color: ${({theme:e})=>e.colors.text};
|
|
169
|
+
`,zw=w.div`
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: 1rem;
|
|
173
|
+
`,Fw=w.input`
|
|
174
|
+
flex: 1;
|
|
175
|
+
`,Bw=w.span`
|
|
176
|
+
min-width: 3rem;
|
|
177
|
+
text-align: right;
|
|
178
|
+
`,Uw=w.button`
|
|
179
|
+
padding: 0.5rem 1rem;
|
|
180
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
181
|
+
color: white;
|
|
182
|
+
border: none;
|
|
183
|
+
border-radius: 4px;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
&:hover {
|
|
186
|
+
opacity: 0.9;
|
|
187
|
+
}
|
|
188
|
+
&:disabled {
|
|
189
|
+
opacity: 0.5;
|
|
190
|
+
cursor: not-allowed;
|
|
191
|
+
}
|
|
192
|
+
`,Vw=w.div`
|
|
193
|
+
margin-top: 1rem;
|
|
194
|
+
padding: 1rem;
|
|
195
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
196
|
+
border-radius: 4px;
|
|
197
|
+
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
198
|
+
white-space: pre-wrap;
|
|
199
|
+
`,Hw=w.div`
|
|
200
|
+
color: ${({theme:e})=>e.colors.error};
|
|
201
|
+
margin-top: 1rem;
|
|
202
|
+
padding: 0.5rem;
|
|
203
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
204
|
+
border-radius: 4px;
|
|
205
|
+
`;function Nm(){Do("openHealthCheckModal")}function Ww(){return u.jsx(zo,{onClick:Nm,"aria-label":"Health check modal",children:"🏥"})}async function Jw(){const e=(await Em()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function Kw(e){var t,n;try{const[r]=await km("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(n=(t=r==null?void 0:r.args)==null?void 0:t.message)!=null&&n.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const Qw=()=>{const[e,t]=C.useState(!1),[n,r]=C.useState(!1),[o,i]=C.useState(null),[s,l]=C.useState(null),[a,c]=C.useState(null);Mo("openHealthCheckModal",()=>t(!0));const d=()=>t(!1),f=async()=>{r(!0),i(null);try{const y=await Jw();l(y),c(new Date);for(const[x,k]of Object.entries(y.services)){const m=Date.now(),h=await Kw(x);k.status=h,k.responseTime=Date.now()-m,k.lastChecked=new Date().toISOString(),l(y),c(new Date)}}catch(y){i(y instanceof Error?y.message:"An unexpected error occurred")}finally{r(!1)}};if(C.useEffect(()=>{e&&f()},[e]),!e)return null;const p=y=>{switch(y){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},g=y=>{switch(y){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return u.jsx(Gw,{onClick:y=>y.target===y.currentTarget&&d(),children:u.jsxs(qw,{children:[u.jsx(Xw,{onClick:d,children:"×"}),u.jsxs(Yw,{children:[u.jsx("h2",{children:"AI Services Health Check"}),u.jsx(Zw,{onClick:f,disabled:n,children:n?"Checking...":"🔄 Refresh"})]}),o&&u.jsx(uS,{children:o}),u.jsx(eS,{children:s&&Object.entries(s.services).map(([y,x])=>u.jsxs(tS,{children:[u.jsxs(nS,{children:[u.jsx(rS,{children:y}),u.jsx(oS,{children:p(x.status)})]}),u.jsxs(iS,{color:g(x.status),children:[u.jsxs("div",{children:["Status: ",x.status]}),x.responseTime&&u.jsxs("div",{children:["Response time: ",x.responseTime,"ms"]}),x.error&&u.jsx(sS,{children:x.error}),u.jsxs(lS,{children:["Last checked: ",new Date(x.lastChecked).toLocaleTimeString()]})]})]},y))}),a&&u.jsxs(aS,{children:["Last updated: ",a.toLocaleTimeString()]}),n&&u.jsx(cS,{children:"Checking AI Services..."})]})})},Gw=w.div`
|
|
206
|
+
position: fixed;
|
|
207
|
+
top: 0;
|
|
208
|
+
left: 0;
|
|
209
|
+
right: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
align-items: center;
|
|
215
|
+
z-index: 1000;
|
|
216
|
+
`,qw=w.div`
|
|
217
|
+
background: ${({theme:e})=>e.colors.background};
|
|
218
|
+
padding: 2rem;
|
|
219
|
+
border-radius: 8px;
|
|
220
|
+
width: 90%;
|
|
221
|
+
max-width: 800px;
|
|
222
|
+
max-height: 90vh;
|
|
223
|
+
overflow-y: auto;
|
|
224
|
+
position: relative;
|
|
225
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
226
|
+
`,Yw=w.div`
|
|
227
|
+
display: flex;
|
|
228
|
+
justify-content: space-between;
|
|
229
|
+
align-items: center;
|
|
230
|
+
margin-bottom: 2rem;
|
|
231
|
+
|
|
232
|
+
h2 {
|
|
233
|
+
margin: 0;
|
|
234
|
+
}
|
|
235
|
+
`,Xw=w.button`
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 1rem;
|
|
238
|
+
right: 1rem;
|
|
239
|
+
background: none;
|
|
240
|
+
border: none;
|
|
241
|
+
font-size: 1.5rem;
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
color: ${({theme:e})=>e.colors.text};
|
|
244
|
+
&:hover {
|
|
245
|
+
opacity: 0.8;
|
|
246
|
+
}
|
|
247
|
+
`,Zw=w.button`
|
|
248
|
+
padding: 0.5rem 1rem;
|
|
249
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
250
|
+
color: white;
|
|
251
|
+
border: none;
|
|
252
|
+
border-radius: 4px;
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
&:hover {
|
|
255
|
+
opacity: 0.9;
|
|
256
|
+
}
|
|
257
|
+
&:disabled {
|
|
258
|
+
opacity: 0.5;
|
|
259
|
+
cursor: not-allowed;
|
|
260
|
+
}
|
|
261
|
+
`,eS=w.div`
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
264
|
+
gap: 1rem;
|
|
265
|
+
margin-bottom: 1rem;
|
|
266
|
+
`,tS=w.div`
|
|
267
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
268
|
+
border-radius: 4px;
|
|
269
|
+
padding: 1rem;
|
|
270
|
+
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
271
|
+
`,nS=w.div`
|
|
272
|
+
display: flex;
|
|
273
|
+
justify-content: space-between;
|
|
274
|
+
align-items: center;
|
|
275
|
+
margin-bottom: 0.5rem;
|
|
276
|
+
`,rS=w.h3`
|
|
277
|
+
margin: 0;
|
|
278
|
+
font-size: 1.1rem;
|
|
279
|
+
`,oS=w.span`
|
|
280
|
+
font-size: 1.2rem;
|
|
281
|
+
`,iS=w.div`
|
|
282
|
+
color: ${({theme:e,color:t})=>{switch(t){case"success":return e.colors.success;case"error":return e.colors.error;case"warning":return e.colors.warning;default:return e.colors.text}}};
|
|
283
|
+
font-size: 0.9rem;
|
|
284
|
+
`,sS=w.div`
|
|
285
|
+
color: ${({theme:e})=>e.colors.error};
|
|
286
|
+
margin-top: 0.5rem;
|
|
287
|
+
`,lS=w.div`
|
|
288
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
289
|
+
font-size: 0.8rem;
|
|
290
|
+
margin-top: 0.5rem;
|
|
291
|
+
`,aS=w.div`
|
|
292
|
+
text-align: right;
|
|
293
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
294
|
+
font-size: 0.8rem;
|
|
295
|
+
margin-top: 1rem;
|
|
296
|
+
`,uS=w.div`
|
|
297
|
+
color: ${({theme:e})=>e.colors.error};
|
|
298
|
+
margin-bottom: 1rem;
|
|
299
|
+
padding: 0.5rem;
|
|
300
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
301
|
+
border-radius: 4px;
|
|
302
|
+
`,cS=w.div`
|
|
303
|
+
position: absolute;
|
|
304
|
+
top: 0;
|
|
305
|
+
left: 0;
|
|
306
|
+
right: 0;
|
|
307
|
+
bottom: 0;
|
|
308
|
+
background: rgba(0, 0, 0, 0.3);
|
|
309
|
+
display: flex;
|
|
310
|
+
justify-content: center;
|
|
311
|
+
align-items: center;
|
|
312
|
+
border-radius: 8px;
|
|
313
|
+
color: white;
|
|
314
|
+
font-size: 1.2rem;
|
|
315
|
+
`,$m=w.div`
|
|
316
|
+
position: fixed;
|
|
317
|
+
top: 0;
|
|
318
|
+
left: 0;
|
|
319
|
+
right: 0;
|
|
320
|
+
bottom: 0;
|
|
321
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
322
|
+
display: flex;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
align-items: center;
|
|
325
|
+
z-index: 1000;
|
|
326
|
+
`,Rm=w.div`
|
|
327
|
+
background: ${({theme:e})=>e.colors.background};
|
|
328
|
+
padding: 2rem;
|
|
329
|
+
border-radius: 8px;
|
|
330
|
+
width: 90%;
|
|
331
|
+
max-width: 800px;
|
|
332
|
+
max-height: 90vh;
|
|
333
|
+
overflow-y: auto;
|
|
334
|
+
position: relative;
|
|
335
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
336
|
+
`,Pm=w.div`
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: space-between;
|
|
339
|
+
align-items: center;
|
|
340
|
+
margin-bottom: 2rem;
|
|
341
|
+
|
|
342
|
+
h2 {
|
|
343
|
+
margin: 0;
|
|
344
|
+
}
|
|
345
|
+
`,Tm=w.button`
|
|
346
|
+
position: absolute;
|
|
347
|
+
top: 1rem;
|
|
348
|
+
right: 1rem;
|
|
349
|
+
background: none;
|
|
350
|
+
border: none;
|
|
351
|
+
font-size: 1.5rem;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
color: ${({theme:e})=>e.colors.text};
|
|
354
|
+
&:hover {
|
|
355
|
+
opacity: 0.8;
|
|
356
|
+
}
|
|
357
|
+
`,dS=w.div`
|
|
358
|
+
display: grid;
|
|
359
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
360
|
+
gap: 1rem;
|
|
361
|
+
margin-bottom: 1rem;
|
|
362
|
+
`,fS=w.div`
|
|
363
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
364
|
+
border-radius: 4px;
|
|
365
|
+
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
366
|
+
transition: box-shadow 0.2s ease;
|
|
367
|
+
|
|
368
|
+
&:hover {
|
|
369
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
370
|
+
}
|
|
371
|
+
`,pS=w.div`
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
padding: 1rem;
|
|
374
|
+
user-select: none;
|
|
375
|
+
display: flex;
|
|
376
|
+
justify-content: space-between;
|
|
377
|
+
align-items: center;
|
|
378
|
+
width: 100%;
|
|
379
|
+
background: none;
|
|
380
|
+
border: none;
|
|
381
|
+
color: ${({theme:e})=>e.colors.text};
|
|
382
|
+
transition: background-color 0.2s ease;
|
|
383
|
+
|
|
384
|
+
&:hover {
|
|
385
|
+
background-color: ${({theme:e})=>`${e.colors.border}20`};
|
|
386
|
+
}
|
|
387
|
+
`,hS=w.div`
|
|
388
|
+
display: flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: 0.5rem;
|
|
391
|
+
`,mS=w.h3`
|
|
392
|
+
margin: 0;
|
|
393
|
+
font-size: 1.1rem;
|
|
394
|
+
`,yS=w.span`
|
|
395
|
+
display: inline-block;
|
|
396
|
+
transition: transform 0.2s ease;
|
|
397
|
+
transform: rotate(${({$isCollapsed:e})=>e?"0deg":"180deg"});
|
|
398
|
+
font-size: 0.8rem;
|
|
399
|
+
`,vS=w.div`
|
|
400
|
+
overflow: hidden;
|
|
401
|
+
transition: height 0.3s ease;
|
|
402
|
+
height: ${({$isCollapsed:e})=>e?"0":"auto"};
|
|
403
|
+
padding: ${({$isCollapsed:e})=>e?"0 1rem":"0 1rem 1rem"};
|
|
404
|
+
opacity: ${({$isCollapsed:e})=>e?"0":"1"};
|
|
405
|
+
transition: all 0.3s ease;
|
|
406
|
+
`,gS=w.form`
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
gap: 1rem;
|
|
410
|
+
`,Ze=w.div`
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
gap: 0.5rem;
|
|
414
|
+
`,et=w.label`
|
|
415
|
+
font-size: 0.9rem;
|
|
416
|
+
color: ${({theme:e})=>e.colors.text};
|
|
417
|
+
`,Mn=w.input`
|
|
418
|
+
padding: 0.5rem;
|
|
419
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
420
|
+
border-radius: 4px;
|
|
421
|
+
background: ${({theme:e})=>e.colors.background};
|
|
422
|
+
color: ${({theme:e})=>e.colors.text};
|
|
423
|
+
font-size: 0.9rem;
|
|
424
|
+
|
|
425
|
+
&:focus {
|
|
426
|
+
outline: none;
|
|
427
|
+
border-color: ${({theme:e})=>e.colors.primary};
|
|
428
|
+
}
|
|
429
|
+
`,xS=w.button`
|
|
430
|
+
padding: 0.5rem 1rem;
|
|
431
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
432
|
+
color: white;
|
|
433
|
+
border: none;
|
|
434
|
+
border-radius: 4px;
|
|
435
|
+
cursor: pointer;
|
|
436
|
+
font-size: 0.9rem;
|
|
437
|
+
|
|
438
|
+
&:hover {
|
|
439
|
+
opacity: 0.9;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&:disabled {
|
|
443
|
+
opacity: 0.5;
|
|
444
|
+
cursor: not-allowed;
|
|
445
|
+
}
|
|
446
|
+
`,wS=w.div`
|
|
447
|
+
color: ${({theme:e})=>e.colors.error};
|
|
448
|
+
margin-bottom: 1rem;
|
|
449
|
+
padding: 0.5rem;
|
|
450
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
451
|
+
border-radius: 4px;
|
|
452
|
+
`,SS=w.div`
|
|
453
|
+
color: ${({theme:e})=>e.colors.success};
|
|
454
|
+
margin-bottom: 1rem;
|
|
455
|
+
padding: 0.5rem;
|
|
456
|
+
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
457
|
+
border-radius: 4px;
|
|
458
|
+
`,kS=w.div`
|
|
459
|
+
color: ${({theme:e})=>e.colors.error};
|
|
460
|
+
`,CS=w.div`
|
|
461
|
+
position: absolute;
|
|
462
|
+
top: 0;
|
|
463
|
+
left: 0;
|
|
464
|
+
right: 0;
|
|
465
|
+
bottom: 0;
|
|
466
|
+
background: rgba(0, 0, 0, 0.3);
|
|
467
|
+
display: flex;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
align-items: center;
|
|
470
|
+
border-radius: 8px;
|
|
471
|
+
color: white;
|
|
472
|
+
font-size: 1.2rem;
|
|
473
|
+
`,zn=e=>e==="vertex-ai"||e==="vertex-ai-claude",xl=e=>e==="vertex-ai-claude",jS=e=>e==="openai",ES=({serviceType:e,config:t,onUpdate:n,isLoading:r,isExpanded:o,onCardClick:i})=>{var I,W;const[s,l]=C.useState(""),[a,c]=C.useState(!!(t!=null&&t.hasApiKey)),[d,f]=C.useState(((I=t==null?void 0:t.modelOverrides)==null?void 0:I.default)||""),[p,g]=C.useState(((W=t==null?void 0:t.modelOverrides)==null?void 0:W.cheap)||""),[y,x]=C.useState((t==null?void 0:t.googleCloudProjectId)||""),[k,m]=C.useState((t==null?void 0:t.googleCloudRegion)||""),[h,v]=C.useState((t==null?void 0:t.openaiBaseUrl)||""),[S,j]=C.useState(null);C.useEffect(()=>{var F,G;c(!!(t!=null&&t.hasApiKey)),f(((F=t==null?void 0:t.modelOverrides)==null?void 0:F.default)||""),g(((G=t==null?void 0:t.modelOverrides)==null?void 0:G.cheap)||""),x((t==null?void 0:t.googleCloudProjectId)||""),m((t==null?void 0:t.googleCloudRegion)||""),v((t==null?void 0:t.openaiBaseUrl)||"")},[t]);const N=()=>{if(zn(e)){if(!y)return j("GCP Project ID is required for Vertex AI services"),!1;if(xl(e)&&!k)return j("GCP Region is required for Vertex AI Claude"),!1}else if(!a&&!s)return j("API Key is required"),!1;return j(null),!0},$=F=>{if(F.preventDefault(),!N())return;const G={modelOverrides:{default:d||void 0,cheap:p||void 0}};zn(e)?(G.googleCloudProjectId=y,xl(e)&&(G.googleCloudRegion=k)):(G.apiKey=s||void 0,G.openaiBaseUrl=h||void 0),n(G)},P=C.useCallback(()=>{i&&i(e)},[i,e]),A=F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),P())};return u.jsxs(fS,{children:[u.jsxs(pS,{onClick:P,onKeyDown:A,role:"button",tabIndex:0,"aria-expanded":!!o,"aria-controls":`config-content-${e}`,children:[u.jsxs(hS,{children:[u.jsx(mS,{children:e}),!zn(e)&&a&&u.jsx("span",{title:"API Key is set",children:"🔑"}),zn(e)&&y&&u.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),u.jsx(yS,{$isCollapsed:!o,children:"▼"})]}),u.jsx(vS,{$isCollapsed:!o,id:`config-content-${e}`,"aria-hidden":!o,children:u.jsxs(gS,{onSubmit:$,children:[!zn(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`apiKey-${e}`,children:"API Key"}),u.jsx(Mn,{id:`apiKey-${e}`,type:"password",value:s,onChange:F=>l(F.target.value),placeholder:a?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),jS(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`baseUrl-${e}`,children:"Base URL"}),u.jsx(Mn,{id:`baseUrl-${e}`,type:"text",value:h,onChange:F=>v(F.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${e}`})]}),zn(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),u.jsx(Mn,{id:`projectId-${e}`,type:"text",value:y,onChange:F=>x(F.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),xl(e)&&u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`region-${e}`,children:"GCP Region"}),u.jsx(Mn,{id:`region-${e}`,type:"text",value:k,onChange:F=>m(F.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),u.jsx(Mn,{id:`defaultModel-${e}`,type:"text",value:d,onChange:F=>f(F.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),u.jsxs(Ze,{children:[u.jsx(et,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),u.jsx(Mn,{id:`cheapModel-${e}`,type:"text",value:p,onChange:F=>g(F.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),S&&u.jsx(kS,{role:"alert","aria-live":"polite",children:S}),u.jsx(xS,{type:"submit",disabled:r,"aria-busy":r,children:r?"Updating...":"Update Configuration"})]})})]})};function _m(){Do("openServiceConfigurationModal")}function bS(){return u.jsx(zo,{onClick:_m,"aria-label":"Open service configuration",children:"⚙️"})}const Lm=e=>e==="vertex-ai"||e==="vertex-ai-claude",NS=e=>e==="openai",$S=(e,t)=>{var r,o;const n=["Configuration updated successfully for "+e];return Lm(e)?(t.googleCloudProjectId&&n.push(`GCP Project ID: ${t.googleCloudProjectId}`),e==="vertex-ai-claude"&&t.googleCloudRegion&&n.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&n.push("API key has been updated"),(r=t.modelOverrides)!=null&&r.default&&n.push(`Default model: ${t.modelOverrides.default}`),(o=t.modelOverrides)!=null&&o.cheap&&n.push(`Cheap model: ${t.modelOverrides.cheap}`),NS(e)&&"openaiBaseUrl"in t&&n.push(`OpenAI base URL: ${t.openaiBaseUrl}`),n.join(`
|
|
474
|
+
`)},RS=(e,t)=>{if(Lm(e)){if(!t.googleCloudProjectId)return`GCP Project ID is required for ${e}`;if(e==="vertex-ai-claude"&&!t.googleCloudRegion)return"GCP Region is required for Vertex AI Claude"}return null},PS=()=>{const[e,t]=C.useState(!1),[n,r]=C.useState(!1),[o,i]=C.useState(null),[s,l]=C.useState(null),[a,c]=C.useState(),[d]=Ku();Mo("openServiceConfigurationModal",()=>t(!0));const f=()=>{t(!1),i(null),l(null)};C.useEffect(()=>{e&&p()},[e]);const p=async()=>{r(!0),i(null);try{const m=await Rw();c(m)}catch(m){i(m instanceof Error?m.message:"Failed to fetch configurations")}finally{r(!1)}},g=async(m,h)=>{r(!0),i(null),l(null);const v=RS(m,h);if(v){i(v),r(!1);return}try{await Pw({serviceType:m,config:h}),await p(),l($S(m,h))}catch(S){let j="Failed to update configuration";S instanceof Error&&(j=S.message,S.message.includes("auth")?j=`Authentication error for ${m}: ${S.message}`:S.message.includes("permission")&&(j=`Permission error for ${m}: ${S.message}`)),i(j)}finally{r(!1)}},[y,x]=C.useState(null),k=C.useCallback(m=>{x(h=>h===m?null:m)},[x]);return e?u.jsx($m,{onClick:m=>m.target===m.currentTarget&&f(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:u.jsxs(Rm,{children:[u.jsx(Tm,{onClick:f,"aria-label":"Close configuration modal",children:"×"}),u.jsx(Pm,{children:u.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),o&&u.jsx(wS,{role:"alert","aria-live":"polite",children:o}),s&&u.jsx(SS,{role:"status","aria-live":"polite",children:s.split(`
|
|
475
|
+
`).map((m,h)=>u.jsx("div",{children:m},h))}),u.jsx(dS,{children:a?d.map(m=>u.jsx(ES,{serviceType:m,config:a[m],onUpdate:h=>g(m,h),isLoading:n,isExpanded:y===m,onCardClick:k},m)):u.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),n&&u.jsx(CS,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},Im=Io`
|
|
476
|
+
from {
|
|
477
|
+
opacity: 0;
|
|
478
|
+
}
|
|
479
|
+
to {
|
|
480
|
+
opacity: 1;
|
|
481
|
+
}
|
|
482
|
+
`,TS=Io`
|
|
483
|
+
from {
|
|
484
|
+
transform: translateX(100%);
|
|
485
|
+
}
|
|
486
|
+
to {
|
|
487
|
+
transform: translateX(0);
|
|
488
|
+
}
|
|
489
|
+
`,_S=w.button`
|
|
490
|
+
background: none;
|
|
491
|
+
border: none;
|
|
492
|
+
font-size: 1.5rem;
|
|
493
|
+
cursor: pointer;
|
|
494
|
+
padding: 8px;
|
|
495
|
+
color: ${({theme:e})=>e.colors.text};
|
|
496
|
+
transition: color 0.2s ease;
|
|
497
|
+
display: flex;
|
|
498
|
+
align-items: center;
|
|
499
|
+
justify-content: center;
|
|
500
|
+
|
|
501
|
+
&:hover {
|
|
502
|
+
color: ${({theme:e})=>e.colors.primary};
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
&:focus {
|
|
506
|
+
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
507
|
+
outline-offset: 2px;
|
|
508
|
+
border-radius: 4px;
|
|
509
|
+
}
|
|
510
|
+
`,LS=w.div`
|
|
511
|
+
position: fixed;
|
|
512
|
+
top: 0;
|
|
513
|
+
left: 0;
|
|
514
|
+
right: 0;
|
|
515
|
+
bottom: 0;
|
|
516
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
517
|
+
z-index: 998;
|
|
518
|
+
display: ${({isOpen:e})=>e?"block":"none"};
|
|
519
|
+
animation: ${Im} 0.2s ease;
|
|
520
|
+
`,IS=w.div`
|
|
521
|
+
position: absolute;
|
|
522
|
+
${({position:e})=>e?Te`
|
|
523
|
+
top: ${e.top??"auto"};
|
|
524
|
+
right: ${e.right??"auto"};
|
|
525
|
+
left: ${e.left??"auto"};
|
|
526
|
+
bottom: ${e.bottom??"auto"};
|
|
527
|
+
`:Te`
|
|
528
|
+
top: 100%;
|
|
529
|
+
right: 0;
|
|
530
|
+
`}
|
|
531
|
+
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
532
|
+
border-radius: 8px;
|
|
533
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
534
|
+
padding: 8px 0;
|
|
535
|
+
min-width: 200px;
|
|
536
|
+
z-index: 999;
|
|
537
|
+
opacity: ${({isOpen:e})=>e?1:0};
|
|
538
|
+
visibility: ${({isOpen:e})=>e?"visible":"hidden"};
|
|
539
|
+
transform-origin: top right;
|
|
540
|
+
animation: ${({isOpen:e})=>e?Te`
|
|
541
|
+
${TS} 0.2s ease,
|
|
542
|
+
${Im} 0.2s ease
|
|
543
|
+
`:"none"};
|
|
544
|
+
|
|
545
|
+
@media (max-width: 576px) {
|
|
546
|
+
position: fixed;
|
|
547
|
+
top: 0;
|
|
548
|
+
right: 0;
|
|
549
|
+
bottom: 0;
|
|
550
|
+
min-width: 250px;
|
|
551
|
+
border-radius: 0;
|
|
552
|
+
border-top-left-radius: 8px;
|
|
553
|
+
border-bottom-left-radius: 8px;
|
|
554
|
+
transform-origin: center right;
|
|
555
|
+
}
|
|
556
|
+
`,Yd=w.div`
|
|
557
|
+
padding: 12px 16px;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
transition: background-color 0.2s ease;
|
|
560
|
+
display: flex;
|
|
561
|
+
align-items: center;
|
|
562
|
+
gap: 8px;
|
|
563
|
+
color: ${({theme:e})=>e.colors.text};
|
|
564
|
+
|
|
565
|
+
&:hover {
|
|
566
|
+
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
&:focus-within {
|
|
570
|
+
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
571
|
+
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
572
|
+
outline-offset: -2px;
|
|
573
|
+
}
|
|
574
|
+
`,OS=w.div`
|
|
575
|
+
position: relative;
|
|
576
|
+
display: inline-block;
|
|
577
|
+
`,AS=w.div`
|
|
578
|
+
position: fixed;
|
|
579
|
+
top: 0;
|
|
580
|
+
left: 0;
|
|
581
|
+
right: 0;
|
|
582
|
+
bottom: 0;
|
|
583
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
584
|
+
display: flex;
|
|
585
|
+
justify-content: center;
|
|
586
|
+
align-items: center;
|
|
587
|
+
z-index: 1000;
|
|
588
|
+
`,DS=w.div`
|
|
589
|
+
background: ${({theme:e})=>e.colors.background};
|
|
590
|
+
padding: 2rem;
|
|
591
|
+
border-radius: 8px;
|
|
592
|
+
width: 90%;
|
|
593
|
+
max-width: 800px;
|
|
594
|
+
max-height: 90vh;
|
|
595
|
+
overflow-y: auto;
|
|
596
|
+
position: relative;
|
|
597
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
598
|
+
`,MS=w.div`
|
|
599
|
+
display: flex;
|
|
600
|
+
justify-content: space-between;
|
|
601
|
+
align-items: center;
|
|
602
|
+
margin-bottom: 2rem;
|
|
603
|
+
|
|
604
|
+
h2 {
|
|
605
|
+
margin: 0;
|
|
606
|
+
}
|
|
607
|
+
`,zS=w.button`
|
|
608
|
+
position: absolute;
|
|
609
|
+
top: 1rem;
|
|
610
|
+
right: 1rem;
|
|
611
|
+
background: none;
|
|
612
|
+
border: none;
|
|
613
|
+
font-size: 1.5rem;
|
|
614
|
+
cursor: pointer;
|
|
615
|
+
color: ${({theme:e})=>e.colors.text};
|
|
616
|
+
&:hover {
|
|
617
|
+
opacity: 0.8;
|
|
618
|
+
}
|
|
619
|
+
`,FS=w.div`
|
|
620
|
+
display: flex;
|
|
621
|
+
flex-direction: column;
|
|
622
|
+
gap: 1rem;
|
|
623
|
+
margin-bottom: 1rem;
|
|
624
|
+
`,BS=w.div`
|
|
625
|
+
color: ${({theme:e})=>e.colors.error};
|
|
626
|
+
margin-bottom: 1rem;
|
|
627
|
+
padding: 0.5rem;
|
|
628
|
+
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
629
|
+
border-radius: 4px;
|
|
630
|
+
`,US=w.div`
|
|
631
|
+
color: ${({theme:e})=>e.colors.success};
|
|
632
|
+
margin-bottom: 1rem;
|
|
633
|
+
padding: 0.5rem;
|
|
634
|
+
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
635
|
+
border-radius: 4px;
|
|
636
|
+
`,VS=w.div`
|
|
637
|
+
position: absolute;
|
|
638
|
+
top: 0;
|
|
639
|
+
left: 0;
|
|
640
|
+
right: 0;
|
|
641
|
+
bottom: 0;
|
|
642
|
+
background: rgba(0, 0, 0, 0.3);
|
|
643
|
+
display: flex;
|
|
644
|
+
justify-content: center;
|
|
645
|
+
align-items: center;
|
|
646
|
+
border-radius: 8px;
|
|
647
|
+
color: white;
|
|
648
|
+
font-size: 1.2rem;
|
|
649
|
+
`,Qu=({value:e,onChange:t,disabled:n})=>{const[r,o]=Ku(),i=s=>{t(s.target.value)};return u.jsxs(HS,{children:[u.jsxs(WS,{id:"aiService",value:e,onChange:i,disabled:n||o!==null,children:[u.jsx("option",{value:"",children:"Select AI Service"}),r.map(s=>u.jsx("option",{value:s,children:s},s))]}),o&&u.jsx(JS,{children:o})]})},HS=w.div`
|
|
650
|
+
display: flex;
|
|
651
|
+
flex-direction: column;
|
|
652
|
+
gap: 4px;
|
|
653
|
+
`,WS=w.select`
|
|
654
|
+
padding: 8px;
|
|
655
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
656
|
+
border-radius: 4px;
|
|
657
|
+
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
658
|
+
color: ${({theme:e})=>e.colors.inputText};
|
|
659
|
+
font-size: 14px;
|
|
660
|
+
|
|
661
|
+
&:disabled {
|
|
662
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
663
|
+
cursor: not-allowed;
|
|
664
|
+
}
|
|
665
|
+
`,JS=w.div`
|
|
666
|
+
color: ${({theme:e})=>e.colors.error};
|
|
667
|
+
font-size: 14px;
|
|
668
|
+
`;function Gu(){Do("openGenaicodeConfigModal")}function Om(){return u.jsx(zo,{onClick:Gu,"aria-label":"Open Genaicode configuration",children:"🐺"})}const KS=({options:e,onOptionsChange:t})=>{const[n,r]=C.useState(!1),[o,i]=C.useState(!1),[s,l]=C.useState(null),[a,c]=C.useState(null);Mo("openGenaicodeConfigModal",()=>r(!0));const d=()=>{r(!1),l(null),c(null)},f=async x=>{i(!0),l(null),c(null);try{t(x),c("Configuration updated successfully")}catch{l("Failed to update configuration")}finally{i(!1)}},p=x=>{const{name:k,value:m,type:h}=x.target,v=h==="checkbox"?x.target.checked:m;f({...e,[k]:v})},g=x=>{f({...e,aiService:x})},y=x=>{const k=x.target.value.split(",").map(m=>m.trim());f({...e,ignorePatterns:k})};return n?u.jsx(AS,{onClick:x=>x.target===x.currentTarget&&d(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:u.jsxs(DS,{children:[u.jsx(zS,{onClick:d,"aria-label":"Close configuration modal",children:"×"}),u.jsx(MS,{children:u.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),s&&u.jsx(BS,{role:"alert","aria-live":"polite",children:s}),a&&u.jsx(US,{role:"status","aria-live":"polite",children:a}),u.jsxs(FS,{children:[u.jsxs(ai,{children:[u.jsx(Bt,{htmlFor:"aiService",children:"Default AI Service:"}),u.jsx(Qu,{value:e.aiService,onChange:g,disabled:o})]}),u.jsxs(ai,{children:[u.jsx(Bt,{htmlFor:"contentMask",children:"Content Mask:"}),u.jsx(Xd,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:p,disabled:o})]}),u.jsxs(ai,{children:[u.jsx(Bt,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),u.jsx(Xd,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:y,disabled:o}),u.jsx("small",{children:"Comma-separated list of patterns"})]}),u.jsxs(ai,{children:[u.jsx(Bt,{children:"File Operations:"}),u.jsxs(Bt,{htmlFor:"allowFileCreate",children:[u.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:p,disabled:o}),"Allow File Create"]}),u.jsxs(Bt,{htmlFor:"allowFileDelete",children:[u.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:p,disabled:o}),"Allow File Delete"]}),u.jsxs(Bt,{htmlFor:"allowDirectoryCreate",children:[u.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:p,disabled:o}),"Allow Directory Create"]}),u.jsxs(Bt,{htmlFor:"allowFileMove",children:[u.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:p,disabled:o}),"Allow File Move"]})]})]}),o&&u.jsx(VS,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},ai=w.div`
|
|
669
|
+
margin-bottom: 16px;
|
|
670
|
+
`,Bt=w.label`
|
|
671
|
+
display: block;
|
|
672
|
+
margin-bottom: 4px;
|
|
673
|
+
color: ${e=>e.theme.colors.text};
|
|
674
|
+
`,Xd=w.input`
|
|
675
|
+
width: 100%;
|
|
676
|
+
padding: 8px;
|
|
677
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
678
|
+
border-radius: 4px;
|
|
679
|
+
background-color: ${e=>e.theme.colors.inputBg};
|
|
680
|
+
color: ${e=>e.theme.colors.inputText};
|
|
681
|
+
|
|
682
|
+
&:disabled {
|
|
683
|
+
background-color: ${e=>e.theme.colors.disabled};
|
|
684
|
+
cursor: not-allowed;
|
|
685
|
+
}
|
|
686
|
+
`,QS=({menuItems:e,isOpen:t,onToggle:n,className:r,buttonAriaLabel:o="Toggle menu",menuAriaLabel:i="Navigation menu",position:s})=>{const l=C.useRef(null),a=C.useRef(null),c=C.useRef(null);C.useEffect(()=>{const p=y=>{var x;t&&l.current&&!l.current.contains(y.target)&&!((x=c.current)!=null&&x.contains(y.target))&&n()},g=y=>{var x;t&&y.key==="Escape"&&(n(),(x=c.current)==null||x.focus())};return document.addEventListener("mousedown",p),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",g)}},[t,n]),C.useEffect(()=>{var p;t&&((p=a.current)==null||p.focus())},[t]);const d=p=>{var x,k;if(!t)return;const g=Array.from(((x=l.current)==null?void 0:x.querySelectorAll('[role="menuitem"]'))||[]),y=g.indexOf(document.activeElement);switch(p.key){case"ArrowDown":p.preventDefault(),y<g.length-1?g[y+1].focus():g[0].focus();break;case"ArrowUp":p.preventDefault(),y>0?g[y-1].focus():g[g.length-1].focus();break;case"Home":p.preventDefault(),g[0].focus();break;case"End":p.preventDefault(),g[g.length-1].focus();break;case"Enter":case" ":p.preventDefault(),y>=0&&(e[y].onClick(),n(),(k=c.current)==null||k.focus());break}},f=p=>{var g;p(),n(),(g=c.current)==null||g.focus()};return u.jsxs(OS,{className:r,children:[u.jsx(_S,{onClick:n,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":o,ref:c,children:"☰"}),u.jsx(LS,{isOpen:t,onClick:n}),u.jsxs(IS,{isOpen:t,position:s,ref:l,role:"menu","aria-label":i,id:"menu-items",onKeyDown:d,children:[e.map((p,g)=>u.jsxs(Yd,{onClick:()=>f(p.onClick),role:"menuitem",tabIndex:t?0:-1,ref:g===0?a:null,"aria-label":p.ariaLabel,children:[p.content," ",p.ariaLabel]},p.key||g)),u.jsxs(Yd,{onClick:()=>f(()=>Gu()),role:"menuitem",tabIndex:t?0:-1,"aria-label":"Genaicode Config",children:[u.jsx(Om,{})," Genaicode Config"]},"genaicode-config")]})]})};function Am(){Do("openRcConfigModal")}const GS=({rcConfig:e})=>{const[t,n]=C.useState(!1);Mo("openRcConfigModal",()=>n(!0));const r=()=>{n(!1)};return!t||!e?null:u.jsx($m,{onClick:o=>o.target===o.currentTarget&&r(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:u.jsxs(Rm,{children:[u.jsx(Tm,{onClick:r,"aria-label":"Close RC configuration modal",children:"×"}),u.jsx(Pm,{children:u.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),u.jsxs(qS,{children:[u.jsxs(Ze,{children:[u.jsx(et,{children:"Root Directory"}),u.jsx(Fn,{children:e.rootDir})]}),e.lintCommand&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Lint Command"}),u.jsx(Fn,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Extensions"}),u.jsx(Fn,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Ignore Paths"}),u.jsx(Fn,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Important Context"}),u.jsx(Fn,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&u.jsxs(Ze,{children:[u.jsx(et,{children:"Model Overrides"}),u.jsx(Fn,{children:u.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},qS=w.div`
|
|
687
|
+
display: flex;
|
|
688
|
+
flex-direction: column;
|
|
689
|
+
gap: 1rem;
|
|
690
|
+
margin-top: 1rem;
|
|
691
|
+
`,Fn=w.div`
|
|
692
|
+
color: ${({theme:e})=>e.colors.text};
|
|
693
|
+
font-family: monospace;
|
|
694
|
+
background-color: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
695
|
+
padding: 0.5rem;
|
|
696
|
+
border-radius: 4px;
|
|
697
|
+
overflow-x: auto;
|
|
698
|
+
|
|
699
|
+
pre {
|
|
700
|
+
margin: 0;
|
|
701
|
+
white-space: pre-wrap;
|
|
702
|
+
}
|
|
703
|
+
`,YS=()=>u.jsx(XS,{onClick:Am,children:u.jsx(ZS,{"aria-label":"Show RC configuration",children:"ℹ️"})}),XS=w.div`
|
|
704
|
+
display: inline-block;
|
|
705
|
+
cursor: pointer;
|
|
706
|
+
`,ZS=w.span`
|
|
707
|
+
font-size: 24px;
|
|
708
|
+
color: ${e=>e.theme.colors.primary};
|
|
709
|
+
`,ek=({themeToggle:e,chatInterface:t,inputArea:n,usage:r,toggleTheme:o})=>{const[i,s]=C.useState(!1),l=[{content:u.jsx(bS,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:_m},{content:u.jsx(Ww,{}),ariaLabel:"Health Check",key:"health-check",onClick:Nm},{content:u.jsx(Tw,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:bm},{content:u.jsx(Om,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:Gu},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:o},{content:u.jsx(YS,{}),ariaLabel:"Information",key:"info",onClick:Am}];return u.jsxs(tk,{children:[u.jsxs(nk,{children:[u.jsx(rk,{children:u.jsx(ok,{children:"GenAIcode"})}),u.jsxs(ik,{children:[u.jsx(sk,{children:u.jsx(F1,{usage:r})}),u.jsx(lk,{children:u.jsx(QS,{menuItems:l,isOpen:i,onToggle:()=>s(!i),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),u.jsxs(ak,{children:[u.jsx(uk,{children:t}),u.jsx(ck,{children:n})]})]})},tk=w.div`
|
|
710
|
+
display: flex;
|
|
711
|
+
flex-direction: column;
|
|
712
|
+
height: 100vh;
|
|
713
|
+
max-width: 1200px;
|
|
714
|
+
margin: 0 auto;
|
|
715
|
+
padding: 0 10px;
|
|
716
|
+
`,nk=w.header`
|
|
717
|
+
position: relative;
|
|
718
|
+
display: flex;
|
|
719
|
+
justify-content: space-between;
|
|
720
|
+
align-items: center;
|
|
721
|
+
padding: 10px 0;
|
|
722
|
+
flex-wrap: nowrap;
|
|
723
|
+
gap: 10px;
|
|
724
|
+
`,rk=w.div`
|
|
725
|
+
display: flex;
|
|
726
|
+
align-items: center;
|
|
727
|
+
gap: 10px;
|
|
728
|
+
`,ok=w.h1`
|
|
729
|
+
text-transform: uppercase;
|
|
730
|
+
font-family: 'Press Start 2P', system-ui;
|
|
731
|
+
color: ${({theme:e})=>e.colors.primary};
|
|
732
|
+
margin: 0;
|
|
733
|
+
font-size: clamp(0.6rem, 2.5vw, 1.5rem);
|
|
734
|
+
white-space: nowrap;
|
|
735
|
+
overflow: hidden;
|
|
736
|
+
text-overflow: ellipsis;
|
|
737
|
+
`,ik=w.div`
|
|
738
|
+
display: flex;
|
|
739
|
+
align-items: center;
|
|
740
|
+
gap: 16px;
|
|
741
|
+
flex-wrap: nowrap;
|
|
742
|
+
flex-shrink: 0;
|
|
743
|
+
|
|
744
|
+
@media (max-width: 576px) {
|
|
745
|
+
gap: 8px;
|
|
746
|
+
}
|
|
747
|
+
`,sk=w.div`
|
|
748
|
+
flex-shrink: 1;
|
|
749
|
+
min-width: 0;
|
|
750
|
+
`,lk=w.div`
|
|
751
|
+
display: flex;
|
|
752
|
+
align-items: center;
|
|
753
|
+
|
|
754
|
+
@media (max-width: 576px) {
|
|
755
|
+
position: relative;
|
|
756
|
+
}
|
|
757
|
+
`,ak=w.main`
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
flex-grow: 1;
|
|
761
|
+
min-height: 0;
|
|
762
|
+
position: relative;
|
|
763
|
+
z-index: 1;
|
|
764
|
+
`,uk=w.div`
|
|
765
|
+
flex-grow: 1;
|
|
766
|
+
overflow: hidden;
|
|
767
|
+
margin-bottom: 20px;
|
|
768
|
+
`,ck=w.div`
|
|
769
|
+
flex-shrink: 0;
|
|
770
|
+
`,dk=500,fk=()=>{const[e,t]=C.useState(""),[n,r]=C.useState(!1),[o,i]=C.useState("idle"),[s,l]=C.useState([]),[a,c]=C.useState(null),[d,f]=C.useState("dark"),[p,g]=C.useState(),[y,x]=C.useState({}),[k,m]=C.useState(null),[h,v]=C.useState(null),[S,j]=C.useState(!1),N=C.useRef(null),$=()=>{f(d==="light"?"dark":"light")};C.useEffect(()=>{(async()=>{try{const[G,lt,O,q,B,T]=await Promise.all([_a(),La(),Gd(),qd(),bw(),Nw()]);r(G!=="idle"),i(G),c(lt),l(O.filter(L=>!!L.message).map(L=>({...L.message,data:L.data}))),g(q),x(B),m(T)}catch(G){console.error("Failed to fetch initial data:",G)}})()},[]);const P=C.useCallback(()=>{if(!S){j(!0);const F=async()=>{try{const[G,lt,O,q]=await Promise.all([_a(),La(),Gd(),qd()]);r(G!=="idle"),i(G),c(lt),l(O.filter(B=>!!B.message).map(B=>({...B.message,data:B.data}))),g(q)}catch(G){console.error("Failed to poll data:",G)}N.current=setTimeout(F,dk)};F()}},[S]),A=C.useCallback(()=>{S&&(j(!1),N.current&&(clearTimeout(N.current),N.current=null))},[S]),I=C.useCallback(async()=>{try{await Cm(),i("paused")}catch(F){console.error("Failed to pause execution:",F)}},[]),W=C.useCallback(async()=>{try{await jm(),i("executing")}catch(F){console.error("Failed to resume execution:",F)}},[]);return{currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,executionStatus:o,setExecutionStatus:i,chatMessages:s,setChatMessages:l,currentQuestion:a,theme:d,usage:p,codegenOptions:y,rcConfig:k,lastFinishedExecutionId:h,toggleTheme:$,setCodegenOptions:x,setCurrentQuestion:c,setLastFinishedExecutionId:v,startPolling:P,stopPolling:A,handlePauseExecution:I,handleResumeExecution:W}},pk=({setCurrentPrompt:e,setIsExecuting:t,setExecutionStatus:n,setCurrentQuestion:r,codegenOptions:o,setCodegenOptions:i})=>{const s=async(p,g)=>{e(p),t(!0);try{if(t(!0),n("executing"),await _a()==="executing"){console.warn("Execution is already executing");return}Cw(p,o,g.length>0?g:void 0)}catch(y){console.error("Failed to execute codegen:",y)}finally{t(!1),n("idle")}},l=async(p,g,y)=>{const x=await La();if(x)try{r(null),await Ew(x.id,p,g,{...o,aiService:y??o.aiService})}catch(k){console.error("Failed to submit answer:",k)}},a=async()=>{try{r(null),await jw()}catch(p){console.error("Failed to interrupt execution:",p)}},c=C.useCallback(p=>{i(p)},[i]),d=C.useCallback(async()=>{try{await Cm()}catch(p){console.error("Failed to pause execution:",p)}},[n]),f=C.useCallback(async()=>{try{await jm()}catch(p){console.error("Failed to resume execution:",p)}},[n]);return{handleExecute:s,handleQuestionSubmit:l,handleInterrupt:a,handleOptionsChange:c,handlePauseExecution:d,handleResumeExecution:f}};var so=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(so||{}),qu=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(qu||{});function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}function V(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Dm={},Mm=C.createContext(Dm),hk=(e,t)=>b({},e,t),mk=()=>C.useContext(Mm),Yu=C.createContext(()=>{});Yu.displayName="JVR.DispatchShowTools";function yk(){return C.useReducer(hk,Dm)}function zm(){return C.useContext(Yu)}var Fm=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(Mm.Provider,{value:t,children:u.jsx(Yu.Provider,{value:n,children:r})})};Fm.displayName="JVR.ShowTools";var Bm={},Um=C.createContext(Bm),vk=(e,t)=>b({},e,t),As=()=>C.useContext(Um),Xu=C.createContext(()=>{});Xu.displayName="JVR.DispatchExpands";function gk(){return C.useReducer(vk,Bm)}function xk(){return C.useContext(Xu)}var Vm=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(Um.Provider,{value:t,children:u.jsx(Xu.Provider,{value:n,children:r})})};Vm.displayName="JVR.Expands";var Hm={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Wm=C.createContext(Hm),wk=(e,t)=>b({},e,t),ee=()=>C.useContext(Wm),Zu=C.createContext(()=>{});Zu.displayName="JVR.DispatchTypes";function Sk(){return C.useReducer(wk,Hm)}function kk(){return C.useContext(Zu)}function Jm(e){var{initial:t,dispatch:n,children:r}=e;return u.jsx(Wm.Provider,{value:t,children:u.jsx(Zu.Provider,{value:n,children:r})})}Jm.displayName="JVR.Types";var Ck=["style"];function Km(e){var{style:t}=e,n=V(e,Ck),r=b({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return u.jsx("svg",b({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:u.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Km.displayName="JVR.TriangleArrow";var Qm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:u.jsx(Km,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Gm=C.createContext(Qm),jk=(e,t)=>b({},e,t),Fe=()=>C.useContext(Gm),ec=C.createContext(()=>{});ec.displayName="JVR.DispatchSymbols";function Ek(){return C.useReducer(jk,Qm)}function bk(){return C.useContext(ec)}var qm=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(Gm.Provider,{value:t,children:u.jsx(ec.Provider,{value:n,children:r})})};qm.displayName="JVR.Symbols";var Ym={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Xm=C.createContext(Ym),Nk=(e,t)=>b({},e,t),st=()=>C.useContext(Xm),tc=C.createContext(()=>{});tc.displayName="JVR.DispatchSection";function $k(){return C.useReducer(Nk,Ym)}function Rk(){return C.useContext(tc)}var Zm=e=>{var{initial:t,dispatch:n,children:r}=e;return u.jsx(Xm.Provider,{value:t,children:u.jsx(tc.Provider,{value:n,children:r})})};Zm.displayName="JVR.Section";var ey={objectSortKeys:!1,indentWidth:15},nc=C.createContext(ey);nc.displayName="JVR.Context";var ty=C.createContext(()=>{});ty.displayName="JVR.DispatchContext";function Pk(e,t){return b({},e,t)}var On=()=>C.useContext(nc),ny=e=>{var{children:t,initialState:n,initialTypes:r}=e,[o,i]=C.useReducer(Pk,Object.assign({},ey,n)),[s,l]=yk(),[a,c]=gk(),[d,f]=Sk(),[p,g]=Ek(),[y,x]=$k();return C.useEffect(()=>i(b({},n)),[n]),u.jsx(nc.Provider,{value:o,children:u.jsx(ty.Provider,{value:i,children:u.jsx(Fm,{initial:s,dispatch:l,children:u.jsx(Vm,{initial:a,dispatch:c,children:u.jsx(Jm,{initial:b({},d,r),dispatch:f,children:u.jsx(qm,{initial:p,dispatch:g,children:u.jsx(Zm,{initial:y,dispatch:x,children:t})})})})})})})};ny.displayName="JVR.Provider";function Tk(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var _k=["isNumber","value","parentValue","keyName","keys"],Lk=["as","render"],Ik=["as","render"],Ok=["as","render"],Ak=["as","style","render"],Dk=["as","render"],Mk=["as","render"],zk=["as","render"],Fk=["as","render"],Ia=e=>{var{Quote:t={}}=Fe(),{isNumber:n,value:r,parentValue:o,keyName:i,keys:s}=e,l=V(e,_k);if(n)return null;var{as:a,render:c}=t,d=V(t,Lk),f=a||"span",p=b({},l,d),g={value:r,parentValue:o,keyName:i,keys:s||(i?[i]:[])},y=c&&typeof c=="function"&&c(p,g);return y||u.jsx(f,b({},p))};Ia.displayName="JVR.Quote";var No=e=>{var{ValueQuote:t={}}=Fe(),n=b({},(Tk(e),e)),{as:r,render:o}=t,i=V(t,Ik),s=r||"span",l=b({},n,i),a=o&&typeof o=="function"&&o(l,{});return a||u.jsx(s,b({},l))};No.displayName="JVR.ValueQuote";var ry=e=>{var{value:t,parentValue:n,keyName:r,keys:o}=e,{Colon:i={}}=Fe(),{as:s,render:l}=i,a=V(i,Ok),c=s||"span",d=l&&typeof l=="function"&&l(a,{value:t,parentValue:n,keyName:r,keys:o||(r?[r]:[])});return d||u.jsx(c,b({},a))};ry.displayName="JVR.Colon";var oy=e=>{var{Arrow:t={}}=Fe(),n=As(),{expandKey:r,style:o,value:i,parentValue:s,keyName:l,keys:a}=e,c=!!n[r],{as:d,style:f,render:p}=t,g=V(t,Ak),y=d||"span",x=p&&typeof p=="function",k=b({},g,{"data-expanded":c,style:b({},f,o)}),m={value:i,parentValue:s,keyName:l,keys:a||(l?[l]:[])},h=x&&p(k,m);return h||u.jsx(y,b({},g,{style:b({},f,o)}))};oy.displayName="JVR.Arrow";var iy=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:o,keys:i}=e,{BracketsLeft:s={},BraceLeft:l={}}=Fe(),a={value:n,parentValue:r,keyName:o,keys:i||(o?[o]:[])};if(t){var{as:c,render:d}=s,f=V(s,Dk),p=c||"span",g=d&&typeof d=="function"&&d(f,a);return g||u.jsx(p,b({},f))}var{as:y,render:x}=l,k=V(l,Mk),m=y||"span",h=x&&typeof x=="function"&&x(k,a);return h||u.jsx(m,b({},k))};iy.displayName="JVR.BracketsOpen";var rc=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:o,keyName:i,keys:s}=e,l={value:r,parentValue:o,keyName:i,keys:s||(i?[i]:[])};if(!n)return null;var{BracketsRight:a={},BraceRight:c={}}=Fe();if(t){var{as:d,render:f}=a,p=V(a,zk),g=d||"span",y=f&&typeof f=="function"&&f(p,l);return y||u.jsx(g,b({},p))}var{as:x,render:k}=c,m=V(c,Fk),h=x||"span",v=k&&typeof k=="function"&&k(m,l);return v||u.jsx(h,b({},m))};rc.displayName="JVR.BracketsClose";var sy=e=>{var t,{value:n,expandKey:r,level:o,keys:i=[]}=e,s=As(),l=Array.isArray(n),{collapsed:a,shouldExpandNodeInitially:c}=On(),d=n instanceof Set,f=typeof a=="boolean"?a:typeof a=="number"?o>a:!1,p=(t=s[r])!=null?t:f,g=Object.keys(n).length;if(s[r]===void 0&&c&&c(p,{value:n,keys:i,level:o})||p||g===0)return null;var y={paddingLeft:4};return u.jsx("div",{style:y,children:u.jsx(rc,{isBrackets:l||d,isVisiable:!0})})};sy.displayName="JVR.NestedClose";var Bk=["as","render"],Uk=["as","render"],Vk=["as","render"],Hk=["as","render"],Wk=["as","render"],Jk=["as","render"],Kk=["as","render"],Qk=["as","render"],Gk=["as","render"],qk=["as","render"],Yk=["as","render"],Xk=["as","render"],Zk=["as","render"],Oa=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},ly=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:o}=ee(),i=t instanceof Set;if(!i||!o)return null;var{as:s,render:l}=r,a=V(r,Bk),c=l&&typeof l=="function",d=c&&l(a,{type:"type",value:t,keyName:n});if(d)return d;var f=s||"span";return u.jsx(f,b({},a))};ly.displayName="JVR.SetComp";var ay=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:o}=ee(),i=t instanceof Map;if(!i||!o)return null;var{as:s,render:l}=r,a=V(r,Uk),c=l&&typeof l=="function",d=c&&l(a,{type:"type",value:t,keyName:n});if(d)return d;var f=s||"span";return u.jsx(f,b({},a))};ay.displayName="JVR.MapComp";var gt={opacity:.75,paddingRight:4},uy=e=>{var{children:t="",keyName:n}=e,{Str:r={},displayDataTypes:o}=ee(),{shortenTextAfterLength:i=30}=On(),{as:s,render:l}=r,a=V(r,Vk),c=t,[d,f]=C.useState(i&&c.length>i);C.useEffect(()=>f(i&&c.length>i),[i]);var p=s||"span",g=b({},gt,r.style||{});i>0&&(a.style=b({},a.style,{cursor:c.length<=i?"initial":"pointer"}),c.length>i&&(a.onClick=()=>{f(!d)}));var y=d?c.slice(0,i)+"...":c,x=l&&typeof l=="function",k=x&&l(b({},a,{style:g}),{type:"type",value:t,keyName:n}),m=x&&l(b({},a,{children:y,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(k||u.jsx(p,b({},a,{style:g}))),m||u.jsxs(C.Fragment,{children:[u.jsx(No,{}),u.jsx(p,b({},a,{className:"w-rjv-value",children:y})),u.jsx(No,{})]})]})};uy.displayName="JVR.TypeString";var cy=e=>{var{children:t,keyName:n}=e,{True:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Hk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p||u.jsx(a,b({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};cy.displayName="JVR.TypeTrue";var dy=e=>{var{children:t,keyName:n}=e,{False:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Wk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p||u.jsx(a,b({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};dy.displayName="JVR.TypeFalse";var fy=e=>{var{children:t,keyName:n}=e,{Float:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Jk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p||u.jsx(a,b({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};fy.displayName="JVR.TypeFloat";var py=e=>{var{children:t,keyName:n}=e,{Int:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Kk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p||u.jsx(a,b({},l,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};py.displayName="JVR.TypeInt";var hy=e=>{var{children:t,keyName:n}=e,{Bigint:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Qk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p||u.jsx(a,b({},l,{className:"w-rjv-value",children:Oa(t==null?void 0:t.toString())}))]})};hy.displayName="JVR.TypeFloat";var my=e=>{var{children:t,keyName:n}=e,{Url:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Gk),a=i||"span",c=b({},gt,r.style),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p||u.jsxs("a",b({href:t==null?void 0:t.href,target:"_blank"},l,{className:"w-rjv-value",children:[u.jsx(No,{}),t==null?void 0:t.href,u.jsx(No,{})]}))]})};my.displayName="JVR.TypeUrl";var yy=e=>{var{children:t,keyName:n}=e,{Date:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,qk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=t instanceof Date?t.toLocaleString():t,g=d&&s(b({},l,{children:p,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),g||u.jsx(a,b({},l,{className:"w-rjv-value",children:p}))]})};yy.displayName="JVR.TypeDate";var vy=e=>{var{children:t,keyName:n}=e,{Undefined:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Yk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p]})};vy.displayName="JVR.TypeUndefined";var gy=e=>{var{children:t,keyName:n}=e,{Null:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Xk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p]})};gy.displayName="JVR.TypeNull";var xy=e=>{var{children:t,keyName:n}=e,{Nan:r={},displayDataTypes:o}=ee(),{as:i,render:s}=r,l=V(r,Zk),a=i||"span",c=b({},gt,r.style||{}),d=s&&typeof s=="function",f=d&&s(b({},l,{style:c}),{type:"type",value:t,keyName:n}),p=d&&s(b({},l,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n});return u.jsxs(C.Fragment,{children:[o&&(f||u.jsx(a,b({},l,{style:c}))),p]})};xy.displayName="JVR.TypeNan";var eC=e=>Number(e)===e&&e%1!==0||isNaN(e),wy=e=>{var{value:t,keyName:n}=e,r={keyName:n};return t instanceof URL?u.jsx(my,b({},r,{children:t})):typeof t=="string"?u.jsx(uy,b({},r,{children:t})):t===!0?u.jsx(cy,b({},r,{children:t})):t===!1?u.jsx(dy,b({},r,{children:t})):t===null?u.jsx(gy,b({},r,{children:t})):t===void 0?u.jsx(vy,b({},r,{children:t})):t instanceof Date?u.jsx(yy,b({},r,{children:t})):typeof t=="number"&&isNaN(t)?u.jsx(xy,b({},r,{children:t})):typeof t=="number"&&eC(t)?u.jsx(fy,b({},r,{children:t})):typeof t=="bigint"?u.jsx(hy,b({},r,{children:t})):typeof t=="number"?u.jsx(py,b({},r,{children:t})):null};wy.displayName="JVR.Value";function dn(e,t,n){var r=bk(),o=[e.className,t.className].filter(Boolean).join(" "),i=b({},e,t,{className:o,style:b({},e.style,t.style),children:t.children||e.children});C.useEffect(()=>r({[n]:i}),[t])}function qe(e,t,n){var r=kk(),o=[e.className,t.className].filter(Boolean).join(" "),i=b({},e,t,{className:o,style:b({},e.style,t.style),children:t.children||e.children});C.useEffect(()=>r({[n]:i}),[t])}function Pr(e,t,n){var r=Rk(),o=[e.className,t.className].filter(Boolean).join(" "),i=b({},e,t,{className:o,style:b({},e.style,t.style),children:t.children||e.children});C.useEffect(()=>r({[n]:i}),[t])}var tC=["as","render"],Sy=e=>{var{KeyName:t={}}=st();return Pr(t,e,"KeyName"),null};Sy.displayName="JVR.KeyName";var ky=e=>{var{children:t,value:n,parentValue:r,keyName:o,keys:i}=e,s=typeof t=="number",l={color:s?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:a={}}=st(),{as:c,render:d}=a,f=V(a,tC);f.style=b({},f.style,l);var p=c||"span",g=d&&typeof d=="function"&&d(b({},f,{children:t}),{value:n,parentValue:r,keyName:o,keys:i||(o?[o]:[])});return g||u.jsx(p,b({},f,{children:t}))};ky.displayName="JVR.KeyNameComp";var nC=["children","value","parentValue","keyName","keys"],rC=["as","render","children"],Cy=e=>{var{Row:t={}}=st();return Pr(t,e,"Row"),null};Cy.displayName="JVR.Row";var jy=e=>{var{children:t,value:n,parentValue:r,keyName:o,keys:i}=e,s=V(e,nC),{Row:l={}}=st(),{as:a,render:c}=l,d=V(l,rC),f=a||"div",p=c&&typeof c=="function"&&c(b({},s,d,{children:t}),{value:n,keyName:o,parentValue:r,keys:i});return p||u.jsx(f,b({},s,d,{children:t}))};jy.displayName="JVR.RowComp";function oC(e){var t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}function iC(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,o=oC(t),i=C.useMemo(()=>{if(!n||o===void 0)return!1;if(typeof t!=typeof o)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(o)?!1:t!==o;if(Array.isArray(t)!==Array.isArray(o))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==o)return!0},[n,t]);C.useEffect(()=>{r&&r.current&&i&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[i,t,r])}var sC=["keyName","value","parentValue","expandKey","keys"],lC=["as","render"],oc=e=>{var{keyName:t,value:n,parentValue:r,expandKey:o,keys:i}=e,s=V(e,sC),{onCopied:l,enableClipboard:a}=On(),c=mk(),d=c[o],[f,p]=C.useState(!1),{Copied:g={}}=st();if(a===!1||!d)return null;var y=j=>{j.stopPropagation();var N="";typeof n=="number"&&n===1/0?N="Infinity":typeof n=="number"&&isNaN(n)?N="NaN":typeof n=="bigint"?N=Oa(n):n instanceof Date?N=n.toLocaleString():N=JSON.stringify(n,(P,A)=>typeof A=="bigint"?Oa(A):A,2),l&&l(N,n),p(!0);var $=navigator.clipboard||{writeText(P){return new Promise((A,I)=>{var W=document.createElement("textarea");W.style.position="absolute",W.style.opacity="0",W.style.left="-99999999px",W.value=P,document.body.appendChild(W),W.select(),document.execCommand("copy")?A():I(),W.remove()})}};$.writeText(N).then(()=>{var P=setTimeout(()=>{p(!1),clearTimeout(P)},3e3)}).catch(P=>{})},x={style:{display:"inline-flex"},fill:f?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:y},{render:k}=g,m=V(g,lC),h=b({},m,s,x,{style:b({},m.style,s.style,x.style)}),v=k&&typeof k=="function",S=v&&k(b({},h,{"data-copied":f}),{value:n,keyName:t,keys:i,parentValue:r});return S||(f?u.jsx("svg",b({viewBox:"0 0 32 36"},h,{children:u.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):u.jsx("svg",b({viewBox:"0 0 32 36"},h,{children:u.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};oc.displayName="JVR.Copied";function Ey(){var e=C.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var by=e=>{var t,{value:n,expandKey:r="",level:o,keys:i=[]}=e,s=As(),{objectSortKeys:l,indentWidth:a,collapsed:c,shouldExpandNodeInitially:d}=On(),f=Array.isArray(n),p=typeof c=="boolean"?c:typeof c=="number"?o>c:!1,g=(t=s[r])!=null?t:p;if(s[r]===void 0&&d&&d(g,{value:n,keys:i,level:o})||g)return null;var y=f?Object.entries(n).map(k=>[Number(k[0]),k[1]]):Object.entries(n);l&&(y=l===!0?y.sort((k,m)=>{var[h]=k,[v]=m;return typeof h=="string"&&typeof v=="string"?h.localeCompare(v):0}):y.sort((k,m)=>{var[h,v]=k,[S,j]=m;return typeof h=="string"&&typeof S=="string"?l(h,S,v,j):0}));var x={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:a,marginLeft:6};return u.jsx("div",{className:"w-rjv-wrap",style:x,children:y.map((k,m)=>{var[h,v]=k;return u.jsx(Ny,{parentValue:n,keyName:h,keys:[...i,h],value:v,level:o},m)})})};by.displayName="JVR.KeyValues";var ic=e=>{var{keyName:t,parentValue:n,keys:r,value:o}=e,{highlightUpdates:i}=On(),s=typeof t=="number",l=C.useRef(null);iC({value:o,highlightUpdates:i,highlightContainer:l});var a={keyName:t,value:o,keys:r,parentValue:n};return u.jsxs(C.Fragment,{children:[u.jsxs("span",{ref:l,children:[u.jsx(Ia,b({isNumber:s,"data-placement":"left"},a)),u.jsx(ky,b({},a,{children:t})),u.jsx(Ia,b({isNumber:s,"data-placement":"right"},a))]}),u.jsx(ry,b({},a))]})};ic.displayName="JVR.KayName";var Ny=e=>{var{keyName:t,value:n,parentValue:r,level:o=0,keys:i=[]}=e,s=zm(),l=Ey(),a=Array.isArray(n),c=n instanceof Set,d=n instanceof Map,f=n instanceof Date,p=n instanceof URL,g=n&&typeof n=="object"&&!a&&!c&&!d&&!f&&!p,y=g||a||c||d;if(y){var x=c?Array.from(n):d?Object.fromEntries(n):n;return u.jsx(sc,{keyName:t,value:x,parentValue:r,initialValue:n,keys:i,level:o+1})}var k={onMouseEnter:()=>s({[l]:!0}),onMouseLeave:()=>s({[l]:!1})};return u.jsxs(jy,b({className:"w-rjv-line",value:n,keyName:t,keys:i,parentValue:r},k,{children:[u.jsx(ic,{keyName:t,value:n,keys:i,parentValue:r}),u.jsx(wy,{keyName:t,value:n}),u.jsx(oc,{keyName:t,value:n,keys:i,parentValue:r,expandKey:l})]}))};Ny.displayName="JVR.KeyValuesItem";var aC=["value","keyName"],uC=["as","render"],$y=e=>{var{CountInfoExtra:t={}}=st();return Pr(t,e,"CountInfoExtra"),null};$y.displayName="JVR.CountInfoExtra";var Ry=e=>{var{value:t={},keyName:n}=e,r=V(e,aC),{CountInfoExtra:o={}}=st(),{as:i,render:s}=o,l=V(o,uC);if(!s&&!l.children)return null;var a=i||"span",c=s&&typeof s=="function",d=b({},l,r),f=c&&s(d,{value:t,keyName:n});return f||u.jsx(a,b({},d))};Ry.displayName="JVR.CountInfoExtraComps";var cC=["value","keyName"],dC=["as","render"],Py=e=>{var{CountInfo:t={}}=st();return Pr(t,e,"CountInfo"),null};Py.displayName="JVR.CountInfo";var Ty=e=>{var{value:t={},keyName:n}=e,r=V(e,cC),{displayObjectSize:o}=On(),{CountInfo:i={}}=st();if(!o)return null;var{as:s,render:l}=i,a=V(i,dC),c=s||"span";a.style=b({},a.style,e.style);var d=Object.keys(t).length;a.children||(a.children=d+" item"+(d===1?"":"s"));var f=b({},a,r),p=l&&typeof l=="function",g=p&&l(b({},f,{"data-length":d}),{value:t,keyName:n});return g||u.jsx(c,b({},f))};Ty.displayName="JVR.CountInfoComp";var fC=["as","render"],_y=e=>{var{Ellipsis:t={}}=st();return Pr(t,e,"Ellipsis"),null};_y.displayName="JVR.Ellipsis";var Ly=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:o={}}=st(),{as:i,render:s}=o,l=V(o,fC),a=i||"span",c=s&&typeof s=="function"&&s(b({},l,{"data-expanded":t}),{value:n,keyName:r});return c||(!t||typeof n=="object"&&Object.keys(n).length==0?null:u.jsx(a,b({},l)))};Ly.displayName="JVR.EllipsisComp";var Iy=e=>{var t,{keyName:n,expandKey:r,keys:o=[],initialValue:i,value:s,parentValue:l,level:a}=e,c=As(),d=xk(),{onExpand:f,collapsed:p,shouldExpandNodeInitially:g}=On(),y=Array.isArray(s),x=s instanceof Set,k=typeof p=="boolean"?p:typeof p=="number"?a>p:!1,m=typeof s=="object",h=(t=c[r])!=null?t:k,v=g&&g(h,{value:s,keys:o,level:a});c[r]===void 0&&v!==void 0&&(h=v);var S=()=>{var W={expand:!h,value:s,keyid:r,keyName:n};f&&f(W),d({[r]:W.expand})},j={display:"inline-flex",alignItems:"center"},N={transform:"rotate("+(h?"-90":"0")+"deg)",transition:"all 0.3s"},$=Object.keys(s).length,P=$!==0&&(y||x||m),A={style:j};P&&(A.onClick=S);var I={keyName:n,value:s,keys:o,parentValue:l};return u.jsxs("span",b({},A,{children:[P&&u.jsx(oy,b({style:N,expandKey:r},I)),(n||typeof n=="number")&&u.jsx(ic,b({},I)),u.jsx(ly,{value:i,keyName:n}),u.jsx(ay,{value:i,keyName:n}),u.jsx(iy,b({isBrackets:y||x},I)),u.jsx(Ly,{keyName:n,value:s,isExpanded:h}),u.jsx(rc,b({isVisiable:h||!P,isBrackets:y||x},I)),u.jsx(Ty,{value:s,keyName:n}),u.jsx(Ry,{value:s,keyName:n}),u.jsx(oc,{keyName:n,value:s,expandKey:r,parentValue:l,keys:o})]}))};Iy.displayName="JVR.NestedOpen";var pC=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],sc=C.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:o=1,value:i,initialValue:s,keys:l,keyName:a}=e,c=V(e,pC),d=zm(),f=Ey(),p=[n,"w-rjv-inner"].filter(Boolean).join(" "),g={onMouseEnter:()=>d({[f]:!0}),onMouseLeave:()=>d({[f]:!1})};return u.jsxs("div",b({className:p,ref:t},c,g,{children:[u.jsx(Iy,{expandKey:f,value:i,level:o,keys:l,parentValue:r,keyName:a,initialValue:s}),u.jsx(by,{expandKey:f,value:i,level:o,keys:l,parentValue:r,keyName:a}),u.jsx(sy,{expandKey:f,value:i,level:o,keys:l})]}))});sc.displayName="JVR.Container";var Oy=e=>{var{BraceLeft:t={}}=Fe();return dn(t,e,"BraceLeft"),null};Oy.displayName="JVR.BraceLeft";var Ay=e=>{var{BraceRight:t={}}=Fe();return dn(t,e,"BraceRight"),null};Ay.displayName="JVR.BraceRight";var Dy=e=>{var{BracketsLeft:t={}}=Fe();return dn(t,e,"BracketsLeft"),null};Dy.displayName="JVR.BracketsLeft";var My=e=>{var{BracketsRight:t={}}=Fe();return dn(t,e,"BracketsRight"),null};My.displayName="JVR.BracketsRight";var zy=e=>{var{Arrow:t={}}=Fe();return dn(t,e,"Arrow"),null};zy.displayName="JVR.Arrow";var Fy=e=>{var{Colon:t={}}=Fe();return dn(t,e,"Colon"),null};Fy.displayName="JVR.Colon";var By=e=>{var{Quote:t={}}=Fe();return dn(t,e,"Quote"),null};By.displayName="JVR.Quote";var Uy=e=>{var{ValueQuote:t={}}=Fe();return dn(t,e,"ValueQuote"),null};Uy.displayName="JVR.ValueQuote";var Vy=e=>{var{Bigint:t={}}=ee();return qe(t,e,"Bigint"),null};Vy.displayName="JVR.Bigint";var Hy=e=>{var{Date:t={}}=ee();return qe(t,e,"Date"),null};Hy.displayName="JVR.Date";var Wy=e=>{var{False:t={}}=ee();return qe(t,e,"False"),null};Wy.displayName="JVR.False";var Jy=e=>{var{Float:t={}}=ee();return qe(t,e,"Float"),null};Jy.displayName="JVR.Float";var Ky=e=>{var{Int:t={}}=ee();return qe(t,e,"Int"),null};Ky.displayName="JVR.Int";var Qy=e=>{var{Map:t={}}=ee();return qe(t,e,"Map"),null};Qy.displayName="JVR.Map";var Gy=e=>{var{Nan:t={}}=ee();return qe(t,e,"Nan"),null};Gy.displayName="JVR.Nan";var qy=e=>{var{Null:t={}}=ee();return qe(t,e,"Null"),null};qy.displayName="JVR.Null";var Yy=e=>{var{Set:t={}}=ee();return qe(t,e,"Set"),null};Yy.displayName="JVR.Set";var Xy=e=>{var{Str:t={}}=ee();return qe(t,e,"Str"),null};Xy.displayName="JVR.StringText";var Zy=e=>{var{True:t={}}=ee();return qe(t,e,"True"),null};Zy.displayName="JVR.True";var ev=e=>{var{Undefined:t={}}=ee();return qe(t,e,"Undefined"),null};ev.displayName="JVR.Undefined";var tv=e=>{var{Url:t={}}=ee();return qe(t,e,"Url"),null};tv.displayName="JVR.Url";var nv=e=>{var{Copied:t={}}=st();return Pr(t,e,"Copied"),null};nv.displayName="JVR.Copied";var hC=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Q=C.forwardRef((e,t)=>{var{className:n="",style:r,value:o,children:i,collapsed:s,shouldExpandNodeInitially:l,indentWidth:a=15,displayObjectSize:c=!0,shortenTextAfterLength:d=30,highlightUpdates:f=!0,enableClipboard:p=!0,displayDataTypes:g=!0,objectSortKeys:y=!1,onExpand:x,onCopied:k}=e,m=V(e,hC),h=b({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),v=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return u.jsxs(ny,{initialState:{value:o,objectSortKeys:y,indentWidth:a,shouldExpandNodeInitially:l,displayObjectSize:c,collapsed:s,enableClipboard:p,shortenTextAfterLength:d,highlightUpdates:f,onCopied:k,onExpand:x},initialTypes:{displayDataTypes:g},children:[u.jsx(sc,b({value:o},m,{ref:t,className:v,style:h})),i]})});Q.Bigint=Vy;Q.Date=Hy;Q.False=Wy;Q.Float=Jy;Q.Int=Ky;Q.Map=Qy;Q.Nan=Gy;Q.Null=qy;Q.Set=Yy;Q.String=Xy;Q.True=Zy;Q.Undefined=ev;Q.Url=tv;Q.ValueQuote=Uy;Q.Arrow=zy;Q.Colon=Fy;Q.Quote=By;Q.Ellipsis=_y;Q.BraceLeft=Oy;Q.BraceRight=Ay;Q.BracketsLeft=Dy;Q.BracketsRight=My;Q.Copied=nv;Q.CountInfo=Py;Q.CountInfoExtra=$y;Q.KeyName=Sy;Q.Row=Cy;Q.displayName="JVR.JsonView";var mC={"--w-rjv-font-family":"monospace","--w-rjv-color":"#0184a6","--w-rjv-key-string":"#0184a6","--w-rjv-background-color":"#202020","--w-rjv-line-color":"#323232","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#656565","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#0184a6","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#1896b6","--w-rjv-brackets-color":"#1896b6","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#649bd8","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#076678","--w-rjv-type-undefined-color":"#586e75"},yC={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const vC=w.pre`
|
|
771
|
+
margin-top: 8px;
|
|
772
|
+
padding: 8px;
|
|
773
|
+
background-color: ${e=>e.theme.colors.codeBackground};
|
|
774
|
+
border-radius: 4px;
|
|
775
|
+
font-size: 0.9em;
|
|
776
|
+
overflow-x: auto;
|
|
777
|
+
white-space: pre-wrap;
|
|
778
|
+
word-wrap: break-word;
|
|
779
|
+
|
|
780
|
+
.w-json-view-container {
|
|
781
|
+
background: none !important;
|
|
782
|
+
}
|
|
783
|
+
`,rv=({data:e})=>{const t=I1();return u.jsx(vC,{children:typeof e=="object"?u.jsx(Q,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?mC:yC}):JSON.stringify(e,null,2)})},Fo=w.div`
|
|
784
|
+
display: flex;
|
|
785
|
+
&[data-type='user'] {
|
|
786
|
+
justify-content: flex-end;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
&[data-type='assistant'] {
|
|
790
|
+
justify-content: flex-start;
|
|
791
|
+
}
|
|
792
|
+
`,gC=w.div`
|
|
793
|
+
color: ${e=>e.theme.colors.text};
|
|
794
|
+
border-radius: 12px;
|
|
795
|
+
padding: 8px 12px;
|
|
796
|
+
max-width: 70%;
|
|
797
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
798
|
+
|
|
799
|
+
${Fo}[data-type='user'] & {
|
|
800
|
+
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
801
|
+
color: ${e=>e.theme.colors.userMessageText};
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* Add subtle transition for edit mode */
|
|
805
|
+
transition: box-shadow 0.2s ease-in-out;
|
|
806
|
+
|
|
807
|
+
&[data-edit-mode='true'] {
|
|
808
|
+
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
|
|
809
|
+
}
|
|
810
|
+
`,xC=w.div`
|
|
811
|
+
font-weight: bold;
|
|
812
|
+
margin-bottom: 4px;
|
|
813
|
+
display: flex;
|
|
814
|
+
justify-content: space-between;
|
|
815
|
+
align-items: center;
|
|
816
|
+
`,wC=w.pre`
|
|
817
|
+
white-space: pre-wrap;
|
|
818
|
+
word-wrap: break-word;
|
|
819
|
+
font-family: inherit;
|
|
820
|
+
margin: 0;
|
|
821
|
+
`,SC=w.textarea`
|
|
822
|
+
width: 100%;
|
|
823
|
+
min-height: 100px;
|
|
824
|
+
padding: 8px;
|
|
825
|
+
border: none;
|
|
826
|
+
border-radius: 4px;
|
|
827
|
+
background-color: ${e=>e.theme.colors.background};
|
|
828
|
+
color: ${e=>e.theme.colors.text};
|
|
829
|
+
font-family: inherit;
|
|
830
|
+
font-size: inherit;
|
|
831
|
+
resize: vertical;
|
|
832
|
+
margin: 4px 0;
|
|
833
|
+
field-sizing: content;
|
|
834
|
+
box-sizing: border-box;
|
|
835
|
+
|
|
836
|
+
&:focus {
|
|
837
|
+
outline: none;
|
|
838
|
+
box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary};
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
${Fo}[data-type='user'] & {
|
|
842
|
+
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
843
|
+
color: ${e=>e.theme.colors.userMessageText};
|
|
844
|
+
}
|
|
845
|
+
`,kC=w.div`
|
|
846
|
+
display: flex;
|
|
847
|
+
justify-content: space-between;
|
|
848
|
+
align-items: center;
|
|
849
|
+
margin-top: 4px;
|
|
850
|
+
`,CC=w.div`
|
|
851
|
+
font-size: 0.8em;
|
|
852
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
853
|
+
|
|
854
|
+
${Fo}[data-type='user'] & {
|
|
855
|
+
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
856
|
+
}
|
|
857
|
+
`,jC=w.span`
|
|
858
|
+
font-size: 0.8em;
|
|
859
|
+
color: ${e=>e.theme.colors.primary};
|
|
860
|
+
cursor: pointer;
|
|
861
|
+
text-decoration: underline;
|
|
862
|
+
|
|
863
|
+
&:hover {
|
|
864
|
+
color: ${e=>e.theme.colors.primaryHover};
|
|
865
|
+
}
|
|
866
|
+
`,EC=w.div`
|
|
867
|
+
display: flex;
|
|
868
|
+
gap: 8px;
|
|
869
|
+
margin-top: 8px;
|
|
870
|
+
`,lc=w.button`
|
|
871
|
+
padding: 4px 8px;
|
|
872
|
+
border: none;
|
|
873
|
+
border-radius: 4px;
|
|
874
|
+
cursor: pointer;
|
|
875
|
+
font-size: 0.8em;
|
|
876
|
+
transition: background-color 0.2s ease-in-out;
|
|
877
|
+
|
|
878
|
+
&:disabled {
|
|
879
|
+
opacity: 0.5;
|
|
880
|
+
cursor: not-allowed;
|
|
881
|
+
}
|
|
882
|
+
`,bC=w(lc)`
|
|
883
|
+
background-color: transparent;
|
|
884
|
+
color: ${e=>e.theme.colors.primary};
|
|
885
|
+
|
|
886
|
+
&:hover:not(:disabled) {
|
|
887
|
+
background-color: ${e=>e.theme.colors.primaryHover}20;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
${Fo}[data-type='user'] & {
|
|
891
|
+
color: ${e=>e.theme.colors.userMessageText};
|
|
892
|
+
&:hover:not(:disabled) {
|
|
893
|
+
background-color: ${e=>e.theme.colors.userMessageText}20;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
`,NC=w(lc)`
|
|
897
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
898
|
+
color: ${e=>e.theme.colors.buttonText};
|
|
899
|
+
|
|
900
|
+
&:hover:not(:disabled) {
|
|
901
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
902
|
+
}
|
|
903
|
+
`,$C=w(lc)`
|
|
904
|
+
background-color: transparent;
|
|
905
|
+
color: ${e=>e.theme.colors.error};
|
|
906
|
+
|
|
907
|
+
&:hover:not(:disabled) {
|
|
908
|
+
background-color: ${e=>e.theme.colors.error}20;
|
|
909
|
+
}
|
|
910
|
+
`,RC=w.div`
|
|
911
|
+
width: 16px;
|
|
912
|
+
height: 16px;
|
|
913
|
+
border: 2px solid ${e=>e.theme.colors.primary};
|
|
914
|
+
border-top-color: transparent;
|
|
915
|
+
border-radius: 50%;
|
|
916
|
+
animation: spin 1s linear infinite;
|
|
917
|
+
margin: 0 8px;
|
|
918
|
+
|
|
919
|
+
@keyframes spin {
|
|
920
|
+
to {
|
|
921
|
+
transform: rotate(360deg);
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
`;w.span`
|
|
925
|
+
font-size: 0.7em;
|
|
926
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
927
|
+
margin-left: 8px;
|
|
928
|
+
font-style: italic;
|
|
929
|
+
`;const PC=w.div`
|
|
930
|
+
font-weight: bold;
|
|
931
|
+
font-size: 0.9em;
|
|
932
|
+
color: ${e=>e.theme.colors.text};
|
|
933
|
+
`;w.div`
|
|
934
|
+
font-size: 0.8em;
|
|
935
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
936
|
+
margin: 4px 0;
|
|
937
|
+
`;w.div`
|
|
938
|
+
font-size: 0.8em;
|
|
939
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
940
|
+
margin: 4px 0;
|
|
941
|
+
`;w.div`
|
|
942
|
+
display: inline-block;
|
|
943
|
+
padding: 2px 4px;
|
|
944
|
+
border-radius: 4px;
|
|
945
|
+
font-size: 0.8em;
|
|
946
|
+
font-weight: bold;
|
|
947
|
+
color: ${e=>e.theme.colors.text};
|
|
948
|
+
background-color: ${e=>e.variant==="updateFile"?e.theme.colors.primary:e.variant==="createFile"?e.theme.colors.success:e.theme.colors.warning};
|
|
949
|
+
`;w.div`
|
|
950
|
+
display: flex;
|
|
951
|
+
gap: 8px;
|
|
952
|
+
`;w.button`
|
|
953
|
+
padding: 4px 8px;
|
|
954
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
955
|
+
border-radius: 4px;
|
|
956
|
+
background-color: ${e=>e.theme.colors.background};
|
|
957
|
+
cursor: pointer;
|
|
958
|
+
font-size: 0.8em;
|
|
959
|
+
color: ${e=>e.theme.colors.text};
|
|
960
|
+
|
|
961
|
+
&:hover {
|
|
962
|
+
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
963
|
+
}
|
|
964
|
+
`;w.div`
|
|
965
|
+
margin: 16px 0;
|
|
966
|
+
`;w.div`
|
|
967
|
+
padding: 8px;
|
|
968
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
969
|
+
border-radius: 4px;
|
|
970
|
+
background-color: ${e=>e.theme.colors.background};
|
|
971
|
+
font-size: 0.9em;
|
|
972
|
+
line-height: 1.5;
|
|
973
|
+
`;w.div`
|
|
974
|
+
margin: 16px 0;
|
|
975
|
+
`;function fn(){}fn.prototype={diff:function(t,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.callback;typeof o=="function"&&(i=o,o={}),this.options=o;var s=this;function l(S){return i?(setTimeout(function(){i(void 0,S)},0),!0):S}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var a=n.length,c=t.length,d=1,f=a+c;o.maxEditLength&&(f=Math.min(f,o.maxEditLength));var p=(r=o.timeout)!==null&&r!==void 0?r:1/0,g=Date.now()+p,y=[{oldPos:-1,lastComponent:void 0}],x=this.extractCommon(y[0],n,t,0);if(y[0].oldPos+1>=c&&x+1>=a)return l([{value:this.join(n),count:n.length}]);var k=-1/0,m=1/0;function h(){for(var S=Math.max(k,-d);S<=Math.min(m,d);S+=2){var j=void 0,N=y[S-1],$=y[S+1];N&&(y[S-1]=void 0);var P=!1;if($){var A=$.oldPos-S;P=$&&0<=A&&A<a}var I=N&&N.oldPos+1<c;if(!P&&!I){y[S]=void 0;continue}if(!I||P&&N.oldPos+1<$.oldPos?j=s.addToPath($,!0,void 0,0):j=s.addToPath(N,void 0,!0,1),x=s.extractCommon(j,n,t,S),j.oldPos+1>=c&&x+1>=a)return l(TC(s,j.lastComponent,n,t,s.useLongestToken));y[S]=j,j.oldPos+1>=c&&(m=Math.min(m,S-1)),x+1>=a&&(k=Math.max(k,S+1))}d++}if(i)(function S(){setTimeout(function(){if(d>f||Date.now()>g)return i();h()||S()},0)})();else for(;d<=f&&Date.now()<=g;){var v=h();if(v)return v}},addToPath:function(t,n,r,o){var i=t.lastComponent;return i&&i.added===n&&i.removed===r?{oldPos:t.oldPos+o,lastComponent:{count:i.count+1,added:n,removed:r,previousComponent:i.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:n,removed:r,previousComponent:i}}},extractCommon:function(t,n,r,o){for(var i=n.length,s=r.length,l=t.oldPos,a=l-o,c=0;a+1<i&&l+1<s&&this.equals(n[a+1],r[l+1]);)a++,l++,c++;return c&&(t.lastComponent={count:c,previousComponent:t.lastComponent}),t.oldPos=l,a},equals:function(t,n){return this.options.comparator?this.options.comparator(t,n):t===n||this.options.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function TC(e,t,n,r,o){for(var i=[],s;t;)i.push(t),s=t.previousComponent,delete t.previousComponent,t=s;i.reverse();for(var l=0,a=i.length,c=0,d=0;l<a;l++){var f=i[l];if(f.removed){if(f.value=e.join(r.slice(d,d+f.count)),d+=f.count,l&&i[l-1].added){var g=i[l-1];i[l-1]=i[l],i[l]=g}}else{if(!f.added&&o){var p=n.slice(c,c+f.count);p=p.map(function(x,k){var m=r[d+k];return m.length>x.length?m:x}),f.value=e.join(p)}else f.value=e.join(n.slice(c,c+f.count));c+=f.count,f.added||(d+=f.count)}}var y=i[a-1];return a>1&&typeof y.value=="string"&&(y.added||y.removed)&&e.equals("",y.value)&&(i[a-2].value+=y.value,i.pop()),i}var Zd=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ef=/\S/,ov=new fn;ov.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ef.test(e)&&!ef.test(t)};ov.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Zd.test(t[n])&&Zd.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var ac=new fn;ac.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
976
|
+
`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t};function _C(e,t,n){return ac.diff(e,t,n)}var LC=new fn;LC.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var IC=new fn;IC.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Pi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pi=function(t){return typeof t}:Pi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}var OC=Object.prototype.toString,$o=new fn;$o.useLongestToken=!0;$o.tokenize=ac.tokenize;$o.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=r===void 0?function(i,s){return typeof s>"u"?n:s}:r;return typeof e=="string"?e:JSON.stringify(Aa(e,null,null,o),o," ")};$o.equals=function(e,t){return fn.prototype.equals.call($o,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Aa(e,t,n,r,o){t=t||[],n=n||[],r&&(e=r(o,e));var i;for(i=0;i<t.length;i+=1)if(t[i]===e)return n[i];var s;if(OC.call(e)==="[object Array]"){for(t.push(e),s=new Array(e.length),n.push(s),i=0;i<e.length;i+=1)s[i]=Aa(e[i],t,n,r,o);return t.pop(),n.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),Pi(e)==="object"&&e!==null){t.push(e),s={},n.push(s);var l=[],a;for(a in e)e.hasOwnProperty(a)&&l.push(a);for(l.sort(),i=0;i<l.length;i+=1)a=l[i],s[a]=Aa(e[a],t,n,r,a);t.pop(),n.pop()}else s=e;return s}var Da=new fn;Da.tokenize=function(e){return e.slice()};Da.join=Da.removeEmpty=function(e){return e};const AC=({oldContent:e,newContent:t})=>{const[n,r]=C.useState("unified"),o=_C(e??"",t),i=()=>u.jsx(zC,{children:o.map((c,d)=>u.jsx(wl,{added:c.added,removed:c.removed,children:c.value},d))}),s=()=>u.jsxs(FC,{children:[u.jsxs(tf,{children:[u.jsx(ci,{children:"Old Content"}),o.filter(c=>!c.added).map((c,d)=>u.jsx(wl,{removed:c.removed,children:c.value},d))]}),u.jsxs(tf,{children:[u.jsx(ci,{children:"New Content"}),o.filter(c=>!c.removed).map((c,d)=>u.jsx(wl,{added:c.added,children:c.value},d))]})]}),l=()=>u.jsxs(nf,{children:[u.jsx(ci,{children:"Old Content"}),u.jsx(rf,{children:e})]}),a=()=>u.jsxs(nf,{children:[u.jsx(ci,{children:"New Content"}),u.jsx(rf,{children:t})]});return u.jsxs(DC,{children:[u.jsxs(MC,{children:[u.jsx(ui,{active:n==="unified",onClick:()=>r("unified"),children:"Unified"}),u.jsx(ui,{active:n==="sideBySide",onClick:()=>r("sideBySide"),children:"Side by Side"}),u.jsx(ui,{active:n==="old",onClick:()=>r("old"),children:"Old Content"}),u.jsx(ui,{active:n==="new",onClick:()=>r("new"),children:"New Content"})]}),n==="unified"&&i(),n==="sideBySide"&&s(),n==="old"&&l(),n==="new"&&a()]})},DC=w.div`
|
|
977
|
+
margin: 16px 0;
|
|
978
|
+
`,MC=w.div`
|
|
979
|
+
display: flex;
|
|
980
|
+
gap: 8px;
|
|
981
|
+
margin-bottom: 16px;
|
|
982
|
+
`,ui=w.button`
|
|
983
|
+
padding: 4px 8px;
|
|
984
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
985
|
+
border-radius: 4px;
|
|
986
|
+
background-color: ${e=>e.active?e.theme.colors.primary:e.theme.colors.background};
|
|
987
|
+
color: ${e=>e.active?e.theme.colors.textOnPrimary:e.theme.colors.text};
|
|
988
|
+
cursor: pointer;
|
|
989
|
+
font-size: 0.8em;
|
|
990
|
+
|
|
991
|
+
&:hover {
|
|
992
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
993
|
+
}
|
|
994
|
+
`,zC=w.div`
|
|
995
|
+
margin: 16px 0;
|
|
996
|
+
padding: 8px;
|
|
997
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
998
|
+
border-radius: 4px;
|
|
999
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1000
|
+
max-height: 400px;
|
|
1001
|
+
overflow-y: auto;
|
|
1002
|
+
`,FC=w.div`
|
|
1003
|
+
display: grid;
|
|
1004
|
+
grid-template-columns: 1fr 1fr;
|
|
1005
|
+
gap: 16px;
|
|
1006
|
+
margin: 16px 0;
|
|
1007
|
+
`,tf=w.div`
|
|
1008
|
+
padding: 8px;
|
|
1009
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1010
|
+
border-radius: 4px;
|
|
1011
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1012
|
+
max-height: 400px;
|
|
1013
|
+
overflow-y: auto;
|
|
1014
|
+
`,nf=w.div`
|
|
1015
|
+
margin: 16px 0;
|
|
1016
|
+
padding: 8px;
|
|
1017
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1018
|
+
border-radius: 4px;
|
|
1019
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1020
|
+
max-height: 400px;
|
|
1021
|
+
overflow-y: auto;
|
|
1022
|
+
`,ci=w.div`
|
|
1023
|
+
font-weight: bold;
|
|
1024
|
+
margin-bottom: 8px;
|
|
1025
|
+
`,rf=w.div`
|
|
1026
|
+
white-space: pre-wrap;
|
|
1027
|
+
font-family: monospace;
|
|
1028
|
+
font-size: 0.9em;
|
|
1029
|
+
line-height: 1.5;
|
|
1030
|
+
`,wl=w.div`
|
|
1031
|
+
white-space: pre-wrap;
|
|
1032
|
+
font-family: monospace;
|
|
1033
|
+
font-size: 0.9em;
|
|
1034
|
+
line-height: 1.5;
|
|
1035
|
+
padding: 2px 4px;
|
|
1036
|
+
margin: 2px 0;
|
|
1037
|
+
background-color: ${e=>e.added?e.theme.colors.diffAdded:e.removed?e.theme.colors.diffRemoved:"transparent"};
|
|
1038
|
+
color: ${e=>e.added?e.theme.colors.diffAddedText:e.removed?e.theme.colors.diffRemovedText:e.theme.colors.text};
|
|
1039
|
+
`,iv=w.div`
|
|
1040
|
+
display: flex;
|
|
1041
|
+
flex-direction: column;
|
|
1042
|
+
gap: 12px;
|
|
1043
|
+
width: 100%;
|
|
1044
|
+
margin-top: 8px;
|
|
1045
|
+
font-size: 0.95em;
|
|
1046
|
+
`,sr=w.div`
|
|
1047
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1048
|
+
border-radius: 6px;
|
|
1049
|
+
overflow: hidden;
|
|
1050
|
+
background: ${e=>e.theme.colors.backgroundSecondary}11;
|
|
1051
|
+
transition: all 0.2s ease;
|
|
1052
|
+
|
|
1053
|
+
&:hover {
|
|
1054
|
+
border-color: ${e=>e.theme.colors.primary}66;
|
|
1055
|
+
}
|
|
1056
|
+
`,lr=w.div`
|
|
1057
|
+
padding: 10px 12px;
|
|
1058
|
+
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1059
|
+
cursor: pointer;
|
|
1060
|
+
user-select: none;
|
|
1061
|
+
transition: background-color 0.2s ease;
|
|
1062
|
+
|
|
1063
|
+
&:hover {
|
|
1064
|
+
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1065
|
+
}
|
|
1066
|
+
`,ar=w.div`
|
|
1067
|
+
padding: 12px;
|
|
1068
|
+
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1069
|
+
animation: slideDown 0.2s ease;
|
|
1070
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1071
|
+
font-size: 0.95em;
|
|
1072
|
+
white-space: pre-wrap;
|
|
1073
|
+
|
|
1074
|
+
@keyframes slideDown {
|
|
1075
|
+
from {
|
|
1076
|
+
opacity: 0;
|
|
1077
|
+
transform: translateY(-10px);
|
|
1078
|
+
}
|
|
1079
|
+
to {
|
|
1080
|
+
opacity: 1;
|
|
1081
|
+
transform: translateY(0);
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
`,ur=w.div`
|
|
1085
|
+
display: flex;
|
|
1086
|
+
align-items: center;
|
|
1087
|
+
gap: 8px;
|
|
1088
|
+
color: ${e=>e.theme.colors.primary};
|
|
1089
|
+
font-weight: 500;
|
|
1090
|
+
|
|
1091
|
+
${e=>e.expanded&&Te`
|
|
1092
|
+
margin-bottom: -1px;
|
|
1093
|
+
`}
|
|
1094
|
+
`,cr=w.span`
|
|
1095
|
+
display: inline-block;
|
|
1096
|
+
width: 16px;
|
|
1097
|
+
height: 16px;
|
|
1098
|
+
line-height: 16px;
|
|
1099
|
+
text-align: center;
|
|
1100
|
+
font-size: 0.8em;
|
|
1101
|
+
transition: transform 0.2s ease;
|
|
1102
|
+
`,Ma=w.div`
|
|
1103
|
+
display: flex;
|
|
1104
|
+
flex-direction: column;
|
|
1105
|
+
gap: 12px;
|
|
1106
|
+
`,za=w.div`
|
|
1107
|
+
padding: 10px;
|
|
1108
|
+
border-radius: 4px;
|
|
1109
|
+
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1110
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1111
|
+
|
|
1112
|
+
&:hover {
|
|
1113
|
+
border-color: ${e=>e.theme.colors.primary}66;
|
|
1114
|
+
}
|
|
1115
|
+
`,BC=w.div`
|
|
1116
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1117
|
+
font-size: 0.95em;
|
|
1118
|
+
font-weight: 500;
|
|
1119
|
+
margin-bottom: 6px;
|
|
1120
|
+
margin-top: 8px;
|
|
1121
|
+
`,Fa=w.div`
|
|
1122
|
+
font-family: monospace;
|
|
1123
|
+
padding: 4px 8px;
|
|
1124
|
+
padding-left: 0px;
|
|
1125
|
+
background: ${e=>e.theme.colors.codeBackground};
|
|
1126
|
+
border-radius: 3px;
|
|
1127
|
+
color: ${e=>e.theme.colors.codeText};
|
|
1128
|
+
word-break: break-all;
|
|
1129
|
+
`,UC=w.div`
|
|
1130
|
+
margin-top: 8px;
|
|
1131
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1132
|
+
font-size: 0.95em;
|
|
1133
|
+
line-height: 1.4;
|
|
1134
|
+
white-space: pre-wrap;
|
|
1135
|
+
`,VC=w.div`
|
|
1136
|
+
font-size: 0.9em;
|
|
1137
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1138
|
+
`,HC=w.div`
|
|
1139
|
+
margin-top: 4px;
|
|
1140
|
+
font-family: monospace;
|
|
1141
|
+
color: ${e=>e.theme.colors.info};
|
|
1142
|
+
`,WC=w.div`
|
|
1143
|
+
display: inline-block;
|
|
1144
|
+
margin-left: 8px;
|
|
1145
|
+
padding: 2px 6px;
|
|
1146
|
+
border-radius: 3px;
|
|
1147
|
+
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1148
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1149
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1150
|
+
font-size: 0.85em;
|
|
1151
|
+
cursor: pointer;
|
|
1152
|
+
transition: all 0.2s ease;
|
|
1153
|
+
|
|
1154
|
+
&:hover {
|
|
1155
|
+
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1156
|
+
border-color: ${e=>e.theme.colors.primary}66;
|
|
1157
|
+
}
|
|
1158
|
+
`,JC=w.div`
|
|
1159
|
+
margin-top: 8px;
|
|
1160
|
+
padding: 8px;
|
|
1161
|
+
border-radius: 4px;
|
|
1162
|
+
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
1163
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1164
|
+
animation: slideDown 0.2s ease;
|
|
1165
|
+
`;w.pre`
|
|
1166
|
+
margin: 0;
|
|
1167
|
+
padding: 12px;
|
|
1168
|
+
background: ${e=>e.theme.colors.codeBackground};
|
|
1169
|
+
border-radius: 4px;
|
|
1170
|
+
color: ${e=>e.theme.colors.codeText};
|
|
1171
|
+
font-family: monospace;
|
|
1172
|
+
font-size: 0.9em;
|
|
1173
|
+
line-height: 1.4;
|
|
1174
|
+
overflow-x: auto;
|
|
1175
|
+
white-space: pre-wrap;
|
|
1176
|
+
word-wrap: break-word;
|
|
1177
|
+
`;const KC=(e,t)=>{switch(e){case"createFile":return Te`
|
|
1178
|
+
background: ${t.colors.info}22;
|
|
1179
|
+
color: ${t.colors.info};
|
|
1180
|
+
border-color: ${t.colors.info}44;
|
|
1181
|
+
`;case"updateFile":return Te`
|
|
1182
|
+
background: ${t.colors.primary}22;
|
|
1183
|
+
color: ${t.colors.primary};
|
|
1184
|
+
border-color: ${t.colors.primary}44;
|
|
1185
|
+
`;case"deleteFile":return Te`
|
|
1186
|
+
background: ${t.colors.error}22;
|
|
1187
|
+
color: ${t.colors.error};
|
|
1188
|
+
border-color: ${t.colors.error}44;
|
|
1189
|
+
`;case"moveFile":return Te`
|
|
1190
|
+
background: ${t.colors.warning}22;
|
|
1191
|
+
color: ${t.colors.warning};
|
|
1192
|
+
border-color: ${t.colors.warning}44;
|
|
1193
|
+
`;case"temperature":return Te`
|
|
1194
|
+
background: ${t.colors.success}22;
|
|
1195
|
+
color: ${t.colors.success};
|
|
1196
|
+
border-color: ${t.colors.success}44;
|
|
1197
|
+
margin-left: auto;
|
|
1198
|
+
`;case"cheap":return Te`
|
|
1199
|
+
background: ${t.colors.secondary}22;
|
|
1200
|
+
color: ${t.colors.secondary};
|
|
1201
|
+
border-color: ${t.colors.secondary}44;
|
|
1202
|
+
`;default:return Te`
|
|
1203
|
+
background: ${t.colors.secondary}22;
|
|
1204
|
+
color: ${t.colors.secondary};
|
|
1205
|
+
border-color: ${t.colors.secondary}44;
|
|
1206
|
+
`}},Ti=w.div`
|
|
1207
|
+
display: inline-block;
|
|
1208
|
+
padding: 2px 8px;
|
|
1209
|
+
border-radius: 3px;
|
|
1210
|
+
font-size: 0.85em;
|
|
1211
|
+
font-weight: 500;
|
|
1212
|
+
margin-bottom: 6px;
|
|
1213
|
+
border: 1px solid;
|
|
1214
|
+
${e=>KC(e.variant,e.theme)}
|
|
1215
|
+
`;w.div`
|
|
1216
|
+
margin-top: 8px;
|
|
1217
|
+
font-size: 0.9em;
|
|
1218
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1219
|
+
`;const QC=w.div`
|
|
1220
|
+
display: flex;
|
|
1221
|
+
gap: 8px;
|
|
1222
|
+
align-items: center;
|
|
1223
|
+
flex-wrap: wrap;
|
|
1224
|
+
`,sv=({data:{name:e,args:{filePath:t,explanation:n,oldContent:r,newContent:o}}})=>{const[i,s]=C.useState(!0),[l,a]=C.useState(!1);return u.jsxs(GC,{children:[u.jsxs(qC,{children:[u.jsx(Ti,{variant:e,children:e}),u.jsx(PC,{children:t}),u.jsxs(YC,{children:[u.jsx(of,{onClick:()=>s(!i),children:i?"Hide Explanation":"Explanation"}),u.jsx(of,{onClick:()=>a(!l),children:l?"Hide Diff":"Show Diff"})]})]}),i&&n&&u.jsx(XC,{children:n}),l&&u.jsx(ZC,{children:u.jsx(AC,{oldContent:r,newContent:o})})]})};function Ba(e){if(typeof e!="object"||e===null)return!1;const t=e;if(t.name!=="updateFile"&&t.name!=="createFile"&&t.name!=="updateFile")return!1;const n=t.args;return typeof n.filePath=="string"&&typeof n.newContent=="string"}const GC=w.div`
|
|
1225
|
+
margin: 16px 0;
|
|
1226
|
+
padding: 16px;
|
|
1227
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1228
|
+
border-radius: 8px;
|
|
1229
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1230
|
+
`,qC=w.div`
|
|
1231
|
+
display: flex;
|
|
1232
|
+
gap: 8px;
|
|
1233
|
+
align-items: center;
|
|
1234
|
+
`,YC=w.div`
|
|
1235
|
+
display: flex;
|
|
1236
|
+
gap: 8px;
|
|
1237
|
+
margin-left: auto;
|
|
1238
|
+
`,of=w.button`
|
|
1239
|
+
padding: 4px 8px;
|
|
1240
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1241
|
+
border-radius: 4px;
|
|
1242
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1243
|
+
cursor: pointer;
|
|
1244
|
+
font-size: 0.8em;
|
|
1245
|
+
color: ${e=>e.theme.colors.text};
|
|
1246
|
+
|
|
1247
|
+
&:hover {
|
|
1248
|
+
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1249
|
+
}
|
|
1250
|
+
`,XC=w.div`
|
|
1251
|
+
margin-top: 8px;
|
|
1252
|
+
padding: 8px;
|
|
1253
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1254
|
+
border-radius: 4px;
|
|
1255
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1256
|
+
font-size: 0.9em;
|
|
1257
|
+
line-height: 1.5;
|
|
1258
|
+
`,ZC=w.div`
|
|
1259
|
+
margin: 16px 0;
|
|
1260
|
+
`,ej=w.div`
|
|
1261
|
+
display: grid;
|
|
1262
|
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
1263
|
+
gap: 8px;
|
|
1264
|
+
max-width: 800px;
|
|
1265
|
+
margin: 8px 0;
|
|
1266
|
+
`,tj=w.div`
|
|
1267
|
+
position: relative;
|
|
1268
|
+
width: 100%;
|
|
1269
|
+
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
1270
|
+
`,nj=w.img`
|
|
1271
|
+
position: absolute;
|
|
1272
|
+
top: 0;
|
|
1273
|
+
left: 0;
|
|
1274
|
+
width: 100%;
|
|
1275
|
+
height: 100%;
|
|
1276
|
+
object-fit: contain;
|
|
1277
|
+
border-radius: 4px;
|
|
1278
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
1279
|
+
`,rj=({message:e,visibleDataIds:t,toggleDataVisibility:n})=>{var h;const[r,o]=C.useState(!1),[i,s]=C.useState(e.content),[l,a]=C.useState(!1),[c,d]=C.useState(null),f=C.useRef(null);C.useEffect(()=>{r&&f.current&&(f.current.focus(),f.current.selectionStart=f.current.value.length,f.current.selectionEnd=f.current.value.length)},[r]);const p=()=>{s(e.content),o(!0),d(null)},g=()=>{o(!1),s(e.content),d(null)},y=v=>v.trim()?v===e.content?(d("No changes made to the message"),!1):!0:(d("Message content cannot be empty"),!1),x=async()=>{if(y(i)){a(!0),d(null);try{await kw(e.id,i),o(!1)}catch(v){d(v instanceof Error?v.message:"Failed to save changes")}finally{a(!1)}}},k=v=>{v.key==="Enter"&&v.ctrlKey?x():v.key==="Escape"&&g()},m=e.type!=="system"&&((h=e.flags)==null?void 0:h.includes(qu.MESSAGE_EDITABLE));return u.jsx(Fo,{"data-type":e.type,children:u.jsxs(gC,{"data-edit-mode":r,children:[u.jsxs(xC,{children:[u.jsx("div",{children:e.type==="user"?"You":"Assistant"}),m&&!r&&u.jsx(bC,{onClick:p,title:"Edit message",children:"✎"})]}),r?u.jsxs(u.Fragment,{children:[u.jsx(SC,{ref:f,value:i,onChange:v=>s(v.target.value),onKeyDown:k,placeholder:"Enter your message..."}),c&&u.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:c}),u.jsxs(EC,{children:[u.jsx(NC,{onClick:x,disabled:l,children:l?u.jsx(RC,{}):"Save"}),u.jsx($C,{onClick:g,disabled:l,children:"Cancel"})]})]}):u.jsx(wC,{children:e.content}),e.images&&e.images.length>0&&u.jsx(ej,{children:e.images.map((v,S)=>u.jsx(tj,{children:u.jsx(nj,{src:`data:${v.mediaType};base64,${v.base64url}`,alt:v.originalName||`Image ${S+1}`,title:v.originalName||`Image ${S+1}`})},S))}),u.jsxs(kC,{children:[e.data?u.jsx(jC,{onClick:()=>n(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null,u.jsx(CC,{children:e.timestamp.toLocaleString()})]}),t.has(e.id)&&e.data?u.jsx(u.Fragment,{children:Ba(e.data)?u.jsx(sv,{data:e.data}):u.jsx(rv,{data:e.data})}):null]})})},sf=w.div`
|
|
1280
|
+
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
1281
|
+
color: ${e=>e.theme.colors.systemMessageText};
|
|
1282
|
+
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
1283
|
+
border-radius: 8px;
|
|
1284
|
+
padding: 8px 12px;
|
|
1285
|
+
margin: 8px 0;
|
|
1286
|
+
font-style: italic;
|
|
1287
|
+
font-size: 0.9em;
|
|
1288
|
+
opacity: 0.8;
|
|
1289
|
+
transition: margin 0.2s ease-in-out;
|
|
1290
|
+
|
|
1291
|
+
/* Increase bottom margin when followed by a codegen view */
|
|
1292
|
+
& + div {\n margin-top: 16px;
|
|
1293
|
+
}\n
|
|
1294
|
+
${e=>e.isExecutionEnd&&`
|
|
1295
|
+
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
1296
|
+
`}\n`,lf=w.div`
|
|
1297
|
+
cursor: pointer;
|
|
1298
|
+
font-weight: bold;
|
|
1299
|
+
margin-bottom: 8px;
|
|
1300
|
+
display: flex;
|
|
1301
|
+
align-items: center;
|
|
1302
|
+
gap: 4px;
|
|
1303
|
+
|
|
1304
|
+
&:hover {\n opacity: 0.8;
|
|
1305
|
+
}\n`,oj=w.div`
|
|
1306
|
+
white-space: pre-wrap;
|
|
1307
|
+
word-wrap: break-word;
|
|
1308
|
+
font-family: inherit;
|
|
1309
|
+
margin: 0;
|
|
1310
|
+
|
|
1311
|
+
/* Add spacing between content sections */
|
|
1312
|
+
& > *:not(:last-child) {\n margin-bottom: 12px;
|
|
1313
|
+
}\n`,ij=w.div`
|
|
1314
|
+
margin-bottom: 8px;
|
|
1315
|
+
position: relative;
|
|
1316
|
+
padding-right: 150px; /* Space for timestamp and data link */
|
|
1317
|
+
|
|
1318
|
+
&:last-child {\n margin-bottom: 0;
|
|
1319
|
+
}\n`,sj=w.div`
|
|
1320
|
+
font-size: 0.8em;
|
|
1321
|
+
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
1322
|
+
position: absolute;
|
|
1323
|
+
right: 60px;
|
|
1324
|
+
top: 0;
|
|
1325
|
+
`,lj=w.span`
|
|
1326
|
+
font-size: 0.8em;
|
|
1327
|
+
color: ${e=>e.theme.colors.primary};
|
|
1328
|
+
cursor: pointer;
|
|
1329
|
+
text-decoration: underline;
|
|
1330
|
+
position: absolute;
|
|
1331
|
+
right: 0;
|
|
1332
|
+
top: 0;
|
|
1333
|
+
|
|
1334
|
+
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,aj=({data:e})=>{const[t,n]=C.useState({analysis:!0,changes:!0,files:!0}),[r,o]=C.useState({}),i=l=>{n(a=>({...a,[l]:!a[l]}))},s=l=>{o(a=>({...a,[l]:!a[l]}))};return u.jsxs(iv,{children:[u.jsxs(sr,{children:[u.jsx(lr,{onClick:()=>i("analysis"),children:u.jsxs(ur,{expanded:t.analysis,children:[u.jsx(cr,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&u.jsx(ar,{children:e.args.problemAnalysis})]}),u.jsxs(sr,{children:[u.jsx(lr,{onClick:()=>i("changes"),children:u.jsxs(ur,{expanded:t.changes,children:[u.jsx(cr,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&u.jsx(ar,{children:e.args.codeChanges})]}),u.jsxs(sr,{children:[u.jsx(lr,{onClick:()=>i("files"),children:u.jsxs(ur,{expanded:t.files,children:[u.jsx(cr,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&u.jsx(ar,{children:u.jsx(Ma,{children:e.args.affectedFiles.map((l,a)=>u.jsxs(za,{children:[u.jsxs(Fa,{children:[l.filePath,l.dependencies&&l.dependencies.length>0&&u.jsxs(WC,{onClick:()=>s(l.filePath),title:"Dependencies",children:["(",l.dependencies.length,")"]})]}),l.dependencies&&l.dependencies.length>0&&r[l.filePath]&&u.jsx(JC,{children:u.jsxs(VC,{children:["Dependencies:",l.dependencies.map((c,d)=>u.jsx(HC,{children:c},d))]})}),u.jsx(BC,{children:l.reason})]},a))})})]})]})};function af(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const n=t.args;return typeof n.problemAnalysis=="string"&&typeof n.codeChanges=="string"&&Array.isArray(n.affectedFiles)&&n.affectedFiles.every(r=>typeof r=="object"&&r!==null&&typeof r.reason=="string"&&typeof r.filePath=="string")}const uj=({data:e})=>{const[t,n]=C.useState({explanation:!0,updates:!0,context:!1}),r=o=>{n(i=>({...i,[o]:!i[o]}))};return u.jsxs(iv,{children:[u.jsxs(sr,{children:[u.jsx(lr,{onClick:()=>r("explanation"),children:u.jsxs(ur,{expanded:t.explanation,children:[u.jsx(cr,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&u.jsx(ar,{children:e.args.explanation})]}),u.jsxs(sr,{children:[u.jsx(lr,{onClick:()=>r("updates"),children:u.jsxs(ur,{expanded:t.updates,children:[u.jsx(cr,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&u.jsx(ar,{children:u.jsx(Ma,{children:e.args.fileUpdates.map((o,i)=>u.jsxs(za,{children:[u.jsxs(QC,{children:[u.jsx(Ti,{variant:o.updateToolName,children:o.updateToolName}),u.jsx(Fa,{children:o.filePath}),o.temperature&&u.jsx(Ti,{variant:"temperature",title:"Temperature",children:o.temperature}),o.cheap&&u.jsx(Ti,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),u.jsx(UC,{title:"Prompt",children:o.prompt})]},i))})})]}),u.jsxs(sr,{children:[u.jsx(lr,{onClick:()=>r("context"),children:u.jsxs(ur,{expanded:t.context,children:[u.jsx(cr,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&u.jsx(ar,{children:u.jsx(Ma,{children:e.args.contextPaths.map((o,i)=>u.jsx(za,{children:u.jsx(Fa,{children:o})},i))})})]})]})};function uf(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const n=t.args;return typeof n.explanation=="string"&&Array.isArray(n.fileUpdates)&&Array.isArray(n.contextPaths)&&n.fileUpdates.every(r=>typeof r=="object"&&r!==null&&typeof r.prompt=="string"&&typeof r.filePath=="string"&&typeof r.updateToolName=="string")}const cj=({message:e,collapsedExecutions:t,toggleExecutionCollapse:n,visibleDataIds:r,toggleDataVisibility:o})=>t.has(e.id)?u.jsx(sf,{isExecutionEnd:e.isExecutionEnd,children:u.jsxs(lf,{onClick:()=>n(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):dj(e.parts).map((s,l)=>s.parts.length>0?u.jsxs(sf,{isExecutionEnd:e.isExecutionEnd,children:[u.jsxs(lf,{onClick:()=>n(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),u.jsx(oj,{children:s.parts.map(a=>u.jsxs(ij,{children:[a.content,u.jsx(sj,{children:a.timestamp.toLocaleString()}),a.data?u.jsx(lj,{onClick:()=>o(a.id),children:r.has(a.id)?"Hide data":"Show data"}):null,r.has(a.id)&&a.data?u.jsx(rv,{data:a.data}):null]},a.id))})]},`section-${l}`):s.codegenView?u.jsx(Le.Fragment,{children:s.codegenView},`view-${l}`):null);function dj(e){const t=[];let n=[];return t.push({parts:n}),e.forEach(r=>{if(n.push(r),af(r.data)||uf(r.data)||Ba(r.data)){const o=af(r.data)?u.jsx(aj,{data:r.data},`planning-${r.id}`):uf(r.data)?u.jsx(uj,{data:r.data},`summary-${r.id}`):Ba(r.data)?u.jsx(sv,{data:r.data},`file-update-${r.id}`):null;t.push({parts:[],codegenView:o}),n=[],t.push({parts:n})}}),t}const fj=w.div`
|
|
1335
|
+
display: flex;
|
|
1336
|
+
flex-direction: column;
|
|
1337
|
+
height: 100%;
|
|
1338
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1339
|
+
position: relative;
|
|
1340
|
+
overflow: hidden;
|
|
1341
|
+
`,pj=w.div`
|
|
1342
|
+
display: flex;
|
|
1343
|
+
flex-direction: column;
|
|
1344
|
+
gap: 16px;
|
|
1345
|
+
padding: 16px;
|
|
1346
|
+
overflow-y: auto;
|
|
1347
|
+
flex-grow: 1;
|
|
1348
|
+
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
1349
|
+
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
1350
|
+
`,hj=w.div`
|
|
1351
|
+
display: flex;
|
|
1352
|
+
flex-direction: column;
|
|
1353
|
+
gap: 8px;
|
|
1354
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1355
|
+
border-radius: 8px;
|
|
1356
|
+
margin-bottom: 24px;
|
|
1357
|
+
`,mj=w.div`
|
|
1358
|
+
font-size: 16px;
|
|
1359
|
+
font-weight: bold;
|
|
1360
|
+
color: ${e=>e.theme.colors.text};
|
|
1361
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1362
|
+
padding: 12px 16px;
|
|
1363
|
+
border-bottom: 1px solid ${e=>e.theme.colors.border};
|
|
1364
|
+
border-top-left-radius: 8px;
|
|
1365
|
+
border-top-right-radius: 8px;
|
|
1366
|
+
display: flex;
|
|
1367
|
+
justify-content: space-between;
|
|
1368
|
+
align-items: center;
|
|
1369
|
+
cursor: pointer;
|
|
1370
|
+
position: sticky;
|
|
1371
|
+
top: -22px;
|
|
1372
|
+
z-index: 10;
|
|
1373
|
+
|
|
1374
|
+
> .title {
|
|
1375
|
+
display: flex;
|
|
1376
|
+
align-items: start;
|
|
1377
|
+
flex-grow: 1;
|
|
1378
|
+
}
|
|
1379
|
+
> .meta {
|
|
1380
|
+
font-size: 12px;
|
|
1381
|
+
font-weight: normal;
|
|
1382
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1383
|
+
display: flex;
|
|
1384
|
+
flex-direction: row;
|
|
1385
|
+
align-items: center;
|
|
1386
|
+
gap: 10px;
|
|
1387
|
+
}
|
|
1388
|
+
`,yj=w.button`
|
|
1389
|
+
display: flex;
|
|
1390
|
+
justify-content: center;
|
|
1391
|
+
align-items: center;
|
|
1392
|
+
background-color: transparent;
|
|
1393
|
+
border: none;
|
|
1394
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1395
|
+
cursor: pointer;
|
|
1396
|
+
font-size: 16px;
|
|
1397
|
+
padding: 4px;
|
|
1398
|
+
border-radius: 4px;
|
|
1399
|
+
|
|
1400
|
+
&:hover {
|
|
1401
|
+
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1402
|
+
}
|
|
1403
|
+
`,vj=w.div`
|
|
1404
|
+
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
1405
|
+
flex-direction: column;
|
|
1406
|
+
gap: 8px;
|
|
1407
|
+
padding: 16px;
|
|
1408
|
+
`,gj=w.p`
|
|
1409
|
+
font-size: 14px;
|
|
1410
|
+
color: ${e=>e.theme.colors.textSecondary};
|
|
1411
|
+
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
1412
|
+
padding: 8px;
|
|
1413
|
+
border-radius: 4px;
|
|
1414
|
+
margin: 0 0 16px 0;
|
|
1415
|
+
`;w.div`
|
|
1416
|
+
margin-bottom: 16px;
|
|
1417
|
+
|
|
1418
|
+
&:last-child {
|
|
1419
|
+
margin-bottom: 0;
|
|
1420
|
+
}
|
|
1421
|
+
`;const xj=w.span`
|
|
1422
|
+
&:before {
|
|
1423
|
+
content: '▼';
|
|
1424
|
+
margin-right: 8px;
|
|
1425
|
+
}
|
|
1426
|
+
`,wj=w.span`
|
|
1427
|
+
&:before {
|
|
1428
|
+
content: '▶';
|
|
1429
|
+
margin-right: 8px;
|
|
1430
|
+
}
|
|
1431
|
+
`;w.span`
|
|
1432
|
+
color: ${e=>e.theme.colors.primary};
|
|
1433
|
+
cursor: pointer;
|
|
1434
|
+
margin-right: 8px;
|
|
1435
|
+
|
|
1436
|
+
&:hover {
|
|
1437
|
+
text-decoration: underline;
|
|
1438
|
+
}
|
|
1439
|
+
`;function Sj(e){return C.useMemo(()=>{const t=[];let n=null,r=null,o=0;return e.sort((i,s)=>i.iterationId<s.iterationId?-1:1).forEach((i,s)=>{var l;(!n||i.iterationId!==n.iterationId)&&(n&&(n.timestampEnd=new Date(i.timestamp),t.push(n)),n={iterationId:i.iterationId,timestampStart:new Date(i.timestamp),timestampEnd:new Date(i.timestamp),conversationSummaries:[],messages:[]}),(l=i.flags)!=null&&l.includes(qu.CONVERSATION_SUMMARY)&&i.data&&(n.conversationSummaries.push(i.data),n.iterationTitle||(n.iterationTitle=i.data)),i.type===so.SYSTEM?r?r.parts.push(i):(o++,r={...i,type:so.SYSTEM,parts:[i],id:`execution_${o}`,isExecutionEnd:s===e.length-1||e[s+1].type!==so.SYSTEM},n.messages.push(r)):(r&&(r.isExecutionEnd=!0),r=null,n.messages.push(i)),n.timestampEnd=new Date(i.timestamp)}),n&&t.push(n),t.sort((i,s)=>i.timestampStart.getTime()-s.timestampStart.getTime())},[e])}const kj=({onClick:e})=>u.jsxs(jj,{onClick:e,children:[u.jsx(Ej,{children:"New messages"}),u.jsx(Sl,{}),u.jsx(Sl,{}),u.jsx(Sl,{})]}),Cj=Io`
|
|
1440
|
+
0%, 80%, 100% {
|
|
1441
|
+
transform: scale(0.8);
|
|
1442
|
+
}
|
|
1443
|
+
40% {
|
|
1444
|
+
transform: scale(1.2);
|
|
1445
|
+
}
|
|
1446
|
+
`,jj=w.div`
|
|
1447
|
+
display: flex;
|
|
1448
|
+
justify-content: center;
|
|
1449
|
+
align-items: center;
|
|
1450
|
+
padding: 10px;
|
|
1451
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
1452
|
+
color: ${e=>e.theme.colors.text};
|
|
1453
|
+
border-radius: 20px;
|
|
1454
|
+
position: absolute;
|
|
1455
|
+
bottom: 20px;
|
|
1456
|
+
left: 50%;
|
|
1457
|
+
transform: translateX(-50%);
|
|
1458
|
+
cursor: pointer;
|
|
1459
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
1460
|
+
transition: all 0.3s ease;
|
|
1461
|
+
z-index: 10;
|
|
1462
|
+
|
|
1463
|
+
&:hover {
|
|
1464
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1465
|
+
}
|
|
1466
|
+
`,Ej=w.span`
|
|
1467
|
+
margin-right: 10px;
|
|
1468
|
+
font-weight: bold;
|
|
1469
|
+
`,Sl=w.div`
|
|
1470
|
+
width: 8px;
|
|
1471
|
+
height: 8px;
|
|
1472
|
+
background-color: ${e=>e.theme.colors.text};
|
|
1473
|
+
border-radius: 50%;
|
|
1474
|
+
margin: 0 2px;
|
|
1475
|
+
animation: ${Cj} 1.4s infinite ease-in-out both;
|
|
1476
|
+
|
|
1477
|
+
&:nth-child(2) {
|
|
1478
|
+
animation-delay: -0.32s;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
&:nth-child(3) {
|
|
1482
|
+
animation-delay: -0.16s;
|
|
1483
|
+
}
|
|
1484
|
+
`,bj=w.div`
|
|
1485
|
+
position: relative;
|
|
1486
|
+
width: 100%;
|
|
1487
|
+
`,Nj=w.textarea`
|
|
1488
|
+
width: 100%;
|
|
1489
|
+
min-height: 60px;
|
|
1490
|
+
resize: none;
|
|
1491
|
+
padding: 8px;
|
|
1492
|
+
border: 1px solid ${e=>e.theme.colors.border};
|
|
1493
|
+
border-radius: 4px;
|
|
1494
|
+
font-family: inherit;
|
|
1495
|
+
font-size: 14px;
|
|
1496
|
+
background-color: ${e=>e.theme.colors.inputBg};
|
|
1497
|
+
color: ${e=>e.theme.colors.inputText};
|
|
1498
|
+
box-sizing: border-box;
|
|
1499
|
+
overflow: hidden;
|
|
1500
|
+
|
|
1501
|
+
&:focus {
|
|
1502
|
+
outline: none;
|
|
1503
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
1504
|
+
}
|
|
1505
|
+
`,lv=({value:e,onChange:t,onKeyDown:n,onPaste:r,onImagePaste:o,maxViewportHeight:i=.5,...s})=>{const l=C.useRef(null);C.useEffect(()=>{if(l.current){l.current.style.height="auto";const d=l.current.scrollHeight,f=i*window.innerHeight,p=Math.min(d,f);l.current.style.height=`${p}px`}},[e,i]);const a=d=>{t(d.target.value)},c=d=>{var p;const f=(p=d.clipboardData)==null?void 0:p.items;if(f){for(let g=0;g<f.length;g++)if(f[g].type.indexOf("image")!==-1){d.preventDefault();const y=f[g].getAsFile();if(y){const x=new File([y],`pasted-image-${Date.now()}.png`,{type:"image/png"});o==null||o(x)}break}}r==null||r(d)};return u.jsx(bj,{children:u.jsx(Nj,{ref:l,value:e,onChange:a,onKeyDown:n,onPaste:c,...s})})},$j=({onSubmit:e,onInterrupt:t,onPauseResume:n,question:r,codegenOptions:o,executionStatus:i})=>{var x;const[s,l]=C.useState(""),[a,c]=C.useState(null),[d,f]=C.useState(o.aiService);C.useEffect(()=>{f(o.aiService)},[o.aiService]);const p=async k=>{if(k.preventDefault(),s.trim()&&r)try{await e(s,void 0,d),l(""),c(null)}catch(m){console.error("Error submitting answer:",m),c("Failed to submit the answer. Please try again.")}},g=async k=>{try{await e(s,k,d),c(null)}catch(m){console.error("Error submitting confirmation:",m),c("Failed to submit the confirmation. Please try again.")}},y=i==="paused";return u.jsxs(Rj,{children:[r?u.jsxs(Pj,{onSubmit:p,children:[r.confirmation&&u.jsx("p",{children:r.text}),((x=r.confirmation)==null?void 0:x.includeAnswer)!==!1&&u.jsx(lv,{value:s,onChange:l,placeholder:"Enter your answer here",maxViewportHeight:.3}),!r.confirmation&&u.jsxs(kl,{children:[u.jsx(Tj,{type:"submit",children:"Submit Answer"}),u.jsx(Qu,{value:d,onChange:f,disabled:!1}),u.jsx(Cl,{onClick:t,children:"Interrupt"})]}),r.confirmation&&u.jsxs(kl,{children:[u.jsx(cf,{onClick:()=>g(!0),children:r.confirmation.confirmLabel}),u.jsx(cf,{onClick:()=>g(!1),"data-secondary":"true",children:r.confirmation.declineLabel}),u.jsx(Cl,{onClick:t,children:"Interrupt"})]})]}):u.jsxs(kl,{children:[u.jsx(_j,{onClick:n,isPaused:y,children:y?"Resume":"Pause"}),u.jsx(Cl,{onClick:t,children:"Interrupt"})]}),a&&u.jsx(Lj,{children:a})]})},Rj=w.div`
|
|
1506
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
1507
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1508
|
+
border-radius: 8px;
|
|
1509
|
+
padding: 15px;
|
|
1510
|
+
margin-top: 10px;
|
|
1511
|
+
margin-bottom: 10px;
|
|
1512
|
+
max-width: 70%;
|
|
1513
|
+
width: 100%;
|
|
1514
|
+
box-sizing: border-box;
|
|
1515
|
+
`,Pj=w.form`
|
|
1516
|
+
display: flex;
|
|
1517
|
+
flex-direction: column;
|
|
1518
|
+
|
|
1519
|
+
> p {
|
|
1520
|
+
margin-top: 0;
|
|
1521
|
+
}
|
|
1522
|
+
`,kl=w.div`
|
|
1523
|
+
display: flex;
|
|
1524
|
+
justify-content: flex-start;
|
|
1525
|
+
gap: 10px;
|
|
1526
|
+
margin-top: 10px;
|
|
1527
|
+
`,Ds=w.button`
|
|
1528
|
+
color: #ffffff;
|
|
1529
|
+
border: none;
|
|
1530
|
+
border-radius: 4px;
|
|
1531
|
+
padding: 8px 12px;
|
|
1532
|
+
font-size: 14px;
|
|
1533
|
+
cursor: pointer;
|
|
1534
|
+
transition: background-color 0.3s ease;
|
|
1535
|
+
`,Tj=w(Ds)`
|
|
1536
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
1537
|
+
|
|
1538
|
+
&:hover {
|
|
1539
|
+
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
1540
|
+
}
|
|
1541
|
+
`,cf=w(Ds)`
|
|
1542
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
1543
|
+
&:hover {
|
|
1544
|
+
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
&[data-secondary='true'] {
|
|
1548
|
+
background-color: ${({theme:e})=>e.colors.secondary};
|
|
1549
|
+
&:hover {
|
|
1550
|
+
background-color: ${({theme:e})=>e.colors.secondary}dd;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
`,Cl=w(Ds)`
|
|
1554
|
+
background-color: ${({theme:e})=>e.colors.error};
|
|
1555
|
+
margin-left: auto;
|
|
1556
|
+
|
|
1557
|
+
&:hover {
|
|
1558
|
+
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
1559
|
+
}
|
|
1560
|
+
`,_j=w(Ds)`
|
|
1561
|
+
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
1562
|
+
|
|
1563
|
+
&:hover {
|
|
1564
|
+
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
1565
|
+
}
|
|
1566
|
+
`,Lj=w.p`
|
|
1567
|
+
color: ${({theme:e})=>e.colors.error};
|
|
1568
|
+
font-weight: bold;
|
|
1569
|
+
margin-top: 10px;
|
|
1570
|
+
margin-bottom: 0;
|
|
1571
|
+
`,Ij=({isVisible:e,onInterrupt:t,onPauseResume:n,executionStatus:r})=>e?u.jsxs(Aj,{children:[u.jsx(Mj,{onClick:t,children:"Interrupt"}),u.jsxs(Dj,{"data-execution-status":r,children:[u.jsx(jl,{}),u.jsx(jl,{}),u.jsx(jl,{})]}),u.jsx(av,{onClick:n,children:r==="paused"?"Resume":"Pause"})]}):null,Oj=Io`
|
|
1572
|
+
0%, 80%, 100% {
|
|
1573
|
+
transform: scale(0);
|
|
1574
|
+
}
|
|
1575
|
+
40% {
|
|
1576
|
+
transform: scale(1.0);
|
|
1577
|
+
}
|
|
1578
|
+
`,Aj=w.div`
|
|
1579
|
+
display: flex;
|
|
1580
|
+
flex-direction: row;
|
|
1581
|
+
align-items: center;
|
|
1582
|
+
justify-content: center;
|
|
1583
|
+
gap: 50px;
|
|
1584
|
+
padding: 10px;
|
|
1585
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1586
|
+
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1587
|
+
`,Dj=w.div`
|
|
1588
|
+
display: flex;
|
|
1589
|
+
align-items: center;
|
|
1590
|
+
justify-content: center;
|
|
1591
|
+
align-items: center;
|
|
1592
|
+
margin-bottom: 10px;
|
|
1593
|
+
`,jl=w.div`
|
|
1594
|
+
width: 10px;
|
|
1595
|
+
height: 10px;
|
|
1596
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
1597
|
+
border-radius: 50%;
|
|
1598
|
+
margin: 0 5px;
|
|
1599
|
+
|
|
1600
|
+
[data-execution-status='executing'] & {
|
|
1601
|
+
animation: ${Oj} 1.4s infinite ease-in-out both;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
&:nth-child(1) {
|
|
1605
|
+
animation-delay: -0.32s;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
&:nth-child(2) {
|
|
1609
|
+
animation-delay: -0.16s;
|
|
1610
|
+
}
|
|
1611
|
+
`,av=w.button`
|
|
1612
|
+
padding: 8px 16px;
|
|
1613
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
1614
|
+
color: #ffffff;
|
|
1615
|
+
border: none;
|
|
1616
|
+
border-radius: 4px;
|
|
1617
|
+
cursor: pointer;
|
|
1618
|
+
font-size: 14px;
|
|
1619
|
+
font-weight: 600;
|
|
1620
|
+
transition: background-color 0.3s, transform 0.1s;
|
|
1621
|
+
|
|
1622
|
+
&:hover {
|
|
1623
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1624
|
+
transform: translateY(-1px);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
&:active {
|
|
1628
|
+
transform: translateY(0);
|
|
1629
|
+
}
|
|
1630
|
+
`,Mj=w(av)`
|
|
1631
|
+
background-color: ${({theme:e})=>e.colors.error};
|
|
1632
|
+
|
|
1633
|
+
&:hover {
|
|
1634
|
+
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
1635
|
+
}
|
|
1636
|
+
`,zj=({messages:e,currentQuestion:t,codegenOptions:n,onQuestionSubmit:r,onInterrupt:o,onPauseResume:i,executionStatus:s})=>{var lt;const[l,a]=C.useState(()=>new Set),[c,d]=C.useState(()=>new Set),[f,p]=C.useState(()=>new Set),[g]=C.useState(null),y=C.useRef(null),x=C.useRef(null),[k,m]=C.useState(!1),[h,v]=C.useState(!0),[S,j]=C.useState(null),N=Sj(e),$=s!=="idle"?(lt=N[N.length-1])==null?void 0:lt.iterationId:null,P=C.useCallback(()=>{if(!x.current)return!0;const{scrollTop:O,scrollHeight:q,clientHeight:B}=x.current;return Math.abs(q-B-O)<1||q<=B},[]);C.useEffect(()=>{const O=x.current;if(!O)return;const q=()=>{const B=P();v(B),B&&m(!1)};return O.addEventListener("scroll",q),()=>O.removeEventListener("scroll",q)},[P]),C.useEffect(()=>{h?F():m(!0)},[N,h]),C.useEffect(()=>{const O=new Set(N.slice(0,-1).map(q=>q.iterationId));p(O)},[]);const A=O=>{a(q=>{const B=new Set(q);return B.has(O)?B.delete(O):B.add(O),B})},I=O=>{d(q=>{const B=new Set(q);return B.has(O)?B.delete(O):B.add(O),B})},W=O=>{var q;g&&((q=e.find(B=>B.id===g))==null?void 0:q.iterationId)===O||p(B=>{const T=new Set(B);return T.has(O)?T.delete(O):T.add(O),T})},F=()=>{var O;(O=x.current)==null||O.scrollTo({top:x.current.scrollHeight,behavior:"smooth"}),m(!1)},G=async O=>{if(S===O)try{await $w(O),j(null)}catch(q){console.error("Failed to delete iteration:",q)}else j(O)};return u.jsxs(fj,{children:[u.jsxs(pj,{ref:x,children:[N.map((O,q)=>u.jsxs(hj,{children:[u.jsxs(mj,{children:[u.jsxs("div",{className:"title",onClick:()=>W(O.iterationId),children:[f.has(O.iterationId)?u.jsx(wj,{}):u.jsx(xj,{}),u.jsx("span",{children:O.iterationTitle??`Iteration ${O.iterationId}`})]}),u.jsxs("span",{className:"meta",children:[O.timestampStart.toLocaleString()," - ",O.timestampEnd.toLocaleString(),O.iterationId!==$&&u.jsx(yj,{onClick:()=>G(O.iterationId),title:S===O.iterationId?"Confirm deletion":"Delete iteration",children:S===O.iterationId?"🗑️ Confirm":"🗑️"})]})]}),u.jsxs(vj,{isCollapsed:f.has(O.iterationId),children:[O.conversationSummaries.length>0&&u.jsx(gj,{children:O.conversationSummaries.join(" ")}),O.messages.map((B,T)=>u.jsxs(Le.Fragment,{children:[B.type===so.SYSTEM?u.jsx(cj,{message:B,collapsedExecutions:c,toggleExecutionCollapse:I,visibleDataIds:l,toggleDataVisibility:A}):u.jsx(rj,{message:B,visibleDataIds:l,toggleDataVisibility:A}),s!=="idle"&&t&&q===N.length-1&&T===O.messages.length-1&&u.jsx($j,{onSubmit:r,onInterrupt:o,onPauseResume:i,question:t,codegenOptions:n,executionStatus:s})]},B.id))]})]},O.iterationId)),u.jsx("div",{ref:y})]}),k&&!h&&u.jsx(kj,{onClick:F}),u.jsx(Ij,{isVisible:s!=="idle"&&!t,onInterrupt:o,onPauseResume:i,executionStatus:s})]})},Fj=5*1024*1024,df=["image/jpeg","image/png","image/gif","image/webp"],ff=5,Bj=({images:e,onImagesChange:t,error:n,setError:r,fileInputRef:o})=>{const i=l=>{const c=Array.from(l.target.files||[]).filter(d=>df.includes(d.type)?d.size>Fj?(r(`File too large: ${d.name}. Maximum size is 5MB.`),!1):!0:(r(`Invalid file type: ${d.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(c.length+e.length>ff){r(`Too many images. Maximum ${ff} images allowed.`);return}t([...e,...c]),r(null)},s=l=>{const a=e.filter((c,d)=>d!==l);t(a)};return u.jsxs(Uj,{children:[n&&u.jsx(Vj,{children:n}),u.jsx(Hj,{children:e.map((l,a)=>u.jsxs(Wj,{children:[u.jsx("img",{src:URL.createObjectURL(l),alt:`Uploaded ${a+1}`}),u.jsx(Jj,{onClick:()=>s(a),children:"×"})]},a))}),u.jsx("input",{type:"file",ref:o,style:{display:"none"},onChange:i,accept:df.join(","),multiple:!0})]})},Uj=w.div`
|
|
1637
|
+
margin-bottom: 8px;
|
|
1638
|
+
`,Vj=w.div`
|
|
1639
|
+
color: ${e=>e.theme.colors.error};
|
|
1640
|
+
font-size: 14px;
|
|
1641
|
+
margin-bottom: 8px;
|
|
1642
|
+
`,Hj=w.div`
|
|
1643
|
+
display: flex;
|
|
1644
|
+
flex-wrap: wrap;
|
|
1645
|
+
gap: 8px;
|
|
1646
|
+
`,Wj=w.div`
|
|
1647
|
+
position: relative;
|
|
1648
|
+
width: 60px;
|
|
1649
|
+
height: 60px;
|
|
1650
|
+
|
|
1651
|
+
img {
|
|
1652
|
+
width: 100%;
|
|
1653
|
+
height: 100%;
|
|
1654
|
+
object-fit: cover;
|
|
1655
|
+
border-radius: 4px;
|
|
1656
|
+
}
|
|
1657
|
+
`,Jj=w.button`
|
|
1658
|
+
position: absolute;
|
|
1659
|
+
top: -8px;
|
|
1660
|
+
right: -8px;
|
|
1661
|
+
background-color: ${e=>e.theme.colors.error};
|
|
1662
|
+
color: white;
|
|
1663
|
+
border: none;
|
|
1664
|
+
border-radius: 50%;
|
|
1665
|
+
width: 20px;
|
|
1666
|
+
height: 20px;
|
|
1667
|
+
font-size: 14px;
|
|
1668
|
+
line-height: 1;
|
|
1669
|
+
cursor: pointer;
|
|
1670
|
+
display: flex;
|
|
1671
|
+
align-items: center;
|
|
1672
|
+
justify-content: center;
|
|
1673
|
+
|
|
1674
|
+
&:hover {
|
|
1675
|
+
background-color: ${e=>e.theme.colors.errorHover};
|
|
1676
|
+
}
|
|
1677
|
+
`,Kj=({onSubmit:e,onUploadClick:t,onAiServiceChange:n,options:r,disabled:o})=>u.jsxs(Gj,{children:[u.jsx(Qj,{onClick:e,disabled:o,children:"Submit"}),u.jsx(uv,{onClick:t,children:"Upload Images"}),u.jsx(Qu,{value:r.aiService,onChange:n})]}),uv=w.button`
|
|
1678
|
+
color: ${({theme:e})=>e.colors.buttonText};
|
|
1679
|
+
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
1680
|
+
border: none;
|
|
1681
|
+
border-radius: 4px;
|
|
1682
|
+
padding: 10px 15px;
|
|
1683
|
+
font-size: 14px;
|
|
1684
|
+
cursor: pointer;
|
|
1685
|
+
transition: background-color 0.3s ease;
|
|
1686
|
+
margin-right: 10px;
|
|
1687
|
+
|
|
1688
|
+
&:hover {
|
|
1689
|
+
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
&:disabled {
|
|
1693
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1694
|
+
cursor: not-allowed;
|
|
1695
|
+
}
|
|
1696
|
+
`,Qj=w(uv)`
|
|
1697
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
1698
|
+
color: #ffffff;
|
|
1699
|
+
|
|
1700
|
+
&:hover {
|
|
1701
|
+
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
&:disabled {
|
|
1705
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1706
|
+
}
|
|
1707
|
+
`,Gj=w.div`
|
|
1708
|
+
display: flex;
|
|
1709
|
+
justify-content: flex-start;
|
|
1710
|
+
margin-top: 10px;
|
|
1711
|
+
`,qj=({onSubmit:e,isExecuting:t,codegenOptions:n,onOptionsChange:r})=>{const[o,i]=C.useState(""),[s,l]=C.useState([]),[a,c]=C.useState(null),d=C.useRef(null);if(t)return null;const f=()=>{(o.trim()||s.length>0)&&(e(o.trim(),s),i(""),l([]))},p=k=>{l(k)},g=()=>{var k;(k=d.current)==null||k.click()},y=k=>{const m=[...s,k];p(m)},x=k=>{r({...n,aiService:k})};return u.jsxs(Yj,{children:[u.jsx(Xj,{children:u.jsx(lv,{value:o,onChange:i,placeholder:"Enter your input here",onImagePaste:y})}),u.jsx(Bj,{images:s,onImagesChange:p,error:a,setError:c,fileInputRef:d}),u.jsx(Kj,{onSubmit:f,onUploadClick:g,onAiServiceChange:x,options:n,disabled:!o.trim()&&s.length===0})]})},Yj=w.div`
|
|
1712
|
+
display: flex;
|
|
1713
|
+
flex-direction: column;
|
|
1714
|
+
background-color: ${e=>e.theme.colors.background};
|
|
1715
|
+
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
1716
|
+
padding: 16px;
|
|
1717
|
+
width: 100%;
|
|
1718
|
+
box-sizing: border-box;
|
|
1719
|
+
`,Xj=w.div`
|
|
1720
|
+
margin-bottom: 16px;
|
|
1721
|
+
width: 100%;
|
|
1722
|
+
`,Zj=({theme:e,toggleTheme:t})=>u.jsx(zo,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),pf=D1`
|
|
1723
|
+
body {
|
|
1724
|
+
color: ${({theme:e})=>e.colors.text};
|
|
1725
|
+
font-family: Arial, sans-serif;
|
|
1726
|
+
margin: 0;
|
|
1727
|
+
padding: 0;
|
|
1728
|
+
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
body::before {
|
|
1732
|
+
content: '';
|
|
1733
|
+
position: fixed;
|
|
1734
|
+
top: 0;
|
|
1735
|
+
left: 0;
|
|
1736
|
+
right: 0;
|
|
1737
|
+
bottom: 0;
|
|
1738
|
+
transition: all 0.3s ease;
|
|
1739
|
+
opacity: 0.1;
|
|
1740
|
+
background-image: url(${e=>e.theme.backgroundImage});
|
|
1741
|
+
background-size: cover;
|
|
1742
|
+
background-position: center;
|
|
1743
|
+
background-repeat: no-repeat;
|
|
1744
|
+
background-attachment: fixed;
|
|
1745
|
+
z-index: -1;
|
|
1746
|
+
}
|
|
1747
|
+
`,eE=()=>{const{currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,executionStatus:o,setExecutionStatus:i,chatMessages:s,setChatMessages:l,currentQuestion:a,setCurrentQuestion:c,theme:d,usage:f,codegenOptions:p,rcConfig:g,toggleTheme:y,startPolling:x,stopPolling:k,handlePauseExecution:m,handleResumeExecution:h,setCodegenOptions:v}=fk(),{handleExecute:S,handleQuestionSubmit:j,handleInterrupt:N,handleOptionsChange:$}=pk({currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,setExecutionStatus:i,chatMessages:s,setChatMessages:l,setCurrentQuestion:c,codegenOptions:p,setCodegenOptions:v});C.useEffect(()=>(x(),()=>{k()}),[x,k]);const P=()=>{o==="paused"?h():m()};return f?u.jsxs(Rd,{theme:d==="light"?_d:Ld,children:[u.jsx(pf,{}),u.jsx(ek,{themeToggle:u.jsx(Zj,{theme:d,toggleTheme:y}),toggleTheme:y,chatInterface:u.jsx(zj,{messages:s,currentQuestion:a,codegenOptions:p,onQuestionSubmit:j,onInterrupt:N,onPauseResume:P,executionStatus:o}),inputArea:!n&&u.jsx(qj,{onSubmit:S,isExecuting:n,onInterrupt:N,codegenOptions:p,onOptionsChange:$}),usage:f}),u.jsx(_w,{currentService:p.aiService}),u.jsx(Qw,{}),u.jsx(PS,{}),u.jsx(GS,{rcConfig:g}),u.jsx(KS,{options:p,onOptionsChange:$})]}):u.jsx(Rd,{theme:d==="light"?_d:Ld,children:u.jsx(pf,{})})};function tE(){return u.jsx(eE,{})}const nE=document.getElementById("root"),rE=jh(nE);rE.render(Le.createElement(tE,null));
|