genaicode 0.12.0 → 0.13.0
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 +1 -1
- package/dist/ai-service/service-configurations-types.d.ts +15 -1
- package/dist/ai-service/service-configurations-types.js +4 -0
- package/dist/ai-service/service-configurations-types.js.map +1 -1
- package/dist/cli/cli-params.d.ts +1 -0
- package/dist/cli/cli-params.js +1 -0
- package/dist/cli/cli-params.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/main/codegen-types.d.ts +2 -1
- package/dist/main/codegen.js +1 -0
- package/dist/main/codegen.js.map +1 -1
- package/dist/main/common/user-actions.d.ts +5 -2
- package/dist/main/common/user-actions.js +2 -2
- package/dist/main/common/user-actions.js.map +1 -1
- package/dist/main/config-lib.d.ts +12 -3
- package/dist/main/config-lib.js +61 -44
- package/dist/main/config-lib.js.map +1 -1
- package/dist/main/config-schema.d.ts +2 -1
- package/dist/main/config-schema.js +153 -19
- package/dist/main/config-schema.js.map +1 -1
- package/dist/main/config-types.d.ts +43 -16
- package/dist/main/config-types.js +3 -1
- package/dist/main/config-types.js.map +1 -1
- package/dist/main/config.d.ts +8 -2
- package/dist/main/config.js +59 -11
- package/dist/main/config.js.map +1 -1
- package/dist/main/plugin-loader.d.ts +1 -0
- package/dist/main/plugin-loader.js +28 -6
- package/dist/main/plugin-loader.js.map +1 -1
- package/dist/main/ui/backend/api.js +2 -0
- package/dist/main/ui/backend/api.js.map +1 -1
- package/dist/main/ui/backend/endpoints/config-endpoint.js +12 -0
- package/dist/main/ui/backend/endpoints/config-endpoint.js.map +1 -1
- package/dist/main/ui/backend/endpoints/question-endpoint.js +5 -4
- package/dist/main/ui/backend/endpoints/question-endpoint.js.map +1 -1
- package/dist/main/ui/backend/service.d.ts +3 -1
- package/dist/main/ui/backend/service.js +4 -3
- package/dist/main/ui/backend/service.js.map +1 -1
- package/dist/main/ui/common/api-types.d.ts +1 -0
- package/dist/main/ui/common/api-types.js.map +1 -1
- package/dist/main/ui/frontend/assets/{index-BbIYZZub.js → index-C2MB0Z2i.js} +290 -260
- package/dist/main/ui/frontend/index.html +1 -1
- package/dist/main/ui/user-action-handlers.js +3 -1
- package/dist/main/ui/user-action-handlers.js.map +1 -1
- package/dist/prompt/function-calling-validate.js +1 -0
- package/dist/prompt/function-calling-validate.js.map +1 -1
- package/dist/prompt/function-calling.js +7 -4
- package/dist/prompt/function-calling.js.map +1 -1
- package/dist/prompt/function-defs/ask-question.d.ts +2 -2
- package/dist/prompt/function-defs/ask-question.js +60 -52
- package/dist/prompt/function-defs/ask-question.js.map +1 -1
- package/dist/prompt/function-defs/conversation-graph.d.ts +1 -1
- package/dist/prompt/function-defs/conversation-graph.js +4 -4
- package/dist/prompt/function-defs/conversation-graph.js.map +1 -1
- package/dist/prompt/function-defs/run-bash-command.d.ts +2 -0
- package/dist/prompt/function-defs/run-bash-command.js +29 -0
- package/dist/prompt/function-defs/run-bash-command.js.map +1 -0
- package/dist/prompt/function-defs/run-project-command.d.ts +2 -0
- package/dist/prompt/function-defs/run-project-command.js +37 -0
- package/dist/prompt/function-defs/run-project-command.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.d.ts +2 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js +31 -69
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.js +282 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.d.ts +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js +70 -3
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.js +185 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +2 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +31 -12
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +2 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +16 -2
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/systemprompt.js +2 -2
- package/package.json +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Uw=Object.defineProperty;var Vw=(e,t,r)=>t in e?Uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oo=(e,t,r)=>Vw(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(l){if(l.ep)return;l.ep=!0;const a=r(l);fetch(l.href,a)}})();function Nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fc={exports:{}},Ae={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Bw=Object.defineProperty;var Uw=(e,t,r)=>t in e?Bw(e,t,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var im;function Hw(){if(im)return Ae;im=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(_){return _===null||typeof _!="object"?null:(_=g&&_[g]||_["@@iterator"],typeof _=="function"?_:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function j(_,U,T){this.props=_,this.context=U,this.refs=b,this.updater=T||w}j.prototype.isReactComponent={},j.prototype.setState=function(_,U){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,U,"setState")},j.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function C(){}C.prototype=j.prototype;function N(_,U,T){this.props=_,this.context=U,this.refs=b,this.updater=T||w}var A=N.prototype=new C;A.constructor=N,S(A,j.prototype),A.isPureReactComponent=!0;var F=Array.isArray,V=Object.prototype.hasOwnProperty,L={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function K(_,U,T){var ye,Se={},me=null,Ee=null;if(U!=null)for(ye in U.ref!==void 0&&(Ee=U.ref),U.key!==void 0&&(me=""+U.key),U)V.call(U,ye)&&!G.hasOwnProperty(ye)&&(Se[ye]=U[ye]);var ke=arguments.length-2;if(ke===1)Se.children=T;else if(1<ke){for(var je=Array(ke),Ve=0;Ve<ke;Ve++)je[Ve]=arguments[Ve+2];Se.children=je}if(_&&_.defaultProps)for(ye in ke=_.defaultProps,ke)Se[ye]===void 0&&(Se[ye]=ke[ye]);return{$$typeof:e,type:_,key:me,ref:Ee,props:Se,_owner:L.current}}function ie(_,U){return{$$typeof:e,type:_.type,key:U,ref:_.ref,props:_.props,_owner:_._owner}}function D(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function ne(_){var U={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(T){return U[T]})}var se=/\/+/g;function le(_,U){return typeof _=="object"&&_!==null&&_.key!=null?ne(""+_.key):U.toString(36)}function re(_,U,T,ye,Se){var me=typeof _;(me==="undefined"||me==="boolean")&&(_=null);var Ee=!1;if(_===null)Ee=!0;else switch(me){case"string":case"number":Ee=!0;break;case"object":switch(_.$$typeof){case e:case t:Ee=!0}}if(Ee)return Ee=_,Se=Se(Ee),_=ye===""?"."+le(Ee,0):ye,F(Se)?(T="",_!=null&&(T=_.replace(se,"$&/")+"/"),re(Se,U,T,"",function(Ve){return Ve})):Se!=null&&(D(Se)&&(Se=ie(Se,T+(!Se.key||Ee&&Ee.key===Se.key?"":(""+Se.key).replace(se,"$&/")+"/")+_)),U.push(Se)),1;if(Ee=0,ye=ye===""?".":ye+":",F(_))for(var ke=0;ke<_.length;ke++){me=_[ke];var je=ye+le(me,ke);Ee+=re(me,U,T,je,Se)}else if(je=v(_),typeof je=="function")for(_=je.call(_),ke=0;!(me=_.next()).done;)me=me.value,je=ye+le(me,ke++),Ee+=re(me,U,T,je,Se);else if(me==="object")throw U=String(_),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Ee}function H(_,U,T){if(_==null)return _;var ye=[],Se=0;return re(_,ye,"","",function(me){return U.call(T,me,Se++)}),ye}function de(_){if(_._status===-1){var U=_._result;U=U(),U.then(function(T){(_._status===0||_._status===-1)&&(_._status=1,_._result=T)},function(T){(_._status===0||_._status===-1)&&(_._status=2,_._result=T)}),_._status===-1&&(_._status=0,_._result=U)}if(_._status===1)return _._result.default;throw _._result}var ae={current:null},X={transition:null},ue={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:X,ReactCurrentOwner:L};function E(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:H,forEach:function(_,U,T){H(_,function(){U.apply(this,arguments)},T)},count:function(_){var U=0;return H(_,function(){U++}),U},toArray:function(_){return H(_,function(U){return U})||[]},only:function(_){if(!D(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Ae.Component=j,Ae.Fragment=r,Ae.Profiler=l,Ae.PureComponent=N,Ae.StrictMode=o,Ae.Suspense=f,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,Ae.act=E,Ae.cloneElement=function(_,U,T){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var ye=S({},_.props),Se=_.key,me=_.ref,Ee=_._owner;if(U!=null){if(U.ref!==void 0&&(me=U.ref,Ee=L.current),U.key!==void 0&&(Se=""+U.key),_.type&&_.type.defaultProps)var ke=_.type.defaultProps;for(je in U)V.call(U,je)&&!G.hasOwnProperty(je)&&(ye[je]=U[je]===void 0&&ke!==void 0?ke[je]:U[je])}var je=arguments.length-2;if(je===1)ye.children=T;else if(1<je){ke=Array(je);for(var Ve=0;Ve<je;Ve++)ke[Ve]=arguments[Ve+2];ye.children=ke}return{$$typeof:e,type:_.type,key:Se,ref:me,props:ye,_owner:Ee}},Ae.createContext=function(_){return _={$$typeof:u,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:a,_context:_},_.Consumer=_},Ae.createElement=K,Ae.createFactory=function(_){var U=K.bind(null,_);return U.type=_,U},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(_){return{$$typeof:d,render:_}},Ae.isValidElement=D,Ae.lazy=function(_){return{$$typeof:m,_payload:{_status:-1,_result:_},_init:de}},Ae.memo=function(_,U){return{$$typeof:p,type:_,compare:U===void 0?null:U}},Ae.startTransition=function(_){var U=X.transition;X.transition={};try{_()}finally{X.transition=U}},Ae.unstable_act=E,Ae.useCallback=function(_,U){return ae.current.useCallback(_,U)},Ae.useContext=function(_){return ae.current.useContext(_)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(_){return ae.current.useDeferredValue(_)},Ae.useEffect=function(_,U){return ae.current.useEffect(_,U)},Ae.useId=function(){return ae.current.useId()},Ae.useImperativeHandle=function(_,U,T){return ae.current.useImperativeHandle(_,U,T)},Ae.useInsertionEffect=function(_,U){return ae.current.useInsertionEffect(_,U)},Ae.useLayoutEffect=function(_,U){return ae.current.useLayoutEffect(_,U)},Ae.useMemo=function(_,U){return ae.current.useMemo(_,U)},Ae.useReducer=function(_,U,T){return ae.current.useReducer(_,U,T)},Ae.useRef=function(_){return ae.current.useRef(_)},Ae.useState=function(_){return ae.current.useState(_)},Ae.useSyncExternalStore=function(_,U,T){return ae.current.useSyncExternalStore(_,U,T)},Ae.useTransition=function(){return ae.current.useTransition()},Ae.version="18.3.1",Ae}var om;function Pd(){return om||(om=1,fc.exports=Hw()),fc.exports}var P=Pd();const Pt=Nd(P);var js={},pc={exports:{}},qt={},hc={exports:{}},mc={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Bw=Object.defineProperty;var Uw=(e,t,r)=>t in e?Bw(e,t,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var lm;function qw(){return lm||(lm=1,function(e){function t(X,ue){var E=X.length;X.push(ue);e:for(;0<E;){var _=E-1>>>1,U=X[_];if(0<l(U,ue))X[_]=ue,X[E]=U,E=_;else break e}}function r(X){return X.length===0?null:X[0]}function o(X){if(X.length===0)return null;var ue=X[0],E=X.pop();if(E!==ue){X[0]=E;e:for(var _=0,U=X.length,T=U>>>1;_<T;){var ye=2*(_+1)-1,Se=X[ye],me=ye+1,Ee=X[me];if(0>l(Se,E))me<U&&0>l(Ee,Se)?(X[_]=Ee,X[me]=E,_=me):(X[_]=Se,X[ye]=E,_=ye);else if(me<U&&0>l(Ee,E))X[_]=Ee,X[me]=E,_=me;else break e}}return ue}function l(X,ue){var E=X.sortIndex-ue.sortIndex;return E!==0?E:X.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],m=1,g=null,v=3,w=!1,S=!1,b=!1,j=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(X){for(var ue=r(p);ue!==null;){if(ue.callback===null)o(p);else if(ue.startTime<=X)o(p),ue.sortIndex=ue.expirationTime,t(f,ue);else break;ue=r(p)}}function F(X){if(b=!1,A(X),!S)if(r(f)!==null)S=!0,de(V);else{var ue=r(p);ue!==null&&ae(F,ue.startTime-X)}}function V(X,ue){S=!1,b&&(b=!1,C(K),K=-1),w=!0;var E=v;try{for(A(ue),g=r(f);g!==null&&(!(g.expirationTime>ue)||X&&!ne());){var _=g.callback;if(typeof _=="function"){g.callback=null,v=g.priorityLevel;var U=_(g.expirationTime<=ue);ue=e.unstable_now(),typeof U=="function"?g.callback=U:g===r(f)&&o(f),A(ue)}else o(f);g=r(f)}if(g!==null)var T=!0;else{var ye=r(p);ye!==null&&ae(F,ye.startTime-ue),T=!1}return T}finally{g=null,v=E,w=!1}}var L=!1,G=null,K=-1,ie=5,D=-1;function ne(){return!(e.unstable_now()-D<ie)}function se(){if(G!==null){var X=e.unstable_now();D=X;var ue=!0;try{ue=G(!0,X)}finally{ue?le():(L=!1,G=null)}}else L=!1}var le;if(typeof N=="function")le=function(){N(se)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,H=re.port2;re.port1.onmessage=se,le=function(){H.postMessage(null)}}else le=function(){j(se,0)};function de(X){G=X,L||(L=!0,le())}function ae(X,ue){K=j(function(){X(e.unstable_now())},ue)}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(X){X.callback=null},e.unstable_continueExecution=function(){S||w||(S=!0,de(V))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(X){switch(v){case 1:case 2:case 3:var ue=3;break;default:ue=v}var E=v;v=ue;try{return X()}finally{v=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,ue){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var E=v;v=X;try{return ue()}finally{v=E}},e.unstable_scheduleCallback=function(X,ue,E){var _=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?_+E:_):E=_,X){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=E+U,X={id:m++,callback:ue,priorityLevel:X,startTime:E,expirationTime:U,sortIndex:-1},E>_?(X.sortIndex=E,t(p,X),r(f)===null&&X===r(p)&&(b?(C(K),K=-1):b=!0,ae(F,E-_))):(X.sortIndex=U,t(f,X),S||w||(S=!0,de(V))),X},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(X){var ue=v;return function(){var E=v;v=ue;try{return X.apply(this,arguments)}finally{v=E}}}}(mc)),mc}var sm;function Ww(){return sm||(sm=1,hc.exports=qw()),hc.exports}/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.min.js
|
|
20
20
|
*
|
|
@@ -22,14 +22,14 @@ var Bw=Object.defineProperty;var Uw=(e,t,r)=>t in e?Bw(e,t,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
26
|
-
`+
|
|
25
|
+
*/var am;function Gw(){if(am)return qt;am=1;var e=Pd(),t=Ww();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function a(n,i){u(n,i),u(n+"Capture",i)}function u(n,i){for(l[n]=i,n=0;n<i.length;n++)o.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},g={};function v(n){return f.call(g,n)?!0:f.call(m,n)?!1:p.test(n)?g[n]=!0:(m[n]=!0,!1)}function w(n,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function S(n,i,s,c){if(i===null||typeof i>"u"||w(n,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function b(n,i,s,c,h,x,k){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=x,this.removeEmptyString=k}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){j[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];j[i]=new b(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){j[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){j[n]=new b(n,2,!1,n,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(n){j[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){j[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){j[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){j[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){j[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function N(n){return n[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(n){var i=n.replace(C,N);j[i]=new b(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(C,N);j[i]=new b(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(C,N);j[i]=new b(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){j[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),j.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){j[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function A(n,i,s,c){var h=j.hasOwnProperty(i)?j[i]:null;(h!==null?h.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,s,h,c)&&(s=null),c||h===null?v(i)&&(s===null?n.removeAttribute(i):n.setAttribute(i,""+s)):h.mustUseProperty?n[h.propertyName]=s===null?h.type===3?!1:"":s:(i=h.attributeName,c=h.attributeNamespace,s===null?n.removeAttribute(i):(h=h.type,s=h===3||h===4&&s===!0?"":""+s,c?n.setAttributeNS(c,i,s):n.setAttribute(i,s))))}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),L=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),ne=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),X=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=X&&n[X]||n["@@iterator"],typeof n=="function"?n:null)}var E=Object.assign,_;function U(n){if(_===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);_=i&&i[1]||""}return`
|
|
26
|
+
`+_+n}var T=!1;function ye(n,i){if(!n||T)return"";T=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(B){var c=B}Reflect.construct(n,[],i)}else{try{i.call()}catch(B){c=B}n.call(i.prototype)}else{try{throw Error()}catch(B){c=B}n()}}catch(B){if(B&&c&&typeof B.stack=="string"){for(var h=B.stack.split(`
|
|
27
27
|
`),x=c.stack.split(`
|
|
28
|
-
`),k=h.length-1,
|
|
29
|
-
`+h[k].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=k&&0<=T);break}}}finally{N=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?G(n):""}function Se(n){switch(n.tag){case 5:return G(n.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function me(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case q:return"Fragment";case A:return"Portal";case le:return"Profiler";case K:return"StrictMode";case oe:return"Suspense";case re:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ne:return(n.displayName||"Context")+".Consumer";case D:return(n._context.displayName||"Context")+".Provider";case se:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return i=n.displayName||null,i!==null?i:me(n.type)||"Memo";case ae:i=n._payload,n=n._init;try{return me(n(i))}catch{}}return null}function Ee(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(i);case 8:return i===K?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ke(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function je(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ve(n){var i=je(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,x=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(k){c=""+k,x.call(this,k)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(k){c=""+k},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ct(n){n._valueTracker||(n._valueTracker=Ve(n))}function Ie(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=je(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function $t(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Pn(n,i){var s=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function _t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=ke(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function _e(n,i){i=i.checked,i!=null&&L(n,"checked",i,!1)}function st(n,i){_e(n,i);var s=ke(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?xt(n,i.type,s):i.hasOwnProperty("defaultValue")&&xt(n,i.type,ke(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Et(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function xt(n,i,s){(i!=="number"||$t(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Ye=Array.isArray;function it(n,i,s,c){if(n=n.options,i){i={};for(var h=0;h<s.length;h++)i["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=i.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&c&&(n[s].defaultSelected=!0)}else{for(s=""+ke(s),i=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Mt(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return E({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function un(n,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(Ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}n._wrapperState={initialValue:ke(s)}}function yl(n,i){var s=ke(i.value),c=ke(i.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),i.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),c!=null&&(n.defaultValue=""+c)}function xl(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function J(n){switch(n){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 ie(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?J(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var be,Pe=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,h){MSApp.execUnsafeLocalFunction(function(){return n(i,s,c,h)})}:n}(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(be=be||document.createElement("div"),be.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=be.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function De(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var vt={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},Vn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(n){Vn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),vt[i]=vt[n]})});function cn(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||vt.hasOwnProperty(n)&&vt[n]?(""+i).trim():i+"px"}function er(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,h=cn(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,h):n[s]=h}}var Ir=E({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 wt(n,i){if(i){if(Ir[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function An(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Qt=null;function Ta(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ra=null,ti=null,ni=null;function wf(n){if(n=bo(n)){if(typeof Ra!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Bl(i),Ra(n.stateNode,n.type,i))}}function kf(n){ti?ni?ni.push(n):ni=[n]:ti=n}function Sf(){if(ti){var n=ti,i=ni;if(ni=ti=null,wf(n),i)for(n=0;n<i.length;n++)wf(i[n])}}function bf(n,i){return n(i)}function Cf(){}var Na=!1;function Ef(n,i,s){if(Na)return n(i,s);Na=!0;try{return bf(n,i,s)}finally{Na=!1,(ti!==null||ni!==null)&&(Cf(),Sf())}}function to(n,i){var s=n.stateNode;if(s===null)return null;var c=Bl(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Ia=!1;if(d)try{var no={};Object.defineProperty(no,"passive",{get:function(){Ia=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Ia=!1}function G0(n,i,s,c,h,x,k,T,$){var U=Array.prototype.slice.call(arguments,3);try{i.apply(s,U)}catch(Y){this.onError(Y)}}var ro=!1,vl=null,wl=!1,Pa=null,J0={onError:function(n){ro=!0,vl=n}};function K0(n,i,s,c,h,x,k,T,$){ro=!1,vl=null,G0.apply(J0,arguments)}function Q0(n,i,s,c,h,x,k,T,$){if(K0.apply(this,arguments),ro){if(ro){var U=vl;ro=!1,vl=null}else throw Error(r(198));wl||(wl=!0,Pa=U)}}function Pr(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function jf(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Tf(n){if(Pr(n)!==n)throw Error(r(188))}function Y0(n){var i=n.alternate;if(!i){if(i=Pr(n),i===null)throw Error(r(188));return i!==n?null:n}for(var s=n,c=i;;){var h=s.return;if(h===null)break;var x=h.alternate;if(x===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===x.child){for(x=h.child;x;){if(x===s)return Tf(h),n;if(x===c)return Tf(h),i;x=x.sibling}throw Error(r(188))}if(s.return!==c.return)s=h,c=x;else{for(var k=!1,T=h.child;T;){if(T===s){k=!0,s=h,c=x;break}if(T===c){k=!0,c=h,s=x;break}T=T.sibling}if(!k){for(T=x.child;T;){if(T===s){k=!0,s=x,c=h;break}if(T===c){k=!0,c=x,s=h;break}T=T.sibling}if(!k)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:i}function Rf(n){return n=Y0(n),n!==null?Nf(n):null}function Nf(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Nf(n);if(i!==null)return i;n=n.sibling}return null}var If=t.unstable_scheduleCallback,Pf=t.unstable_cancelCallback,X0=t.unstable_shouldYield,Z0=t.unstable_requestPaint,ot=t.unstable_now,e1=t.unstable_getCurrentPriorityLevel,Aa=t.unstable_ImmediatePriority,Af=t.unstable_UserBlockingPriority,kl=t.unstable_NormalPriority,t1=t.unstable_LowPriority,Lf=t.unstable_IdlePriority,Sl=null,Ln=null;function n1(n){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Sl,n,void 0,(n.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:o1,r1=Math.log,i1=Math.LN2;function o1(n){return n>>>=0,n===0?32:31-(r1(n)/i1|0)|0}var bl=64,Cl=4194304;function io(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function El(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,h=n.suspendedLanes,x=n.pingedLanes,k=s&268435455;if(k!==0){var T=k&~h;T!==0?c=io(T):(x&=k,x!==0&&(c=io(x)))}else k=s&~h,k!==0?c=io(k):x!==0&&(c=io(x));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,x=i&-i,h>=x||h===16&&(x&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)s=31-wn(i),h=1<<s,c|=n[s],i&=~h;return c}function l1(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 s1(n,i){for(var s=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,x=n.pendingLanes;0<x;){var k=31-wn(x),T=1<<k,$=h[k];$===-1?((T&s)===0||(T&c)!==0)&&(h[k]=l1(T,i)):$<=i&&(n.expiredLanes|=T),x&=~T}}function La(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function $f(){var n=bl;return bl<<=1,(bl&4194240)===0&&(bl=64),n}function $a(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function oo(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-wn(i),n[i]=s}function a1(n,i){var s=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<s;){var h=31-wn(s),x=1<<h;i[h]=0,c[h]=-1,n[h]=-1,s&=~x}}function _a(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var c=31-wn(s),h=1<<c;h&i|n[c]&i&&(n[c]|=i),s&=~h}}var Be=0;function _f(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var zf,za,Df,Of,Mf,Da=!1,jl=[],tr=null,nr=null,rr=null,lo=new Map,so=new Map,ir=[],u1="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 Ff(n,i){switch(n){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":lo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(i.pointerId)}}function ao(n,i,s,c,h,x){return n===null||n.nativeEvent!==x?(n={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:x,targetContainers:[h]},i!==null&&(i=bo(i),i!==null&&za(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function c1(n,i,s,c,h){switch(i){case"focusin":return tr=ao(tr,n,i,s,c,h),!0;case"dragenter":return nr=ao(nr,n,i,s,c,h),!0;case"mouseover":return rr=ao(rr,n,i,s,c,h),!0;case"pointerover":var x=h.pointerId;return lo.set(x,ao(lo.get(x)||null,n,i,s,c,h)),!0;case"gotpointercapture":return x=h.pointerId,so.set(x,ao(so.get(x)||null,n,i,s,c,h)),!0}return!1}function Bf(n){var i=Ar(n.target);if(i!==null){var s=Pr(i);if(s!==null){if(i=s.tag,i===13){if(i=jf(s),i!==null){n.blockedOn=i,Mf(n.priority,function(){Df(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Tl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Ma(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Qt=c,s.target.dispatchEvent(c),Qt=null}else return i=bo(s),i!==null&&za(i),n.blockedOn=s,!1;i.shift()}return!0}function Uf(n,i,s){Tl(n)&&s.delete(i)}function d1(){Da=!1,tr!==null&&Tl(tr)&&(tr=null),nr!==null&&Tl(nr)&&(nr=null),rr!==null&&Tl(rr)&&(rr=null),lo.forEach(Uf),so.forEach(Uf)}function uo(n,i){n.blockedOn===i&&(n.blockedOn=null,Da||(Da=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,d1)))}function co(n){function i(h){return uo(h,n)}if(0<jl.length){uo(jl[0],n);for(var s=1;s<jl.length;s++){var c=jl[s];c.blockedOn===n&&(c.blockedOn=null)}}for(tr!==null&&uo(tr,n),nr!==null&&uo(nr,n),rr!==null&&uo(rr,n),lo.forEach(i),so.forEach(i),s=0;s<ir.length;s++)c=ir[s],c.blockedOn===n&&(c.blockedOn=null);for(;0<ir.length&&(s=ir[0],s.blockedOn===null);)Bf(s),s.blockedOn===null&&ir.shift()}var ri=M.ReactCurrentBatchConfig,Rl=!0;function f1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=1,Oa(n,i,s,c)}finally{Be=h,ri.transition=x}}function p1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=4,Oa(n,i,s,c)}finally{Be=h,ri.transition=x}}function Oa(n,i,s,c){if(Rl){var h=Ma(n,i,s,c);if(h===null)nu(n,i,c,Nl,s),Ff(n,c);else if(c1(h,n,i,s,c))c.stopPropagation();else if(Ff(n,c),i&4&&-1<u1.indexOf(n)){for(;h!==null;){var x=bo(h);if(x!==null&&zf(x),x=Ma(n,i,s,c),x===null&&nu(n,i,c,Nl,s),x===h)break;h=x}h!==null&&c.stopPropagation()}else nu(n,i,c,null,s)}}var Nl=null;function Ma(n,i,s,c){if(Nl=null,n=Ta(c),n=Ar(n),n!==null)if(i=Pr(n),i===null)n=null;else if(s=i.tag,s===13){if(n=jf(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Nl=n,null}function Vf(n){switch(n){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(e1()){case Aa:return 1;case Af:return 4;case kl:case t1:return 16;case Lf:return 536870912;default:return 16}default:return 16}}var or=null,Fa=null,Il=null;function Hf(){if(Il)return Il;var n,i=Fa,s=i.length,c,h="value"in or?or.value:or.textContent,x=h.length;for(n=0;n<s&&i[n]===h[n];n++);var k=s-n;for(c=1;c<=k&&i[s-c]===h[x-c];c++);return Il=h.slice(n,1<c?1-c:void 0)}function Pl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Al(){return!0}function qf(){return!1}function Yt(n){function i(s,c,h,x,k){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var T in n)n.hasOwnProperty(T)&&(s=n[T],this[T]=s?s(x):x[T]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Al:qf,this.isPropagationStopped=qf,this}return E(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),i}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ba=Yt(ii),fo=E({},ii,{view:0,detail:0}),h1=Yt(fo),Ua,Va,po,Ll=E({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qa,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==po&&(po&&n.type==="mousemove"?(Ua=n.screenX-po.screenX,Va=n.screenY-po.screenY):Va=Ua=0,po=n),Ua)},movementY:function(n){return"movementY"in n?n.movementY:Va}}),Wf=Yt(Ll),m1=E({},Ll,{dataTransfer:0}),g1=Yt(m1),y1=E({},fo,{relatedTarget:0}),Ha=Yt(y1),x1=E({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),v1=Yt(x1),w1=E({},ii,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),k1=Yt(w1),S1=E({},ii,{data:0}),Gf=Yt(S1),b1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C1={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"},E1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j1(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=E1[n])?!!i[n]:!1}function qa(){return j1}var T1=E({},fo,{key:function(n){if(n.key){var i=b1[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Pl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?C1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qa,charCode:function(n){return n.type==="keypress"?Pl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Pl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),R1=Yt(T1),N1=E({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jf=Yt(N1),I1=E({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qa}),P1=Yt(I1),A1=E({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),L1=Yt(A1),$1=E({},Ll,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),_1=Yt($1),z1=[9,13,27,32],Wa=d&&"CompositionEvent"in window,ho=null;d&&"documentMode"in document&&(ho=document.documentMode);var D1=d&&"TextEvent"in window&&!ho,Kf=d&&(!Wa||ho&&8<ho&&11>=ho),Qf=" ",Yf=!1;function Xf(n,i){switch(n){case"keyup":return z1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var oi=!1;function O1(n,i){switch(n){case"compositionend":return Zf(i);case"keypress":return i.which!==32?null:(Yf=!0,Qf);case"textInput":return n=i.data,n===Qf&&Yf?null:n;default:return null}}function M1(n,i){if(oi)return n==="compositionend"||!Wa&&Xf(n,i)?(n=Hf(),Il=Fa=or=null,oi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Kf&&i.locale!=="ko"?null:i.data;default:return null}}var F1={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 ep(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!F1[n.type]:i==="textarea"}function tp(n,i,s,c){kf(c),i=Ol(i,"onChange"),0<i.length&&(s=new Ba("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var mo=null,go=null;function B1(n){vp(n,0)}function $l(n){var i=ci(n);if(Ie(i))return n}function U1(n,i){if(n==="change")return i}var np=!1;if(d){var Ga;if(d){var Ja="oninput"in document;if(!Ja){var rp=document.createElement("div");rp.setAttribute("oninput","return;"),Ja=typeof rp.oninput=="function"}Ga=Ja}else Ga=!1;np=Ga&&(!document.documentMode||9<document.documentMode)}function ip(){mo&&(mo.detachEvent("onpropertychange",op),go=mo=null)}function op(n){if(n.propertyName==="value"&&$l(go)){var i=[];tp(i,go,n,Ta(n)),Ef(B1,i)}}function V1(n,i,s){n==="focusin"?(ip(),mo=i,go=s,mo.attachEvent("onpropertychange",op)):n==="focusout"&&ip()}function H1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $l(go)}function q1(n,i){if(n==="click")return $l(i)}function W1(n,i){if(n==="input"||n==="change")return $l(i)}function G1(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var kn=typeof Object.is=="function"?Object.is:G1;function yo(n,i){if(kn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!f.call(i,h)||!kn(n[h],i[h]))return!1}return!0}function lp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function sp(n,i){var s=lp(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=i&&c>=i)return{node:s,offset:i-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=lp(s)}}function ap(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?ap(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function up(){for(var n=window,i=$t();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=$t(n.document)}return i}function Ka(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function J1(n){var i=up(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&ap(s.ownerDocument.documentElement,s)){if(c!==null&&Ka(s)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var h=s.textContent.length,x=Math.min(c.start,h);c=c.end===void 0?x:Math.min(c.end,h),!n.extend&&x>c&&(h=c,c=x,x=h),h=sp(s,x);var k=sp(s,c);h&&k&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),n.removeAllRanges(),x>c?(n.addRange(i),n.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)n=i[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var K1=d&&"documentMode"in document&&11>=document.documentMode,li=null,Qa=null,xo=null,Ya=!1;function cp(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ya||li==null||li!==$t(c)||(c=li,"selectionStart"in c&&Ka(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),xo&&yo(xo,c)||(xo=c,c=Ol(Qa,"onSelect"),0<c.length&&(i=new Ba("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=li)))}function _l(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var si={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionend:_l("Transition","TransitionEnd")},Xa={},dp={};d&&(dp=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function zl(n){if(Xa[n])return Xa[n];if(!si[n])return n;var i=si[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in dp)return Xa[n]=i[s];return n}var fp=zl("animationend"),pp=zl("animationiteration"),hp=zl("animationstart"),mp=zl("transitionend"),gp=new Map,yp="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 lr(n,i){gp.set(n,i),a(i,[n])}for(var Za=0;Za<yp.length;Za++){var eu=yp[Za],Q1=eu.toLowerCase(),Y1=eu[0].toUpperCase()+eu.slice(1);lr(Q1,"on"+Y1)}lr(fp,"onAnimationEnd"),lr(pp,"onAnimationIteration"),lr(hp,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(mp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),X1=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function xp(n,i,s){var c=n.type||"unknown-event";n.currentTarget=s,Q0(c,i,void 0,n),n.currentTarget=null}function vp(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],h=c.event;c=c.listeners;e:{var x=void 0;if(i)for(var k=c.length-1;0<=k;k--){var T=c[k],$=T.instance,U=T.currentTarget;if(T=T.listener,$!==x&&h.isPropagationStopped())break e;xp(h,T,U),x=$}else for(k=0;k<c.length;k++){if(T=c[k],$=T.instance,U=T.currentTarget,T=T.listener,$!==x&&h.isPropagationStopped())break e;xp(h,T,U),x=$}}}if(wl)throw n=Pa,wl=!1,Pa=null,n}function Je(n,i){var s=i[au];s===void 0&&(s=i[au]=new Set);var c=n+"__bubble";s.has(c)||(wp(i,n,2,!1),s.add(c))}function tu(n,i,s){var c=0;i&&(c|=4),wp(s,n,c,i)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function wo(n){if(!n[Dl]){n[Dl]=!0,o.forEach(function(s){s!=="selectionchange"&&(X1.has(s)||tu(s,!1,n),tu(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Dl]||(i[Dl]=!0,tu("selectionchange",!1,i))}}function wp(n,i,s,c){switch(Vf(i)){case 1:var h=f1;break;case 4:h=p1;break;default:h=Oa}s=h.bind(null,i,s,n),h=void 0,!Ia||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,s,{capture:!0,passive:h}):n.addEventListener(i,s,!0):h!==void 0?n.addEventListener(i,s,{passive:h}):n.addEventListener(i,s,!1)}function nu(n,i,s,c,h){var x=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var T=c.stateNode.containerInfo;if(T===h||T.nodeType===8&&T.parentNode===h)break;if(k===4)for(k=c.return;k!==null;){var $=k.tag;if(($===3||$===4)&&($=k.stateNode.containerInfo,$===h||$.nodeType===8&&$.parentNode===h))return;k=k.return}for(;T!==null;){if(k=Ar(T),k===null)return;if($=k.tag,$===5||$===6){c=x=k;continue e}T=T.parentNode}}c=c.return}Ef(function(){var U=x,Y=Ta(s),Z=[];e:{var Q=gp.get(n);if(Q!==void 0){var de=Ba,pe=n;switch(n){case"keypress":if(Pl(s)===0)break e;case"keydown":case"keyup":de=R1;break;case"focusin":pe="focus",de=Ha;break;case"focusout":pe="blur",de=Ha;break;case"beforeblur":case"afterblur":de=Ha;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=Wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=g1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=P1;break;case fp:case pp:case hp:de=v1;break;case mp:de=L1;break;case"scroll":de=h1;break;case"wheel":de=_1;break;case"copy":case"cut":case"paste":de=k1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Jf}var he=(i&4)!==0,lt=!he&&n==="scroll",O=he?Q!==null?Q+"Capture":null:Q;he=[];for(var _=U,F;_!==null;){F=_;var te=F.stateNode;if(F.tag===5&&te!==null&&(F=te,O!==null&&(te=to(_,O),te!=null&&he.push(ko(_,te,F)))),lt)break;_=_.return}0<he.length&&(Q=new de(Q,pe,null,s,Y),Z.push({event:Q,listeners:he}))}}if((i&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",Q&&s!==Qt&&(pe=s.relatedTarget||s.fromElement)&&(Ar(pe)||pe[Hn]))break e;if((de||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,de?(pe=s.relatedTarget||s.toElement,de=U,pe=pe?Ar(pe):null,pe!==null&&(lt=Pr(pe),pe!==lt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(de=null,pe=U),de!==pe)){if(he=Wf,te="onMouseLeave",O="onMouseEnter",_="mouse",(n==="pointerout"||n==="pointerover")&&(he=Jf,te="onPointerLeave",O="onPointerEnter",_="pointer"),lt=de==null?Q:ci(de),F=pe==null?Q:ci(pe),Q=new he(te,_+"leave",de,s,Y),Q.target=lt,Q.relatedTarget=F,te=null,Ar(Y)===U&&(he=new he(O,_+"enter",pe,s,Y),he.target=F,he.relatedTarget=lt,te=he),lt=te,de&&pe)t:{for(he=de,O=pe,_=0,F=he;F;F=ai(F))_++;for(F=0,te=O;te;te=ai(te))F++;for(;0<_-F;)he=ai(he),_--;for(;0<F-_;)O=ai(O),F--;for(;_--;){if(he===O||O!==null&&he===O.alternate)break t;he=ai(he),O=ai(O)}he=null}else he=null;de!==null&&kp(Z,Q,de,he,!1),pe!==null&<!==null&&kp(Z,lt,pe,he,!0)}}e:{if(Q=U?ci(U):window,de=Q.nodeName&&Q.nodeName.toLowerCase(),de==="select"||de==="input"&&Q.type==="file")var ge=U1;else if(ep(Q))if(np)ge=W1;else{ge=H1;var xe=V1}else(de=Q.nodeName)&&de.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ge=q1);if(ge&&(ge=ge(n,U))){tp(Z,ge,s,Y);break e}xe&&xe(n,Q,U),n==="focusout"&&(xe=Q._wrapperState)&&xe.controlled&&Q.type==="number"&&xt(Q,"number",Q.value)}switch(xe=U?ci(U):window,n){case"focusin":(ep(xe)||xe.contentEditable==="true")&&(li=xe,Qa=U,xo=null);break;case"focusout":xo=Qa=li=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,cp(Z,s,Y);break;case"selectionchange":if(K1)break;case"keydown":case"keyup":cp(Z,s,Y)}var ve;if(Wa)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else oi?Xf(n,s)&&(Ce="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(Kf&&s.locale!=="ko"&&(oi||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&oi&&(ve=Hf()):(or=Y,Fa="value"in or?or.value:or.textContent,oi=!0)),xe=Ol(U,Ce),0<xe.length&&(Ce=new Gf(Ce,n,null,s,Y),Z.push({event:Ce,listeners:xe}),ve?Ce.data=ve:(ve=Zf(s),ve!==null&&(Ce.data=ve)))),(ve=D1?O1(n,s):M1(n,s))&&(U=Ol(U,"onBeforeInput"),0<U.length&&(Y=new Gf("onBeforeInput","beforeinput",null,s,Y),Z.push({event:Y,listeners:U}),Y.data=ve))}vp(Z,i)})}function ko(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Ol(n,i){for(var s=i+"Capture",c=[];n!==null;){var h=n,x=h.stateNode;h.tag===5&&x!==null&&(h=x,x=to(n,s),x!=null&&c.unshift(ko(n,x,h)),x=to(n,i),x!=null&&c.push(ko(n,x,h))),n=n.return}return c}function ai(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function kp(n,i,s,c,h){for(var x=i._reactName,k=[];s!==null&&s!==c;){var T=s,$=T.alternate,U=T.stateNode;if($!==null&&$===c)break;T.tag===5&&U!==null&&(T=U,h?($=to(s,x),$!=null&&k.unshift(ko(s,$,T))):h||($=to(s,x),$!=null&&k.push(ko(s,$,T)))),s=s.return}k.length!==0&&n.push({event:i,listeners:k})}var Z1=/\r\n?/g,ew=/\u0000|\uFFFD/g;function Sp(n){return(typeof n=="string"?n:""+n).replace(Z1,`
|
|
30
|
-
`).replace(ew,"")}function Ml(n,i,s){if(i=Sp(i),Sp(n)!==i&&s)throw Error(r(425))}function Fl(){}var ru=null,iu=null;function ou(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var lu=typeof setTimeout=="function"?setTimeout:void 0,tw=typeof clearTimeout=="function"?clearTimeout:void 0,bp=typeof Promise=="function"?Promise:void 0,nw=typeof queueMicrotask=="function"?queueMicrotask:typeof bp<"u"?function(n){return bp.resolve(null).then(n).catch(rw)}:lu;function rw(n){setTimeout(function(){throw n})}function su(n,i){var s=i,c=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){n.removeChild(h),co(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);co(i)}function sr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function Cp(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var ui=Math.random().toString(36).slice(2),$n="__reactFiber$"+ui,So="__reactProps$"+ui,Hn="__reactContainer$"+ui,au="__reactEvents$"+ui,iw="__reactListeners$"+ui,ow="__reactHandles$"+ui;function Ar(n){var i=n[$n];if(i)return i;for(var s=n.parentNode;s;){if(i=s[Hn]||s[$n]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=Cp(n);n!==null;){if(s=n[$n])return s;n=Cp(n)}return i}n=s,s=n.parentNode}return null}function bo(n){return n=n[$n]||n[Hn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ci(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Bl(n){return n[So]||null}var uu=[],di=-1;function ar(n){return{current:n}}function Ke(n){0>di||(n.current=uu[di],uu[di]=null,di--)}function qe(n,i){di++,uu[di]=n.current,n.current=i}var ur={},jt=ar(ur),Ft=ar(!1),Lr=ur;function fi(n,i){var s=n.type.contextTypes;if(!s)return ur;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},x;for(x in s)h[x]=i[x];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=h),h}function Bt(n){return n=n.childContextTypes,n!=null}function Ul(){Ke(Ft),Ke(jt)}function Ep(n,i,s){if(jt.current!==ur)throw Error(r(168));qe(jt,i),qe(Ft,s)}function jp(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(r(108,Ee(n)||"Unknown",h));return E({},s,c)}function Vl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ur,Lr=jt.current,qe(jt,n),qe(Ft,Ft.current),!0}function Tp(n,i,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=jp(n,i,Lr),c.__reactInternalMemoizedMergedChildContext=n,Ke(Ft),Ke(jt),qe(jt,n)):Ke(Ft),qe(Ft,s)}var qn=null,Hl=!1,cu=!1;function Rp(n){qn===null?qn=[n]:qn.push(n)}function lw(n){Hl=!0,Rp(n)}function cr(){if(!cu&&qn!==null){cu=!0;var n=0,i=Be;try{var s=qn;for(Be=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}qn=null,Hl=!1}catch(h){throw qn!==null&&(qn=qn.slice(n+1)),If(Aa,cr),h}finally{Be=i,cu=!1}}return null}var pi=[],hi=0,ql=null,Wl=0,dn=[],fn=0,$r=null,Wn=1,Gn="";function _r(n,i){pi[hi++]=Wl,pi[hi++]=ql,ql=n,Wl=i}function Np(n,i,s){dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,$r=n;var c=Wn;n=Gn;var h=32-wn(c)-1;c&=~(1<<h),s+=1;var x=32-wn(i)+h;if(30<x){var k=h-h%5;x=(c&(1<<k)-1).toString(32),c>>=k,h-=k,Wn=1<<32-wn(i)+h|s<<h|c,Gn=x+n}else Wn=1<<x|s<<h|c,Gn=n}function du(n){n.return!==null&&(_r(n,1),Np(n,1,0))}function fu(n){for(;n===ql;)ql=pi[--hi],pi[hi]=null,Wl=pi[--hi],pi[hi]=null;for(;n===$r;)$r=dn[--fn],dn[fn]=null,Gn=dn[--fn],dn[fn]=null,Wn=dn[--fn],dn[fn]=null}var Xt=null,Zt=null,Xe=!1,Sn=null;function Ip(n,i){var s=gn(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function Pp(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Xt=n,Zt=sr(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Xt=n,Zt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=$r!==null?{id:Wn,overflow:Gn}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=gn(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Xt=n,Zt=null,!0):!1;default:return!1}}function pu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function hu(n){if(Xe){var i=Zt;if(i){var s=i;if(!Pp(n,i)){if(pu(n))throw Error(r(418));i=sr(s.nextSibling);var c=Xt;i&&Pp(n,i)?Ip(c,s):(n.flags=n.flags&-4097|2,Xe=!1,Xt=n)}}else{if(pu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,Xt=n}}}function Ap(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Xt=n}function Gl(n){if(n!==Xt)return!1;if(!Xe)return Ap(n),Xe=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!ou(n.type,n.memoizedProps)),i&&(i=Zt)){if(pu(n))throw Lp(),Error(r(418));for(;i;)Ip(n,i),i=sr(i.nextSibling)}if(Ap(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(i===0){Zt=sr(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}n=n.nextSibling}Zt=null}}else Zt=Xt?sr(n.stateNode.nextSibling):null;return!0}function Lp(){for(var n=Zt;n;)n=sr(n.nextSibling)}function mi(){Zt=Xt=null,Xe=!1}function mu(n){Sn===null?Sn=[n]:Sn.push(n)}var sw=M.ReactCurrentBatchConfig;function Co(n,i,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,n));var h=c,x=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===x?i.ref:(i=function(k){var T=h.refs;k===null?delete T[x]:T[x]=k},i._stringRef=x,i)}if(typeof n!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,n))}return n}function Jl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function $p(n){var i=n._init;return i(n._payload)}function _p(n){function i(O,_){if(n){var F=O.deletions;F===null?(O.deletions=[_],O.flags|=16):F.push(_)}}function s(O,_){if(!n)return null;for(;_!==null;)i(O,_),_=_.sibling;return null}function c(O,_){for(O=new Map;_!==null;)_.key!==null?O.set(_.key,_):O.set(_.index,_),_=_.sibling;return O}function h(O,_){return O=xr(O,_),O.index=0,O.sibling=null,O}function x(O,_,F){return O.index=F,n?(F=O.alternate,F!==null?(F=F.index,F<_?(O.flags|=2,_):F):(O.flags|=2,_)):(O.flags|=1048576,_)}function k(O){return n&&O.alternate===null&&(O.flags|=2),O}function T(O,_,F,te){return _===null||_.tag!==6?(_=lc(F,O.mode,te),_.return=O,_):(_=h(_,F),_.return=O,_)}function $(O,_,F,te){var ge=F.type;return ge===q?Y(O,_,F.props.children,te,F.key):_!==null&&(_.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ae&&$p(ge)===_.type)?(te=h(_,F.props),te.ref=Co(O,_,F),te.return=O,te):(te=xs(F.type,F.key,F.props,null,O.mode,te),te.ref=Co(O,_,F),te.return=O,te)}function U(O,_,F,te){return _===null||_.tag!==4||_.stateNode.containerInfo!==F.containerInfo||_.stateNode.implementation!==F.implementation?(_=sc(F,O.mode,te),_.return=O,_):(_=h(_,F.children||[]),_.return=O,_)}function Y(O,_,F,te,ge){return _===null||_.tag!==7?(_=Vr(F,O.mode,te,ge),_.return=O,_):(_=h(_,F),_.return=O,_)}function Z(O,_,F){if(typeof _=="string"&&_!==""||typeof _=="number")return _=lc(""+_,O.mode,F),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case H:return F=xs(_.type,_.key,_.props,null,O.mode,F),F.ref=Co(O,null,_),F.return=O,F;case A:return _=sc(_,O.mode,F),_.return=O,_;case ae:var te=_._init;return Z(O,te(_._payload),F)}if(Ye(_)||ce(_))return _=Vr(_,O.mode,F,null),_.return=O,_;Jl(O,_)}return null}function Q(O,_,F,te){var ge=_!==null?_.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ge!==null?null:T(O,_,""+F,te);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case H:return F.key===ge?$(O,_,F,te):null;case A:return F.key===ge?U(O,_,F,te):null;case ae:return ge=F._init,Q(O,_,ge(F._payload),te)}if(Ye(F)||ce(F))return ge!==null?null:Y(O,_,F,te,null);Jl(O,F)}return null}function de(O,_,F,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return O=O.get(F)||null,T(_,O,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case H:return O=O.get(te.key===null?F:te.key)||null,$(_,O,te,ge);case A:return O=O.get(te.key===null?F:te.key)||null,U(_,O,te,ge);case ae:var xe=te._init;return de(O,_,F,xe(te._payload),ge)}if(Ye(te)||ce(te))return O=O.get(F)||null,Y(_,O,te,ge,null);Jl(_,te)}return null}function pe(O,_,F,te){for(var ge=null,xe=null,ve=_,Ce=_=0,mt=null;ve!==null&&Ce<F.length;Ce++){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var Me=Q(O,ve,F[Ce],te);if(Me===null){ve===null&&(ve=mt);break}n&&ve&&Me.alternate===null&&i(O,ve),_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me,ve=mt}if(Ce===F.length)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;Ce<F.length;Ce++)ve=Z(O,F[Ce],te),ve!==null&&(_=x(ve,_,Ce),xe===null?ge=ve:xe.sibling=ve,xe=ve);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);Ce<F.length;Ce++)mt=de(ve,O,Ce,F[Ce],te),mt!==null&&(n&&mt.alternate!==null&&ve.delete(mt.key===null?Ce:mt.key),_=x(mt,_,Ce),xe===null?ge=mt:xe.sibling=mt,xe=mt);return n&&ve.forEach(function(vr){return i(O,vr)}),Xe&&_r(O,Ce),ge}function he(O,_,F,te){var ge=ce(F);if(typeof ge!="function")throw Error(r(150));if(F=ge.call(F),F==null)throw Error(r(151));for(var xe=ge=null,ve=_,Ce=_=0,mt=null,Me=F.next();ve!==null&&!Me.done;Ce++,Me=F.next()){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var vr=Q(O,ve,Me.value,te);if(vr===null){ve===null&&(ve=mt);break}n&&ve&&vr.alternate===null&&i(O,ve),_=x(vr,_,Ce),xe===null?ge=vr:xe.sibling=vr,xe=vr,ve=mt}if(Me.done)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;!Me.done;Ce++,Me=F.next())Me=Z(O,Me.value,te),Me!==null&&(_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);!Me.done;Ce++,Me=F.next())Me=de(ve,O,Ce,Me.value,te),Me!==null&&(n&&Me.alternate!==null&&ve.delete(Me.key===null?Ce:Me.key),_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me);return n&&ve.forEach(function(Fw){return i(O,Fw)}),Xe&&_r(O,Ce),ge}function lt(O,_,F,te){if(typeof F=="object"&&F!==null&&F.type===q&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case H:e:{for(var ge=F.key,xe=_;xe!==null;){if(xe.key===ge){if(ge=F.type,ge===q){if(xe.tag===7){s(O,xe.sibling),_=h(xe,F.props.children),_.return=O,O=_;break e}}else if(xe.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ae&&$p(ge)===xe.type){s(O,xe.sibling),_=h(xe,F.props),_.ref=Co(O,xe,F),_.return=O,O=_;break e}s(O,xe);break}else i(O,xe);xe=xe.sibling}F.type===q?(_=Vr(F.props.children,O.mode,te,F.key),_.return=O,O=_):(te=xs(F.type,F.key,F.props,null,O.mode,te),te.ref=Co(O,_,F),te.return=O,O=te)}return k(O);case A:e:{for(xe=F.key;_!==null;){if(_.key===xe)if(_.tag===4&&_.stateNode.containerInfo===F.containerInfo&&_.stateNode.implementation===F.implementation){s(O,_.sibling),_=h(_,F.children||[]),_.return=O,O=_;break e}else{s(O,_);break}else i(O,_);_=_.sibling}_=sc(F,O.mode,te),_.return=O,O=_}return k(O);case ae:return xe=F._init,lt(O,_,xe(F._payload),te)}if(Ye(F))return pe(O,_,F,te);if(ce(F))return he(O,_,F,te);Jl(O,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,_!==null&&_.tag===6?(s(O,_.sibling),_=h(_,F),_.return=O,O=_):(s(O,_),_=lc(F,O.mode,te),_.return=O,O=_),k(O)):s(O,_)}return lt}var gi=_p(!0),zp=_p(!1),Kl=ar(null),Ql=null,yi=null,gu=null;function yu(){gu=yi=Ql=null}function xu(n){var i=Kl.current;Ke(Kl),n._currentValue=i}function vu(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function xi(n,i){Ql=n,gu=yi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Ut=!0),n.firstContext=null)}function pn(n){var i=n._currentValue;if(gu!==n)if(n={context:n,memoizedValue:i,next:null},yi===null){if(Ql===null)throw Error(r(308));yi=n,Ql.dependencies={lanes:0,firstContext:n}}else yi=yi.next=n;return i}var zr=null;function wu(n){zr===null?zr=[n]:zr.push(n)}function Dp(n,i,s,c){var h=i.interleaved;return h===null?(s.next=s,wu(i)):(s.next=h.next,h.next=s),i.interleaved=s,Jn(n,c)}function Jn(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var dr=!1;function ku(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Op(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Kn(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function fr(n,i,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,Jn(n,s)}return h=c.interleaved,h===null?(i.next=i,wu(c)):(i.next=h.next,h.next=i),c.interleaved=i,Jn(n,s)}function Yl(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,_a(n,s)}}function Mp(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,x=null;if(s=s.firstBaseUpdate,s!==null){do{var k={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};x===null?h=x=k:x=x.next=k,s=s.next}while(s!==null);x===null?h=x=i:x=x.next=i}else h=x=i;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:x,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function Xl(n,i,s,c){var h=n.updateQueue;dr=!1;var x=h.firstBaseUpdate,k=h.lastBaseUpdate,T=h.shared.pending;if(T!==null){h.shared.pending=null;var $=T,U=$.next;$.next=null,k===null?x=U:k.next=U,k=$;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==k&&(T===null?Y.firstBaseUpdate=U:T.next=U,Y.lastBaseUpdate=$))}if(x!==null){var Z=h.baseState;k=0,Y=U=$=null,T=x;do{var Q=T.lane,de=T.eventTime;if((c&Q)===Q){Y!==null&&(Y=Y.next={eventTime:de,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var pe=n,he=T;switch(Q=i,de=s,he.tag){case 1:if(pe=he.payload,typeof pe=="function"){Z=pe.call(de,Z,Q);break e}Z=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=he.payload,Q=typeof pe=="function"?pe.call(de,Z,Q):pe,Q==null)break e;Z=E({},Z,Q);break e;case 2:dr=!0}}T.callback!==null&&T.lane!==0&&(n.flags|=64,Q=h.effects,Q===null?h.effects=[T]:Q.push(T))}else de={eventTime:de,lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?(U=Y=de,$=Z):Y=Y.next=de,k|=Q;if(T=T.next,T===null){if(T=h.shared.pending,T===null)break;Q=T,T=Q.next,Q.next=null,h.lastBaseUpdate=Q,h.shared.pending=null}}while(!0);if(Y===null&&($=Z),h.baseState=$,h.firstBaseUpdate=U,h.lastBaseUpdate=Y,i=h.shared.interleaved,i!==null){h=i;do k|=h.lane,h=h.next;while(h!==i)}else x===null&&(h.shared.lanes=0);Mr|=k,n.lanes=k,n.memoizedState=Z}}function Fp(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],h=c.callback;if(h!==null){if(c.callback=null,c=s,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Eo={},_n=ar(Eo),jo=ar(Eo),To=ar(Eo);function Dr(n){if(n===Eo)throw Error(r(174));return n}function Su(n,i){switch(qe(To,i),qe(jo,n),qe(_n,Eo),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ie(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=ie(i,n)}Ke(_n),qe(_n,i)}function vi(){Ke(_n),Ke(jo),Ke(To)}function Bp(n){Dr(To.current);var i=Dr(_n.current),s=ie(i,n.type);i!==s&&(qe(jo,n),qe(_n,s))}function bu(n){jo.current===n&&(Ke(_n),Ke(jo))}var et=ar(0);function Zl(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Cu=[];function Eu(){for(var n=0;n<Cu.length;n++)Cu[n]._workInProgressVersionPrimary=null;Cu.length=0}var es=M.ReactCurrentDispatcher,ju=M.ReactCurrentBatchConfig,Or=0,tt=null,dt=null,pt=null,ts=!1,Ro=!1,No=0,aw=0;function Tt(){throw Error(r(321))}function Tu(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!kn(n[s],i[s]))return!1;return!0}function Ru(n,i,s,c,h,x){if(Or=x,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,es.current=n===null||n.memoizedState===null?fw:pw,n=s(c,h),Ro){x=0;do{if(Ro=!1,No=0,25<=x)throw Error(r(301));x+=1,pt=dt=null,i.updateQueue=null,es.current=hw,n=s(c,h)}while(Ro)}if(es.current=is,i=dt!==null&&dt.next!==null,Or=0,pt=dt=tt=null,ts=!1,i)throw Error(r(300));return n}function Nu(){var n=No!==0;return No=0,n}function zn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?tt.memoizedState=pt=n:pt=pt.next=n,pt}function hn(){if(dt===null){var n=tt.alternate;n=n!==null?n.memoizedState:null}else n=dt.next;var i=pt===null?tt.memoizedState:pt.next;if(i!==null)pt=i,dt=n;else{if(n===null)throw Error(r(310));dt=n,n={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},pt===null?tt.memoizedState=pt=n:pt=pt.next=n}return pt}function Io(n,i){return typeof i=="function"?i(n):i}function Iu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=dt,h=c.baseQueue,x=s.pending;if(x!==null){if(h!==null){var k=h.next;h.next=x.next,x.next=k}c.baseQueue=h=x,s.pending=null}if(h!==null){x=h.next,c=c.baseState;var T=k=null,$=null,U=x;do{var Y=U.lane;if((Or&Y)===Y)$!==null&&($=$.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:n(c,U.action);else{var Z={lane:Y,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};$===null?(T=$=Z,k=c):$=$.next=Z,tt.lanes|=Y,Mr|=Y}U=U.next}while(U!==null&&U!==x);$===null?k=c:$.next=T,kn(c,i.memoizedState)||(Ut=!0),i.memoizedState=c,i.baseState=k,i.baseQueue=$,s.lastRenderedState=c}if(n=s.interleaved,n!==null){h=n;do x=h.lane,tt.lanes|=x,Mr|=x,h=h.next;while(h!==n)}else h===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function Pu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=s.dispatch,h=s.pending,x=i.memoizedState;if(h!==null){s.pending=null;var k=h=h.next;do x=n(x,k.action),k=k.next;while(k!==h);kn(x,i.memoizedState)||(Ut=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),s.lastRenderedState=x}return[x,c]}function Up(){}function Vp(n,i){var s=tt,c=hn(),h=i(),x=!kn(c.memoizedState,h);if(x&&(c.memoizedState=h,Ut=!0),c=c.queue,Au(Wp.bind(null,s,c,n),[n]),c.getSnapshot!==i||x||pt!==null&&pt.memoizedState.tag&1){if(s.flags|=2048,Po(9,qp.bind(null,s,c,h,i),void 0,null),ht===null)throw Error(r(349));(Or&30)!==0||Hp(s,i,h)}return h}function Hp(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function qp(n,i,s,c){i.value=s,i.getSnapshot=c,Gp(i)&&Jp(n)}function Wp(n,i,s){return s(function(){Gp(i)&&Jp(n)})}function Gp(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!kn(n,s)}catch{return!0}}function Jp(n){var i=Jn(n,1);i!==null&&jn(i,n,1,-1)}function Kp(n){var i=zn();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},i.queue=n,n=n.dispatch=dw.bind(null,tt,n),[i.memoizedState,n]}function Po(n,i,s,c){return n={tag:n,create:i,destroy:s,deps:c,next:null},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.lastEffect=n.next=n):(s=i.lastEffect,s===null?i.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,i.lastEffect=n)),n}function Qp(){return hn().memoizedState}function ns(n,i,s,c){var h=zn();tt.flags|=n,h.memoizedState=Po(1|i,s,void 0,c===void 0?null:c)}function rs(n,i,s,c){var h=hn();c=c===void 0?null:c;var x=void 0;if(dt!==null){var k=dt.memoizedState;if(x=k.destroy,c!==null&&Tu(c,k.deps)){h.memoizedState=Po(i,s,x,c);return}}tt.flags|=n,h.memoizedState=Po(1|i,s,x,c)}function Yp(n,i){return ns(8390656,8,n,i)}function Au(n,i){return rs(2048,8,n,i)}function Xp(n,i){return rs(4,2,n,i)}function Zp(n,i){return rs(4,4,n,i)}function eh(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function th(n,i,s){return s=s!=null?s.concat([n]):null,rs(4,4,eh.bind(null,i,n),s)}function Lu(){}function nh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Tu(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function rh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Tu(i,c[1])?c[0]:(n=n(),s.memoizedState=[n,i],n)}function ih(n,i,s){return(Or&21)===0?(n.baseState&&(n.baseState=!1,Ut=!0),n.memoizedState=s):(kn(s,i)||(s=$f(),tt.lanes|=s,Mr|=s,n.baseState=!0),i)}function uw(n,i){var s=Be;Be=s!==0&&4>s?s:4,n(!0);var c=ju.transition;ju.transition={};try{n(!1),i()}finally{Be=s,ju.transition=c}}function oh(){return hn().memoizedState}function cw(n,i,s){var c=gr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},lh(n))sh(i,s);else if(s=Dp(n,i,s,c),s!==null){var h=Dt();jn(s,n,c,h),ah(s,i,c)}}function dw(n,i,s){var c=gr(n),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(lh(n))sh(i,h);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var k=i.lastRenderedState,T=x(k,s);if(h.hasEagerState=!0,h.eagerState=T,kn(T,k)){var $=i.interleaved;$===null?(h.next=h,wu(i)):(h.next=$.next,$.next=h),i.interleaved=h;return}}catch{}finally{}s=Dp(n,i,h,c),s!==null&&(h=Dt(),jn(s,n,c,h),ah(s,i,c))}}function lh(n){var i=n.alternate;return n===tt||i!==null&&i===tt}function sh(n,i){Ro=ts=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function ah(n,i,s){if((s&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,_a(n,s)}}var is={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},fw={readContext:pn,useCallback:function(n,i){return zn().memoizedState=[n,i===void 0?null:i],n},useContext:pn,useEffect:Yp,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,ns(4194308,4,eh.bind(null,i,n),s)},useLayoutEffect:function(n,i){return ns(4194308,4,n,i)},useInsertionEffect:function(n,i){return ns(4,2,n,i)},useMemo:function(n,i){var s=zn();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=zn();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=cw.bind(null,tt,n),[c.memoizedState,n]},useRef:function(n){var i=zn();return n={current:n},i.memoizedState=n},useState:Kp,useDebugValue:Lu,useDeferredValue:function(n){return zn().memoizedState=n},useTransition:function(){var n=Kp(!1),i=n[0];return n=uw.bind(null,n[1]),zn().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=tt,h=zn();if(Xe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),ht===null)throw Error(r(349));(Or&30)!==0||Hp(c,i,s)}h.memoizedState=s;var x={value:s,getSnapshot:i};return h.queue=x,Yp(Wp.bind(null,c,x,n),[n]),c.flags|=2048,Po(9,qp.bind(null,c,x,s,i),void 0,null),s},useId:function(){var n=zn(),i=ht.identifierPrefix;if(Xe){var s=Gn,c=Wn;s=(c&~(1<<32-wn(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=No++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=aw++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},pw={readContext:pn,useCallback:nh,useContext:pn,useEffect:Au,useImperativeHandle:th,useInsertionEffect:Xp,useLayoutEffect:Zp,useMemo:rh,useReducer:Iu,useRef:Qp,useState:function(){return Iu(Io)},useDebugValue:Lu,useDeferredValue:function(n){var i=hn();return ih(i,dt.memoizedState,n)},useTransition:function(){var n=Iu(Io)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Up,useSyncExternalStore:Vp,useId:oh,unstable_isNewReconciler:!1},hw={readContext:pn,useCallback:nh,useContext:pn,useEffect:Au,useImperativeHandle:th,useInsertionEffect:Xp,useLayoutEffect:Zp,useMemo:rh,useReducer:Pu,useRef:Qp,useState:function(){return Pu(Io)},useDebugValue:Lu,useDeferredValue:function(n){var i=hn();return dt===null?i.memoizedState=n:ih(i,dt.memoizedState,n)},useTransition:function(){var n=Pu(Io)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Up,useSyncExternalStore:Vp,useId:oh,unstable_isNewReconciler:!1};function bn(n,i){if(n&&n.defaultProps){i=E({},i),n=n.defaultProps;for(var s in n)i[s]===void 0&&(i[s]=n[s]);return i}return i}function $u(n,i,s,c){i=n.memoizedState,s=s(c,i),s=s==null?i:E({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var os={isMounted:function(n){return(n=n._reactInternals)?Pr(n)===n:!1},enqueueSetState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Yl(i,n,h))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.tag=1,x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Yl(i,n,h))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=Dt(),c=gr(n),h=Kn(s,c);h.tag=2,i!=null&&(h.callback=i),i=fr(n,h,c),i!==null&&(jn(i,n,c,s),Yl(i,n,c))}};function uh(n,i,s,c,h,x,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,x,k):i.prototype&&i.prototype.isPureReactComponent?!yo(s,c)||!yo(h,x):!0}function ch(n,i,s){var c=!1,h=ur,x=i.contextType;return typeof x=="object"&&x!==null?x=pn(x):(h=Bt(i)?Lr:jt.current,c=i.contextTypes,x=(c=c!=null)?fi(n,h):ur),i=new i(s,x),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=os,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=x),i}function dh(n,i,s,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==n&&os.enqueueReplaceState(i,i.state,null)}function _u(n,i,s,c){var h=n.stateNode;h.props=s,h.state=n.memoizedState,h.refs={},ku(n);var x=i.contextType;typeof x=="object"&&x!==null?h.context=pn(x):(x=Bt(i)?Lr:jt.current,h.context=fi(n,x)),h.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&($u(n,i,x,s),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&os.enqueueReplaceState(h,h.state,null),Xl(n,s,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function wi(n,i){try{var s="",c=i;do s+=Se(c),c=c.return;while(c);var h=s}catch(x){h=`
|
|
28
|
+
`),k=h.length-1,I=x.length-1;1<=k&&0<=I&&h[k]!==x[I];)I--;for(;1<=k&&0<=I;k--,I--)if(h[k]!==x[I]){if(k!==1||I!==1)do if(k--,I--,0>I||h[k]!==x[I]){var $=`
|
|
29
|
+
`+h[k].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=k&&0<=I);break}}}finally{T=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?U(n):""}function Se(n){switch(n.tag){case 5:return U(n.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function me(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case G:return"Fragment";case L:return"Portal";case ie:return"Profiler";case K:return"StrictMode";case le:return"Suspense";case re:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ne:return(n.displayName||"Context")+".Consumer";case D:return(n._context.displayName||"Context")+".Provider";case se:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case H:return i=n.displayName||null,i!==null?i:me(n.type)||"Memo";case de:i=n._payload,n=n._init;try{return me(n(i))}catch{}}return null}function Ee(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(i);case 8:return i===K?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ke(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function je(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ve(n){var i=je(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,x=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(k){c=""+k,x.call(this,k)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(k){c=""+k},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ct(n){n._valueTracker||(n._valueTracker=Ve(n))}function Ne(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=je(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function $t(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Pn(n,i){var s=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function _t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=ke(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function _e(n,i){i=i.checked,i!=null&&A(n,"checked",i,!1)}function st(n,i){_e(n,i);var s=ke(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?xt(n,i.type,s):i.hasOwnProperty("defaultValue")&&xt(n,i.type,ke(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Et(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function xt(n,i,s){(i!=="number"||$t(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Ye=Array.isArray;function it(n,i,s,c){if(n=n.options,i){i={};for(var h=0;h<s.length;h++)i["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=i.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&c&&(n[s].defaultSelected=!0)}else{for(s=""+ke(s),i=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Ft(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return E({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function un(n,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(Ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}n._wrapperState={initialValue:ke(s)}}function yl(n,i){var s=ke(i.value),c=ke(i.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),i.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),c!=null&&(n.defaultValue=""+c)}function xl(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function J(n){switch(n){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 oe(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?J(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var be,Pe=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,h){MSApp.execUnsafeLocalFunction(function(){return n(i,s,c,h)})}:n}(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(be=be||document.createElement("div"),be.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=be.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function De(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var vt={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},Vn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(n){Vn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),vt[i]=vt[n]})});function cn(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||vt.hasOwnProperty(n)&&vt[n]?(""+i).trim():i+"px"}function er(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,h=cn(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,h):n[s]=h}}var Nr=E({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 wt(n,i){if(i){if(Nr[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function An(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Qt=null;function Ta(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ra=null,ti=null,ni=null;function kf(n){if(n=bo(n)){if(typeof Ra!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Bl(i),Ra(n.stateNode,n.type,i))}}function Sf(n){ti?ni?ni.push(n):ni=[n]:ti=n}function bf(){if(ti){var n=ti,i=ni;if(ni=ti=null,kf(n),i)for(n=0;n<i.length;n++)kf(i[n])}}function Cf(n,i){return n(i)}function Ef(){}var Ia=!1;function jf(n,i,s){if(Ia)return n(i,s);Ia=!0;try{return Cf(n,i,s)}finally{Ia=!1,(ti!==null||ni!==null)&&(Ef(),bf())}}function to(n,i){var s=n.stateNode;if(s===null)return null;var c=Bl(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Na=!1;if(d)try{var no={};Object.defineProperty(no,"passive",{get:function(){Na=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Na=!1}function J0(n,i,s,c,h,x,k,I,$){var B=Array.prototype.slice.call(arguments,3);try{i.apply(s,B)}catch(Y){this.onError(Y)}}var ro=!1,vl=null,wl=!1,Pa=null,K0={onError:function(n){ro=!0,vl=n}};function Q0(n,i,s,c,h,x,k,I,$){ro=!1,vl=null,J0.apply(K0,arguments)}function Y0(n,i,s,c,h,x,k,I,$){if(Q0.apply(this,arguments),ro){if(ro){var B=vl;ro=!1,vl=null}else throw Error(r(198));wl||(wl=!0,Pa=B)}}function Pr(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function Tf(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Rf(n){if(Pr(n)!==n)throw Error(r(188))}function X0(n){var i=n.alternate;if(!i){if(i=Pr(n),i===null)throw Error(r(188));return i!==n?null:n}for(var s=n,c=i;;){var h=s.return;if(h===null)break;var x=h.alternate;if(x===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===x.child){for(x=h.child;x;){if(x===s)return Rf(h),n;if(x===c)return Rf(h),i;x=x.sibling}throw Error(r(188))}if(s.return!==c.return)s=h,c=x;else{for(var k=!1,I=h.child;I;){if(I===s){k=!0,s=h,c=x;break}if(I===c){k=!0,c=h,s=x;break}I=I.sibling}if(!k){for(I=x.child;I;){if(I===s){k=!0,s=x,c=h;break}if(I===c){k=!0,c=x,s=h;break}I=I.sibling}if(!k)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:i}function If(n){return n=X0(n),n!==null?Nf(n):null}function Nf(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Nf(n);if(i!==null)return i;n=n.sibling}return null}var Pf=t.unstable_scheduleCallback,Af=t.unstable_cancelCallback,Z0=t.unstable_shouldYield,e1=t.unstable_requestPaint,ot=t.unstable_now,t1=t.unstable_getCurrentPriorityLevel,Aa=t.unstable_ImmediatePriority,Lf=t.unstable_UserBlockingPriority,kl=t.unstable_NormalPriority,n1=t.unstable_LowPriority,$f=t.unstable_IdlePriority,Sl=null,Ln=null;function r1(n){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Sl,n,void 0,(n.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:l1,i1=Math.log,o1=Math.LN2;function l1(n){return n>>>=0,n===0?32:31-(i1(n)/o1|0)|0}var bl=64,Cl=4194304;function io(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function El(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,h=n.suspendedLanes,x=n.pingedLanes,k=s&268435455;if(k!==0){var I=k&~h;I!==0?c=io(I):(x&=k,x!==0&&(c=io(x)))}else k=s&~h,k!==0?c=io(k):x!==0&&(c=io(x));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,x=i&-i,h>=x||h===16&&(x&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)s=31-wn(i),h=1<<s,c|=n[s],i&=~h;return c}function s1(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 a1(n,i){for(var s=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,x=n.pendingLanes;0<x;){var k=31-wn(x),I=1<<k,$=h[k];$===-1?((I&s)===0||(I&c)!==0)&&(h[k]=s1(I,i)):$<=i&&(n.expiredLanes|=I),x&=~I}}function La(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function _f(){var n=bl;return bl<<=1,(bl&4194240)===0&&(bl=64),n}function $a(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function oo(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-wn(i),n[i]=s}function u1(n,i){var s=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<s;){var h=31-wn(s),x=1<<h;i[h]=0,c[h]=-1,n[h]=-1,s&=~x}}function _a(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var c=31-wn(s),h=1<<c;h&i|n[c]&i&&(n[c]|=i),s&=~h}}var Be=0;function zf(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Df,za,Of,Ff,Mf,Da=!1,jl=[],tr=null,nr=null,rr=null,lo=new Map,so=new Map,ir=[],c1="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 Bf(n,i){switch(n){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":lo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(i.pointerId)}}function ao(n,i,s,c,h,x){return n===null||n.nativeEvent!==x?(n={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:x,targetContainers:[h]},i!==null&&(i=bo(i),i!==null&&za(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function d1(n,i,s,c,h){switch(i){case"focusin":return tr=ao(tr,n,i,s,c,h),!0;case"dragenter":return nr=ao(nr,n,i,s,c,h),!0;case"mouseover":return rr=ao(rr,n,i,s,c,h),!0;case"pointerover":var x=h.pointerId;return lo.set(x,ao(lo.get(x)||null,n,i,s,c,h)),!0;case"gotpointercapture":return x=h.pointerId,so.set(x,ao(so.get(x)||null,n,i,s,c,h)),!0}return!1}function Uf(n){var i=Ar(n.target);if(i!==null){var s=Pr(i);if(s!==null){if(i=s.tag,i===13){if(i=Tf(s),i!==null){n.blockedOn=i,Mf(n.priority,function(){Of(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Tl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Fa(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Qt=c,s.target.dispatchEvent(c),Qt=null}else return i=bo(s),i!==null&&za(i),n.blockedOn=s,!1;i.shift()}return!0}function Vf(n,i,s){Tl(n)&&s.delete(i)}function f1(){Da=!1,tr!==null&&Tl(tr)&&(tr=null),nr!==null&&Tl(nr)&&(nr=null),rr!==null&&Tl(rr)&&(rr=null),lo.forEach(Vf),so.forEach(Vf)}function uo(n,i){n.blockedOn===i&&(n.blockedOn=null,Da||(Da=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,f1)))}function co(n){function i(h){return uo(h,n)}if(0<jl.length){uo(jl[0],n);for(var s=1;s<jl.length;s++){var c=jl[s];c.blockedOn===n&&(c.blockedOn=null)}}for(tr!==null&&uo(tr,n),nr!==null&&uo(nr,n),rr!==null&&uo(rr,n),lo.forEach(i),so.forEach(i),s=0;s<ir.length;s++)c=ir[s],c.blockedOn===n&&(c.blockedOn=null);for(;0<ir.length&&(s=ir[0],s.blockedOn===null);)Uf(s),s.blockedOn===null&&ir.shift()}var ri=F.ReactCurrentBatchConfig,Rl=!0;function p1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=1,Oa(n,i,s,c)}finally{Be=h,ri.transition=x}}function h1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=4,Oa(n,i,s,c)}finally{Be=h,ri.transition=x}}function Oa(n,i,s,c){if(Rl){var h=Fa(n,i,s,c);if(h===null)nu(n,i,c,Il,s),Bf(n,c);else if(d1(h,n,i,s,c))c.stopPropagation();else if(Bf(n,c),i&4&&-1<c1.indexOf(n)){for(;h!==null;){var x=bo(h);if(x!==null&&Df(x),x=Fa(n,i,s,c),x===null&&nu(n,i,c,Il,s),x===h)break;h=x}h!==null&&c.stopPropagation()}else nu(n,i,c,null,s)}}var Il=null;function Fa(n,i,s,c){if(Il=null,n=Ta(c),n=Ar(n),n!==null)if(i=Pr(n),i===null)n=null;else if(s=i.tag,s===13){if(n=Tf(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Il=n,null}function Hf(n){switch(n){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(t1()){case Aa:return 1;case Lf:return 4;case kl:case n1:return 16;case $f:return 536870912;default:return 16}default:return 16}}var or=null,Ma=null,Nl=null;function qf(){if(Nl)return Nl;var n,i=Ma,s=i.length,c,h="value"in or?or.value:or.textContent,x=h.length;for(n=0;n<s&&i[n]===h[n];n++);var k=s-n;for(c=1;c<=k&&i[s-c]===h[x-c];c++);return Nl=h.slice(n,1<c?1-c:void 0)}function Pl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Al(){return!0}function Wf(){return!1}function Yt(n){function i(s,c,h,x,k){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var I in n)n.hasOwnProperty(I)&&(s=n[I],this[I]=s?s(x):x[I]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Al:Wf,this.isPropagationStopped=Wf,this}return E(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),i}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ba=Yt(ii),fo=E({},ii,{view:0,detail:0}),m1=Yt(fo),Ua,Va,po,Ll=E({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qa,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==po&&(po&&n.type==="mousemove"?(Ua=n.screenX-po.screenX,Va=n.screenY-po.screenY):Va=Ua=0,po=n),Ua)},movementY:function(n){return"movementY"in n?n.movementY:Va}}),Gf=Yt(Ll),g1=E({},Ll,{dataTransfer:0}),y1=Yt(g1),x1=E({},fo,{relatedTarget:0}),Ha=Yt(x1),v1=E({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),w1=Yt(v1),k1=E({},ii,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),S1=Yt(k1),b1=E({},ii,{data:0}),Jf=Yt(b1),C1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E1={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"},j1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T1(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=j1[n])?!!i[n]:!1}function qa(){return T1}var R1=E({},fo,{key:function(n){if(n.key){var i=C1[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Pl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?E1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qa,charCode:function(n){return n.type==="keypress"?Pl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Pl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),I1=Yt(R1),N1=E({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=Yt(N1),P1=E({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qa}),A1=Yt(P1),L1=E({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),$1=Yt(L1),_1=E({},Ll,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),z1=Yt(_1),D1=[9,13,27,32],Wa=d&&"CompositionEvent"in window,ho=null;d&&"documentMode"in document&&(ho=document.documentMode);var O1=d&&"TextEvent"in window&&!ho,Qf=d&&(!Wa||ho&&8<ho&&11>=ho),Yf=" ",Xf=!1;function Zf(n,i){switch(n){case"keyup":return D1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ep(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var oi=!1;function F1(n,i){switch(n){case"compositionend":return ep(i);case"keypress":return i.which!==32?null:(Xf=!0,Yf);case"textInput":return n=i.data,n===Yf&&Xf?null:n;default:return null}}function M1(n,i){if(oi)return n==="compositionend"||!Wa&&Zf(n,i)?(n=qf(),Nl=Ma=or=null,oi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Qf&&i.locale!=="ko"?null:i.data;default:return null}}var B1={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 tp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!B1[n.type]:i==="textarea"}function np(n,i,s,c){Sf(c),i=Ol(i,"onChange"),0<i.length&&(s=new Ba("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var mo=null,go=null;function U1(n){wp(n,0)}function $l(n){var i=ci(n);if(Ne(i))return n}function V1(n,i){if(n==="change")return i}var rp=!1;if(d){var Ga;if(d){var Ja="oninput"in document;if(!Ja){var ip=document.createElement("div");ip.setAttribute("oninput","return;"),Ja=typeof ip.oninput=="function"}Ga=Ja}else Ga=!1;rp=Ga&&(!document.documentMode||9<document.documentMode)}function op(){mo&&(mo.detachEvent("onpropertychange",lp),go=mo=null)}function lp(n){if(n.propertyName==="value"&&$l(go)){var i=[];np(i,go,n,Ta(n)),jf(U1,i)}}function H1(n,i,s){n==="focusin"?(op(),mo=i,go=s,mo.attachEvent("onpropertychange",lp)):n==="focusout"&&op()}function q1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $l(go)}function W1(n,i){if(n==="click")return $l(i)}function G1(n,i){if(n==="input"||n==="change")return $l(i)}function J1(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var kn=typeof Object.is=="function"?Object.is:J1;function yo(n,i){if(kn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!f.call(i,h)||!kn(n[h],i[h]))return!1}return!0}function sp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function ap(n,i){var s=sp(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=i&&c>=i)return{node:s,offset:i-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=sp(s)}}function up(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?up(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function cp(){for(var n=window,i=$t();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=$t(n.document)}return i}function Ka(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function K1(n){var i=cp(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&up(s.ownerDocument.documentElement,s)){if(c!==null&&Ka(s)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var h=s.textContent.length,x=Math.min(c.start,h);c=c.end===void 0?x:Math.min(c.end,h),!n.extend&&x>c&&(h=c,c=x,x=h),h=ap(s,x);var k=ap(s,c);h&&k&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),n.removeAllRanges(),x>c?(n.addRange(i),n.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)n=i[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Q1=d&&"documentMode"in document&&11>=document.documentMode,li=null,Qa=null,xo=null,Ya=!1;function dp(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ya||li==null||li!==$t(c)||(c=li,"selectionStart"in c&&Ka(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),xo&&yo(xo,c)||(xo=c,c=Ol(Qa,"onSelect"),0<c.length&&(i=new Ba("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=li)))}function _l(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var si={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionend:_l("Transition","TransitionEnd")},Xa={},fp={};d&&(fp=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function zl(n){if(Xa[n])return Xa[n];if(!si[n])return n;var i=si[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in fp)return Xa[n]=i[s];return n}var pp=zl("animationend"),hp=zl("animationiteration"),mp=zl("animationstart"),gp=zl("transitionend"),yp=new Map,xp="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 lr(n,i){yp.set(n,i),a(i,[n])}for(var Za=0;Za<xp.length;Za++){var eu=xp[Za],Y1=eu.toLowerCase(),X1=eu[0].toUpperCase()+eu.slice(1);lr(Y1,"on"+X1)}lr(pp,"onAnimationEnd"),lr(hp,"onAnimationIteration"),lr(mp,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(gp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),Z1=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function vp(n,i,s){var c=n.type||"unknown-event";n.currentTarget=s,Y0(c,i,void 0,n),n.currentTarget=null}function wp(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],h=c.event;c=c.listeners;e:{var x=void 0;if(i)for(var k=c.length-1;0<=k;k--){var I=c[k],$=I.instance,B=I.currentTarget;if(I=I.listener,$!==x&&h.isPropagationStopped())break e;vp(h,I,B),x=$}else for(k=0;k<c.length;k++){if(I=c[k],$=I.instance,B=I.currentTarget,I=I.listener,$!==x&&h.isPropagationStopped())break e;vp(h,I,B),x=$}}}if(wl)throw n=Pa,wl=!1,Pa=null,n}function Je(n,i){var s=i[au];s===void 0&&(s=i[au]=new Set);var c=n+"__bubble";s.has(c)||(kp(i,n,2,!1),s.add(c))}function tu(n,i,s){var c=0;i&&(c|=4),kp(s,n,c,i)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function wo(n){if(!n[Dl]){n[Dl]=!0,o.forEach(function(s){s!=="selectionchange"&&(Z1.has(s)||tu(s,!1,n),tu(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Dl]||(i[Dl]=!0,tu("selectionchange",!1,i))}}function kp(n,i,s,c){switch(Hf(i)){case 1:var h=p1;break;case 4:h=h1;break;default:h=Oa}s=h.bind(null,i,s,n),h=void 0,!Na||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,s,{capture:!0,passive:h}):n.addEventListener(i,s,!0):h!==void 0?n.addEventListener(i,s,{passive:h}):n.addEventListener(i,s,!1)}function nu(n,i,s,c,h){var x=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var I=c.stateNode.containerInfo;if(I===h||I.nodeType===8&&I.parentNode===h)break;if(k===4)for(k=c.return;k!==null;){var $=k.tag;if(($===3||$===4)&&($=k.stateNode.containerInfo,$===h||$.nodeType===8&&$.parentNode===h))return;k=k.return}for(;I!==null;){if(k=Ar(I),k===null)return;if($=k.tag,$===5||$===6){c=x=k;continue e}I=I.parentNode}}c=c.return}jf(function(){var B=x,Y=Ta(s),Z=[];e:{var Q=yp.get(n);if(Q!==void 0){var ce=Ba,pe=n;switch(n){case"keypress":if(Pl(s)===0)break e;case"keydown":case"keyup":ce=I1;break;case"focusin":pe="focus",ce=Ha;break;case"focusout":pe="blur",ce=Ha;break;case"beforeblur":case"afterblur":ce=Ha;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=Gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=A1;break;case pp:case hp:case mp:ce=w1;break;case gp:ce=$1;break;case"scroll":ce=m1;break;case"wheel":ce=z1;break;case"copy":case"cut":case"paste":ce=S1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=Kf}var he=(i&4)!==0,lt=!he&&n==="scroll",O=he?Q!==null?Q+"Capture":null:Q;he=[];for(var z=B,M;z!==null;){M=z;var te=M.stateNode;if(M.tag===5&&te!==null&&(M=te,O!==null&&(te=to(z,O),te!=null&&he.push(ko(z,te,M)))),lt)break;z=z.return}0<he.length&&(Q=new ce(Q,pe,null,s,Y),Z.push({event:Q,listeners:he}))}}if((i&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",ce=n==="mouseout"||n==="pointerout",Q&&s!==Qt&&(pe=s.relatedTarget||s.fromElement)&&(Ar(pe)||pe[Hn]))break e;if((ce||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,ce?(pe=s.relatedTarget||s.toElement,ce=B,pe=pe?Ar(pe):null,pe!==null&&(lt=Pr(pe),pe!==lt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(ce=null,pe=B),ce!==pe)){if(he=Gf,te="onMouseLeave",O="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(he=Kf,te="onPointerLeave",O="onPointerEnter",z="pointer"),lt=ce==null?Q:ci(ce),M=pe==null?Q:ci(pe),Q=new he(te,z+"leave",ce,s,Y),Q.target=lt,Q.relatedTarget=M,te=null,Ar(Y)===B&&(he=new he(O,z+"enter",pe,s,Y),he.target=M,he.relatedTarget=lt,te=he),lt=te,ce&&pe)t:{for(he=ce,O=pe,z=0,M=he;M;M=ai(M))z++;for(M=0,te=O;te;te=ai(te))M++;for(;0<z-M;)he=ai(he),z--;for(;0<M-z;)O=ai(O),M--;for(;z--;){if(he===O||O!==null&&he===O.alternate)break t;he=ai(he),O=ai(O)}he=null}else he=null;ce!==null&&Sp(Z,Q,ce,he,!1),pe!==null&<!==null&&Sp(Z,lt,pe,he,!0)}}e:{if(Q=B?ci(B):window,ce=Q.nodeName&&Q.nodeName.toLowerCase(),ce==="select"||ce==="input"&&Q.type==="file")var ge=V1;else if(tp(Q))if(rp)ge=G1;else{ge=q1;var xe=H1}else(ce=Q.nodeName)&&ce.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ge=W1);if(ge&&(ge=ge(n,B))){np(Z,ge,s,Y);break e}xe&&xe(n,Q,B),n==="focusout"&&(xe=Q._wrapperState)&&xe.controlled&&Q.type==="number"&&xt(Q,"number",Q.value)}switch(xe=B?ci(B):window,n){case"focusin":(tp(xe)||xe.contentEditable==="true")&&(li=xe,Qa=B,xo=null);break;case"focusout":xo=Qa=li=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,dp(Z,s,Y);break;case"selectionchange":if(Q1)break;case"keydown":case"keyup":dp(Z,s,Y)}var ve;if(Wa)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else oi?Zf(n,s)&&(Ce="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(Qf&&s.locale!=="ko"&&(oi||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&oi&&(ve=qf()):(or=Y,Ma="value"in or?or.value:or.textContent,oi=!0)),xe=Ol(B,Ce),0<xe.length&&(Ce=new Jf(Ce,n,null,s,Y),Z.push({event:Ce,listeners:xe}),ve?Ce.data=ve:(ve=ep(s),ve!==null&&(Ce.data=ve)))),(ve=O1?F1(n,s):M1(n,s))&&(B=Ol(B,"onBeforeInput"),0<B.length&&(Y=new Jf("onBeforeInput","beforeinput",null,s,Y),Z.push({event:Y,listeners:B}),Y.data=ve))}wp(Z,i)})}function ko(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Ol(n,i){for(var s=i+"Capture",c=[];n!==null;){var h=n,x=h.stateNode;h.tag===5&&x!==null&&(h=x,x=to(n,s),x!=null&&c.unshift(ko(n,x,h)),x=to(n,i),x!=null&&c.push(ko(n,x,h))),n=n.return}return c}function ai(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Sp(n,i,s,c,h){for(var x=i._reactName,k=[];s!==null&&s!==c;){var I=s,$=I.alternate,B=I.stateNode;if($!==null&&$===c)break;I.tag===5&&B!==null&&(I=B,h?($=to(s,x),$!=null&&k.unshift(ko(s,$,I))):h||($=to(s,x),$!=null&&k.push(ko(s,$,I)))),s=s.return}k.length!==0&&n.push({event:i,listeners:k})}var ew=/\r\n?/g,tw=/\u0000|\uFFFD/g;function bp(n){return(typeof n=="string"?n:""+n).replace(ew,`
|
|
30
|
+
`).replace(tw,"")}function Fl(n,i,s){if(i=bp(i),bp(n)!==i&&s)throw Error(r(425))}function Ml(){}var ru=null,iu=null;function ou(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var lu=typeof setTimeout=="function"?setTimeout:void 0,nw=typeof clearTimeout=="function"?clearTimeout:void 0,Cp=typeof Promise=="function"?Promise:void 0,rw=typeof queueMicrotask=="function"?queueMicrotask:typeof Cp<"u"?function(n){return Cp.resolve(null).then(n).catch(iw)}:lu;function iw(n){setTimeout(function(){throw n})}function su(n,i){var s=i,c=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){n.removeChild(h),co(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);co(i)}function sr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function Ep(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var ui=Math.random().toString(36).slice(2),$n="__reactFiber$"+ui,So="__reactProps$"+ui,Hn="__reactContainer$"+ui,au="__reactEvents$"+ui,ow="__reactListeners$"+ui,lw="__reactHandles$"+ui;function Ar(n){var i=n[$n];if(i)return i;for(var s=n.parentNode;s;){if(i=s[Hn]||s[$n]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=Ep(n);n!==null;){if(s=n[$n])return s;n=Ep(n)}return i}n=s,s=n.parentNode}return null}function bo(n){return n=n[$n]||n[Hn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ci(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Bl(n){return n[So]||null}var uu=[],di=-1;function ar(n){return{current:n}}function Ke(n){0>di||(n.current=uu[di],uu[di]=null,di--)}function qe(n,i){di++,uu[di]=n.current,n.current=i}var ur={},jt=ar(ur),Mt=ar(!1),Lr=ur;function fi(n,i){var s=n.type.contextTypes;if(!s)return ur;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},x;for(x in s)h[x]=i[x];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=h),h}function Bt(n){return n=n.childContextTypes,n!=null}function Ul(){Ke(Mt),Ke(jt)}function jp(n,i,s){if(jt.current!==ur)throw Error(r(168));qe(jt,i),qe(Mt,s)}function Tp(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(r(108,Ee(n)||"Unknown",h));return E({},s,c)}function Vl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ur,Lr=jt.current,qe(jt,n),qe(Mt,Mt.current),!0}function Rp(n,i,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=Tp(n,i,Lr),c.__reactInternalMemoizedMergedChildContext=n,Ke(Mt),Ke(jt),qe(jt,n)):Ke(Mt),qe(Mt,s)}var qn=null,Hl=!1,cu=!1;function Ip(n){qn===null?qn=[n]:qn.push(n)}function sw(n){Hl=!0,Ip(n)}function cr(){if(!cu&&qn!==null){cu=!0;var n=0,i=Be;try{var s=qn;for(Be=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}qn=null,Hl=!1}catch(h){throw qn!==null&&(qn=qn.slice(n+1)),Pf(Aa,cr),h}finally{Be=i,cu=!1}}return null}var pi=[],hi=0,ql=null,Wl=0,dn=[],fn=0,$r=null,Wn=1,Gn="";function _r(n,i){pi[hi++]=Wl,pi[hi++]=ql,ql=n,Wl=i}function Np(n,i,s){dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,$r=n;var c=Wn;n=Gn;var h=32-wn(c)-1;c&=~(1<<h),s+=1;var x=32-wn(i)+h;if(30<x){var k=h-h%5;x=(c&(1<<k)-1).toString(32),c>>=k,h-=k,Wn=1<<32-wn(i)+h|s<<h|c,Gn=x+n}else Wn=1<<x|s<<h|c,Gn=n}function du(n){n.return!==null&&(_r(n,1),Np(n,1,0))}function fu(n){for(;n===ql;)ql=pi[--hi],pi[hi]=null,Wl=pi[--hi],pi[hi]=null;for(;n===$r;)$r=dn[--fn],dn[fn]=null,Gn=dn[--fn],dn[fn]=null,Wn=dn[--fn],dn[fn]=null}var Xt=null,Zt=null,Xe=!1,Sn=null;function Pp(n,i){var s=gn(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function Ap(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Xt=n,Zt=sr(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Xt=n,Zt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=$r!==null?{id:Wn,overflow:Gn}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=gn(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Xt=n,Zt=null,!0):!1;default:return!1}}function pu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function hu(n){if(Xe){var i=Zt;if(i){var s=i;if(!Ap(n,i)){if(pu(n))throw Error(r(418));i=sr(s.nextSibling);var c=Xt;i&&Ap(n,i)?Pp(c,s):(n.flags=n.flags&-4097|2,Xe=!1,Xt=n)}}else{if(pu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,Xt=n}}}function Lp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Xt=n}function Gl(n){if(n!==Xt)return!1;if(!Xe)return Lp(n),Xe=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!ou(n.type,n.memoizedProps)),i&&(i=Zt)){if(pu(n))throw $p(),Error(r(418));for(;i;)Pp(n,i),i=sr(i.nextSibling)}if(Lp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(i===0){Zt=sr(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}n=n.nextSibling}Zt=null}}else Zt=Xt?sr(n.stateNode.nextSibling):null;return!0}function $p(){for(var n=Zt;n;)n=sr(n.nextSibling)}function mi(){Zt=Xt=null,Xe=!1}function mu(n){Sn===null?Sn=[n]:Sn.push(n)}var aw=F.ReactCurrentBatchConfig;function Co(n,i,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,n));var h=c,x=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===x?i.ref:(i=function(k){var I=h.refs;k===null?delete I[x]:I[x]=k},i._stringRef=x,i)}if(typeof n!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,n))}return n}function Jl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function _p(n){var i=n._init;return i(n._payload)}function zp(n){function i(O,z){if(n){var M=O.deletions;M===null?(O.deletions=[z],O.flags|=16):M.push(z)}}function s(O,z){if(!n)return null;for(;z!==null;)i(O,z),z=z.sibling;return null}function c(O,z){for(O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function h(O,z){return O=xr(O,z),O.index=0,O.sibling=null,O}function x(O,z,M){return O.index=M,n?(M=O.alternate,M!==null?(M=M.index,M<z?(O.flags|=2,z):M):(O.flags|=2,z)):(O.flags|=1048576,z)}function k(O){return n&&O.alternate===null&&(O.flags|=2),O}function I(O,z,M,te){return z===null||z.tag!==6?(z=lc(M,O.mode,te),z.return=O,z):(z=h(z,M),z.return=O,z)}function $(O,z,M,te){var ge=M.type;return ge===G?Y(O,z,M.props.children,te,M.key):z!==null&&(z.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===de&&_p(ge)===z.type)?(te=h(z,M.props),te.ref=Co(O,z,M),te.return=O,te):(te=xs(M.type,M.key,M.props,null,O.mode,te),te.ref=Co(O,z,M),te.return=O,te)}function B(O,z,M,te){return z===null||z.tag!==4||z.stateNode.containerInfo!==M.containerInfo||z.stateNode.implementation!==M.implementation?(z=sc(M,O.mode,te),z.return=O,z):(z=h(z,M.children||[]),z.return=O,z)}function Y(O,z,M,te,ge){return z===null||z.tag!==7?(z=Vr(M,O.mode,te,ge),z.return=O,z):(z=h(z,M),z.return=O,z)}function Z(O,z,M){if(typeof z=="string"&&z!==""||typeof z=="number")return z=lc(""+z,O.mode,M),z.return=O,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case V:return M=xs(z.type,z.key,z.props,null,O.mode,M),M.ref=Co(O,null,z),M.return=O,M;case L:return z=sc(z,O.mode,M),z.return=O,z;case de:var te=z._init;return Z(O,te(z._payload),M)}if(Ye(z)||ue(z))return z=Vr(z,O.mode,M,null),z.return=O,z;Jl(O,z)}return null}function Q(O,z,M,te){var ge=z!==null?z.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ge!==null?null:I(O,z,""+M,te);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case V:return M.key===ge?$(O,z,M,te):null;case L:return M.key===ge?B(O,z,M,te):null;case de:return ge=M._init,Q(O,z,ge(M._payload),te)}if(Ye(M)||ue(M))return ge!==null?null:Y(O,z,M,te,null);Jl(O,M)}return null}function ce(O,z,M,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return O=O.get(M)||null,I(z,O,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case V:return O=O.get(te.key===null?M:te.key)||null,$(z,O,te,ge);case L:return O=O.get(te.key===null?M:te.key)||null,B(z,O,te,ge);case de:var xe=te._init;return ce(O,z,M,xe(te._payload),ge)}if(Ye(te)||ue(te))return O=O.get(M)||null,Y(z,O,te,ge,null);Jl(z,te)}return null}function pe(O,z,M,te){for(var ge=null,xe=null,ve=z,Ce=z=0,mt=null;ve!==null&&Ce<M.length;Ce++){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var Fe=Q(O,ve,M[Ce],te);if(Fe===null){ve===null&&(ve=mt);break}n&&ve&&Fe.alternate===null&&i(O,ve),z=x(Fe,z,Ce),xe===null?ge=Fe:xe.sibling=Fe,xe=Fe,ve=mt}if(Ce===M.length)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;Ce<M.length;Ce++)ve=Z(O,M[Ce],te),ve!==null&&(z=x(ve,z,Ce),xe===null?ge=ve:xe.sibling=ve,xe=ve);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);Ce<M.length;Ce++)mt=ce(ve,O,Ce,M[Ce],te),mt!==null&&(n&&mt.alternate!==null&&ve.delete(mt.key===null?Ce:mt.key),z=x(mt,z,Ce),xe===null?ge=mt:xe.sibling=mt,xe=mt);return n&&ve.forEach(function(vr){return i(O,vr)}),Xe&&_r(O,Ce),ge}function he(O,z,M,te){var ge=ue(M);if(typeof ge!="function")throw Error(r(150));if(M=ge.call(M),M==null)throw Error(r(151));for(var xe=ge=null,ve=z,Ce=z=0,mt=null,Fe=M.next();ve!==null&&!Fe.done;Ce++,Fe=M.next()){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var vr=Q(O,ve,Fe.value,te);if(vr===null){ve===null&&(ve=mt);break}n&&ve&&vr.alternate===null&&i(O,ve),z=x(vr,z,Ce),xe===null?ge=vr:xe.sibling=vr,xe=vr,ve=mt}if(Fe.done)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;!Fe.done;Ce++,Fe=M.next())Fe=Z(O,Fe.value,te),Fe!==null&&(z=x(Fe,z,Ce),xe===null?ge=Fe:xe.sibling=Fe,xe=Fe);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);!Fe.done;Ce++,Fe=M.next())Fe=ce(ve,O,Ce,Fe.value,te),Fe!==null&&(n&&Fe.alternate!==null&&ve.delete(Fe.key===null?Ce:Fe.key),z=x(Fe,z,Ce),xe===null?ge=Fe:xe.sibling=Fe,xe=Fe);return n&&ve.forEach(function(Bw){return i(O,Bw)}),Xe&&_r(O,Ce),ge}function lt(O,z,M,te){if(typeof M=="object"&&M!==null&&M.type===G&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case V:e:{for(var ge=M.key,xe=z;xe!==null;){if(xe.key===ge){if(ge=M.type,ge===G){if(xe.tag===7){s(O,xe.sibling),z=h(xe,M.props.children),z.return=O,O=z;break e}}else if(xe.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===de&&_p(ge)===xe.type){s(O,xe.sibling),z=h(xe,M.props),z.ref=Co(O,xe,M),z.return=O,O=z;break e}s(O,xe);break}else i(O,xe);xe=xe.sibling}M.type===G?(z=Vr(M.props.children,O.mode,te,M.key),z.return=O,O=z):(te=xs(M.type,M.key,M.props,null,O.mode,te),te.ref=Co(O,z,M),te.return=O,O=te)}return k(O);case L:e:{for(xe=M.key;z!==null;){if(z.key===xe)if(z.tag===4&&z.stateNode.containerInfo===M.containerInfo&&z.stateNode.implementation===M.implementation){s(O,z.sibling),z=h(z,M.children||[]),z.return=O,O=z;break e}else{s(O,z);break}else i(O,z);z=z.sibling}z=sc(M,O.mode,te),z.return=O,O=z}return k(O);case de:return xe=M._init,lt(O,z,xe(M._payload),te)}if(Ye(M))return pe(O,z,M,te);if(ue(M))return he(O,z,M,te);Jl(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,z!==null&&z.tag===6?(s(O,z.sibling),z=h(z,M),z.return=O,O=z):(s(O,z),z=lc(M,O.mode,te),z.return=O,O=z),k(O)):s(O,z)}return lt}var gi=zp(!0),Dp=zp(!1),Kl=ar(null),Ql=null,yi=null,gu=null;function yu(){gu=yi=Ql=null}function xu(n){var i=Kl.current;Ke(Kl),n._currentValue=i}function vu(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function xi(n,i){Ql=n,gu=yi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Ut=!0),n.firstContext=null)}function pn(n){var i=n._currentValue;if(gu!==n)if(n={context:n,memoizedValue:i,next:null},yi===null){if(Ql===null)throw Error(r(308));yi=n,Ql.dependencies={lanes:0,firstContext:n}}else yi=yi.next=n;return i}var zr=null;function wu(n){zr===null?zr=[n]:zr.push(n)}function Op(n,i,s,c){var h=i.interleaved;return h===null?(s.next=s,wu(i)):(s.next=h.next,h.next=s),i.interleaved=s,Jn(n,c)}function Jn(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var dr=!1;function ku(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Kn(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function fr(n,i,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,Jn(n,s)}return h=c.interleaved,h===null?(i.next=i,wu(c)):(i.next=h.next,h.next=i),c.interleaved=i,Jn(n,s)}function Yl(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,_a(n,s)}}function Mp(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,x=null;if(s=s.firstBaseUpdate,s!==null){do{var k={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};x===null?h=x=k:x=x.next=k,s=s.next}while(s!==null);x===null?h=x=i:x=x.next=i}else h=x=i;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:x,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function Xl(n,i,s,c){var h=n.updateQueue;dr=!1;var x=h.firstBaseUpdate,k=h.lastBaseUpdate,I=h.shared.pending;if(I!==null){h.shared.pending=null;var $=I,B=$.next;$.next=null,k===null?x=B:k.next=B,k=$;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,I=Y.lastBaseUpdate,I!==k&&(I===null?Y.firstBaseUpdate=B:I.next=B,Y.lastBaseUpdate=$))}if(x!==null){var Z=h.baseState;k=0,Y=B=$=null,I=x;do{var Q=I.lane,ce=I.eventTime;if((c&Q)===Q){Y!==null&&(Y=Y.next={eventTime:ce,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var pe=n,he=I;switch(Q=i,ce=s,he.tag){case 1:if(pe=he.payload,typeof pe=="function"){Z=pe.call(ce,Z,Q);break e}Z=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=he.payload,Q=typeof pe=="function"?pe.call(ce,Z,Q):pe,Q==null)break e;Z=E({},Z,Q);break e;case 2:dr=!0}}I.callback!==null&&I.lane!==0&&(n.flags|=64,Q=h.effects,Q===null?h.effects=[I]:Q.push(I))}else ce={eventTime:ce,lane:Q,tag:I.tag,payload:I.payload,callback:I.callback,next:null},Y===null?(B=Y=ce,$=Z):Y=Y.next=ce,k|=Q;if(I=I.next,I===null){if(I=h.shared.pending,I===null)break;Q=I,I=Q.next,Q.next=null,h.lastBaseUpdate=Q,h.shared.pending=null}}while(!0);if(Y===null&&($=Z),h.baseState=$,h.firstBaseUpdate=B,h.lastBaseUpdate=Y,i=h.shared.interleaved,i!==null){h=i;do k|=h.lane,h=h.next;while(h!==i)}else x===null&&(h.shared.lanes=0);Fr|=k,n.lanes=k,n.memoizedState=Z}}function Bp(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],h=c.callback;if(h!==null){if(c.callback=null,c=s,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Eo={},_n=ar(Eo),jo=ar(Eo),To=ar(Eo);function Dr(n){if(n===Eo)throw Error(r(174));return n}function Su(n,i){switch(qe(To,i),qe(jo,n),qe(_n,Eo),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:oe(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=oe(i,n)}Ke(_n),qe(_n,i)}function vi(){Ke(_n),Ke(jo),Ke(To)}function Up(n){Dr(To.current);var i=Dr(_n.current),s=oe(i,n.type);i!==s&&(qe(jo,n),qe(_n,s))}function bu(n){jo.current===n&&(Ke(_n),Ke(jo))}var et=ar(0);function Zl(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Cu=[];function Eu(){for(var n=0;n<Cu.length;n++)Cu[n]._workInProgressVersionPrimary=null;Cu.length=0}var es=F.ReactCurrentDispatcher,ju=F.ReactCurrentBatchConfig,Or=0,tt=null,dt=null,pt=null,ts=!1,Ro=!1,Io=0,uw=0;function Tt(){throw Error(r(321))}function Tu(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!kn(n[s],i[s]))return!1;return!0}function Ru(n,i,s,c,h,x){if(Or=x,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,es.current=n===null||n.memoizedState===null?pw:hw,n=s(c,h),Ro){x=0;do{if(Ro=!1,Io=0,25<=x)throw Error(r(301));x+=1,pt=dt=null,i.updateQueue=null,es.current=mw,n=s(c,h)}while(Ro)}if(es.current=is,i=dt!==null&&dt.next!==null,Or=0,pt=dt=tt=null,ts=!1,i)throw Error(r(300));return n}function Iu(){var n=Io!==0;return Io=0,n}function zn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?tt.memoizedState=pt=n:pt=pt.next=n,pt}function hn(){if(dt===null){var n=tt.alternate;n=n!==null?n.memoizedState:null}else n=dt.next;var i=pt===null?tt.memoizedState:pt.next;if(i!==null)pt=i,dt=n;else{if(n===null)throw Error(r(310));dt=n,n={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},pt===null?tt.memoizedState=pt=n:pt=pt.next=n}return pt}function No(n,i){return typeof i=="function"?i(n):i}function Nu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=dt,h=c.baseQueue,x=s.pending;if(x!==null){if(h!==null){var k=h.next;h.next=x.next,x.next=k}c.baseQueue=h=x,s.pending=null}if(h!==null){x=h.next,c=c.baseState;var I=k=null,$=null,B=x;do{var Y=B.lane;if((Or&Y)===Y)$!==null&&($=$.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),c=B.hasEagerState?B.eagerState:n(c,B.action);else{var Z={lane:Y,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};$===null?(I=$=Z,k=c):$=$.next=Z,tt.lanes|=Y,Fr|=Y}B=B.next}while(B!==null&&B!==x);$===null?k=c:$.next=I,kn(c,i.memoizedState)||(Ut=!0),i.memoizedState=c,i.baseState=k,i.baseQueue=$,s.lastRenderedState=c}if(n=s.interleaved,n!==null){h=n;do x=h.lane,tt.lanes|=x,Fr|=x,h=h.next;while(h!==n)}else h===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function Pu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=s.dispatch,h=s.pending,x=i.memoizedState;if(h!==null){s.pending=null;var k=h=h.next;do x=n(x,k.action),k=k.next;while(k!==h);kn(x,i.memoizedState)||(Ut=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),s.lastRenderedState=x}return[x,c]}function Vp(){}function Hp(n,i){var s=tt,c=hn(),h=i(),x=!kn(c.memoizedState,h);if(x&&(c.memoizedState=h,Ut=!0),c=c.queue,Au(Gp.bind(null,s,c,n),[n]),c.getSnapshot!==i||x||pt!==null&&pt.memoizedState.tag&1){if(s.flags|=2048,Po(9,Wp.bind(null,s,c,h,i),void 0,null),ht===null)throw Error(r(349));(Or&30)!==0||qp(s,i,h)}return h}function qp(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function Wp(n,i,s,c){i.value=s,i.getSnapshot=c,Jp(i)&&Kp(n)}function Gp(n,i,s){return s(function(){Jp(i)&&Kp(n)})}function Jp(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!kn(n,s)}catch{return!0}}function Kp(n){var i=Jn(n,1);i!==null&&jn(i,n,1,-1)}function Qp(n){var i=zn();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},i.queue=n,n=n.dispatch=fw.bind(null,tt,n),[i.memoizedState,n]}function Po(n,i,s,c){return n={tag:n,create:i,destroy:s,deps:c,next:null},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.lastEffect=n.next=n):(s=i.lastEffect,s===null?i.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,i.lastEffect=n)),n}function Yp(){return hn().memoizedState}function ns(n,i,s,c){var h=zn();tt.flags|=n,h.memoizedState=Po(1|i,s,void 0,c===void 0?null:c)}function rs(n,i,s,c){var h=hn();c=c===void 0?null:c;var x=void 0;if(dt!==null){var k=dt.memoizedState;if(x=k.destroy,c!==null&&Tu(c,k.deps)){h.memoizedState=Po(i,s,x,c);return}}tt.flags|=n,h.memoizedState=Po(1|i,s,x,c)}function Xp(n,i){return ns(8390656,8,n,i)}function Au(n,i){return rs(2048,8,n,i)}function Zp(n,i){return rs(4,2,n,i)}function eh(n,i){return rs(4,4,n,i)}function th(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function nh(n,i,s){return s=s!=null?s.concat([n]):null,rs(4,4,th.bind(null,i,n),s)}function Lu(){}function rh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Tu(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function ih(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Tu(i,c[1])?c[0]:(n=n(),s.memoizedState=[n,i],n)}function oh(n,i,s){return(Or&21)===0?(n.baseState&&(n.baseState=!1,Ut=!0),n.memoizedState=s):(kn(s,i)||(s=_f(),tt.lanes|=s,Fr|=s,n.baseState=!0),i)}function cw(n,i){var s=Be;Be=s!==0&&4>s?s:4,n(!0);var c=ju.transition;ju.transition={};try{n(!1),i()}finally{Be=s,ju.transition=c}}function lh(){return hn().memoizedState}function dw(n,i,s){var c=gr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},sh(n))ah(i,s);else if(s=Op(n,i,s,c),s!==null){var h=Dt();jn(s,n,c,h),uh(s,i,c)}}function fw(n,i,s){var c=gr(n),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(sh(n))ah(i,h);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var k=i.lastRenderedState,I=x(k,s);if(h.hasEagerState=!0,h.eagerState=I,kn(I,k)){var $=i.interleaved;$===null?(h.next=h,wu(i)):(h.next=$.next,$.next=h),i.interleaved=h;return}}catch{}finally{}s=Op(n,i,h,c),s!==null&&(h=Dt(),jn(s,n,c,h),uh(s,i,c))}}function sh(n){var i=n.alternate;return n===tt||i!==null&&i===tt}function ah(n,i){Ro=ts=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function uh(n,i,s){if((s&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,_a(n,s)}}var is={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},pw={readContext:pn,useCallback:function(n,i){return zn().memoizedState=[n,i===void 0?null:i],n},useContext:pn,useEffect:Xp,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,ns(4194308,4,th.bind(null,i,n),s)},useLayoutEffect:function(n,i){return ns(4194308,4,n,i)},useInsertionEffect:function(n,i){return ns(4,2,n,i)},useMemo:function(n,i){var s=zn();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=zn();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=dw.bind(null,tt,n),[c.memoizedState,n]},useRef:function(n){var i=zn();return n={current:n},i.memoizedState=n},useState:Qp,useDebugValue:Lu,useDeferredValue:function(n){return zn().memoizedState=n},useTransition:function(){var n=Qp(!1),i=n[0];return n=cw.bind(null,n[1]),zn().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=tt,h=zn();if(Xe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),ht===null)throw Error(r(349));(Or&30)!==0||qp(c,i,s)}h.memoizedState=s;var x={value:s,getSnapshot:i};return h.queue=x,Xp(Gp.bind(null,c,x,n),[n]),c.flags|=2048,Po(9,Wp.bind(null,c,x,s,i),void 0,null),s},useId:function(){var n=zn(),i=ht.identifierPrefix;if(Xe){var s=Gn,c=Wn;s=(c&~(1<<32-wn(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=Io++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=uw++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},hw={readContext:pn,useCallback:rh,useContext:pn,useEffect:Au,useImperativeHandle:nh,useInsertionEffect:Zp,useLayoutEffect:eh,useMemo:ih,useReducer:Nu,useRef:Yp,useState:function(){return Nu(No)},useDebugValue:Lu,useDeferredValue:function(n){var i=hn();return oh(i,dt.memoizedState,n)},useTransition:function(){var n=Nu(No)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Vp,useSyncExternalStore:Hp,useId:lh,unstable_isNewReconciler:!1},mw={readContext:pn,useCallback:rh,useContext:pn,useEffect:Au,useImperativeHandle:nh,useInsertionEffect:Zp,useLayoutEffect:eh,useMemo:ih,useReducer:Pu,useRef:Yp,useState:function(){return Pu(No)},useDebugValue:Lu,useDeferredValue:function(n){var i=hn();return dt===null?i.memoizedState=n:oh(i,dt.memoizedState,n)},useTransition:function(){var n=Pu(No)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Vp,useSyncExternalStore:Hp,useId:lh,unstable_isNewReconciler:!1};function bn(n,i){if(n&&n.defaultProps){i=E({},i),n=n.defaultProps;for(var s in n)i[s]===void 0&&(i[s]=n[s]);return i}return i}function $u(n,i,s,c){i=n.memoizedState,s=s(c,i),s=s==null?i:E({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var os={isMounted:function(n){return(n=n._reactInternals)?Pr(n)===n:!1},enqueueSetState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Yl(i,n,h))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.tag=1,x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Yl(i,n,h))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=Dt(),c=gr(n),h=Kn(s,c);h.tag=2,i!=null&&(h.callback=i),i=fr(n,h,c),i!==null&&(jn(i,n,c,s),Yl(i,n,c))}};function ch(n,i,s,c,h,x,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,x,k):i.prototype&&i.prototype.isPureReactComponent?!yo(s,c)||!yo(h,x):!0}function dh(n,i,s){var c=!1,h=ur,x=i.contextType;return typeof x=="object"&&x!==null?x=pn(x):(h=Bt(i)?Lr:jt.current,c=i.contextTypes,x=(c=c!=null)?fi(n,h):ur),i=new i(s,x),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=os,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=x),i}function fh(n,i,s,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==n&&os.enqueueReplaceState(i,i.state,null)}function _u(n,i,s,c){var h=n.stateNode;h.props=s,h.state=n.memoizedState,h.refs={},ku(n);var x=i.contextType;typeof x=="object"&&x!==null?h.context=pn(x):(x=Bt(i)?Lr:jt.current,h.context=fi(n,x)),h.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&($u(n,i,x,s),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&os.enqueueReplaceState(h,h.state,null),Xl(n,s,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function wi(n,i){try{var s="",c=i;do s+=Se(c),c=c.return;while(c);var h=s}catch(x){h=`
|
|
31
31
|
Error generating stack: `+x.message+`
|
|
32
|
-
`+x.stack}return{value:n,source:i,stack:h,digest:null}}function zu(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function Du(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var mw=typeof WeakMap=="function"?WeakMap:Map;function fh(n,i,s){s=Kn(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){fs||(fs=!0,Xu=c),Du(n,i)},s}function ph(n,i,s){s=Kn(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;s.payload=function(){return c(h)},s.callback=function(){Du(n,i)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(s.callback=function(){Du(n,i),typeof c!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),s}function hh(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new mw;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(s)||(h.add(s),n=Nw.bind(null,n,i,s),i.then(n,n))}function mh(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function gh(n,i,s,c,h){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=Kn(-1,1),i.tag=2,fr(s,i,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var gw=M.ReactCurrentOwner,Ut=!1;function zt(n,i,s,c){i.child=n===null?zp(i,null,s,c):gi(i,n.child,s,c)}function yh(n,i,s,c,h){s=s.render;var x=i.ref;return xi(i,h),c=Ru(n,i,s,c,x,h),s=Nu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&s&&du(i),i.flags|=1,zt(n,i,c,h),i.child)}function xh(n,i,s,c,h){if(n===null){var x=s.type;return typeof x=="function"&&!oc(x)&&x.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=x,vh(n,i,x,c,h)):(n=xs(s.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(x=n.child,(n.lanes&h)===0){var k=x.memoizedProps;if(s=s.compare,s=s!==null?s:yo,s(k,c)&&n.ref===i.ref)return Qn(n,i,h)}return i.flags|=1,n=xr(x,c),n.ref=i.ref,n.return=i,i.child=n}function vh(n,i,s,c,h){if(n!==null){var x=n.memoizedProps;if(yo(x,c)&&n.ref===i.ref)if(Ut=!1,i.pendingProps=c=x,(n.lanes&h)!==0)(n.flags&131072)!==0&&(Ut=!0);else return i.lanes=n.lanes,Qn(n,i,h)}return Ou(n,i,s,c,h)}function wh(n,i,s){var c=i.pendingProps,h=c.children,x=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(Si,en),en|=s;else{if((s&1073741824)===0)return n=x!==null?x.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,qe(Si,en),en|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:s,qe(Si,en),en|=c}else x!==null?(c=x.baseLanes|s,i.memoizedState=null):c=s,qe(Si,en),en|=c;return zt(n,i,h,s),i.child}function kh(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Ou(n,i,s,c,h){var x=Bt(s)?Lr:jt.current;return x=fi(i,x),xi(i,h),s=Ru(n,i,s,c,x,h),c=Nu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&c&&du(i),i.flags|=1,zt(n,i,s,h),i.child)}function Sh(n,i,s,c,h){if(Bt(s)){var x=!0;Vl(i)}else x=!1;if(xi(i,h),i.stateNode===null)ss(n,i),ch(i,s,c),_u(i,s,c,h),c=!0;else if(n===null){var k=i.stateNode,T=i.memoizedProps;k.props=T;var $=k.context,U=s.contextType;typeof U=="object"&&U!==null?U=pn(U):(U=Bt(s)?Lr:jt.current,U=fi(i,U));var Y=s.getDerivedStateFromProps,Z=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function";Z||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(T!==c||$!==U)&&dh(i,k,c,U),dr=!1;var Q=i.memoizedState;k.state=Q,Xl(i,c,k,h),$=i.memoizedState,T!==c||Q!==$||Ft.current||dr?(typeof Y=="function"&&($u(i,s,Y,c),$=i.memoizedState),(T=dr||uh(i,s,T,c,Q,$,U))?(Z||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=$),k.props=c,k.state=$,k.context=U,c=T):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{k=i.stateNode,Op(n,i),T=i.memoizedProps,U=i.type===i.elementType?T:bn(i.type,T),k.props=U,Z=i.pendingProps,Q=k.context,$=s.contextType,typeof $=="object"&&$!==null?$=pn($):($=Bt(s)?Lr:jt.current,$=fi(i,$));var de=s.getDerivedStateFromProps;(Y=typeof de=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(T!==Z||Q!==$)&&dh(i,k,c,$),dr=!1,Q=i.memoizedState,k.state=Q,Xl(i,c,k,h);var pe=i.memoizedState;T!==Z||Q!==pe||Ft.current||dr?(typeof de=="function"&&($u(i,s,de,c),pe=i.memoizedState),(U=dr||uh(i,s,U,c,Q,pe,$)||!1)?(Y||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(c,pe,$),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(c,pe,$)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=pe),k.props=c,k.state=pe,k.context=$,c=U):(typeof k.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),c=!1)}return Mu(n,i,s,c,x,h)}function Mu(n,i,s,c,h,x){kh(n,i);var k=(i.flags&128)!==0;if(!c&&!k)return h&&Tp(i,s,!1),Qn(n,i,x);c=i.stateNode,gw.current=i;var T=k&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&k?(i.child=gi(i,n.child,null,x),i.child=gi(i,null,T,x)):zt(n,i,T,x),i.memoizedState=c.state,h&&Tp(i,s,!0),i.child}function bh(n){var i=n.stateNode;i.pendingContext?Ep(n,i.pendingContext,i.pendingContext!==i.context):i.context&&Ep(n,i.context,!1),Su(n,i.containerInfo)}function Ch(n,i,s,c,h){return mi(),mu(h),i.flags|=256,zt(n,i,s,c),i.child}var Fu={dehydrated:null,treeContext:null,retryLane:0};function Bu(n){return{baseLanes:n,cachePool:null,transitions:null}}function Eh(n,i,s){var c=i.pendingProps,h=et.current,x=!1,k=(i.flags&128)!==0,T;if((T=k)||(T=n!==null&&n.memoizedState===null?!1:(h&2)!==0),T?(x=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),qe(et,h&1),n===null)return hu(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=c.children,n=c.fallback,x?(c=i.mode,x=i.child,k={mode:"hidden",children:k},(c&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=vs(k,c,0,null),n=Vr(n,c,s,null),x.return=i,n.return=i,x.sibling=n,i.child=x,i.child.memoizedState=Bu(s),i.memoizedState=Fu,n):Uu(i,k));if(h=n.memoizedState,h!==null&&(T=h.dehydrated,T!==null))return yw(n,i,k,c,T,h,s);if(x){x=c.fallback,k=i.mode,h=n.child,T=h.sibling;var $={mode:"hidden",children:c.children};return(k&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=$,i.deletions=null):(c=xr(h,$),c.subtreeFlags=h.subtreeFlags&14680064),T!==null?x=xr(T,x):(x=Vr(x,k,s,null),x.flags|=2),x.return=i,c.return=i,c.sibling=x,i.child=c,c=x,x=i.child,k=n.child.memoizedState,k=k===null?Bu(s):{baseLanes:k.baseLanes|s,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~s,i.memoizedState=Fu,c}return x=n.child,n=x.sibling,c=xr(x,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,n!==null&&(s=i.deletions,s===null?(i.deletions=[n],i.flags|=16):s.push(n)),i.child=c,i.memoizedState=null,c}function Uu(n,i){return i=vs({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function ls(n,i,s,c){return c!==null&&mu(c),gi(i,n.child,null,s),n=Uu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function yw(n,i,s,c,h,x,k){if(s)return i.flags&256?(i.flags&=-257,c=zu(Error(r(422))),ls(n,i,k,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(x=c.fallback,h=i.mode,c=vs({mode:"visible",children:c.children},h,0,null),x=Vr(x,h,k,null),x.flags|=2,c.return=i,x.return=i,c.sibling=x,i.child=c,(i.mode&1)!==0&&gi(i,n.child,null,k),i.child.memoizedState=Bu(k),i.memoizedState=Fu,x);if((i.mode&1)===0)return ls(n,i,k,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var T=c.dgst;return c=T,x=Error(r(419)),c=zu(x,c,void 0),ls(n,i,k,c)}if(T=(k&n.childLanes)!==0,Ut||T){if(c=ht,c!==null){switch(k&-k){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|k))!==0?0:h,h!==0&&h!==x.retryLane&&(x.retryLane=h,Jn(n,h),jn(c,n,h,-1))}return ic(),c=zu(Error(r(421))),ls(n,i,k,c)}return h.data==="$?"?(i.flags|=128,i.child=n.child,i=Iw.bind(null,n),h._reactRetry=i,null):(n=x.treeContext,Zt=sr(h.nextSibling),Xt=i,Xe=!0,Sn=null,n!==null&&(dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,Wn=n.id,Gn=n.overflow,$r=i),i=Uu(i,c.children),i.flags|=4096,i)}function jh(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),vu(n.return,i,s)}function Vu(n,i,s,c,h){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=s,x.tailMode=h)}function Th(n,i,s){var c=i.pendingProps,h=c.revealOrder,x=c.tail;if(zt(n,i,c.children,s),c=et.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&jh(n,s,i);else if(n.tag===19)jh(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(qe(et,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(s=i.child,h=null;s!==null;)n=s.alternate,n!==null&&Zl(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=i.child,i.child=null):(h=s.sibling,s.sibling=null),Vu(i,!1,h,s,x);break;case"backwards":for(s=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&Zl(n)===null){i.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}Vu(i,!0,s,null,x);break;case"together":Vu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ss(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Qn(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),Mr|=i.lanes,(s&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,s=xr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=xr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function xw(n,i,s){switch(i.tag){case 3:bh(i),mi();break;case 5:Bp(i);break;case 1:Bt(i.type)&&Vl(i);break;case 4:Su(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;qe(Kl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(qe(et,et.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?Eh(n,i,s):(qe(et,et.current&1),n=Qn(n,i,s),n!==null?n.sibling:null);qe(et,et.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(n.flags&128)!==0){if(c)return Th(n,i,s);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),qe(et,et.current),c)break;return null;case 22:case 23:return i.lanes=0,wh(n,i,s)}return Qn(n,i,s)}var Rh,Hu,Nh,Ih;Rh=function(n,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Hu=function(){},Nh=function(n,i,s,c){var h=n.memoizedProps;if(h!==c){n=i.stateNode,Dr(_n.current);var x=null;switch(s){case"input":h=Pn(n,h),c=Pn(n,c),x=[];break;case"select":h=E({},h,{value:void 0}),c=E({},c,{value:void 0}),x=[];break;case"textarea":h=Mt(n,h),c=Mt(n,c),x=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Fl)}wt(s,c);var k;s=null;for(U in h)if(!c.hasOwnProperty(U)&&h.hasOwnProperty(U)&&h[U]!=null)if(U==="style"){var T=h[U];for(k in T)T.hasOwnProperty(k)&&(s||(s={}),s[k]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(l.hasOwnProperty(U)?x||(x=[]):(x=x||[]).push(U,null));for(U in c){var $=c[U];if(T=h!=null?h[U]:void 0,c.hasOwnProperty(U)&&$!==T&&($!=null||T!=null))if(U==="style")if(T){for(k in T)!T.hasOwnProperty(k)||$&&$.hasOwnProperty(k)||(s||(s={}),s[k]="");for(k in $)$.hasOwnProperty(k)&&T[k]!==$[k]&&(s||(s={}),s[k]=$[k])}else s||(x||(x=[]),x.push(U,s)),s=$;else U==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,T=T?T.__html:void 0,$!=null&&T!==$&&(x=x||[]).push(U,$)):U==="children"?typeof $!="string"&&typeof $!="number"||(x=x||[]).push(U,""+$):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(l.hasOwnProperty(U)?($!=null&&U==="onScroll"&&Je("scroll",n),x||T===$||(x=[])):(x=x||[]).push(U,$))}s&&(x=x||[]).push("style",s);var U=x;(i.updateQueue=U)&&(i.flags|=4)}},Ih=function(n,i,s,c){s!==c&&(i.flags|=4)};function Ao(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Rt(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(i)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=s,i}function vw(n,i,s){var c=i.pendingProps;switch(fu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(i),null;case 1:return Bt(i.type)&&Ul(),Rt(i),null;case 3:return c=i.stateNode,vi(),Ke(Ft),Ke(jt),Eu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Gl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sn!==null&&(tc(Sn),Sn=null))),Hu(n,i),Rt(i),null;case 5:bu(i);var h=Dr(To.current);if(s=i.type,n!==null&&i.stateNode!=null)Nh(n,i,s,c,h),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Rt(i),null}if(n=Dr(_n.current),Gl(i)){c=i.stateNode,s=i.type;var x=i.memoizedProps;switch(c[$n]=i,c[So]=x,n=(i.mode&1)!==0,s){case"dialog":Je("cancel",c),Je("close",c);break;case"iframe":case"object":case"embed":Je("load",c);break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],c);break;case"source":Je("error",c);break;case"img":case"image":case"link":Je("error",c),Je("load",c);break;case"details":Je("toggle",c);break;case"input":_t(c,x),Je("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!x.multiple},Je("invalid",c);break;case"textarea":un(c,x),Je("invalid",c)}wt(s,x),h=null;for(var k in x)if(x.hasOwnProperty(k)){var T=x[k];k==="children"?typeof T=="string"?c.textContent!==T&&(x.suppressHydrationWarning!==!0&&Ml(c.textContent,T,n),h=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(x.suppressHydrationWarning!==!0&&Ml(c.textContent,T,n),h=["children",""+T]):l.hasOwnProperty(k)&&T!=null&&k==="onScroll"&&Je("scroll",c)}switch(s){case"input":Ct(c),Et(c,x,!0);break;case"textarea":Ct(c),xl(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=Fl)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{k=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=J(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=k.createElement(s,{is:c.is}):(n=k.createElement(s),s==="select"&&(k=n,c.multiple?k.multiple=!0:c.size&&(k.size=c.size))):n=k.createElementNS(n,s),n[$n]=i,n[So]=c,Rh(n,i,!1,!1),i.stateNode=n;e:{switch(k=An(s,c),s){case"dialog":Je("cancel",n),Je("close",n),h=c;break;case"iframe":case"object":case"embed":Je("load",n),h=c;break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],n);h=c;break;case"source":Je("error",n),h=c;break;case"img":case"image":case"link":Je("error",n),Je("load",n),h=c;break;case"details":Je("toggle",n),h=c;break;case"input":_t(n,c),h=Pn(n,c),Je("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=E({},c,{value:void 0}),Je("invalid",n);break;case"textarea":un(n,c),h=Mt(n,c),Je("invalid",n);break;default:h=c}wt(s,h),T=h;for(x in T)if(T.hasOwnProperty(x)){var $=T[x];x==="style"?er(n,$):x==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Pe(n,$)):x==="children"?typeof $=="string"?(s!=="textarea"||$!=="")&&De(n,$):typeof $=="number"&&De(n,""+$):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(l.hasOwnProperty(x)?$!=null&&x==="onScroll"&&Je("scroll",n):$!=null&&L(n,x,$,k))}switch(s){case"input":Ct(n),Et(n,c,!1);break;case"textarea":Ct(n),xl(n);break;case"option":c.value!=null&&n.setAttribute("value",""+ke(c.value));break;case"select":n.multiple=!!c.multiple,x=c.value,x!=null?it(n,!!c.multiple,x,!1):c.defaultValue!=null&&it(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Fl)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Rt(i),null;case 6:if(n&&i.stateNode!=null)Ih(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=Dr(To.current),Dr(_n.current),Gl(i)){if(c=i.stateNode,s=i.memoizedProps,c[$n]=i,(x=c.nodeValue!==s)&&(n=Xt,n!==null))switch(n.tag){case 3:Ml(c.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Ml(c.nodeValue,s,(n.mode&1)!==0)}x&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[$n]=i,i.stateNode=c}return Rt(i),null;case 13:if(Ke(et),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Xe&&Zt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Lp(),mi(),i.flags|=98560,x=!1;else if(x=Gl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!x)throw Error(r(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[$n]=i}else mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Rt(i),x=!1}else Sn!==null&&(tc(Sn),Sn=null),x=!0;if(!x)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(et.current&1)!==0?ft===0&&(ft=3):ic())),i.updateQueue!==null&&(i.flags|=4),Rt(i),null);case 4:return vi(),Hu(n,i),n===null&&wo(i.stateNode.containerInfo),Rt(i),null;case 10:return xu(i.type._context),Rt(i),null;case 17:return Bt(i.type)&&Ul(),Rt(i),null;case 19:if(Ke(et),x=i.memoizedState,x===null)return Rt(i),null;if(c=(i.flags&128)!==0,k=x.rendering,k===null)if(c)Ao(x,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(k=Zl(n),k!==null){for(i.flags|=128,Ao(x,!1),c=k.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)x=s,n=c,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,n=k.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return qe(et,et.current&1|2),i.child}n=n.sibling}x.tail!==null&&ot()>bi&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304)}else{if(!c)if(n=Zl(k),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ao(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Xe)return Rt(i),null}else 2*ot()-x.renderingStartTime>bi&&s!==1073741824&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304);x.isBackwards?(k.sibling=i.child,i.child=k):(s=x.last,s!==null?s.sibling=k:i.child=k,x.last=k)}return x.tail!==null?(i=x.tail,x.rendering=i,x.tail=i.sibling,x.renderingStartTime=ot(),i.sibling=null,s=et.current,qe(et,c?s&1|2:s&1),i):(Rt(i),null);case 22:case 23:return rc(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(en&1073741824)!==0&&(Rt(i),i.subtreeFlags&6&&(i.flags|=8192)):Rt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function ww(n,i){switch(fu(i),i.tag){case 1:return Bt(i.type)&&Ul(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return vi(),Ke(Ft),Ke(jt),Eu(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return bu(i),null;case 13:if(Ke(et),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));mi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Ke(et),null;case 4:return vi(),null;case 10:return xu(i.type._context),null;case 22:case 23:return rc(),null;case 24:return null;default:return null}}var as=!1,Nt=!1,kw=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ki(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){nt(n,i,c)}else s.current=null}function qu(n,i,s){try{s()}catch(c){nt(n,i,c)}}var Ph=!1;function Sw(n,i){if(ru=Rl,n=up(),Ka(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{s.nodeType,x.nodeType}catch{s=null;break e}var k=0,T=-1,$=-1,U=0,Y=0,Z=n,Q=null;t:for(;;){for(var de;Z!==s||h!==0&&Z.nodeType!==3||(T=k+h),Z!==x||c!==0&&Z.nodeType!==3||($=k+c),Z.nodeType===3&&(k+=Z.nodeValue.length),(de=Z.firstChild)!==null;)Q=Z,Z=de;for(;;){if(Z===n)break t;if(Q===s&&++U===h&&(T=k),Q===x&&++Y===c&&($=k),(de=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=de}s=T===-1||$===-1?null:{start:T,end:$}}else s=null}s=s||{start:0,end:0}}else s=null;for(iu={focusedElem:n,selectionRange:s},Rl=!1,fe=i;fe!==null;)if(i=fe,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,fe=n;else for(;fe!==null;){i=fe;try{var pe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var he=pe.memoizedProps,lt=pe.memoizedState,O=i.stateNode,_=O.getSnapshotBeforeUpdate(i.elementType===i.type?he:bn(i.type,he),lt);O.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var F=i.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(te){nt(i,i.return,te)}if(n=i.sibling,n!==null){n.return=i.return,fe=n;break}fe=i.return}return pe=Ph,Ph=!1,pe}function Lo(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var x=h.destroy;h.destroy=void 0,x!==void 0&&qu(i,s,x)}h=h.next}while(h!==c)}}function us(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function Wu(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function Ah(n){var i=n.alternate;i!==null&&(n.alternate=null,Ah(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[$n],delete i[So],delete i[au],delete i[iw],delete i[ow])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Lh(n){return n.tag===5||n.tag===3||n.tag===4}function $h(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Lh(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Gu(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Fl));else if(c!==4&&(n=n.child,n!==null))for(Gu(n,i,s),n=n.sibling;n!==null;)Gu(n,i,s),n=n.sibling}function Ju(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Ju(n,i,s),n=n.sibling;n!==null;)Ju(n,i,s),n=n.sibling}var kt=null,Cn=!1;function pr(n,i,s){for(s=s.child;s!==null;)_h(n,i,s),s=s.sibling}function _h(n,i,s){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Sl,s)}catch{}switch(s.tag){case 5:Nt||ki(s,i);case 6:var c=kt,h=Cn;kt=null,pr(n,i,s),kt=c,Cn=h,kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):kt.removeChild(s.stateNode));break;case 18:kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?su(n.parentNode,s):n.nodeType===1&&su(n,s),co(n)):su(kt,s.stateNode));break;case 4:c=kt,h=Cn,kt=s.stateNode.containerInfo,Cn=!0,pr(n,i,s),kt=c,Cn=h;break;case 0:case 11:case 14:case 15:if(!Nt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var x=h,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&qu(s,i,k),h=h.next}while(h!==c)}pr(n,i,s);break;case 1:if(!Nt&&(ki(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(T){nt(s,i,T)}pr(n,i,s);break;case 21:pr(n,i,s);break;case 22:s.mode&1?(Nt=(c=Nt)||s.memoizedState!==null,pr(n,i,s),Nt=c):pr(n,i,s);break;default:pr(n,i,s)}}function zh(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new kw),i.forEach(function(c){var h=Pw.bind(null,n,c);s.has(c)||(s.add(c),c.then(h,h))})}}function En(n,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];try{var x=n,k=i,T=k;e:for(;T!==null;){switch(T.tag){case 5:kt=T.stateNode,Cn=!1;break e;case 3:kt=T.stateNode.containerInfo,Cn=!0;break e;case 4:kt=T.stateNode.containerInfo,Cn=!0;break e}T=T.return}if(kt===null)throw Error(r(160));_h(x,k,h),kt=null,Cn=!1;var $=h.alternate;$!==null&&($.return=null),h.return=null}catch(U){nt(h,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Dh(i,n),i=i.sibling}function Dh(n,i){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(En(i,n),Dn(n),c&4){try{Lo(3,n,n.return),us(3,n)}catch(he){nt(n,n.return,he)}try{Lo(5,n,n.return)}catch(he){nt(n,n.return,he)}}break;case 1:En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return);break;case 5:if(En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return),n.flags&32){var h=n.stateNode;try{De(h,"")}catch(he){nt(n,n.return,he)}}if(c&4&&(h=n.stateNode,h!=null)){var x=n.memoizedProps,k=s!==null?s.memoizedProps:x,T=n.type,$=n.updateQueue;if(n.updateQueue=null,$!==null)try{T==="input"&&x.type==="radio"&&x.name!=null&&_e(h,x),An(T,k);var U=An(T,x);for(k=0;k<$.length;k+=2){var Y=$[k],Z=$[k+1];Y==="style"?er(h,Z):Y==="dangerouslySetInnerHTML"?Pe(h,Z):Y==="children"?De(h,Z):L(h,Y,Z,U)}switch(T){case"input":st(h,x);break;case"textarea":yl(h,x);break;case"select":var Q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!x.multiple;var de=x.value;de!=null?it(h,!!x.multiple,de,!1):Q!==!!x.multiple&&(x.defaultValue!=null?it(h,!!x.multiple,x.defaultValue,!0):it(h,!!x.multiple,x.multiple?[]:"",!1))}h[So]=x}catch(he){nt(n,n.return,he)}}break;case 6:if(En(i,n),Dn(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,x=n.memoizedProps;try{h.nodeValue=x}catch(he){nt(n,n.return,he)}}break;case 3:if(En(i,n),Dn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{co(i.containerInfo)}catch(he){nt(n,n.return,he)}break;case 4:En(i,n),Dn(n);break;case 13:En(i,n),Dn(n),h=n.child,h.flags&8192&&(x=h.memoizedState!==null,h.stateNode.isHidden=x,!x||h.alternate!==null&&h.alternate.memoizedState!==null||(Yu=ot())),c&4&&zh(n);break;case 22:if(Y=s!==null&&s.memoizedState!==null,n.mode&1?(Nt=(U=Nt)||Y,En(i,n),Nt=U):En(i,n),Dn(n),c&8192){if(U=n.memoizedState!==null,(n.stateNode.isHidden=U)&&!Y&&(n.mode&1)!==0)for(fe=n,Y=n.child;Y!==null;){for(Z=fe=Y;fe!==null;){switch(Q=fe,de=Q.child,Q.tag){case 0:case 11:case 14:case 15:Lo(4,Q,Q.return);break;case 1:ki(Q,Q.return);var pe=Q.stateNode;if(typeof pe.componentWillUnmount=="function"){c=Q,s=Q.return;try{i=c,pe.props=i.memoizedProps,pe.state=i.memoizedState,pe.componentWillUnmount()}catch(he){nt(c,s,he)}}break;case 5:ki(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Fh(Z);continue}}de!==null?(de.return=Q,fe=de):Fh(Z)}Y=Y.sibling}e:for(Y=null,Z=n;;){if(Z.tag===5){if(Y===null){Y=Z;try{h=Z.stateNode,U?(x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(T=Z.stateNode,$=Z.memoizedProps.style,k=$!=null&&$.hasOwnProperty("display")?$.display:null,T.style.display=cn("display",k))}catch(he){nt(n,n.return,he)}}}else if(Z.tag===6){if(Y===null)try{Z.stateNode.nodeValue=U?"":Z.memoizedProps}catch(he){nt(n,n.return,he)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===n)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===n)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===n)break e;Y===Z&&(Y=null),Z=Z.return}Y===Z&&(Y=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:En(i,n),Dn(n),c&4&&zh(n);break;case 21:break;default:En(i,n),Dn(n)}}function Dn(n){var i=n.flags;if(i&2){try{e:{for(var s=n.return;s!==null;){if(Lh(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(De(h,""),c.flags&=-33);var x=$h(n);Ju(n,x,h);break;case 3:case 4:var k=c.stateNode.containerInfo,T=$h(n);Gu(n,T,k);break;default:throw Error(r(161))}}catch($){nt(n,n.return,$)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function bw(n,i,s){fe=n,Oh(n)}function Oh(n,i,s){for(var c=(n.mode&1)!==0;fe!==null;){var h=fe,x=h.child;if(h.tag===22&&c){var k=h.memoizedState!==null||as;if(!k){var T=h.alternate,$=T!==null&&T.memoizedState!==null||Nt;T=as;var U=Nt;if(as=k,(Nt=$)&&!U)for(fe=h;fe!==null;)k=fe,$=k.child,k.tag===22&&k.memoizedState!==null?Bh(h):$!==null?($.return=k,fe=$):Bh(h);for(;x!==null;)fe=x,Oh(x),x=x.sibling;fe=h,as=T,Nt=U}Mh(n)}else(h.subtreeFlags&8772)!==0&&x!==null?(x.return=h,fe=x):Mh(n)}}function Mh(n){for(;fe!==null;){var i=fe;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Nt||us(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Nt)if(s===null)c.componentDidMount();else{var h=i.elementType===i.type?s.memoizedProps:bn(i.type,s.memoizedProps);c.componentDidUpdate(h,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var x=i.updateQueue;x!==null&&Fp(i,x,c);break;case 3:var k=i.updateQueue;if(k!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}Fp(i,k,s)}break;case 5:var T=i.stateNode;if(s===null&&i.flags&4){s=T;var $=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&s.focus();break;case"img":$.src&&(s.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var Y=U.memoizedState;if(Y!==null){var Z=Y.dehydrated;Z!==null&&co(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Nt||i.flags&512&&Wu(i)}catch(Q){nt(i,i.return,Q)}}if(i===n){fe=null;break}if(s=i.sibling,s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Fh(n){for(;fe!==null;){var i=fe;if(i===n){fe=null;break}var s=i.sibling;if(s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Bh(n){for(;fe!==null;){var i=fe;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{us(4,i)}catch($){nt(i,s,$)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch($){nt(i,h,$)}}var x=i.return;try{Wu(i)}catch($){nt(i,x,$)}break;case 5:var k=i.return;try{Wu(i)}catch($){nt(i,k,$)}}}catch($){nt(i,i.return,$)}if(i===n){fe=null;break}var T=i.sibling;if(T!==null){T.return=i.return,fe=T;break}fe=i.return}}var Cw=Math.ceil,cs=M.ReactCurrentDispatcher,Ku=M.ReactCurrentOwner,mn=M.ReactCurrentBatchConfig,Oe=0,ht=null,at=null,St=0,en=0,Si=ar(0),ft=0,$o=null,Mr=0,ds=0,Qu=0,_o=null,Vt=null,Yu=0,bi=1/0,Yn=null,fs=!1,Xu=null,hr=null,ps=!1,mr=null,hs=0,zo=0,Zu=null,ms=-1,gs=0;function Dt(){return(Oe&6)!==0?ot():ms!==-1?ms:ms=ot()}function gr(n){return(n.mode&1)===0?1:(Oe&2)!==0&&St!==0?St&-St:sw.transition!==null?(gs===0&&(gs=$f()),gs):(n=Be,n!==0||(n=window.event,n=n===void 0?16:Vf(n.type)),n)}function jn(n,i,s,c){if(50<zo)throw zo=0,Zu=null,Error(r(185));oo(n,s,c),((Oe&2)===0||n!==ht)&&(n===ht&&((Oe&2)===0&&(ds|=s),ft===4&&yr(n,St)),Ht(n,c),s===1&&Oe===0&&(i.mode&1)===0&&(bi=ot()+500,Hl&&cr()))}function Ht(n,i){var s=n.callbackNode;s1(n,i);var c=El(n,n===ht?St:0);if(c===0)s!==null&&Pf(s),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(s!=null&&Pf(s),i===1)n.tag===0?lw(Vh.bind(null,n)):Rp(Vh.bind(null,n)),nw(function(){(Oe&6)===0&&cr()}),s=null;else{switch(_f(c)){case 1:s=Aa;break;case 4:s=Af;break;case 16:s=kl;break;case 536870912:s=Lf;break;default:s=kl}s=Yh(s,Uh.bind(null,n))}n.callbackPriority=i,n.callbackNode=s}}function Uh(n,i){if(ms=-1,gs=0,(Oe&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Ci()&&n.callbackNode!==s)return null;var c=El(n,n===ht?St:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=ys(n,c);else{i=c;var h=Oe;Oe|=2;var x=qh();(ht!==n||St!==i)&&(Yn=null,bi=ot()+500,Br(n,i));do try{Tw();break}catch(T){Hh(n,T)}while(!0);yu(),cs.current=x,Oe=h,at!==null?i=0:(ht=null,St=0,i=ft)}if(i!==0){if(i===2&&(h=La(n),h!==0&&(c=h,i=ec(n,h))),i===1)throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;if(i===6)yr(n,c);else{if(h=n.current.alternate,(c&30)===0&&!Ew(h)&&(i=ys(n,c),i===2&&(x=La(n),x!==0&&(c=x,i=ec(n,x))),i===1))throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;switch(n.finishedWork=h,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:Ur(n,Vt,Yn);break;case 3:if(yr(n,c),(c&130023424)===c&&(i=Yu+500-ot(),10<i)){if(El(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Dt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=lu(Ur.bind(null,n,Vt,Yn),i);break}Ur(n,Vt,Yn);break;case 4:if(yr(n,c),(c&4194240)===c)break;for(i=n.eventTimes,h=-1;0<c;){var k=31-wn(c);x=1<<k,k=i[k],k>h&&(h=k),c&=~x}if(c=h,c=ot()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Cw(c/1960))-c,10<c){n.timeoutHandle=lu(Ur.bind(null,n,Vt,Yn),c);break}Ur(n,Vt,Yn);break;case 5:Ur(n,Vt,Yn);break;default:throw Error(r(329))}}}return Ht(n,ot()),n.callbackNode===s?Uh.bind(null,n):null}function ec(n,i){var s=_o;return n.current.memoizedState.isDehydrated&&(Br(n,i).flags|=256),n=ys(n,i),n!==2&&(i=Vt,Vt=s,i!==null&&tc(i)),n}function tc(n){Vt===null?Vt=n:Vt.push.apply(Vt,n)}function Ew(n){for(var i=n;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var h=s[c],x=h.getSnapshot;h=h.value;try{if(!kn(x(),h))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function yr(n,i){for(i&=~Qu,i&=~ds,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var s=31-wn(i),c=1<<s;n[s]=-1,i&=~c}}function Vh(n){if((Oe&6)!==0)throw Error(r(327));Ci();var i=El(n,0);if((i&1)===0)return Ht(n,ot()),null;var s=ys(n,i);if(n.tag!==0&&s===2){var c=La(n);c!==0&&(i=c,s=ec(n,c))}if(s===1)throw s=$o,Br(n,0),yr(n,i),Ht(n,ot()),s;if(s===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Ur(n,Vt,Yn),Ht(n,ot()),null}function nc(n,i){var s=Oe;Oe|=1;try{return n(i)}finally{Oe=s,Oe===0&&(bi=ot()+500,Hl&&cr())}}function Fr(n){mr!==null&&mr.tag===0&&(Oe&6)===0&&Ci();var i=Oe;Oe|=1;var s=mn.transition,c=Be;try{if(mn.transition=null,Be=1,n)return n()}finally{Be=c,mn.transition=s,Oe=i,(Oe&6)===0&&cr()}}function rc(){en=Si.current,Ke(Si)}function Br(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,tw(s)),at!==null)for(s=at.return;s!==null;){var c=s;switch(fu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ul();break;case 3:vi(),Ke(Ft),Ke(jt),Eu();break;case 5:bu(c);break;case 4:vi();break;case 13:Ke(et);break;case 19:Ke(et);break;case 10:xu(c.type._context);break;case 22:case 23:rc()}s=s.return}if(ht=n,at=n=xr(n.current,null),St=en=i,ft=0,$o=null,Qu=ds=Mr=0,Vt=_o=null,zr!==null){for(i=0;i<zr.length;i++)if(s=zr[i],c=s.interleaved,c!==null){s.interleaved=null;var h=c.next,x=s.pending;if(x!==null){var k=x.next;x.next=h,c.next=k}s.pending=c}zr=null}return n}function Hh(n,i){do{var s=at;try{if(yu(),es.current=is,ts){for(var c=tt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}ts=!1}if(Or=0,pt=dt=tt=null,Ro=!1,No=0,Ku.current=null,s===null||s.return===null){ft=1,$o=i,at=null;break}e:{var x=n,k=s.return,T=s,$=i;if(i=St,T.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var U=$,Y=T,Z=Y.tag;if((Y.mode&1)===0&&(Z===0||Z===11||Z===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var de=mh(k);if(de!==null){de.flags&=-257,gh(de,k,T,x,i),de.mode&1&&hh(x,U,i),i=de,$=U;var pe=i.updateQueue;if(pe===null){var he=new Set;he.add($),i.updateQueue=he}else pe.add($);break e}else{if((i&1)===0){hh(x,U,i),ic();break e}$=Error(r(426))}}else if(Xe&&T.mode&1){var lt=mh(k);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),gh(lt,k,T,x,i),mu(wi($,T));break e}}x=$=wi($,T),ft!==4&&(ft=2),_o===null?_o=[x]:_o.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,i&=-i,x.lanes|=i;var O=fh(x,$,i);Mp(x,O);break e;case 1:T=$;var _=x.type,F=x.stateNode;if((x.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(hr===null||!hr.has(F)))){x.flags|=65536,i&=-i,x.lanes|=i;var te=ph(x,T,i);Mp(x,te);break e}}x=x.return}while(x!==null)}Gh(s)}catch(ge){i=ge,at===s&&s!==null&&(at=s=s.return);continue}break}while(!0)}function qh(){var n=cs.current;return cs.current=is,n===null?is:n}function ic(){(ft===0||ft===3||ft===2)&&(ft=4),ht===null||(Mr&268435455)===0&&(ds&268435455)===0||yr(ht,St)}function ys(n,i){var s=Oe;Oe|=2;var c=qh();(ht!==n||St!==i)&&(Yn=null,Br(n,i));do try{jw();break}catch(h){Hh(n,h)}while(!0);if(yu(),Oe=s,cs.current=c,at!==null)throw Error(r(261));return ht=null,St=0,ft}function jw(){for(;at!==null;)Wh(at)}function Tw(){for(;at!==null&&!X0();)Wh(at)}function Wh(n){var i=Qh(n.alternate,n,en);n.memoizedProps=n.pendingProps,i===null?Gh(n):at=i,Ku.current=null}function Gh(n){var i=n;do{var s=i.alternate;if(n=i.return,(i.flags&32768)===0){if(s=vw(s,i,en),s!==null){at=s;return}}else{if(s=ww(s,i),s!==null){s.flags&=32767,at=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ft=6,at=null;return}}if(i=i.sibling,i!==null){at=i;return}at=i=n}while(i!==null);ft===0&&(ft=5)}function Ur(n,i,s){var c=Be,h=mn.transition;try{mn.transition=null,Be=1,Rw(n,i,s,c)}finally{mn.transition=h,Be=c}return null}function Rw(n,i,s,c){do Ci();while(mr!==null);if((Oe&6)!==0)throw Error(r(327));s=n.finishedWork;var h=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var x=s.lanes|s.childLanes;if(a1(n,x),n===ht&&(at=ht=null,St=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ps||(ps=!0,Yh(kl,function(){return Ci(),null})),x=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||x){x=mn.transition,mn.transition=null;var k=Be;Be=1;var T=Oe;Oe|=4,Ku.current=null,Sw(n,s),Dh(s,n),J1(iu),Rl=!!ru,iu=ru=null,n.current=s,bw(s),Z0(),Oe=T,Be=k,mn.transition=x}else n.current=s;if(ps&&(ps=!1,mr=n,hs=h),x=n.pendingLanes,x===0&&(hr=null),n1(s.stateNode),Ht(n,ot()),i!==null)for(c=n.onRecoverableError,s=0;s<i.length;s++)h=i[s],c(h.value,{componentStack:h.stack,digest:h.digest});if(fs)throw fs=!1,n=Xu,Xu=null,n;return(hs&1)!==0&&n.tag!==0&&Ci(),x=n.pendingLanes,(x&1)!==0?n===Zu?zo++:(zo=0,Zu=n):zo=0,cr(),null}function Ci(){if(mr!==null){var n=_f(hs),i=mn.transition,s=Be;try{if(mn.transition=null,Be=16>n?16:n,mr===null)var c=!1;else{if(n=mr,mr=null,hs=0,(Oe&6)!==0)throw Error(r(331));var h=Oe;for(Oe|=4,fe=n.current;fe!==null;){var x=fe,k=x.child;if((fe.flags&16)!==0){var T=x.deletions;if(T!==null){for(var $=0;$<T.length;$++){var U=T[$];for(fe=U;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:Lo(8,Y,x)}var Z=Y.child;if(Z!==null)Z.return=Y,fe=Z;else for(;fe!==null;){Y=fe;var Q=Y.sibling,de=Y.return;if(Ah(Y),Y===U){fe=null;break}if(Q!==null){Q.return=de,fe=Q;break}fe=de}}}var pe=x.alternate;if(pe!==null){var he=pe.child;if(he!==null){pe.child=null;do{var lt=he.sibling;he.sibling=null,he=lt}while(he!==null)}}fe=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,fe=k;else e:for(;fe!==null;){if(x=fe,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Lo(9,x,x.return)}var O=x.sibling;if(O!==null){O.return=x.return,fe=O;break e}fe=x.return}}var _=n.current;for(fe=_;fe!==null;){k=fe;var F=k.child;if((k.subtreeFlags&2064)!==0&&F!==null)F.return=k,fe=F;else e:for(k=_;fe!==null;){if(T=fe,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:us(9,T)}}catch(ge){nt(T,T.return,ge)}if(T===k){fe=null;break e}var te=T.sibling;if(te!==null){te.return=T.return,fe=te;break e}fe=T.return}}if(Oe=h,cr(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Sl,n)}catch{}c=!0}return c}finally{Be=s,mn.transition=i}}return!1}function Jh(n,i,s){i=wi(s,i),i=fh(n,i,1),n=fr(n,i,1),i=Dt(),n!==null&&(oo(n,1,i),Ht(n,i))}function nt(n,i,s){if(n.tag===3)Jh(n,n,s);else for(;i!==null;){if(i.tag===3){Jh(i,n,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(hr===null||!hr.has(c))){n=wi(s,n),n=ph(i,n,1),i=fr(i,n,1),n=Dt(),i!==null&&(oo(i,1,n),Ht(i,n));break}}i=i.return}}function Nw(n,i,s){var c=n.pingCache;c!==null&&c.delete(i),i=Dt(),n.pingedLanes|=n.suspendedLanes&s,ht===n&&(St&s)===s&&(ft===4||ft===3&&(St&130023424)===St&&500>ot()-Yu?Br(n,0):Qu|=s),Ht(n,i)}function Kh(n,i){i===0&&((n.mode&1)===0?i=1:(i=Cl,Cl<<=1,(Cl&130023424)===0&&(Cl=4194304)));var s=Dt();n=Jn(n,i),n!==null&&(oo(n,i,s),Ht(n,s))}function Iw(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Kh(n,s)}function Pw(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Kh(n,s)}var Qh;Qh=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||Ft.current)Ut=!0;else{if((n.lanes&s)===0&&(i.flags&128)===0)return Ut=!1,xw(n,i,s);Ut=(n.flags&131072)!==0}else Ut=!1,Xe&&(i.flags&1048576)!==0&&Np(i,Wl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;ss(n,i),n=i.pendingProps;var h=fi(i,jt.current);xi(i,s),h=Ru(null,i,c,n,h,s);var x=Nu();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Bt(c)?(x=!0,Vl(i)):x=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ku(i),h.updater=os,i.stateNode=h,h._reactInternals=i,_u(i,c,n,s),i=Mu(null,i,c,!0,x,s)):(i.tag=0,Xe&&x&&du(i),zt(null,i,h,s),i=i.child),i;case 16:c=i.elementType;e:{switch(ss(n,i),n=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=Lw(c),n=bn(c,n),h){case 0:i=Ou(null,i,c,n,s);break e;case 1:i=Sh(null,i,c,n,s);break e;case 11:i=yh(null,i,c,n,s);break e;case 14:i=xh(null,i,c,bn(c.type,n),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Ou(n,i,c,h,s);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Sh(n,i,c,h,s);case 3:e:{if(bh(i),n===null)throw Error(r(387));c=i.pendingProps,x=i.memoizedState,h=x.element,Op(n,i),Xl(i,c,null,s);var k=i.memoizedState;if(c=k.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){h=wi(Error(r(423)),i),i=Ch(n,i,c,s,h);break e}else if(c!==h){h=wi(Error(r(424)),i),i=Ch(n,i,c,s,h);break e}else for(Zt=sr(i.stateNode.containerInfo.firstChild),Xt=i,Xe=!0,Sn=null,s=zp(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(mi(),c===h){i=Qn(n,i,s);break e}zt(n,i,c,s)}i=i.child}return i;case 5:return Bp(i),n===null&&hu(i),c=i.type,h=i.pendingProps,x=n!==null?n.memoizedProps:null,k=h.children,ou(c,h)?k=null:x!==null&&ou(c,x)&&(i.flags|=32),kh(n,i),zt(n,i,k,s),i.child;case 6:return n===null&&hu(i),null;case 13:return Eh(n,i,s);case 4:return Su(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=gi(i,null,c,s):zt(n,i,c,s),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),yh(n,i,c,h,s);case 7:return zt(n,i,i.pendingProps,s),i.child;case 8:return zt(n,i,i.pendingProps.children,s),i.child;case 12:return zt(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,x=i.memoizedProps,k=h.value,qe(Kl,c._currentValue),c._currentValue=k,x!==null)if(kn(x.value,k)){if(x.children===h.children&&!Ft.current){i=Qn(n,i,s);break e}}else for(x=i.child,x!==null&&(x.return=i);x!==null;){var T=x.dependencies;if(T!==null){k=x.child;for(var $=T.firstContext;$!==null;){if($.context===c){if(x.tag===1){$=Kn(-1,s&-s),$.tag=2;var U=x.updateQueue;if(U!==null){U=U.shared;var Y=U.pending;Y===null?$.next=$:($.next=Y.next,Y.next=$),U.pending=$}}x.lanes|=s,$=x.alternate,$!==null&&($.lanes|=s),vu(x.return,s,i),T.lanes|=s;break}$=$.next}}else if(x.tag===10)k=x.type===i.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(r(341));k.lanes|=s,T=k.alternate,T!==null&&(T.lanes|=s),vu(k,s,i),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===i){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}zt(n,i,h.children,s),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,xi(i,s),h=pn(h),c=c(h),i.flags|=1,zt(n,i,c,s),i.child;case 14:return c=i.type,h=bn(c,i.pendingProps),h=bn(c.type,h),xh(n,i,c,h,s);case 15:return vh(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),ss(n,i),i.tag=1,Bt(c)?(n=!0,Vl(i)):n=!1,xi(i,s),ch(i,c,h),_u(i,c,h,s),Mu(null,i,c,!0,n,s);case 19:return Th(n,i,s);case 22:return wh(n,i,s)}throw Error(r(156,i.tag))};function Yh(n,i){return If(n,i)}function Aw(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(n,i,s,c){return new Aw(n,i,s,c)}function oc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Lw(n){if(typeof n=="function")return oc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===se)return 11;if(n===B)return 14}return 2}function xr(n,i){var s=n.alternate;return s===null?(s=gn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function xs(n,i,s,c,h,x){var k=2;if(c=n,typeof n=="function")oc(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case q:return Vr(s.children,h,x,i);case K:k=8,h|=8;break;case le:return n=gn(12,s,i,h|2),n.elementType=le,n.lanes=x,n;case oe:return n=gn(13,s,i,h),n.elementType=oe,n.lanes=x,n;case re:return n=gn(19,s,i,h),n.elementType=re,n.lanes=x,n;case ue:return vs(s,h,x,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case D:k=10;break e;case ne:k=9;break e;case se:k=11;break e;case B:k=14;break e;case ae:k=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=gn(k,s,i,h),i.elementType=n,i.type=c,i.lanes=x,i}function Vr(n,i,s,c){return n=gn(7,n,c,i),n.lanes=s,n}function vs(n,i,s,c){return n=gn(22,n,c,i),n.elementType=ue,n.lanes=s,n.stateNode={isHidden:!1},n}function lc(n,i,s){return n=gn(6,n,null,i),n.lanes=s,n}function sc(n,i,s){return i=gn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function $w(n,i,s,c,h){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function ac(n,i,s,c,h,x,k,T,$){return n=new $w(n,i,s,T,$),i===1?(i=1,x===!0&&(i|=8)):i=0,x=gn(3,null,null,i),n.current=x,x.stateNode=n,x.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(x),n}function _w(n,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:c==null?null:""+c,children:n,containerInfo:i,implementation:s}}function Xh(n){if(!n)return ur;n=n._reactInternals;e:{if(Pr(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Bt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var s=n.type;if(Bt(s))return jp(n,s,i)}return i}function Zh(n,i,s,c,h,x,k,T,$){return n=ac(s,c,!0,n,h,x,k,T,$),n.context=Xh(null),s=n.current,c=Dt(),h=gr(s),x=Kn(c,h),x.callback=i??null,fr(s,x,h),n.current.lanes=h,oo(n,h,c),Ht(n,c),n}function ws(n,i,s,c){var h=i.current,x=Dt(),k=gr(h);return s=Xh(s),i.context===null?i.context=s:i.pendingContext=s,i=Kn(x,k),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=fr(h,i,k),n!==null&&(jn(n,h,k,x),Yl(n,h,k)),k}function ks(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function em(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function uc(n,i){em(n,i),(n=n.alternate)&&em(n,i)}function zw(){return null}var tm=typeof reportError=="function"?reportError:function(n){console.error(n)};function cc(n){this._internalRoot=n}Ss.prototype.render=cc.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));ws(n,i,null,null)},Ss.prototype.unmount=cc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Fr(function(){ws(null,n,null,null)}),i[Hn]=null}};function Ss(n){this._internalRoot=n}Ss.prototype.unstable_scheduleHydration=function(n){if(n){var i=Of();n={blockedOn:null,target:n,priority:i};for(var s=0;s<ir.length&&i!==0&&i<ir[s].priority;s++);ir.splice(s,0,n),s===0&&Bf(n)}};function dc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function bs(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function nm(){}function Dw(n,i,s,c,h){if(h){if(typeof c=="function"){var x=c;c=function(){var U=ks(k);x.call(U)}}var k=Zh(i,c,n,0,null,!1,!1,"",nm);return n._reactRootContainer=k,n[Hn]=k.current,wo(n.nodeType===8?n.parentNode:n),Fr(),k}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var T=c;c=function(){var U=ks($);T.call(U)}}var $=ac(n,0,!1,null,null,!1,!1,"",nm);return n._reactRootContainer=$,n[Hn]=$.current,wo(n.nodeType===8?n.parentNode:n),Fr(function(){ws(i,$,s,c)}),$}function Cs(n,i,s,c,h){var x=s._reactRootContainer;if(x){var k=x;if(typeof h=="function"){var T=h;h=function(){var $=ks(k);T.call($)}}ws(i,k,n,h)}else k=Dw(s,i,n,h,c);return ks(k)}zf=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var s=io(i.pendingLanes);s!==0&&(_a(i,s|1),Ht(i,ot()),(Oe&6)===0&&(bi=ot()+500,cr()))}break;case 13:Fr(function(){var c=Jn(n,1);if(c!==null){var h=Dt();jn(c,n,1,h)}}),uc(n,1)}},za=function(n){if(n.tag===13){var i=Jn(n,134217728);if(i!==null){var s=Dt();jn(i,n,134217728,s)}uc(n,134217728)}},Df=function(n){if(n.tag===13){var i=gr(n),s=Jn(n,i);if(s!==null){var c=Dt();jn(s,n,i,c)}uc(n,i)}},Of=function(){return Be},Mf=function(n,i){var s=Be;try{return Be=n,i()}finally{Be=s}},Ra=function(n,i,s){switch(i){case"input":if(st(n,s),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==n&&c.form===n.form){var h=Bl(c);if(!h)throw Error(r(90));Ie(c),st(c,h)}}}break;case"textarea":yl(n,s);break;case"select":i=s.value,i!=null&&it(n,!!s.multiple,i,!1)}},bf=nc,Cf=Fr;var Ow={usingClientEntryPoint:!1,Events:[bo,ci,Bl,kf,Sf,nc]},Do={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mw={bundleType:Do.bundleType,version:Do.version,rendererPackageName:Do.rendererPackageName,rendererConfig:Do.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Rf(n),n===null?null:n.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||zw,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 Es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Es.isDisabled&&Es.supportsFiber)try{Sl=Es.inject(Mw),Ln=Es}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ow,qt.createPortal=function(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dc(i))throw Error(r(200));return _w(n,i,null,s)},qt.createRoot=function(n,i){if(!dc(n))throw Error(r(299));var s=!1,c="",h=tm;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=ac(n,1,!1,null,null,s,!1,c,h),n[Hn]=i.current,wo(n.nodeType===8?n.parentNode:n),new cc(i)},qt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Rf(i),n=n===null?null:n.stateNode,n},qt.flushSync=function(n){return Fr(n)},qt.hydrate=function(n,i,s){if(!bs(i))throw Error(r(200));return Cs(null,n,i,!0,s)},qt.hydrateRoot=function(n,i,s){if(!dc(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,x="",k=tm;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),i=Zh(i,null,n,1,s??null,h,!1,x,k),n[Hn]=i.current,wo(n),c)for(n=0;n<c.length;n++)s=c[n],h=s._getVersion,h=h(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,h]:i.mutableSourceEagerHydrationData.push(s,h);return new Ss(i)},qt.render=function(n,i,s){if(!bs(i))throw Error(r(200));return Cs(null,n,i,!1,s)},qt.unmountComponentAtNode=function(n){if(!bs(n))throw Error(r(40));return n._reactRootContainer?(Fr(function(){Cs(null,null,n,!1,function(){n._reactRootContainer=null,n[Hn]=null})}),!0):!1},qt.unstable_batchedUpdates=nc,qt.unstable_renderSubtreeIntoContainer=function(n,i,s,c){if(!bs(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Cs(n,i,s,!1,c)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var am;function Gw(){if(am)return pc.exports;am=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pc.exports=Ww(),pc.exports}var um;function Jw(){if(um)return js;um=1;var e=Gw();return js.createRoot=e.createRoot,js.hydrateRoot=e.hydrateRoot,js}var Kw=Jw(),gc={exports:{}},Mo={};/**
|
|
32
|
+
`+x.stack}return{value:n,source:i,stack:h,digest:null}}function zu(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function Du(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var gw=typeof WeakMap=="function"?WeakMap:Map;function ph(n,i,s){s=Kn(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){fs||(fs=!0,Xu=c),Du(n,i)},s}function hh(n,i,s){s=Kn(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;s.payload=function(){return c(h)},s.callback=function(){Du(n,i)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(s.callback=function(){Du(n,i),typeof c!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),s}function mh(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new gw;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(s)||(h.add(s),n=Nw.bind(null,n,i,s),i.then(n,n))}function gh(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function yh(n,i,s,c,h){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=Kn(-1,1),i.tag=2,fr(s,i,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var yw=F.ReactCurrentOwner,Ut=!1;function zt(n,i,s,c){i.child=n===null?Dp(i,null,s,c):gi(i,n.child,s,c)}function xh(n,i,s,c,h){s=s.render;var x=i.ref;return xi(i,h),c=Ru(n,i,s,c,x,h),s=Iu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&s&&du(i),i.flags|=1,zt(n,i,c,h),i.child)}function vh(n,i,s,c,h){if(n===null){var x=s.type;return typeof x=="function"&&!oc(x)&&x.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=x,wh(n,i,x,c,h)):(n=xs(s.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(x=n.child,(n.lanes&h)===0){var k=x.memoizedProps;if(s=s.compare,s=s!==null?s:yo,s(k,c)&&n.ref===i.ref)return Qn(n,i,h)}return i.flags|=1,n=xr(x,c),n.ref=i.ref,n.return=i,i.child=n}function wh(n,i,s,c,h){if(n!==null){var x=n.memoizedProps;if(yo(x,c)&&n.ref===i.ref)if(Ut=!1,i.pendingProps=c=x,(n.lanes&h)!==0)(n.flags&131072)!==0&&(Ut=!0);else return i.lanes=n.lanes,Qn(n,i,h)}return Ou(n,i,s,c,h)}function kh(n,i,s){var c=i.pendingProps,h=c.children,x=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(Si,en),en|=s;else{if((s&1073741824)===0)return n=x!==null?x.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,qe(Si,en),en|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:s,qe(Si,en),en|=c}else x!==null?(c=x.baseLanes|s,i.memoizedState=null):c=s,qe(Si,en),en|=c;return zt(n,i,h,s),i.child}function Sh(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Ou(n,i,s,c,h){var x=Bt(s)?Lr:jt.current;return x=fi(i,x),xi(i,h),s=Ru(n,i,s,c,x,h),c=Iu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&c&&du(i),i.flags|=1,zt(n,i,s,h),i.child)}function bh(n,i,s,c,h){if(Bt(s)){var x=!0;Vl(i)}else x=!1;if(xi(i,h),i.stateNode===null)ss(n,i),dh(i,s,c),_u(i,s,c,h),c=!0;else if(n===null){var k=i.stateNode,I=i.memoizedProps;k.props=I;var $=k.context,B=s.contextType;typeof B=="object"&&B!==null?B=pn(B):(B=Bt(s)?Lr:jt.current,B=fi(i,B));var Y=s.getDerivedStateFromProps,Z=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function";Z||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(I!==c||$!==B)&&fh(i,k,c,B),dr=!1;var Q=i.memoizedState;k.state=Q,Xl(i,c,k,h),$=i.memoizedState,I!==c||Q!==$||Mt.current||dr?(typeof Y=="function"&&($u(i,s,Y,c),$=i.memoizedState),(I=dr||ch(i,s,I,c,Q,$,B))?(Z||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=$),k.props=c,k.state=$,k.context=B,c=I):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{k=i.stateNode,Fp(n,i),I=i.memoizedProps,B=i.type===i.elementType?I:bn(i.type,I),k.props=B,Z=i.pendingProps,Q=k.context,$=s.contextType,typeof $=="object"&&$!==null?$=pn($):($=Bt(s)?Lr:jt.current,$=fi(i,$));var ce=s.getDerivedStateFromProps;(Y=typeof ce=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(I!==Z||Q!==$)&&fh(i,k,c,$),dr=!1,Q=i.memoizedState,k.state=Q,Xl(i,c,k,h);var pe=i.memoizedState;I!==Z||Q!==pe||Mt.current||dr?(typeof ce=="function"&&($u(i,s,ce,c),pe=i.memoizedState),(B=dr||ch(i,s,B,c,Q,pe,$)||!1)?(Y||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(c,pe,$),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(c,pe,$)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||I===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||I===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=pe),k.props=c,k.state=pe,k.context=$,c=B):(typeof k.componentDidUpdate!="function"||I===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||I===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),c=!1)}return Fu(n,i,s,c,x,h)}function Fu(n,i,s,c,h,x){Sh(n,i);var k=(i.flags&128)!==0;if(!c&&!k)return h&&Rp(i,s,!1),Qn(n,i,x);c=i.stateNode,yw.current=i;var I=k&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&k?(i.child=gi(i,n.child,null,x),i.child=gi(i,null,I,x)):zt(n,i,I,x),i.memoizedState=c.state,h&&Rp(i,s,!0),i.child}function Ch(n){var i=n.stateNode;i.pendingContext?jp(n,i.pendingContext,i.pendingContext!==i.context):i.context&&jp(n,i.context,!1),Su(n,i.containerInfo)}function Eh(n,i,s,c,h){return mi(),mu(h),i.flags|=256,zt(n,i,s,c),i.child}var Mu={dehydrated:null,treeContext:null,retryLane:0};function Bu(n){return{baseLanes:n,cachePool:null,transitions:null}}function jh(n,i,s){var c=i.pendingProps,h=et.current,x=!1,k=(i.flags&128)!==0,I;if((I=k)||(I=n!==null&&n.memoizedState===null?!1:(h&2)!==0),I?(x=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),qe(et,h&1),n===null)return hu(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=c.children,n=c.fallback,x?(c=i.mode,x=i.child,k={mode:"hidden",children:k},(c&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=vs(k,c,0,null),n=Vr(n,c,s,null),x.return=i,n.return=i,x.sibling=n,i.child=x,i.child.memoizedState=Bu(s),i.memoizedState=Mu,n):Uu(i,k));if(h=n.memoizedState,h!==null&&(I=h.dehydrated,I!==null))return xw(n,i,k,c,I,h,s);if(x){x=c.fallback,k=i.mode,h=n.child,I=h.sibling;var $={mode:"hidden",children:c.children};return(k&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=$,i.deletions=null):(c=xr(h,$),c.subtreeFlags=h.subtreeFlags&14680064),I!==null?x=xr(I,x):(x=Vr(x,k,s,null),x.flags|=2),x.return=i,c.return=i,c.sibling=x,i.child=c,c=x,x=i.child,k=n.child.memoizedState,k=k===null?Bu(s):{baseLanes:k.baseLanes|s,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~s,i.memoizedState=Mu,c}return x=n.child,n=x.sibling,c=xr(x,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,n!==null&&(s=i.deletions,s===null?(i.deletions=[n],i.flags|=16):s.push(n)),i.child=c,i.memoizedState=null,c}function Uu(n,i){return i=vs({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function ls(n,i,s,c){return c!==null&&mu(c),gi(i,n.child,null,s),n=Uu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function xw(n,i,s,c,h,x,k){if(s)return i.flags&256?(i.flags&=-257,c=zu(Error(r(422))),ls(n,i,k,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(x=c.fallback,h=i.mode,c=vs({mode:"visible",children:c.children},h,0,null),x=Vr(x,h,k,null),x.flags|=2,c.return=i,x.return=i,c.sibling=x,i.child=c,(i.mode&1)!==0&&gi(i,n.child,null,k),i.child.memoizedState=Bu(k),i.memoizedState=Mu,x);if((i.mode&1)===0)return ls(n,i,k,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var I=c.dgst;return c=I,x=Error(r(419)),c=zu(x,c,void 0),ls(n,i,k,c)}if(I=(k&n.childLanes)!==0,Ut||I){if(c=ht,c!==null){switch(k&-k){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|k))!==0?0:h,h!==0&&h!==x.retryLane&&(x.retryLane=h,Jn(n,h),jn(c,n,h,-1))}return ic(),c=zu(Error(r(421))),ls(n,i,k,c)}return h.data==="$?"?(i.flags|=128,i.child=n.child,i=Pw.bind(null,n),h._reactRetry=i,null):(n=x.treeContext,Zt=sr(h.nextSibling),Xt=i,Xe=!0,Sn=null,n!==null&&(dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,Wn=n.id,Gn=n.overflow,$r=i),i=Uu(i,c.children),i.flags|=4096,i)}function Th(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),vu(n.return,i,s)}function Vu(n,i,s,c,h){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=s,x.tailMode=h)}function Rh(n,i,s){var c=i.pendingProps,h=c.revealOrder,x=c.tail;if(zt(n,i,c.children,s),c=et.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Th(n,s,i);else if(n.tag===19)Th(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(qe(et,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(s=i.child,h=null;s!==null;)n=s.alternate,n!==null&&Zl(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=i.child,i.child=null):(h=s.sibling,s.sibling=null),Vu(i,!1,h,s,x);break;case"backwards":for(s=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&Zl(n)===null){i.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}Vu(i,!0,s,null,x);break;case"together":Vu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ss(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Qn(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),Fr|=i.lanes,(s&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,s=xr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=xr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function vw(n,i,s){switch(i.tag){case 3:Ch(i),mi();break;case 5:Up(i);break;case 1:Bt(i.type)&&Vl(i);break;case 4:Su(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;qe(Kl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(qe(et,et.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?jh(n,i,s):(qe(et,et.current&1),n=Qn(n,i,s),n!==null?n.sibling:null);qe(et,et.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(n.flags&128)!==0){if(c)return Rh(n,i,s);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),qe(et,et.current),c)break;return null;case 22:case 23:return i.lanes=0,kh(n,i,s)}return Qn(n,i,s)}var Ih,Hu,Nh,Ph;Ih=function(n,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Hu=function(){},Nh=function(n,i,s,c){var h=n.memoizedProps;if(h!==c){n=i.stateNode,Dr(_n.current);var x=null;switch(s){case"input":h=Pn(n,h),c=Pn(n,c),x=[];break;case"select":h=E({},h,{value:void 0}),c=E({},c,{value:void 0}),x=[];break;case"textarea":h=Ft(n,h),c=Ft(n,c),x=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Ml)}wt(s,c);var k;s=null;for(B in h)if(!c.hasOwnProperty(B)&&h.hasOwnProperty(B)&&h[B]!=null)if(B==="style"){var I=h[B];for(k in I)I.hasOwnProperty(k)&&(s||(s={}),s[k]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(l.hasOwnProperty(B)?x||(x=[]):(x=x||[]).push(B,null));for(B in c){var $=c[B];if(I=h!=null?h[B]:void 0,c.hasOwnProperty(B)&&$!==I&&($!=null||I!=null))if(B==="style")if(I){for(k in I)!I.hasOwnProperty(k)||$&&$.hasOwnProperty(k)||(s||(s={}),s[k]="");for(k in $)$.hasOwnProperty(k)&&I[k]!==$[k]&&(s||(s={}),s[k]=$[k])}else s||(x||(x=[]),x.push(B,s)),s=$;else B==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,I=I?I.__html:void 0,$!=null&&I!==$&&(x=x||[]).push(B,$)):B==="children"?typeof $!="string"&&typeof $!="number"||(x=x||[]).push(B,""+$):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(l.hasOwnProperty(B)?($!=null&&B==="onScroll"&&Je("scroll",n),x||I===$||(x=[])):(x=x||[]).push(B,$))}s&&(x=x||[]).push("style",s);var B=x;(i.updateQueue=B)&&(i.flags|=4)}},Ph=function(n,i,s,c){s!==c&&(i.flags|=4)};function Ao(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Rt(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(i)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=s,i}function ww(n,i,s){var c=i.pendingProps;switch(fu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(i),null;case 1:return Bt(i.type)&&Ul(),Rt(i),null;case 3:return c=i.stateNode,vi(),Ke(Mt),Ke(jt),Eu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Gl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sn!==null&&(tc(Sn),Sn=null))),Hu(n,i),Rt(i),null;case 5:bu(i);var h=Dr(To.current);if(s=i.type,n!==null&&i.stateNode!=null)Nh(n,i,s,c,h),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Rt(i),null}if(n=Dr(_n.current),Gl(i)){c=i.stateNode,s=i.type;var x=i.memoizedProps;switch(c[$n]=i,c[So]=x,n=(i.mode&1)!==0,s){case"dialog":Je("cancel",c),Je("close",c);break;case"iframe":case"object":case"embed":Je("load",c);break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],c);break;case"source":Je("error",c);break;case"img":case"image":case"link":Je("error",c),Je("load",c);break;case"details":Je("toggle",c);break;case"input":_t(c,x),Je("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!x.multiple},Je("invalid",c);break;case"textarea":un(c,x),Je("invalid",c)}wt(s,x),h=null;for(var k in x)if(x.hasOwnProperty(k)){var I=x[k];k==="children"?typeof I=="string"?c.textContent!==I&&(x.suppressHydrationWarning!==!0&&Fl(c.textContent,I,n),h=["children",I]):typeof I=="number"&&c.textContent!==""+I&&(x.suppressHydrationWarning!==!0&&Fl(c.textContent,I,n),h=["children",""+I]):l.hasOwnProperty(k)&&I!=null&&k==="onScroll"&&Je("scroll",c)}switch(s){case"input":Ct(c),Et(c,x,!0);break;case"textarea":Ct(c),xl(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=Ml)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{k=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=J(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=k.createElement(s,{is:c.is}):(n=k.createElement(s),s==="select"&&(k=n,c.multiple?k.multiple=!0:c.size&&(k.size=c.size))):n=k.createElementNS(n,s),n[$n]=i,n[So]=c,Ih(n,i,!1,!1),i.stateNode=n;e:{switch(k=An(s,c),s){case"dialog":Je("cancel",n),Je("close",n),h=c;break;case"iframe":case"object":case"embed":Je("load",n),h=c;break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],n);h=c;break;case"source":Je("error",n),h=c;break;case"img":case"image":case"link":Je("error",n),Je("load",n),h=c;break;case"details":Je("toggle",n),h=c;break;case"input":_t(n,c),h=Pn(n,c),Je("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=E({},c,{value:void 0}),Je("invalid",n);break;case"textarea":un(n,c),h=Ft(n,c),Je("invalid",n);break;default:h=c}wt(s,h),I=h;for(x in I)if(I.hasOwnProperty(x)){var $=I[x];x==="style"?er(n,$):x==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Pe(n,$)):x==="children"?typeof $=="string"?(s!=="textarea"||$!=="")&&De(n,$):typeof $=="number"&&De(n,""+$):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(l.hasOwnProperty(x)?$!=null&&x==="onScroll"&&Je("scroll",n):$!=null&&A(n,x,$,k))}switch(s){case"input":Ct(n),Et(n,c,!1);break;case"textarea":Ct(n),xl(n);break;case"option":c.value!=null&&n.setAttribute("value",""+ke(c.value));break;case"select":n.multiple=!!c.multiple,x=c.value,x!=null?it(n,!!c.multiple,x,!1):c.defaultValue!=null&&it(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Ml)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Rt(i),null;case 6:if(n&&i.stateNode!=null)Ph(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=Dr(To.current),Dr(_n.current),Gl(i)){if(c=i.stateNode,s=i.memoizedProps,c[$n]=i,(x=c.nodeValue!==s)&&(n=Xt,n!==null))switch(n.tag){case 3:Fl(c.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Fl(c.nodeValue,s,(n.mode&1)!==0)}x&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[$n]=i,i.stateNode=c}return Rt(i),null;case 13:if(Ke(et),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Xe&&Zt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)$p(),mi(),i.flags|=98560,x=!1;else if(x=Gl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!x)throw Error(r(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[$n]=i}else mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Rt(i),x=!1}else Sn!==null&&(tc(Sn),Sn=null),x=!0;if(!x)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(et.current&1)!==0?ft===0&&(ft=3):ic())),i.updateQueue!==null&&(i.flags|=4),Rt(i),null);case 4:return vi(),Hu(n,i),n===null&&wo(i.stateNode.containerInfo),Rt(i),null;case 10:return xu(i.type._context),Rt(i),null;case 17:return Bt(i.type)&&Ul(),Rt(i),null;case 19:if(Ke(et),x=i.memoizedState,x===null)return Rt(i),null;if(c=(i.flags&128)!==0,k=x.rendering,k===null)if(c)Ao(x,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(k=Zl(n),k!==null){for(i.flags|=128,Ao(x,!1),c=k.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)x=s,n=c,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,n=k.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return qe(et,et.current&1|2),i.child}n=n.sibling}x.tail!==null&&ot()>bi&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304)}else{if(!c)if(n=Zl(k),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ao(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Xe)return Rt(i),null}else 2*ot()-x.renderingStartTime>bi&&s!==1073741824&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304);x.isBackwards?(k.sibling=i.child,i.child=k):(s=x.last,s!==null?s.sibling=k:i.child=k,x.last=k)}return x.tail!==null?(i=x.tail,x.rendering=i,x.tail=i.sibling,x.renderingStartTime=ot(),i.sibling=null,s=et.current,qe(et,c?s&1|2:s&1),i):(Rt(i),null);case 22:case 23:return rc(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(en&1073741824)!==0&&(Rt(i),i.subtreeFlags&6&&(i.flags|=8192)):Rt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function kw(n,i){switch(fu(i),i.tag){case 1:return Bt(i.type)&&Ul(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return vi(),Ke(Mt),Ke(jt),Eu(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return bu(i),null;case 13:if(Ke(et),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));mi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Ke(et),null;case 4:return vi(),null;case 10:return xu(i.type._context),null;case 22:case 23:return rc(),null;case 24:return null;default:return null}}var as=!1,It=!1,Sw=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ki(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){rt(n,i,c)}else s.current=null}function qu(n,i,s){try{s()}catch(c){rt(n,i,c)}}var Ah=!1;function bw(n,i){if(ru=Rl,n=cp(),Ka(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{s.nodeType,x.nodeType}catch{s=null;break e}var k=0,I=-1,$=-1,B=0,Y=0,Z=n,Q=null;t:for(;;){for(var ce;Z!==s||h!==0&&Z.nodeType!==3||(I=k+h),Z!==x||c!==0&&Z.nodeType!==3||($=k+c),Z.nodeType===3&&(k+=Z.nodeValue.length),(ce=Z.firstChild)!==null;)Q=Z,Z=ce;for(;;){if(Z===n)break t;if(Q===s&&++B===h&&(I=k),Q===x&&++Y===c&&($=k),(ce=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=ce}s=I===-1||$===-1?null:{start:I,end:$}}else s=null}s=s||{start:0,end:0}}else s=null;for(iu={focusedElem:n,selectionRange:s},Rl=!1,fe=i;fe!==null;)if(i=fe,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,fe=n;else for(;fe!==null;){i=fe;try{var pe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var he=pe.memoizedProps,lt=pe.memoizedState,O=i.stateNode,z=O.getSnapshotBeforeUpdate(i.elementType===i.type?he:bn(i.type,he),lt);O.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var M=i.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(te){rt(i,i.return,te)}if(n=i.sibling,n!==null){n.return=i.return,fe=n;break}fe=i.return}return pe=Ah,Ah=!1,pe}function Lo(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var x=h.destroy;h.destroy=void 0,x!==void 0&&qu(i,s,x)}h=h.next}while(h!==c)}}function us(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function Wu(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function Lh(n){var i=n.alternate;i!==null&&(n.alternate=null,Lh(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[$n],delete i[So],delete i[au],delete i[ow],delete i[lw])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function $h(n){return n.tag===5||n.tag===3||n.tag===4}function _h(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||$h(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Gu(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ml));else if(c!==4&&(n=n.child,n!==null))for(Gu(n,i,s),n=n.sibling;n!==null;)Gu(n,i,s),n=n.sibling}function Ju(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Ju(n,i,s),n=n.sibling;n!==null;)Ju(n,i,s),n=n.sibling}var kt=null,Cn=!1;function pr(n,i,s){for(s=s.child;s!==null;)zh(n,i,s),s=s.sibling}function zh(n,i,s){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Sl,s)}catch{}switch(s.tag){case 5:It||ki(s,i);case 6:var c=kt,h=Cn;kt=null,pr(n,i,s),kt=c,Cn=h,kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):kt.removeChild(s.stateNode));break;case 18:kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?su(n.parentNode,s):n.nodeType===1&&su(n,s),co(n)):su(kt,s.stateNode));break;case 4:c=kt,h=Cn,kt=s.stateNode.containerInfo,Cn=!0,pr(n,i,s),kt=c,Cn=h;break;case 0:case 11:case 14:case 15:if(!It&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var x=h,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&qu(s,i,k),h=h.next}while(h!==c)}pr(n,i,s);break;case 1:if(!It&&(ki(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(I){rt(s,i,I)}pr(n,i,s);break;case 21:pr(n,i,s);break;case 22:s.mode&1?(It=(c=It)||s.memoizedState!==null,pr(n,i,s),It=c):pr(n,i,s);break;default:pr(n,i,s)}}function Dh(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new Sw),i.forEach(function(c){var h=Aw.bind(null,n,c);s.has(c)||(s.add(c),c.then(h,h))})}}function En(n,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];try{var x=n,k=i,I=k;e:for(;I!==null;){switch(I.tag){case 5:kt=I.stateNode,Cn=!1;break e;case 3:kt=I.stateNode.containerInfo,Cn=!0;break e;case 4:kt=I.stateNode.containerInfo,Cn=!0;break e}I=I.return}if(kt===null)throw Error(r(160));zh(x,k,h),kt=null,Cn=!1;var $=h.alternate;$!==null&&($.return=null),h.return=null}catch(B){rt(h,i,B)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Oh(i,n),i=i.sibling}function Oh(n,i){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(En(i,n),Dn(n),c&4){try{Lo(3,n,n.return),us(3,n)}catch(he){rt(n,n.return,he)}try{Lo(5,n,n.return)}catch(he){rt(n,n.return,he)}}break;case 1:En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return);break;case 5:if(En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return),n.flags&32){var h=n.stateNode;try{De(h,"")}catch(he){rt(n,n.return,he)}}if(c&4&&(h=n.stateNode,h!=null)){var x=n.memoizedProps,k=s!==null?s.memoizedProps:x,I=n.type,$=n.updateQueue;if(n.updateQueue=null,$!==null)try{I==="input"&&x.type==="radio"&&x.name!=null&&_e(h,x),An(I,k);var B=An(I,x);for(k=0;k<$.length;k+=2){var Y=$[k],Z=$[k+1];Y==="style"?er(h,Z):Y==="dangerouslySetInnerHTML"?Pe(h,Z):Y==="children"?De(h,Z):A(h,Y,Z,B)}switch(I){case"input":st(h,x);break;case"textarea":yl(h,x);break;case"select":var Q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!x.multiple;var ce=x.value;ce!=null?it(h,!!x.multiple,ce,!1):Q!==!!x.multiple&&(x.defaultValue!=null?it(h,!!x.multiple,x.defaultValue,!0):it(h,!!x.multiple,x.multiple?[]:"",!1))}h[So]=x}catch(he){rt(n,n.return,he)}}break;case 6:if(En(i,n),Dn(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,x=n.memoizedProps;try{h.nodeValue=x}catch(he){rt(n,n.return,he)}}break;case 3:if(En(i,n),Dn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{co(i.containerInfo)}catch(he){rt(n,n.return,he)}break;case 4:En(i,n),Dn(n);break;case 13:En(i,n),Dn(n),h=n.child,h.flags&8192&&(x=h.memoizedState!==null,h.stateNode.isHidden=x,!x||h.alternate!==null&&h.alternate.memoizedState!==null||(Yu=ot())),c&4&&Dh(n);break;case 22:if(Y=s!==null&&s.memoizedState!==null,n.mode&1?(It=(B=It)||Y,En(i,n),It=B):En(i,n),Dn(n),c&8192){if(B=n.memoizedState!==null,(n.stateNode.isHidden=B)&&!Y&&(n.mode&1)!==0)for(fe=n,Y=n.child;Y!==null;){for(Z=fe=Y;fe!==null;){switch(Q=fe,ce=Q.child,Q.tag){case 0:case 11:case 14:case 15:Lo(4,Q,Q.return);break;case 1:ki(Q,Q.return);var pe=Q.stateNode;if(typeof pe.componentWillUnmount=="function"){c=Q,s=Q.return;try{i=c,pe.props=i.memoizedProps,pe.state=i.memoizedState,pe.componentWillUnmount()}catch(he){rt(c,s,he)}}break;case 5:ki(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Bh(Z);continue}}ce!==null?(ce.return=Q,fe=ce):Bh(Z)}Y=Y.sibling}e:for(Y=null,Z=n;;){if(Z.tag===5){if(Y===null){Y=Z;try{h=Z.stateNode,B?(x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(I=Z.stateNode,$=Z.memoizedProps.style,k=$!=null&&$.hasOwnProperty("display")?$.display:null,I.style.display=cn("display",k))}catch(he){rt(n,n.return,he)}}}else if(Z.tag===6){if(Y===null)try{Z.stateNode.nodeValue=B?"":Z.memoizedProps}catch(he){rt(n,n.return,he)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===n)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===n)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===n)break e;Y===Z&&(Y=null),Z=Z.return}Y===Z&&(Y=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:En(i,n),Dn(n),c&4&&Dh(n);break;case 21:break;default:En(i,n),Dn(n)}}function Dn(n){var i=n.flags;if(i&2){try{e:{for(var s=n.return;s!==null;){if($h(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(De(h,""),c.flags&=-33);var x=_h(n);Ju(n,x,h);break;case 3:case 4:var k=c.stateNode.containerInfo,I=_h(n);Gu(n,I,k);break;default:throw Error(r(161))}}catch($){rt(n,n.return,$)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Cw(n,i,s){fe=n,Fh(n)}function Fh(n,i,s){for(var c=(n.mode&1)!==0;fe!==null;){var h=fe,x=h.child;if(h.tag===22&&c){var k=h.memoizedState!==null||as;if(!k){var I=h.alternate,$=I!==null&&I.memoizedState!==null||It;I=as;var B=It;if(as=k,(It=$)&&!B)for(fe=h;fe!==null;)k=fe,$=k.child,k.tag===22&&k.memoizedState!==null?Uh(h):$!==null?($.return=k,fe=$):Uh(h);for(;x!==null;)fe=x,Fh(x),x=x.sibling;fe=h,as=I,It=B}Mh(n)}else(h.subtreeFlags&8772)!==0&&x!==null?(x.return=h,fe=x):Mh(n)}}function Mh(n){for(;fe!==null;){var i=fe;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:It||us(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!It)if(s===null)c.componentDidMount();else{var h=i.elementType===i.type?s.memoizedProps:bn(i.type,s.memoizedProps);c.componentDidUpdate(h,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var x=i.updateQueue;x!==null&&Bp(i,x,c);break;case 3:var k=i.updateQueue;if(k!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}Bp(i,k,s)}break;case 5:var I=i.stateNode;if(s===null&&i.flags&4){s=I;var $=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&s.focus();break;case"img":$.src&&(s.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var B=i.alternate;if(B!==null){var Y=B.memoizedState;if(Y!==null){var Z=Y.dehydrated;Z!==null&&co(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}It||i.flags&512&&Wu(i)}catch(Q){rt(i,i.return,Q)}}if(i===n){fe=null;break}if(s=i.sibling,s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Bh(n){for(;fe!==null;){var i=fe;if(i===n){fe=null;break}var s=i.sibling;if(s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Uh(n){for(;fe!==null;){var i=fe;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{us(4,i)}catch($){rt(i,s,$)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch($){rt(i,h,$)}}var x=i.return;try{Wu(i)}catch($){rt(i,x,$)}break;case 5:var k=i.return;try{Wu(i)}catch($){rt(i,k,$)}}}catch($){rt(i,i.return,$)}if(i===n){fe=null;break}var I=i.sibling;if(I!==null){I.return=i.return,fe=I;break}fe=i.return}}var Ew=Math.ceil,cs=F.ReactCurrentDispatcher,Ku=F.ReactCurrentOwner,mn=F.ReactCurrentBatchConfig,Oe=0,ht=null,at=null,St=0,en=0,Si=ar(0),ft=0,$o=null,Fr=0,ds=0,Qu=0,_o=null,Vt=null,Yu=0,bi=1/0,Yn=null,fs=!1,Xu=null,hr=null,ps=!1,mr=null,hs=0,zo=0,Zu=null,ms=-1,gs=0;function Dt(){return(Oe&6)!==0?ot():ms!==-1?ms:ms=ot()}function gr(n){return(n.mode&1)===0?1:(Oe&2)!==0&&St!==0?St&-St:aw.transition!==null?(gs===0&&(gs=_f()),gs):(n=Be,n!==0||(n=window.event,n=n===void 0?16:Hf(n.type)),n)}function jn(n,i,s,c){if(50<zo)throw zo=0,Zu=null,Error(r(185));oo(n,s,c),((Oe&2)===0||n!==ht)&&(n===ht&&((Oe&2)===0&&(ds|=s),ft===4&&yr(n,St)),Ht(n,c),s===1&&Oe===0&&(i.mode&1)===0&&(bi=ot()+500,Hl&&cr()))}function Ht(n,i){var s=n.callbackNode;a1(n,i);var c=El(n,n===ht?St:0);if(c===0)s!==null&&Af(s),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(s!=null&&Af(s),i===1)n.tag===0?sw(Hh.bind(null,n)):Ip(Hh.bind(null,n)),rw(function(){(Oe&6)===0&&cr()}),s=null;else{switch(zf(c)){case 1:s=Aa;break;case 4:s=Lf;break;case 16:s=kl;break;case 536870912:s=$f;break;default:s=kl}s=Xh(s,Vh.bind(null,n))}n.callbackPriority=i,n.callbackNode=s}}function Vh(n,i){if(ms=-1,gs=0,(Oe&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Ci()&&n.callbackNode!==s)return null;var c=El(n,n===ht?St:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=ys(n,c);else{i=c;var h=Oe;Oe|=2;var x=Wh();(ht!==n||St!==i)&&(Yn=null,bi=ot()+500,Br(n,i));do try{Rw();break}catch(I){qh(n,I)}while(!0);yu(),cs.current=x,Oe=h,at!==null?i=0:(ht=null,St=0,i=ft)}if(i!==0){if(i===2&&(h=La(n),h!==0&&(c=h,i=ec(n,h))),i===1)throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;if(i===6)yr(n,c);else{if(h=n.current.alternate,(c&30)===0&&!jw(h)&&(i=ys(n,c),i===2&&(x=La(n),x!==0&&(c=x,i=ec(n,x))),i===1))throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;switch(n.finishedWork=h,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:Ur(n,Vt,Yn);break;case 3:if(yr(n,c),(c&130023424)===c&&(i=Yu+500-ot(),10<i)){if(El(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Dt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=lu(Ur.bind(null,n,Vt,Yn),i);break}Ur(n,Vt,Yn);break;case 4:if(yr(n,c),(c&4194240)===c)break;for(i=n.eventTimes,h=-1;0<c;){var k=31-wn(c);x=1<<k,k=i[k],k>h&&(h=k),c&=~x}if(c=h,c=ot()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Ew(c/1960))-c,10<c){n.timeoutHandle=lu(Ur.bind(null,n,Vt,Yn),c);break}Ur(n,Vt,Yn);break;case 5:Ur(n,Vt,Yn);break;default:throw Error(r(329))}}}return Ht(n,ot()),n.callbackNode===s?Vh.bind(null,n):null}function ec(n,i){var s=_o;return n.current.memoizedState.isDehydrated&&(Br(n,i).flags|=256),n=ys(n,i),n!==2&&(i=Vt,Vt=s,i!==null&&tc(i)),n}function tc(n){Vt===null?Vt=n:Vt.push.apply(Vt,n)}function jw(n){for(var i=n;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var h=s[c],x=h.getSnapshot;h=h.value;try{if(!kn(x(),h))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function yr(n,i){for(i&=~Qu,i&=~ds,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var s=31-wn(i),c=1<<s;n[s]=-1,i&=~c}}function Hh(n){if((Oe&6)!==0)throw Error(r(327));Ci();var i=El(n,0);if((i&1)===0)return Ht(n,ot()),null;var s=ys(n,i);if(n.tag!==0&&s===2){var c=La(n);c!==0&&(i=c,s=ec(n,c))}if(s===1)throw s=$o,Br(n,0),yr(n,i),Ht(n,ot()),s;if(s===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Ur(n,Vt,Yn),Ht(n,ot()),null}function nc(n,i){var s=Oe;Oe|=1;try{return n(i)}finally{Oe=s,Oe===0&&(bi=ot()+500,Hl&&cr())}}function Mr(n){mr!==null&&mr.tag===0&&(Oe&6)===0&&Ci();var i=Oe;Oe|=1;var s=mn.transition,c=Be;try{if(mn.transition=null,Be=1,n)return n()}finally{Be=c,mn.transition=s,Oe=i,(Oe&6)===0&&cr()}}function rc(){en=Si.current,Ke(Si)}function Br(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,nw(s)),at!==null)for(s=at.return;s!==null;){var c=s;switch(fu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ul();break;case 3:vi(),Ke(Mt),Ke(jt),Eu();break;case 5:bu(c);break;case 4:vi();break;case 13:Ke(et);break;case 19:Ke(et);break;case 10:xu(c.type._context);break;case 22:case 23:rc()}s=s.return}if(ht=n,at=n=xr(n.current,null),St=en=i,ft=0,$o=null,Qu=ds=Fr=0,Vt=_o=null,zr!==null){for(i=0;i<zr.length;i++)if(s=zr[i],c=s.interleaved,c!==null){s.interleaved=null;var h=c.next,x=s.pending;if(x!==null){var k=x.next;x.next=h,c.next=k}s.pending=c}zr=null}return n}function qh(n,i){do{var s=at;try{if(yu(),es.current=is,ts){for(var c=tt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}ts=!1}if(Or=0,pt=dt=tt=null,Ro=!1,Io=0,Ku.current=null,s===null||s.return===null){ft=1,$o=i,at=null;break}e:{var x=n,k=s.return,I=s,$=i;if(i=St,I.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var B=$,Y=I,Z=Y.tag;if((Y.mode&1)===0&&(Z===0||Z===11||Z===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ce=gh(k);if(ce!==null){ce.flags&=-257,yh(ce,k,I,x,i),ce.mode&1&&mh(x,B,i),i=ce,$=B;var pe=i.updateQueue;if(pe===null){var he=new Set;he.add($),i.updateQueue=he}else pe.add($);break e}else{if((i&1)===0){mh(x,B,i),ic();break e}$=Error(r(426))}}else if(Xe&&I.mode&1){var lt=gh(k);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),yh(lt,k,I,x,i),mu(wi($,I));break e}}x=$=wi($,I),ft!==4&&(ft=2),_o===null?_o=[x]:_o.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,i&=-i,x.lanes|=i;var O=ph(x,$,i);Mp(x,O);break e;case 1:I=$;var z=x.type,M=x.stateNode;if((x.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(hr===null||!hr.has(M)))){x.flags|=65536,i&=-i,x.lanes|=i;var te=hh(x,I,i);Mp(x,te);break e}}x=x.return}while(x!==null)}Jh(s)}catch(ge){i=ge,at===s&&s!==null&&(at=s=s.return);continue}break}while(!0)}function Wh(){var n=cs.current;return cs.current=is,n===null?is:n}function ic(){(ft===0||ft===3||ft===2)&&(ft=4),ht===null||(Fr&268435455)===0&&(ds&268435455)===0||yr(ht,St)}function ys(n,i){var s=Oe;Oe|=2;var c=Wh();(ht!==n||St!==i)&&(Yn=null,Br(n,i));do try{Tw();break}catch(h){qh(n,h)}while(!0);if(yu(),Oe=s,cs.current=c,at!==null)throw Error(r(261));return ht=null,St=0,ft}function Tw(){for(;at!==null;)Gh(at)}function Rw(){for(;at!==null&&!Z0();)Gh(at)}function Gh(n){var i=Yh(n.alternate,n,en);n.memoizedProps=n.pendingProps,i===null?Jh(n):at=i,Ku.current=null}function Jh(n){var i=n;do{var s=i.alternate;if(n=i.return,(i.flags&32768)===0){if(s=ww(s,i,en),s!==null){at=s;return}}else{if(s=kw(s,i),s!==null){s.flags&=32767,at=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ft=6,at=null;return}}if(i=i.sibling,i!==null){at=i;return}at=i=n}while(i!==null);ft===0&&(ft=5)}function Ur(n,i,s){var c=Be,h=mn.transition;try{mn.transition=null,Be=1,Iw(n,i,s,c)}finally{mn.transition=h,Be=c}return null}function Iw(n,i,s,c){do Ci();while(mr!==null);if((Oe&6)!==0)throw Error(r(327));s=n.finishedWork;var h=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var x=s.lanes|s.childLanes;if(u1(n,x),n===ht&&(at=ht=null,St=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ps||(ps=!0,Xh(kl,function(){return Ci(),null})),x=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||x){x=mn.transition,mn.transition=null;var k=Be;Be=1;var I=Oe;Oe|=4,Ku.current=null,bw(n,s),Oh(s,n),K1(iu),Rl=!!ru,iu=ru=null,n.current=s,Cw(s),e1(),Oe=I,Be=k,mn.transition=x}else n.current=s;if(ps&&(ps=!1,mr=n,hs=h),x=n.pendingLanes,x===0&&(hr=null),r1(s.stateNode),Ht(n,ot()),i!==null)for(c=n.onRecoverableError,s=0;s<i.length;s++)h=i[s],c(h.value,{componentStack:h.stack,digest:h.digest});if(fs)throw fs=!1,n=Xu,Xu=null,n;return(hs&1)!==0&&n.tag!==0&&Ci(),x=n.pendingLanes,(x&1)!==0?n===Zu?zo++:(zo=0,Zu=n):zo=0,cr(),null}function Ci(){if(mr!==null){var n=zf(hs),i=mn.transition,s=Be;try{if(mn.transition=null,Be=16>n?16:n,mr===null)var c=!1;else{if(n=mr,mr=null,hs=0,(Oe&6)!==0)throw Error(r(331));var h=Oe;for(Oe|=4,fe=n.current;fe!==null;){var x=fe,k=x.child;if((fe.flags&16)!==0){var I=x.deletions;if(I!==null){for(var $=0;$<I.length;$++){var B=I[$];for(fe=B;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:Lo(8,Y,x)}var Z=Y.child;if(Z!==null)Z.return=Y,fe=Z;else for(;fe!==null;){Y=fe;var Q=Y.sibling,ce=Y.return;if(Lh(Y),Y===B){fe=null;break}if(Q!==null){Q.return=ce,fe=Q;break}fe=ce}}}var pe=x.alternate;if(pe!==null){var he=pe.child;if(he!==null){pe.child=null;do{var lt=he.sibling;he.sibling=null,he=lt}while(he!==null)}}fe=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,fe=k;else e:for(;fe!==null;){if(x=fe,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Lo(9,x,x.return)}var O=x.sibling;if(O!==null){O.return=x.return,fe=O;break e}fe=x.return}}var z=n.current;for(fe=z;fe!==null;){k=fe;var M=k.child;if((k.subtreeFlags&2064)!==0&&M!==null)M.return=k,fe=M;else e:for(k=z;fe!==null;){if(I=fe,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:us(9,I)}}catch(ge){rt(I,I.return,ge)}if(I===k){fe=null;break e}var te=I.sibling;if(te!==null){te.return=I.return,fe=te;break e}fe=I.return}}if(Oe=h,cr(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Sl,n)}catch{}c=!0}return c}finally{Be=s,mn.transition=i}}return!1}function Kh(n,i,s){i=wi(s,i),i=ph(n,i,1),n=fr(n,i,1),i=Dt(),n!==null&&(oo(n,1,i),Ht(n,i))}function rt(n,i,s){if(n.tag===3)Kh(n,n,s);else for(;i!==null;){if(i.tag===3){Kh(i,n,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(hr===null||!hr.has(c))){n=wi(s,n),n=hh(i,n,1),i=fr(i,n,1),n=Dt(),i!==null&&(oo(i,1,n),Ht(i,n));break}}i=i.return}}function Nw(n,i,s){var c=n.pingCache;c!==null&&c.delete(i),i=Dt(),n.pingedLanes|=n.suspendedLanes&s,ht===n&&(St&s)===s&&(ft===4||ft===3&&(St&130023424)===St&&500>ot()-Yu?Br(n,0):Qu|=s),Ht(n,i)}function Qh(n,i){i===0&&((n.mode&1)===0?i=1:(i=Cl,Cl<<=1,(Cl&130023424)===0&&(Cl=4194304)));var s=Dt();n=Jn(n,i),n!==null&&(oo(n,i,s),Ht(n,s))}function Pw(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Qh(n,s)}function Aw(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Qh(n,s)}var Yh;Yh=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||Mt.current)Ut=!0;else{if((n.lanes&s)===0&&(i.flags&128)===0)return Ut=!1,vw(n,i,s);Ut=(n.flags&131072)!==0}else Ut=!1,Xe&&(i.flags&1048576)!==0&&Np(i,Wl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;ss(n,i),n=i.pendingProps;var h=fi(i,jt.current);xi(i,s),h=Ru(null,i,c,n,h,s);var x=Iu();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Bt(c)?(x=!0,Vl(i)):x=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ku(i),h.updater=os,i.stateNode=h,h._reactInternals=i,_u(i,c,n,s),i=Fu(null,i,c,!0,x,s)):(i.tag=0,Xe&&x&&du(i),zt(null,i,h,s),i=i.child),i;case 16:c=i.elementType;e:{switch(ss(n,i),n=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=$w(c),n=bn(c,n),h){case 0:i=Ou(null,i,c,n,s);break e;case 1:i=bh(null,i,c,n,s);break e;case 11:i=xh(null,i,c,n,s);break e;case 14:i=vh(null,i,c,bn(c.type,n),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Ou(n,i,c,h,s);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),bh(n,i,c,h,s);case 3:e:{if(Ch(i),n===null)throw Error(r(387));c=i.pendingProps,x=i.memoizedState,h=x.element,Fp(n,i),Xl(i,c,null,s);var k=i.memoizedState;if(c=k.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){h=wi(Error(r(423)),i),i=Eh(n,i,c,s,h);break e}else if(c!==h){h=wi(Error(r(424)),i),i=Eh(n,i,c,s,h);break e}else for(Zt=sr(i.stateNode.containerInfo.firstChild),Xt=i,Xe=!0,Sn=null,s=Dp(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(mi(),c===h){i=Qn(n,i,s);break e}zt(n,i,c,s)}i=i.child}return i;case 5:return Up(i),n===null&&hu(i),c=i.type,h=i.pendingProps,x=n!==null?n.memoizedProps:null,k=h.children,ou(c,h)?k=null:x!==null&&ou(c,x)&&(i.flags|=32),Sh(n,i),zt(n,i,k,s),i.child;case 6:return n===null&&hu(i),null;case 13:return jh(n,i,s);case 4:return Su(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=gi(i,null,c,s):zt(n,i,c,s),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),xh(n,i,c,h,s);case 7:return zt(n,i,i.pendingProps,s),i.child;case 8:return zt(n,i,i.pendingProps.children,s),i.child;case 12:return zt(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,x=i.memoizedProps,k=h.value,qe(Kl,c._currentValue),c._currentValue=k,x!==null)if(kn(x.value,k)){if(x.children===h.children&&!Mt.current){i=Qn(n,i,s);break e}}else for(x=i.child,x!==null&&(x.return=i);x!==null;){var I=x.dependencies;if(I!==null){k=x.child;for(var $=I.firstContext;$!==null;){if($.context===c){if(x.tag===1){$=Kn(-1,s&-s),$.tag=2;var B=x.updateQueue;if(B!==null){B=B.shared;var Y=B.pending;Y===null?$.next=$:($.next=Y.next,Y.next=$),B.pending=$}}x.lanes|=s,$=x.alternate,$!==null&&($.lanes|=s),vu(x.return,s,i),I.lanes|=s;break}$=$.next}}else if(x.tag===10)k=x.type===i.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(r(341));k.lanes|=s,I=k.alternate,I!==null&&(I.lanes|=s),vu(k,s,i),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===i){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}zt(n,i,h.children,s),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,xi(i,s),h=pn(h),c=c(h),i.flags|=1,zt(n,i,c,s),i.child;case 14:return c=i.type,h=bn(c,i.pendingProps),h=bn(c.type,h),vh(n,i,c,h,s);case 15:return wh(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),ss(n,i),i.tag=1,Bt(c)?(n=!0,Vl(i)):n=!1,xi(i,s),dh(i,c,h),_u(i,c,h,s),Fu(null,i,c,!0,n,s);case 19:return Rh(n,i,s);case 22:return kh(n,i,s)}throw Error(r(156,i.tag))};function Xh(n,i){return Pf(n,i)}function Lw(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(n,i,s,c){return new Lw(n,i,s,c)}function oc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function $w(n){if(typeof n=="function")return oc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===se)return 11;if(n===H)return 14}return 2}function xr(n,i){var s=n.alternate;return s===null?(s=gn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function xs(n,i,s,c,h,x){var k=2;if(c=n,typeof n=="function")oc(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case G:return Vr(s.children,h,x,i);case K:k=8,h|=8;break;case ie:return n=gn(12,s,i,h|2),n.elementType=ie,n.lanes=x,n;case le:return n=gn(13,s,i,h),n.elementType=le,n.lanes=x,n;case re:return n=gn(19,s,i,h),n.elementType=re,n.lanes=x,n;case ae:return vs(s,h,x,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case D:k=10;break e;case ne:k=9;break e;case se:k=11;break e;case H:k=14;break e;case de:k=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=gn(k,s,i,h),i.elementType=n,i.type=c,i.lanes=x,i}function Vr(n,i,s,c){return n=gn(7,n,c,i),n.lanes=s,n}function vs(n,i,s,c){return n=gn(22,n,c,i),n.elementType=ae,n.lanes=s,n.stateNode={isHidden:!1},n}function lc(n,i,s){return n=gn(6,n,null,i),n.lanes=s,n}function sc(n,i,s){return i=gn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function _w(n,i,s,c,h){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function ac(n,i,s,c,h,x,k,I,$){return n=new _w(n,i,s,I,$),i===1?(i=1,x===!0&&(i|=8)):i=0,x=gn(3,null,null,i),n.current=x,x.stateNode=n,x.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(x),n}function zw(n,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:n,containerInfo:i,implementation:s}}function Zh(n){if(!n)return ur;n=n._reactInternals;e:{if(Pr(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Bt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var s=n.type;if(Bt(s))return Tp(n,s,i)}return i}function em(n,i,s,c,h,x,k,I,$){return n=ac(s,c,!0,n,h,x,k,I,$),n.context=Zh(null),s=n.current,c=Dt(),h=gr(s),x=Kn(c,h),x.callback=i??null,fr(s,x,h),n.current.lanes=h,oo(n,h,c),Ht(n,c),n}function ws(n,i,s,c){var h=i.current,x=Dt(),k=gr(h);return s=Zh(s),i.context===null?i.context=s:i.pendingContext=s,i=Kn(x,k),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=fr(h,i,k),n!==null&&(jn(n,h,k,x),Yl(n,h,k)),k}function ks(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function tm(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function uc(n,i){tm(n,i),(n=n.alternate)&&tm(n,i)}function Dw(){return null}var nm=typeof reportError=="function"?reportError:function(n){console.error(n)};function cc(n){this._internalRoot=n}Ss.prototype.render=cc.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));ws(n,i,null,null)},Ss.prototype.unmount=cc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Mr(function(){ws(null,n,null,null)}),i[Hn]=null}};function Ss(n){this._internalRoot=n}Ss.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ff();n={blockedOn:null,target:n,priority:i};for(var s=0;s<ir.length&&i!==0&&i<ir[s].priority;s++);ir.splice(s,0,n),s===0&&Uf(n)}};function dc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function bs(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function rm(){}function Ow(n,i,s,c,h){if(h){if(typeof c=="function"){var x=c;c=function(){var B=ks(k);x.call(B)}}var k=em(i,c,n,0,null,!1,!1,"",rm);return n._reactRootContainer=k,n[Hn]=k.current,wo(n.nodeType===8?n.parentNode:n),Mr(),k}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var I=c;c=function(){var B=ks($);I.call(B)}}var $=ac(n,0,!1,null,null,!1,!1,"",rm);return n._reactRootContainer=$,n[Hn]=$.current,wo(n.nodeType===8?n.parentNode:n),Mr(function(){ws(i,$,s,c)}),$}function Cs(n,i,s,c,h){var x=s._reactRootContainer;if(x){var k=x;if(typeof h=="function"){var I=h;h=function(){var $=ks(k);I.call($)}}ws(i,k,n,h)}else k=Ow(s,i,n,h,c);return ks(k)}Df=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var s=io(i.pendingLanes);s!==0&&(_a(i,s|1),Ht(i,ot()),(Oe&6)===0&&(bi=ot()+500,cr()))}break;case 13:Mr(function(){var c=Jn(n,1);if(c!==null){var h=Dt();jn(c,n,1,h)}}),uc(n,1)}},za=function(n){if(n.tag===13){var i=Jn(n,134217728);if(i!==null){var s=Dt();jn(i,n,134217728,s)}uc(n,134217728)}},Of=function(n){if(n.tag===13){var i=gr(n),s=Jn(n,i);if(s!==null){var c=Dt();jn(s,n,i,c)}uc(n,i)}},Ff=function(){return Be},Mf=function(n,i){var s=Be;try{return Be=n,i()}finally{Be=s}},Ra=function(n,i,s){switch(i){case"input":if(st(n,s),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==n&&c.form===n.form){var h=Bl(c);if(!h)throw Error(r(90));Ne(c),st(c,h)}}}break;case"textarea":yl(n,s);break;case"select":i=s.value,i!=null&&it(n,!!s.multiple,i,!1)}},Cf=nc,Ef=Mr;var Fw={usingClientEntryPoint:!1,Events:[bo,ci,Bl,Sf,bf,nc]},Do={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mw={bundleType:Do.bundleType,version:Do.version,rendererPackageName:Do.rendererPackageName,rendererConfig:Do.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=If(n),n===null?null:n.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||Dw,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 Es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Es.isDisabled&&Es.supportsFiber)try{Sl=Es.inject(Mw),Ln=Es}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fw,qt.createPortal=function(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dc(i))throw Error(r(200));return zw(n,i,null,s)},qt.createRoot=function(n,i){if(!dc(n))throw Error(r(299));var s=!1,c="",h=nm;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=ac(n,1,!1,null,null,s,!1,c,h),n[Hn]=i.current,wo(n.nodeType===8?n.parentNode:n),new cc(i)},qt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=If(i),n=n===null?null:n.stateNode,n},qt.flushSync=function(n){return Mr(n)},qt.hydrate=function(n,i,s){if(!bs(i))throw Error(r(200));return Cs(null,n,i,!0,s)},qt.hydrateRoot=function(n,i,s){if(!dc(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,x="",k=nm;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),i=em(i,null,n,1,s??null,h,!1,x,k),n[Hn]=i.current,wo(n),c)for(n=0;n<c.length;n++)s=c[n],h=s._getVersion,h=h(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,h]:i.mutableSourceEagerHydrationData.push(s,h);return new Ss(i)},qt.render=function(n,i,s){if(!bs(i))throw Error(r(200));return Cs(null,n,i,!1,s)},qt.unmountComponentAtNode=function(n){if(!bs(n))throw Error(r(40));return n._reactRootContainer?(Mr(function(){Cs(null,null,n,!1,function(){n._reactRootContainer=null,n[Hn]=null})}),!0):!1},qt.unstable_batchedUpdates=nc,qt.unstable_renderSubtreeIntoContainer=function(n,i,s,c){if(!bs(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Cs(n,i,s,!1,c)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var um;function Jw(){if(um)return pc.exports;um=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pc.exports=Gw(),pc.exports}var cm;function Kw(){if(cm)return js;cm=1;var e=Jw();return js.createRoot=e.createRoot,js.hydrateRoot=e.hydrateRoot,js}var Qw=Kw(),gc={exports:{}},Fo={};/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.production.min.js
|
|
35
35
|
*
|
|
@@ -37,8 +37,8 @@ Error generating stack: `+x.message+`
|
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var cm;function Qw(){if(cm)return Mo;cm=1;var e=Id(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var m,g={},v=null,w=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(m in f)o.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(d&&d.defaultProps)for(m in f=d.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:d,key:v,ref:w,props:g,_owner:l.current}}return Mo.Fragment=r,Mo.jsx=u,Mo.jsxs=u,Mo}var dm;function Yw(){return dm||(dm=1,gc.exports=Qw()),gc.exports}var y=Yw(),yt=function(){return yt=Object.assign||function(t){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},yt.apply(this,arguments)};function Di(e,t,r){if(r||arguments.length===2)for(var o=0,l=t.length,a;o<l;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Qe="-ms-",Zo="-moz-",Fe="-webkit-",Zg="comm",ua="rule",Pd="decl",Xw="@import",ey="@keyframes",Zw="@layer",ty=Math.abs,Ad=String.fromCharCode,Gc=Object.assign;function ek(e,t){return gt(e,0)^45?(((t<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function ny(e){return e.trim()}function Xn(e,t){return(e=t.exec(e))?e[0]:e}function Ne(e,t,r){return e.replace(t,r)}function Os(e,t,r){return e.indexOf(t,r)}function gt(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return e.slice(t,r)}function Bn(e){return e.length}function ry(e){return e.length}function Yo(e,t){return t.push(e),e}function tk(e,t){return e.map(t).join("")}function fm(e,t){return e.filter(function(r){return!Xn(r,t)})}var ca=1,Mi=1,iy=0,xn=0,ct=0,Wi="";function da(e,t,r,o,l,a,u,d){return{value:e,root:t,parent:r,type:o,props:l,children:a,line:ca,column:Mi,length:u,return:"",siblings:d}}function Sr(e,t){return Gc(da("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ei(e){for(;e.root;)e=Sr(e.root,{children:[e]});Yo(e,e.siblings)}function nk(){return ct}function rk(){return ct=xn>0?gt(Wi,--xn):0,Mi--,ct===10&&(Mi=1,ca--),ct}function Tn(){return ct=xn<iy?gt(Wi,xn++):0,Mi++,ct===10&&(Mi=1,ca++),ct}function Jr(){return gt(Wi,xn)}function Ms(){return xn}function fa(e,t){return Oi(Wi,e,t)}function Jc(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 ik(e){return ca=Mi=1,iy=Bn(Wi=e),xn=0,[]}function ok(e){return Wi="",e}function yc(e){return ny(fa(xn-1,Kc(e===91?e+2:e===40?e+1:e)))}function lk(e){for(;(ct=Jr())&&ct<33;)Tn();return Jc(e)>2||Jc(ct)>3?"":" "}function sk(e,t){for(;--t&&Tn()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return fa(e,Ms()+(t<6&&Jr()==32&&Tn()==32))}function Kc(e){for(;Tn();)switch(ct){case e:return xn;case 34:case 39:e!==34&&e!==39&&Kc(ct);break;case 40:e===41&&Kc(e);break;case 92:Tn();break}return xn}function ak(e,t){for(;Tn()&&e+ct!==57;)if(e+ct===84&&Jr()===47)break;return"/*"+fa(t,xn-1)+"*"+Ad(e===47?e:Tn())}function uk(e){for(;!Jc(Jr());)Tn();return fa(e,xn)}function ck(e){return ok(Fs("",null,null,null,[""],e=ik(e),0,[0],e))}function Fs(e,t,r,o,l,a,u,d,f){for(var p=0,m=0,g=u,v=0,w=0,S=0,b=1,j=1,C=1,P=0,L="",M=l,H=a,A=o,q=L;j;)switch(S=P,P=Tn()){case 40:if(S!=108&>(q,g-1)==58){Os(q+=Ne(yc(P),"&","&\f"),"&\f",ty(p?d[p-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:q+=yc(P);break;case 9:case 10:case 13:case 32:q+=lk(S);break;case 92:q+=sk(Ms()-1,7);continue;case 47:switch(Jr()){case 42:case 47:Yo(dk(ak(Tn(),Ms()),t,r,f),f);break;default:q+="/"}break;case 123*b:d[p++]=Bn(q)*C;case 125*b:case 59:case 0:switch(P){case 0:case 125:j=0;case 59+m:C==-1&&(q=Ne(q,/\f/g,"")),w>0&&Bn(q)-g&&Yo(w>32?hm(q+";",o,r,g-1,f):hm(Ne(q," ","")+";",o,r,g-2,f),f);break;case 59:q+=";";default:if(Yo(A=pm(q,t,r,p,m,l,d,L,M=[],H=[],g,a),a),P===123)if(m===0)Fs(q,t,A,A,M,a,g,d,H);else switch(v===99&>(q,3)===110?100:v){case 100:case 108:case 109:case 115:Fs(e,A,A,o&&Yo(pm(e,A,A,0,0,l,d,L,l,M=[],g,H),H),l,H,g,d,o?M:H);break;default:Fs(q,A,A,A,[""],H,0,d,H)}}p=m=w=0,b=C=1,L=q="",g=u;break;case 58:g=1+Bn(q),w=S;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&rk()==125)continue}switch(q+=Ad(P),P*b){case 38:C=m>0?1:(q+="\f",-1);break;case 44:d[p++]=(Bn(q)-1)*C,C=1;break;case 64:Jr()===45&&(q+=yc(Tn())),v=Jr(),m=g=Bn(L=q+=uk(Ms())),P++;break;case 45:S===45&&Bn(q)==2&&(b=0)}}return a}function pm(e,t,r,o,l,a,u,d,f,p,m,g){for(var v=l-1,w=l===0?a:[""],S=ry(w),b=0,j=0,C=0;b<o;++b)for(var P=0,L=Oi(e,v+1,v=ty(j=u[b])),M=e;P<S;++P)(M=ny(j>0?w[P]+" "+L:Ne(L,/&\f/g,w[P])))&&(f[C++]=M);return da(e,t,r,l===0?ua:d,f,p,m,g)}function dk(e,t,r,o){return da(e,t,r,Zg,Ad(nk()),Oi(e,2,-2),0,o)}function hm(e,t,r,o,l){return da(e,t,r,Pd,Oi(e,0,o),Oi(e,o+1,-1),o,l)}function oy(e,t,r){switch(ek(e,t)){case 5103:return Fe+"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 Fe+e+e;case 4789:return Zo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Zo+e+Qe+e+e;case 5936:switch(gt(e,t+11)){case 114:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Qe+e+e;case 6165:return Fe+e+Qe+"flex-"+e+e;case 5187:return Fe+e+Ne(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return Fe+e+Qe+"flex-item-"+Ne(e,/flex-|-self/g,"")+(Xn(e,/flex-|baseline/)?"":Qe+"grid-row-"+Ne(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Qe+"flex-line-pack"+Ne(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Qe+Ne(e,"shrink","negative")+e;case 5292:return Fe+e+Qe+Ne(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ne(e,"-grow","")+Fe+e+Qe+Ne(e,"grow","positive")+e;case 4554:return Fe+Ne(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ne(Ne(Ne(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ne(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ne(Ne(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!Xn(e,/flex-|baseline/))return Qe+"grid-column-align"+Oi(e,t)+e;break;case 2592:case 3360:return Qe+Ne(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,l){return t=l,Xn(o.props,/grid-\w+-end/)})?~Os(e+(r=r[t].value),"span",0)?e:Qe+Ne(e,"-start","")+e+Qe+"grid-row-span:"+(~Os(r,"span",0)?Xn(r,/\d+/):+Xn(r,/\d+/)-+Xn(e,/\d+/))+";":Qe+Ne(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Xn(o.props,/grid-\w+-start/)})?e:Qe+Ne(Ne(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ne(e,/(.+)-inline(.+)/,Fe+"$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(Bn(e)-1-t>6)switch(gt(e,t+1)){case 109:if(gt(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Zo+(gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch",0)?oy(Ne(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ne(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,l,a,u,d,f,p){return Qe+l+":"+a+p+(u?Qe+l+"-span:"+(d?f:+f-+a)+p:"")+e});case 4949:if(gt(e,t+6)===121)return Ne(e,":",":"+Fe)+e;break;case 6444:switch(gt(e,gt(e,14)===45?18:11)){case 120:return Ne(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(gt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Qe+"$2box$3")+e;case 100:return Ne(e,":",":"+Qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ne(e,"scroll-","scroll-snap-")+e}return e}function Ks(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function fk(e,t,r,o){switch(e.type){case Zw:if(e.children.length)break;case Xw:case Pd:return e.return=e.return||e.value;case Zg:return"";case ey:return e.return=e.value+"{"+Ks(e.children,o)+"}";case ua:if(!Bn(e.value=e.props.join(",")))return""}return Bn(r=Ks(e.children,o))?e.return=e.value+"{"+r+"}":""}function pk(e){var t=ry(e);return function(r,o,l,a){for(var u="",d=0;d<t;d++)u+=e[d](r,o,l,a)||"";return u}}function hk(e){return function(t){t.root||(t=t.return)&&e(t)}}function mk(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Pd:e.return=oy(e.value,e.length,r);return;case ey:return Ks([Sr(e,{value:Ne(e.value,"@","@"+Fe)})],o);case ua:if(e.length)return tk(r=e.props,function(l){switch(Xn(l,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ei(Sr(e,{props:[Ne(l,/:(read-\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[l]})),Gc(e,{props:fm(r,o)});break;case"::placeholder":Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,":"+Fe+"input-$1")]})),Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,Qe+"input-$1")]})),Ei(Sr(e,{props:[l]})),Gc(e,{props:fm(r,o)});break}return""})}}var gk={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},nn={},Fi=typeof process<"u"&&nn!==void 0&&(nn.REACT_APP_SC_ATTR||nn.SC_ATTR)||"data-styled",ly="active",sy="data-styled-version",pa="6.1.13",Ld=`/*!sc*/
|
|
41
|
-
`,Qs=typeof window<"u"&&"HTMLElement"in window,yk=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&nn!==void 0&&nn.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nn.REACT_APP_SC_DISABLE_SPEEDY!==""?nn.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nn.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&nn!==void 0&&nn.SC_DISABLE_SPEEDY!==void 0&&nn.SC_DISABLE_SPEEDY!==""&&nn.SC_DISABLE_SPEEDY!=="false"&&nn.SC_DISABLE_SPEEDY),xk={},ha=Object.freeze([]),Bi=Object.freeze({});function ay(e,t,r){return r===void 0&&(r=Bi),e.theme!==r.theme&&e.theme||t||r.theme}var uy=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"]),vk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wk=/(^-|-$)/g;function mm(e){return e.replace(vk,"-").replace(wk,"")}var kk=/(a)(d)/gi,Ts=52,gm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qc(e){var t,r="";for(t=Math.abs(e);t>Ts;t=t/Ts|0)r=gm(t%Ts)+r;return(gm(t%Ts)+r).replace(kk,"$1-$2")}var xc,cy=5381,Ii=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},dy=function(e){return Ii(cy,e)};function $d(e){return Qc(dy(e)>>>0)}function Sk(e){return e.displayName||e.name||"Component"}function vc(e){return typeof e=="string"&&!0}var fy=typeof Symbol=="function"&&Symbol.for,py=fy?Symbol.for("react.memo"):60115,bk=fy?Symbol.for("react.forward_ref"):60112,Ck={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ek={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jk=((xc={})[bk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xc[py]=hy,xc);function ym(e){return("type"in(t=e)&&t.type.$$typeof)===py?hy:"$$typeof"in e?jk[e.$$typeof]:Ck;var t}var Tk=Object.defineProperty,Rk=Object.getOwnPropertyNames,xm=Object.getOwnPropertySymbols,Nk=Object.getOwnPropertyDescriptor,Ik=Object.getPrototypeOf,vm=Object.prototype;function my(e,t,r){if(typeof t!="string"){if(vm){var o=Ik(t);o&&o!==vm&&my(e,o,r)}var l=Rk(t);xm&&(l=l.concat(xm(t)));for(var a=ym(e),u=ym(t),d=0;d<l.length;++d){var f=l[d];if(!(f in Ek||r&&r[f]||u&&f in u||a&&f in a)){var p=Nk(t,f);try{Tk(e,f,p)}catch{}}}}return e}function Qr(e){return typeof e=="function"}function _d(e){return typeof e=="object"&&"styledComponentId"in e}function Wr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ys(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function nl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Yc(e,t,r){if(r===void 0&&(r=!1),!r&&!nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=Yc(e[o],t[o]);else if(nl(t))for(var o in t)e[o]=Yc(e[o],t[o]);return e}function zd(e,t){Object.defineProperty(e,"toString",{value:t})}function Er(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 Pk=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,l=o.length,a=l;t>=a;)if((a<<=1)<0)throw Er(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var u=l;u<a;u++)this.groupSizes[u]=0}for(var d=this.indexOfGroup(t+1),f=(u=0,r.length);u<f;u++)this.tag.insertRule(d,r[u])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),l=o+r;this.groupSizes[t]=0;for(var a=o;a<l;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],l=this.indexOfGroup(t),a=l+o,u=l;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(Ld);return r},e}(),Bs=new Map,Xs=new Map,Us=1,Rs=function(e){if(Bs.has(e))return Bs.get(e);for(;Xs.has(Us);)Us++;var t=Us++;return Bs.set(e,t),Xs.set(t,e),t},Ak=function(e,t){Us=t+1,Bs.set(e,t),Xs.set(t,e)},Lk="style[".concat(Fi,"][").concat(sy,'="').concat(pa,'"]'),$k=new RegExp("^".concat(Fi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),_k=function(e,t,r){for(var o,l=r.split(","),a=0,u=l.length;a<u;a++)(o=l[a])&&e.registerName(t,o)},zk=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ld),l=[],a=0,u=o.length;a<u;a++){var d=o[a].trim();if(d){var f=d.match($k);if(f){var p=0|parseInt(f[1],10),m=f[2];p!==0&&(Ak(m,p),_k(e,m,f[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(d)}}},wm=function(e){for(var t=document.querySelectorAll(Lk),r=0,o=t.length;r<o;r++){var l=t[r];l&&l.getAttribute(Fi)!==ly&&(zk(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function Dk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gy=function(e){var t=document.head,r=e||t,o=document.createElement("style"),l=function(d){var f=Array.from(d.querySelectorAll("style[".concat(Fi,"]")));return f[f.length-1]}(r),a=l!==void 0?l.nextSibling:null;o.setAttribute(Fi,ly),o.setAttribute(sy,pa);var u=Dk();return u&&o.setAttribute("nonce",u),r.insertBefore(o,a),o},Ok=function(){function e(t){this.element=gy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,a=o.length;l<a;l++){var u=o[l];if(u.ownerNode===r)return u}throw Er(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Mk=function(){function e(t){this.element=gy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,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}(),Fk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),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}(),km=Qs,Bk={isServer:!Qs,useCSSOMInjection:!yk},Zs=function(){function e(t,r,o){t===void 0&&(t=Bi),r===void 0&&(r={});var l=this;this.options=yt(yt({},Bk),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Qs&&km&&(km=!1,wm(this)),zd(this,function(){return function(a){for(var u=a.getTag(),d=u.length,f="",p=function(g){var v=function(C){return Xs.get(C)}(g);if(v===void 0)return"continue";var w=a.names.get(v),S=u.getGroup(g);if(w===void 0||!w.size||S.length===0)return"continue";var b="".concat(Fi,".g").concat(g,'[id="').concat(v,'"]'),j="";w!==void 0&&w.forEach(function(C){C.length>0&&(j+="".concat(C,","))}),f+="".concat(S).concat(b,'{content:"').concat(j,'"}').concat(Ld)},m=0;m<d;m++)p(m);return f}(l)})}return e.registerId=function(t){return Rs(t)},e.prototype.rehydrate=function(){!this.server&&Qs&&wm(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(yt(yt({},this.options),t),this.gs,r&&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(r){var o=r.useCSSOMInjection,l=r.target;return r.isServer?new Fk(l):o?new Ok(l):new Mk(l)}(this.options),new Pk(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Rs(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(Rs(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Rs(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Uk=/&/g,Vk=/^\s*\/\/.*$/gm;function yy(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=yy(r.children,t)),r})}function Hk(e){var t,r,o,l=Bi,a=l.options,u=a===void 0?Bi:a,d=l.plugins,f=d===void 0?ha:d,p=function(v,w,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):v},m=f.slice();m.push(function(v){v.type===ua&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Uk,r).replace(o,p))}),u.prefix&&m.push(mk),m.push(fk);var g=function(v,w,S,b){w===void 0&&(w=""),S===void 0&&(S=""),b===void 0&&(b="&"),t=b,r=w,o=new RegExp("\\".concat(r,"\\b"),"g");var j=v.replace(Vk,""),C=ck(S||w?"".concat(S," ").concat(w," { ").concat(j," }"):j);u.namespace&&(C=yy(C,u.namespace));var P=[];return Ks(C,pk(m.concat(hk(function(L){return P.push(L)})))),P};return g.hash=f.length?f.reduce(function(v,w){return w.name||Er(15),Ii(v,w.name)},cy).toString():"",g}var qk=new Zs,Xc=Hk(),xy=Pt.createContext({shouldForwardProp:void 0,styleSheet:qk,stylis:Xc});xy.Consumer;Pt.createContext(void 0);function Zc(){return I.useContext(xy)}var vy=function(){function e(t,r){var o=this;this.inject=function(l,a){a===void 0&&(a=Xc);var u=o.name+a.hash;l.hasNameForId(o.id,u)||l.insertRules(o.id,u,a(o.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,zd(this,function(){throw Er(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Xc),this.name+t.hash},e}(),Wk=function(e){return e>="A"&&e<="Z"};function Sm(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;Wk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var wy=function(e){return e==null||e===!1||e===""},ky=function(e){var t,r,o=[];for(var l in e){var a=e[l];e.hasOwnProperty(l)&&!wy(a)&&(Array.isArray(a)&&a.isCss||Qr(a)?o.push("".concat(Sm(l),":"),a,";"):nl(a)?o.push.apply(o,Di(Di(["".concat(l," {")],ky(a),!1),["}"],!1)):o.push("".concat(Sm(l),": ").concat((t=l,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in gk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function br(e,t,r,o){if(wy(e))return[];if(_d(e))return[".".concat(e.styledComponentId)];if(Qr(e)){if(!Qr(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var l=e(t);return br(l,t,r,o)}var a;return e instanceof vy?r?(e.inject(r,o),[e.getName(o)]):[e]:nl(e)?ky(e):Array.isArray(e)?Array.prototype.concat.apply(ha,e.map(function(u){return br(u,t,r,o)})):[e.toString()]}function Sy(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qr(r)&&!_d(r))return!1}return!0}var Gk=dy(pa),Jk=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&Sy(t),this.componentId=r,this.baseHash=Ii(Gk,r),this.baseStyle=o,Zs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))l=Wr(l,this.staticRulesId);else{var a=Ys(br(this.rules,t,r,o)),u=Qc(Ii(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var d=o(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,d)}l=Wr(l,u),this.staticRulesId=u}else{for(var f=Ii(this.baseHash,o.hash),p="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")p+=g;else if(g){var v=Ys(br(g,t,r,o));f=Ii(f,v+m),p+=v}}if(p){var w=Qc(f>>>0);r.hasNameForId(this.componentId,w)||r.insertRules(this.componentId,w,o(p,".".concat(w),void 0,this.componentId)),l=Wr(l,w)}}return l},e}(),Ui=Pt.createContext(void 0);Ui.Consumer;function Kk(){var e=I.useContext(Ui);if(!e)throw Er(18);return e}function bm(e){var t=Pt.useContext(Ui),r=I.useMemo(function(){return function(o,l){if(!o)throw Er(14);if(Qr(o)){var a=o(l);return a}if(Array.isArray(o)||typeof o!="object")throw Er(8);return l?yt(yt({},l),o):o}(e.theme,t)},[e.theme,t]);return e.children?Pt.createElement(Ui.Provider,{value:r},e.children):null}var wc={};function Qk(e,t,r){var o=_d(e),l=e,a=!vc(e),u=t.attrs,d=u===void 0?ha:u,f=t.componentId,p=f===void 0?function(M,H){var A=typeof M!="string"?"sc":mm(M);wc[A]=(wc[A]||0)+1;var q="".concat(A,"-").concat($d(pa+A+wc[A]));return H?"".concat(H,"-").concat(q):q}(t.displayName,t.parentComponentId):f,m=t.displayName,g=m===void 0?function(M){return vc(M)?"styled.".concat(M):"Styled(".concat(Sk(M),")")}(e):m,v=t.displayName&&t.componentId?"".concat(mm(t.displayName),"-").concat(t.componentId):t.componentId||p,w=o&&l.attrs?l.attrs.concat(d).filter(Boolean):d,S=t.shouldForwardProp;if(o&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var j=t.shouldForwardProp;S=function(M,H){return b(M,H)&&j(M,H)}}else S=b}var C=new Jk(r,v,o?l.componentStyle:void 0);function P(M,H){return function(A,q,K){var le=A.attrs,D=A.componentStyle,ne=A.defaultProps,se=A.foldedComponentIds,oe=A.styledComponentId,re=A.target,B=Pt.useContext(Ui),ae=Zc(),ue=A.shouldForwardProp||ae.shouldForwardProp,X=ay(q,B,ne)||Bi,ce=function(Se,me,Ee){for(var ke,je=yt(yt({},me),{className:void 0,theme:Ee}),Ve=0;Ve<Se.length;Ve+=1){var Ct=Qr(ke=Se[Ve])?ke(je):ke;for(var Ie in Ct)je[Ie]=Ie==="className"?Wr(je[Ie],Ct[Ie]):Ie==="style"?yt(yt({},je[Ie]),Ct[Ie]):Ct[Ie]}return me.className&&(je.className=Wr(je.className,me.className)),je}(le,q,X),E=ce.as||re,z={};for(var G in ce)ce[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ce.theme===X||(G==="forwardedAs"?z.as=ce.forwardedAs:ue&&!ue(G,E)||(z[G]=ce[G]));var N=function(Se,me){var Ee=Zc(),ke=Se.generateAndInjectStyles(me,Ee.styleSheet,Ee.stylis);return ke}(D,ce),ye=Wr(se,oe);return N&&(ye+=" "+N),ce.className&&(ye+=" "+ce.className),z[vc(E)&&!uy.has(E)?"class":"className"]=ye,z.ref=K,I.createElement(E,z)}(L,M,H)}P.displayName=g;var L=Pt.forwardRef(P);return L.attrs=w,L.componentStyle=C,L.displayName=g,L.shouldForwardProp=S,L.foldedComponentIds=o?Wr(l.foldedComponentIds,l.styledComponentId):"",L.styledComponentId=v,L.target=o?l.target:e,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=o?function(H){for(var A=[],q=1;q<arguments.length;q++)A[q-1]=arguments[q];for(var K=0,le=A;K<le.length;K++)Yc(H,le[K],!0);return H}({},l.defaultProps,M):M}}),zd(L,function(){return".".concat(L.styledComponentId)}),a&&my(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function Cm(e,t){for(var r=[e[0]],o=0,l=t.length;o<l;o+=1)r.push(t[o],e[o+1]);return r}var Em=function(e){return Object.assign(e,{isCss:!0})};function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qr(e)||nl(e))return Em(br(Cm(ha,Di([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?br(o):Em(br(Cm(o,t)))}function ed(e,t,r){if(r===void 0&&(r=Bi),!t)throw Er(1,t);var o=function(l){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,bt.apply(void 0,Di([l],a,!1)))};return o.attrs=function(l){return ed(e,t,yt(yt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o.withConfig=function(l){return ed(e,t,yt(yt({},r),l))},o}var by=function(e){return ed(Qk,e)},R=by;uy.forEach(function(e){R[e]=by(e)});var Yk=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=Sy(t),Zs.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,o,l){var a=l(Ys(br(this.rules,r,o,l)),""),u=this.componentId+t;o.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,o,l){t>2&&Zs.registerId(this.componentId+t),this.removeStyles(t,o),this.createStyles(t,r,o,l)},e}();function Xk(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=bt.apply(void 0,Di([e],t,!1)),l="sc-global-".concat($d(JSON.stringify(o))),a=new Yk(o,l),u=function(f){var p=Zc(),m=Pt.useContext(Ui),g=Pt.useRef(p.styleSheet.allocateGSInstance(l)).current;return p.styleSheet.server&&d(g,f,p.styleSheet,m,p.stylis),Pt.useLayoutEffect(function(){if(!p.styleSheet.server)return d(g,f,p.styleSheet,m,p.stylis),function(){return a.removeStyles(g,p.styleSheet)}},[g,f,p.styleSheet,m,p.stylis]),null};function d(f,p,m,g,v){if(a.isStatic)a.renderStyles(f,xk,m,v);else{var w=yt(yt({},p),{theme:ay(p,g,u.defaultProps)});a.renderStyles(f,w,m,v)}}return Pt.memo(u)}function Gi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Ys(bt.apply(void 0,Di([e],t,!1))),l=$d(o);return new vy(l,o)}const Zk="/assets/logo-BGHkG1-J.png",eS="/assets/logo-dark-KAsU1C78.png",jm={name:"light",colors:{background:"#ffffffaa",overlayBackground:"#ffffffdd",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:Zk,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Tm={name:"dark",colors:{background:"#00000055",overlayBackground:"#000000cc",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:eS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},tS=({usage:e})=>{const[t,r]=I.useState("total"),o=g=>{r(g.target.value)},l=e.usageMetrics[t],a=e.usageMetrics[t].cost||0,u=Fo(a.toFixed(2)),d=Fo(l.rpm),f=Fo(l.rpd),p=Fo(Rm(l.tpm)),m=Fo(Rm(l.tpd));return y.jsx(rS,{children:y.jsxs(iS,{children:[y.jsx(oS,{onChange:o,value:t,children:Object.keys(e.usageMetrics).map(g=>y.jsx("option",{value:g,children:g},g))}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"Cost:"}),y.jsxs(Vo,{children:["$",u]},u)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPM:"}),y.jsx(Vo,{children:d},d)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPD:"}),y.jsx(Vo,{children:f},f)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPM:"}),y.jsx(Vo,{children:p},p)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPD:"}),y.jsx(Vo,{children:m},m)]})]})})},Rm=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Fo=e=>{const[t,r]=I.useState(e),o=I.useRef(e);return I.useEffect(()=>{e!==o.current&&(r(e),o.current=e)},[e]),t},nS=Gi`
|
|
40
|
+
*/var dm;function Yw(){if(dm)return Fo;dm=1;var e=Pd(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var m,g={},v=null,w=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(m in f)o.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(d&&d.defaultProps)for(m in f=d.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:d,key:v,ref:w,props:g,_owner:l.current}}return Fo.Fragment=r,Fo.jsx=u,Fo.jsxs=u,Fo}var fm;function Xw(){return fm||(fm=1,gc.exports=Yw()),gc.exports}var y=Xw(),yt=function(){return yt=Object.assign||function(t){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},yt.apply(this,arguments)};function Di(e,t,r){if(r||arguments.length===2)for(var o=0,l=t.length,a;o<l;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Qe="-ms-",Zo="-moz-",Me="-webkit-",ey="comm",ua="rule",Ad="decl",Zw="@import",ty="@keyframes",ek="@layer",ny=Math.abs,Ld=String.fromCharCode,Gc=Object.assign;function tk(e,t){return gt(e,0)^45?(((t<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function ry(e){return e.trim()}function Xn(e,t){return(e=t.exec(e))?e[0]:e}function Ie(e,t,r){return e.replace(t,r)}function Os(e,t,r){return e.indexOf(t,r)}function gt(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return e.slice(t,r)}function Bn(e){return e.length}function iy(e){return e.length}function Yo(e,t){return t.push(e),e}function nk(e,t){return e.map(t).join("")}function pm(e,t){return e.filter(function(r){return!Xn(r,t)})}var ca=1,Fi=1,oy=0,xn=0,ct=0,Wi="";function da(e,t,r,o,l,a,u,d){return{value:e,root:t,parent:r,type:o,props:l,children:a,line:ca,column:Fi,length:u,return:"",siblings:d}}function Sr(e,t){return Gc(da("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ei(e){for(;e.root;)e=Sr(e.root,{children:[e]});Yo(e,e.siblings)}function rk(){return ct}function ik(){return ct=xn>0?gt(Wi,--xn):0,Fi--,ct===10&&(Fi=1,ca--),ct}function Tn(){return ct=xn<oy?gt(Wi,xn++):0,Fi++,ct===10&&(Fi=1,ca++),ct}function Jr(){return gt(Wi,xn)}function Fs(){return xn}function fa(e,t){return Oi(Wi,e,t)}function Jc(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 ok(e){return ca=Fi=1,oy=Bn(Wi=e),xn=0,[]}function lk(e){return Wi="",e}function yc(e){return ry(fa(xn-1,Kc(e===91?e+2:e===40?e+1:e)))}function sk(e){for(;(ct=Jr())&&ct<33;)Tn();return Jc(e)>2||Jc(ct)>3?"":" "}function ak(e,t){for(;--t&&Tn()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return fa(e,Fs()+(t<6&&Jr()==32&&Tn()==32))}function Kc(e){for(;Tn();)switch(ct){case e:return xn;case 34:case 39:e!==34&&e!==39&&Kc(ct);break;case 40:e===41&&Kc(e);break;case 92:Tn();break}return xn}function uk(e,t){for(;Tn()&&e+ct!==57;)if(e+ct===84&&Jr()===47)break;return"/*"+fa(t,xn-1)+"*"+Ld(e===47?e:Tn())}function ck(e){for(;!Jc(Jr());)Tn();return fa(e,xn)}function dk(e){return lk(Ms("",null,null,null,[""],e=ok(e),0,[0],e))}function Ms(e,t,r,o,l,a,u,d,f){for(var p=0,m=0,g=u,v=0,w=0,S=0,b=1,j=1,C=1,N=0,A="",F=l,V=a,L=o,G=A;j;)switch(S=N,N=Tn()){case 40:if(S!=108&>(G,g-1)==58){Os(G+=Ie(yc(N),"&","&\f"),"&\f",ny(p?d[p-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:G+=yc(N);break;case 9:case 10:case 13:case 32:G+=sk(S);break;case 92:G+=ak(Fs()-1,7);continue;case 47:switch(Jr()){case 42:case 47:Yo(fk(uk(Tn(),Fs()),t,r,f),f);break;default:G+="/"}break;case 123*b:d[p++]=Bn(G)*C;case 125*b:case 59:case 0:switch(N){case 0:case 125:j=0;case 59+m:C==-1&&(G=Ie(G,/\f/g,"")),w>0&&Bn(G)-g&&Yo(w>32?mm(G+";",o,r,g-1,f):mm(Ie(G," ","")+";",o,r,g-2,f),f);break;case 59:G+=";";default:if(Yo(L=hm(G,t,r,p,m,l,d,A,F=[],V=[],g,a),a),N===123)if(m===0)Ms(G,t,L,L,F,a,g,d,V);else switch(v===99&>(G,3)===110?100:v){case 100:case 108:case 109:case 115:Ms(e,L,L,o&&Yo(hm(e,L,L,0,0,l,d,A,l,F=[],g,V),V),l,V,g,d,o?F:V);break;default:Ms(G,L,L,L,[""],V,0,d,V)}}p=m=w=0,b=C=1,A=G="",g=u;break;case 58:g=1+Bn(G),w=S;default:if(b<1){if(N==123)--b;else if(N==125&&b++==0&&ik()==125)continue}switch(G+=Ld(N),N*b){case 38:C=m>0?1:(G+="\f",-1);break;case 44:d[p++]=(Bn(G)-1)*C,C=1;break;case 64:Jr()===45&&(G+=yc(Tn())),v=Jr(),m=g=Bn(A=G+=ck(Fs())),N++;break;case 45:S===45&&Bn(G)==2&&(b=0)}}return a}function hm(e,t,r,o,l,a,u,d,f,p,m,g){for(var v=l-1,w=l===0?a:[""],S=iy(w),b=0,j=0,C=0;b<o;++b)for(var N=0,A=Oi(e,v+1,v=ny(j=u[b])),F=e;N<S;++N)(F=ry(j>0?w[N]+" "+A:Ie(A,/&\f/g,w[N])))&&(f[C++]=F);return da(e,t,r,l===0?ua:d,f,p,m,g)}function fk(e,t,r,o){return da(e,t,r,ey,Ld(rk()),Oi(e,2,-2),0,o)}function mm(e,t,r,o,l){return da(e,t,r,Ad,Oi(e,0,o),Oi(e,o+1,-1),o,l)}function ly(e,t,r){switch(tk(e,t)){case 5103:return Me+"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 Me+e+e;case 4789:return Zo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+Zo+e+Qe+e+e;case 5936:switch(gt(e,t+11)){case 114:return Me+e+Qe+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Qe+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Qe+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Me+e+Qe+e+e;case 6165:return Me+e+Qe+"flex-"+e+e;case 5187:return Me+e+Ie(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return Me+e+Qe+"flex-item-"+Ie(e,/flex-|-self/g,"")+(Xn(e,/flex-|baseline/)?"":Qe+"grid-row-"+Ie(e,/flex-|-self/g,""))+e;case 4675:return Me+e+Qe+"flex-line-pack"+Ie(e,/align-content|flex-|-self/g,"")+e;case 5548:return Me+e+Qe+Ie(e,"shrink","negative")+e;case 5292:return Me+e+Qe+Ie(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Ie(e,"-grow","")+Me+e+Qe+Ie(e,"grow","positive")+e;case 4554:return Me+Ie(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4200:if(!Xn(e,/flex-|baseline/))return Qe+"grid-column-align"+Oi(e,t)+e;break;case 2592:case 3360:return Qe+Ie(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,l){return t=l,Xn(o.props,/grid-\w+-end/)})?~Os(e+(r=r[t].value),"span",0)?e:Qe+Ie(e,"-start","")+e+Qe+"grid-row-span:"+(~Os(r,"span",0)?Xn(r,/\d+/):+Xn(r,/\d+/)-+Xn(e,/\d+/))+";":Qe+Ie(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Xn(o.props,/grid-\w+-start/)})?e:Qe+Ie(Ie(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,Me+"$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(Bn(e)-1-t>6)switch(gt(e,t+1)){case 109:if(gt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Zo+(gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch",0)?ly(Ie(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ie(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,l,a,u,d,f,p){return Qe+l+":"+a+p+(u?Qe+l+"-span:"+(d?f:+f-+a)+p:"")+e});case 4949:if(gt(e,t+6)===121)return Ie(e,":",":"+Me)+e;break;case 6444:switch(gt(e,gt(e,14)===45?18:11)){case 120:return Ie(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Me+(gt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Qe+"$2box$3")+e;case 100:return Ie(e,":",":"+Qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ie(e,"scroll-","scroll-snap-")+e}return e}function Ks(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function pk(e,t,r,o){switch(e.type){case ek:if(e.children.length)break;case Zw:case Ad:return e.return=e.return||e.value;case ey:return"";case ty:return e.return=e.value+"{"+Ks(e.children,o)+"}";case ua:if(!Bn(e.value=e.props.join(",")))return""}return Bn(r=Ks(e.children,o))?e.return=e.value+"{"+r+"}":""}function hk(e){var t=iy(e);return function(r,o,l,a){for(var u="",d=0;d<t;d++)u+=e[d](r,o,l,a)||"";return u}}function mk(e){return function(t){t.root||(t=t.return)&&e(t)}}function gk(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ad:e.return=ly(e.value,e.length,r);return;case ty:return Ks([Sr(e,{value:Ie(e.value,"@","@"+Me)})],o);case ua:if(e.length)return nk(r=e.props,function(l){switch(Xn(l,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ei(Sr(e,{props:[Ie(l,/:(read-\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[l]})),Gc(e,{props:pm(r,o)});break;case"::placeholder":Ei(Sr(e,{props:[Ie(l,/:(plac\w+)/,":"+Me+"input-$1")]})),Ei(Sr(e,{props:[Ie(l,/:(plac\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[Ie(l,/:(plac\w+)/,Qe+"input-$1")]})),Ei(Sr(e,{props:[l]})),Gc(e,{props:pm(r,o)});break}return""})}}var yk={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},nn={},Mi=typeof process<"u"&&nn!==void 0&&(nn.REACT_APP_SC_ATTR||nn.SC_ATTR)||"data-styled",sy="active",ay="data-styled-version",pa="6.1.13",$d=`/*!sc*/
|
|
41
|
+
`,Qs=typeof window<"u"&&"HTMLElement"in window,xk=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&nn!==void 0&&nn.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nn.REACT_APP_SC_DISABLE_SPEEDY!==""?nn.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nn.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&nn!==void 0&&nn.SC_DISABLE_SPEEDY!==void 0&&nn.SC_DISABLE_SPEEDY!==""&&nn.SC_DISABLE_SPEEDY!=="false"&&nn.SC_DISABLE_SPEEDY),vk={},ha=Object.freeze([]),Bi=Object.freeze({});function uy(e,t,r){return r===void 0&&(r=Bi),e.theme!==r.theme&&e.theme||t||r.theme}var cy=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"]),wk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,kk=/(^-|-$)/g;function gm(e){return e.replace(wk,"-").replace(kk,"")}var Sk=/(a)(d)/gi,Ts=52,ym=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qc(e){var t,r="";for(t=Math.abs(e);t>Ts;t=t/Ts|0)r=ym(t%Ts)+r;return(ym(t%Ts)+r).replace(Sk,"$1-$2")}var xc,dy=5381,Ni=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fy=function(e){return Ni(dy,e)};function _d(e){return Qc(fy(e)>>>0)}function bk(e){return e.displayName||e.name||"Component"}function vc(e){return typeof e=="string"&&!0}var py=typeof Symbol=="function"&&Symbol.for,hy=py?Symbol.for("react.memo"):60115,Ck=py?Symbol.for("react.forward_ref"):60112,Ek={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jk={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},my={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tk=((xc={})[Ck]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xc[hy]=my,xc);function xm(e){return("type"in(t=e)&&t.type.$$typeof)===hy?my:"$$typeof"in e?Tk[e.$$typeof]:Ek;var t}var Rk=Object.defineProperty,Ik=Object.getOwnPropertyNames,vm=Object.getOwnPropertySymbols,Nk=Object.getOwnPropertyDescriptor,Pk=Object.getPrototypeOf,wm=Object.prototype;function gy(e,t,r){if(typeof t!="string"){if(wm){var o=Pk(t);o&&o!==wm&&gy(e,o,r)}var l=Ik(t);vm&&(l=l.concat(vm(t)));for(var a=xm(e),u=xm(t),d=0;d<l.length;++d){var f=l[d];if(!(f in jk||r&&r[f]||u&&f in u||a&&f in a)){var p=Nk(t,f);try{Rk(e,f,p)}catch{}}}}return e}function Qr(e){return typeof e=="function"}function zd(e){return typeof e=="object"&&"styledComponentId"in e}function Wr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ys(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function nl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Yc(e,t,r){if(r===void 0&&(r=!1),!r&&!nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=Yc(e[o],t[o]);else if(nl(t))for(var o in t)e[o]=Yc(e[o],t[o]);return e}function Dd(e,t){Object.defineProperty(e,"toString",{value:t})}function Er(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 Ak=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,l=o.length,a=l;t>=a;)if((a<<=1)<0)throw Er(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var u=l;u<a;u++)this.groupSizes[u]=0}for(var d=this.indexOfGroup(t+1),f=(u=0,r.length);u<f;u++)this.tag.insertRule(d,r[u])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),l=o+r;this.groupSizes[t]=0;for(var a=o;a<l;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],l=this.indexOfGroup(t),a=l+o,u=l;u<a;u++)r+="".concat(this.tag.getRule(u)).concat($d);return r},e}(),Bs=new Map,Xs=new Map,Us=1,Rs=function(e){if(Bs.has(e))return Bs.get(e);for(;Xs.has(Us);)Us++;var t=Us++;return Bs.set(e,t),Xs.set(t,e),t},Lk=function(e,t){Us=t+1,Bs.set(e,t),Xs.set(t,e)},$k="style[".concat(Mi,"][").concat(ay,'="').concat(pa,'"]'),_k=new RegExp("^".concat(Mi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zk=function(e,t,r){for(var o,l=r.split(","),a=0,u=l.length;a<u;a++)(o=l[a])&&e.registerName(t,o)},Dk=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split($d),l=[],a=0,u=o.length;a<u;a++){var d=o[a].trim();if(d){var f=d.match(_k);if(f){var p=0|parseInt(f[1],10),m=f[2];p!==0&&(Lk(m,p),zk(e,m,f[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(d)}}},km=function(e){for(var t=document.querySelectorAll($k),r=0,o=t.length;r<o;r++){var l=t[r];l&&l.getAttribute(Mi)!==sy&&(Dk(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function Ok(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var yy=function(e){var t=document.head,r=e||t,o=document.createElement("style"),l=function(d){var f=Array.from(d.querySelectorAll("style[".concat(Mi,"]")));return f[f.length-1]}(r),a=l!==void 0?l.nextSibling:null;o.setAttribute(Mi,sy),o.setAttribute(ay,pa);var u=Ok();return u&&o.setAttribute("nonce",u),r.insertBefore(o,a),o},Fk=function(){function e(t){this.element=yy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,a=o.length;l<a;l++){var u=o[l];if(u.ownerNode===r)return u}throw Er(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Mk=function(){function e(t){this.element=yy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,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}(),Bk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),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}(),Sm=Qs,Uk={isServer:!Qs,useCSSOMInjection:!xk},Zs=function(){function e(t,r,o){t===void 0&&(t=Bi),r===void 0&&(r={});var l=this;this.options=yt(yt({},Uk),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Qs&&Sm&&(Sm=!1,km(this)),Dd(this,function(){return function(a){for(var u=a.getTag(),d=u.length,f="",p=function(g){var v=function(C){return Xs.get(C)}(g);if(v===void 0)return"continue";var w=a.names.get(v),S=u.getGroup(g);if(w===void 0||!w.size||S.length===0)return"continue";var b="".concat(Mi,".g").concat(g,'[id="').concat(v,'"]'),j="";w!==void 0&&w.forEach(function(C){C.length>0&&(j+="".concat(C,","))}),f+="".concat(S).concat(b,'{content:"').concat(j,'"}').concat($d)},m=0;m<d;m++)p(m);return f}(l)})}return e.registerId=function(t){return Rs(t)},e.prototype.rehydrate=function(){!this.server&&Qs&&km(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(yt(yt({},this.options),t),this.gs,r&&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(r){var o=r.useCSSOMInjection,l=r.target;return r.isServer?new Bk(l):o?new Fk(l):new Mk(l)}(this.options),new Ak(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Rs(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(Rs(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Rs(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Vk=/&/g,Hk=/^\s*\/\/.*$/gm;function xy(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=xy(r.children,t)),r})}function qk(e){var t,r,o,l=Bi,a=l.options,u=a===void 0?Bi:a,d=l.plugins,f=d===void 0?ha:d,p=function(v,w,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):v},m=f.slice();m.push(function(v){v.type===ua&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Vk,r).replace(o,p))}),u.prefix&&m.push(gk),m.push(pk);var g=function(v,w,S,b){w===void 0&&(w=""),S===void 0&&(S=""),b===void 0&&(b="&"),t=b,r=w,o=new RegExp("\\".concat(r,"\\b"),"g");var j=v.replace(Hk,""),C=dk(S||w?"".concat(S," ").concat(w," { ").concat(j," }"):j);u.namespace&&(C=xy(C,u.namespace));var N=[];return Ks(C,hk(m.concat(mk(function(A){return N.push(A)})))),N};return g.hash=f.length?f.reduce(function(v,w){return w.name||Er(15),Ni(v,w.name)},dy).toString():"",g}var Wk=new Zs,Xc=qk(),vy=Pt.createContext({shouldForwardProp:void 0,styleSheet:Wk,stylis:Xc});vy.Consumer;Pt.createContext(void 0);function Zc(){return P.useContext(vy)}var wy=function(){function e(t,r){var o=this;this.inject=function(l,a){a===void 0&&(a=Xc);var u=o.name+a.hash;l.hasNameForId(o.id,u)||l.insertRules(o.id,u,a(o.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Dd(this,function(){throw Er(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Xc),this.name+t.hash},e}(),Gk=function(e){return e>="A"&&e<="Z"};function bm(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;Gk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var ky=function(e){return e==null||e===!1||e===""},Sy=function(e){var t,r,o=[];for(var l in e){var a=e[l];e.hasOwnProperty(l)&&!ky(a)&&(Array.isArray(a)&&a.isCss||Qr(a)?o.push("".concat(bm(l),":"),a,";"):nl(a)?o.push.apply(o,Di(Di(["".concat(l," {")],Sy(a),!1),["}"],!1)):o.push("".concat(bm(l),": ").concat((t=l,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in yk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function br(e,t,r,o){if(ky(e))return[];if(zd(e))return[".".concat(e.styledComponentId)];if(Qr(e)){if(!Qr(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var l=e(t);return br(l,t,r,o)}var a;return e instanceof wy?r?(e.inject(r,o),[e.getName(o)]):[e]:nl(e)?Sy(e):Array.isArray(e)?Array.prototype.concat.apply(ha,e.map(function(u){return br(u,t,r,o)})):[e.toString()]}function by(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qr(r)&&!zd(r))return!1}return!0}var Jk=fy(pa),Kk=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&by(t),this.componentId=r,this.baseHash=Ni(Jk,r),this.baseStyle=o,Zs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))l=Wr(l,this.staticRulesId);else{var a=Ys(br(this.rules,t,r,o)),u=Qc(Ni(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var d=o(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,d)}l=Wr(l,u),this.staticRulesId=u}else{for(var f=Ni(this.baseHash,o.hash),p="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")p+=g;else if(g){var v=Ys(br(g,t,r,o));f=Ni(f,v+m),p+=v}}if(p){var w=Qc(f>>>0);r.hasNameForId(this.componentId,w)||r.insertRules(this.componentId,w,o(p,".".concat(w),void 0,this.componentId)),l=Wr(l,w)}}return l},e}(),Ui=Pt.createContext(void 0);Ui.Consumer;function Qk(){var e=P.useContext(Ui);if(!e)throw Er(18);return e}function Cm(e){var t=Pt.useContext(Ui),r=P.useMemo(function(){return function(o,l){if(!o)throw Er(14);if(Qr(o)){var a=o(l);return a}if(Array.isArray(o)||typeof o!="object")throw Er(8);return l?yt(yt({},l),o):o}(e.theme,t)},[e.theme,t]);return e.children?Pt.createElement(Ui.Provider,{value:r},e.children):null}var wc={};function Yk(e,t,r){var o=zd(e),l=e,a=!vc(e),u=t.attrs,d=u===void 0?ha:u,f=t.componentId,p=f===void 0?function(F,V){var L=typeof F!="string"?"sc":gm(F);wc[L]=(wc[L]||0)+1;var G="".concat(L,"-").concat(_d(pa+L+wc[L]));return V?"".concat(V,"-").concat(G):G}(t.displayName,t.parentComponentId):f,m=t.displayName,g=m===void 0?function(F){return vc(F)?"styled.".concat(F):"Styled(".concat(bk(F),")")}(e):m,v=t.displayName&&t.componentId?"".concat(gm(t.displayName),"-").concat(t.componentId):t.componentId||p,w=o&&l.attrs?l.attrs.concat(d).filter(Boolean):d,S=t.shouldForwardProp;if(o&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var j=t.shouldForwardProp;S=function(F,V){return b(F,V)&&j(F,V)}}else S=b}var C=new Kk(r,v,o?l.componentStyle:void 0);function N(F,V){return function(L,G,K){var ie=L.attrs,D=L.componentStyle,ne=L.defaultProps,se=L.foldedComponentIds,le=L.styledComponentId,re=L.target,H=Pt.useContext(Ui),de=Zc(),ae=L.shouldForwardProp||de.shouldForwardProp,X=uy(G,H,ne)||Bi,ue=function(Se,me,Ee){for(var ke,je=yt(yt({},me),{className:void 0,theme:Ee}),Ve=0;Ve<Se.length;Ve+=1){var Ct=Qr(ke=Se[Ve])?ke(je):ke;for(var Ne in Ct)je[Ne]=Ne==="className"?Wr(je[Ne],Ct[Ne]):Ne==="style"?yt(yt({},je[Ne]),Ct[Ne]):Ct[Ne]}return me.className&&(je.className=Wr(je.className,me.className)),je}(ie,G,X),E=ue.as||re,_={};for(var U in ue)ue[U]===void 0||U[0]==="$"||U==="as"||U==="theme"&&ue.theme===X||(U==="forwardedAs"?_.as=ue.forwardedAs:ae&&!ae(U,E)||(_[U]=ue[U]));var T=function(Se,me){var Ee=Zc(),ke=Se.generateAndInjectStyles(me,Ee.styleSheet,Ee.stylis);return ke}(D,ue),ye=Wr(se,le);return T&&(ye+=" "+T),ue.className&&(ye+=" "+ue.className),_[vc(E)&&!cy.has(E)?"class":"className"]=ye,_.ref=K,P.createElement(E,_)}(A,F,V)}N.displayName=g;var A=Pt.forwardRef(N);return A.attrs=w,A.componentStyle=C,A.displayName=g,A.shouldForwardProp=S,A.foldedComponentIds=o?Wr(l.foldedComponentIds,l.styledComponentId):"",A.styledComponentId=v,A.target=o?l.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(F){this._foldedDefaultProps=o?function(V){for(var L=[],G=1;G<arguments.length;G++)L[G-1]=arguments[G];for(var K=0,ie=L;K<ie.length;K++)Yc(V,ie[K],!0);return V}({},l.defaultProps,F):F}}),Dd(A,function(){return".".concat(A.styledComponentId)}),a&&gy(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function Em(e,t){for(var r=[e[0]],o=0,l=t.length;o<l;o+=1)r.push(t[o],e[o+1]);return r}var jm=function(e){return Object.assign(e,{isCss:!0})};function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qr(e)||nl(e))return jm(br(Em(ha,Di([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?br(o):jm(br(Em(o,t)))}function ed(e,t,r){if(r===void 0&&(r=Bi),!t)throw Er(1,t);var o=function(l){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,bt.apply(void 0,Di([l],a,!1)))};return o.attrs=function(l){return ed(e,t,yt(yt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o.withConfig=function(l){return ed(e,t,yt(yt({},r),l))},o}var Cy=function(e){return ed(Yk,e)},R=Cy;cy.forEach(function(e){R[e]=Cy(e)});var Xk=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=by(t),Zs.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,o,l){var a=l(Ys(br(this.rules,r,o,l)),""),u=this.componentId+t;o.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,o,l){t>2&&Zs.registerId(this.componentId+t),this.removeStyles(t,o),this.createStyles(t,r,o,l)},e}();function Zk(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=bt.apply(void 0,Di([e],t,!1)),l="sc-global-".concat(_d(JSON.stringify(o))),a=new Xk(o,l),u=function(f){var p=Zc(),m=Pt.useContext(Ui),g=Pt.useRef(p.styleSheet.allocateGSInstance(l)).current;return p.styleSheet.server&&d(g,f,p.styleSheet,m,p.stylis),Pt.useLayoutEffect(function(){if(!p.styleSheet.server)return d(g,f,p.styleSheet,m,p.stylis),function(){return a.removeStyles(g,p.styleSheet)}},[g,f,p.styleSheet,m,p.stylis]),null};function d(f,p,m,g,v){if(a.isStatic)a.renderStyles(f,vk,m,v);else{var w=yt(yt({},p),{theme:uy(p,g,u.defaultProps)});a.renderStyles(f,w,m,v)}}return Pt.memo(u)}function Gi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Ys(bt.apply(void 0,Di([e],t,!1))),l=_d(o);return new wy(l,o)}const eS="/assets/logo-BGHkG1-J.png",tS="/assets/logo-dark-KAsU1C78.png",Tm={name:"light",colors:{background:"#ffffffaa",overlayBackground:"#ffffffdd",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:eS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Rm={name:"dark",colors:{background:"#00000055",overlayBackground:"#000000cc",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:tS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},nS=({usage:e})=>{const[t,r]=P.useState("total"),o=g=>{r(g.target.value)},l=e.usageMetrics[t],a=e.usageMetrics[t].cost||0,u=Mo(a.toFixed(2)),d=Mo(l.rpm),f=Mo(l.rpd),p=Mo(Im(l.tpm)),m=Mo(Im(l.tpd));return y.jsx(iS,{children:y.jsxs(oS,{children:[y.jsx(lS,{onChange:o,value:t,children:Object.keys(e.usageMetrics).map(g=>y.jsx("option",{value:g,children:g},g))}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"Cost:"}),y.jsxs(Vo,{children:["$",u]},u)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPM:"}),y.jsx(Vo,{children:d},d)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPD:"}),y.jsx(Vo,{children:f},f)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPM:"}),y.jsx(Vo,{children:p},p)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPD:"}),y.jsx(Vo,{children:m},m)]})]})})},Im=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Mo=e=>{const[t,r]=P.useState(e),o=P.useRef(e);return P.useEffect(()=>{e!==o.current&&(r(e),o.current=e)},[e]),t},rS=Gi`
|
|
42
42
|
0% {
|
|
43
43
|
transform: scale(1);
|
|
44
44
|
opacity: 1;
|
|
@@ -51,19 +51,19 @@ Error generating stack: `+x.message+`
|
|
|
51
51
|
transform: scale(1);
|
|
52
52
|
opacity: 1;
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,iS=R.div`
|
|
55
55
|
background-color: ${({theme:e})=>e.colors.background};
|
|
56
56
|
border-radius: 4px;
|
|
57
57
|
padding: 4px 4px;
|
|
58
58
|
box-shadow:
|
|
59
59
|
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
60
60
|
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
61
|
-
`,
|
|
61
|
+
`,oS=R.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-wrap: wrap;
|
|
64
64
|
gap: 8px;
|
|
65
65
|
align-items: center;
|
|
66
|
-
`,
|
|
66
|
+
`,lS=R.select`
|
|
67
67
|
padding: 2px 4px;
|
|
68
68
|
border-radius: 4px;
|
|
69
69
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
@@ -82,13 +82,13 @@ Error generating stack: `+x.message+`
|
|
|
82
82
|
font-size: 0.9em;
|
|
83
83
|
font-weight: bold;
|
|
84
84
|
color: ${({theme:e})=>e.colors.text};
|
|
85
|
-
animation: ${
|
|
86
|
-
`;function Cy(e,t){return function(){return e.apply(t,arguments)}}const{toString:lS}=Object.prototype,{getPrototypeOf:Dd}=Object,ma=(e=>t=>{const r=lS.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nn=e=>(e=e.toLowerCase(),t=>ma(t)===e),ga=e=>t=>typeof t===e,{isArray:Ji}=Array,rl=ga("undefined");function sS(e){return e!==null&&!rl(e)&&e.constructor!==null&&!rl(e.constructor)&&ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ey=Nn("ArrayBuffer");function aS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ey(e.buffer),t}const uS=ga("string"),ln=ga("function"),jy=ga("number"),ya=e=>e!==null&&typeof e=="object",cS=e=>e===!0||e===!1,Vs=e=>{if(ma(e)!=="object")return!1;const t=Dd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dS=Nn("Date"),fS=Nn("File"),pS=Nn("Blob"),hS=Nn("FileList"),mS=e=>ya(e)&&ln(e.pipe),gS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ln(e.append)&&((t=ma(e))==="formdata"||t==="object"&&ln(e.toString)&&e.toString()==="[object FormData]"))},yS=Nn("URLSearchParams"),[xS,vS,wS,kS]=["ReadableStream","Request","Response","Headers"].map(Nn),SS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function al(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,l;if(typeof e!="object"&&(e=[e]),Ji(e))for(o=0,l=e.length;o<l;o++)t.call(null,e[o],o,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let d;for(o=0;o<u;o++)d=a[o],t.call(null,e[d],d,e)}}function Ty(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,l;for(;o-- >0;)if(l=r[o],t===l.toLowerCase())return l;return null}const Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ry=e=>!rl(e)&&e!==Gr;function td(){const{caseless:e}=Ry(this)&&this||{},t={},r=(o,l)=>{const a=e&&Ty(t,l)||l;Vs(t[a])&&Vs(o)?t[a]=td(t[a],o):Vs(o)?t[a]=td({},o):Ji(o)?t[a]=o.slice():t[a]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&al(arguments[o],r);return t}const bS=(e,t,r,{allOwnKeys:o}={})=>(al(t,(l,a)=>{r&&ln(l)?e[a]=Cy(l,r):e[a]=l},{allOwnKeys:o}),e),CS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ES=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},jS=(e,t,r,o)=>{let l,a,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),a=l.length;a-- >0;)u=l[a],(!o||o(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&Dd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},TS=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},RS=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!jy(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},NS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dd(Uint8Array)),IS=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=o.next())&&!l.done;){const a=l.value;t.call(e,a[0],a[1])}},PS=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},AS=Nn("HTMLFormElement"),LS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),Nm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$S=Nn("RegExp"),Ny=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};al(r,(l,a)=>{let u;(u=t(l,a,e))!==!1&&(o[a]=u||l)}),Object.defineProperties(e,o)},_S=e=>{Ny(e,(t,r)=>{if(ln(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(ln(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},zS=(e,t)=>{const r={},o=l=>{l.forEach(a=>{r[a]=!0})};return Ji(e)?o(e):o(String(e).split(t)),r},DS=()=>{},OS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function MS(e){return!!(e&&ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const FS=e=>{const t=new Array(10),r=(o,l)=>{if(ya(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[l]=o;const a=Ji(o)?[]:{};return al(o,(u,d)=>{const f=r(u,l+1);!rl(f)&&(a[d]=f)}),t[l]=void 0,a}}return o};return r(e,0)},BS=Nn("AsyncFunction"),US=e=>e&&(ya(e)||ln(e))&&ln(e.then)&&ln(e.catch),Iy=((e,t)=>e?setImmediate:t?((r,o)=>(Gr.addEventListener("message",({source:l,data:a})=>{l===Gr&&a===r&&o.length&&o.shift()()},!1),l=>{o.push(l),Gr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ln(Gr.postMessage)),VS=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||Iy,V={isArray:Ji,isArrayBuffer:Ey,isBuffer:sS,isFormData:gS,isArrayBufferView:aS,isString:uS,isNumber:jy,isBoolean:cS,isObject:ya,isPlainObject:Vs,isReadableStream:xS,isRequest:vS,isResponse:wS,isHeaders:kS,isUndefined:rl,isDate:dS,isFile:fS,isBlob:pS,isRegExp:$S,isFunction:ln,isStream:mS,isURLSearchParams:yS,isTypedArray:NS,isFileList:hS,forEach:al,merge:td,extend:bS,trim:SS,stripBOM:CS,inherits:ES,toFlatObject:jS,kindOf:ma,kindOfTest:Nn,endsWith:TS,toArray:RS,forEachEntry:IS,matchAll:PS,isHTMLForm:AS,hasOwnProperty:Nm,hasOwnProp:Nm,reduceDescriptors:Ny,freezeMethods:_S,toObjectSet:zS,toCamelCase:LS,noop:DS,toFiniteNumber:OS,findKey:Ty,global:Gr,isContextDefined:Ry,isSpecCompliantForm:MS,toJSONObject:FS,isAsyncFn:BS,isThenable:US,setImmediate:Iy,asap:VS};function Te(e,t,r,o,l){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),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}V.inherits(Te,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Py=Te.prototype,Ay={};["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=>{Ay[e]={value:e}});Object.defineProperties(Te,Ay);Object.defineProperty(Py,"isAxiosError",{value:!0});Te.from=(e,t,r,o,l,a)=>{const u=Object.create(Py);return V.toFlatObject(e,u,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Te.call(u,e.message,t,r,o,l),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const HS=null;function nd(e){return V.isPlainObject(e)||V.isArray(e)}function Ly(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Im(e,t,r){return e?e.concat(t).map(function(l,a){return l=Ly(l),!r&&a?"["+l+"]":l}).join(r?".":""):t}function qS(e){return V.isArray(e)&&!e.some(nd)}const WS=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function xa(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,j){return!V.isUndefined(j[b])});const o=r.metaTokens,l=r.visitor||m,a=r.dots,u=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(l))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(!f&&V.isBlob(S))throw new Te("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,b,j){let C=S;if(S&&!j&&typeof S=="object"){if(V.endsWith(b,"{}"))b=o?b:b.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&qS(S)||(V.isFileList(S)||V.endsWith(b,"[]"))&&(C=V.toArray(S)))return b=Ly(b),C.forEach(function(L,M){!(V.isUndefined(L)||L===null)&&t.append(u===!0?Im([b],M,a):u===null?b:b+"[]",p(L))}),!1}return nd(S)?!0:(t.append(Im(j,b,a),p(S)),!1)}const g=[],v=Object.assign(WS,{defaultVisitor:m,convertValue:p,isVisitable:nd});function w(S,b){if(!V.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(S),V.forEach(S,function(C,P){(!(V.isUndefined(C)||C===null)&&l.call(t,C,V.isString(P)?P.trim():P,b,v))===!0&&w(C,b?b.concat(P):[P])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Pm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Od(e,t){this._pairs=[],e&&xa(e,this,t)}const $y=Od.prototype;$y.append=function(t,r){this._pairs.push([t,r])};$y.toString=function(t){const r=t?function(o){return t.call(this,o,Pm)}:Pm;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function GS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _y(e,t,r){if(!t)return e;const o=r&&r.encode||GS;V.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let a;if(l?a=l(t,r):a=V.isURLSearchParams(t)?t.toString():new Od(t,r).toString(o),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Am{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(o){o!==null&&t(o)})}}const zy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JS=typeof URLSearchParams<"u"?URLSearchParams:Od,KS=typeof FormData<"u"?FormData:null,QS=typeof Blob<"u"?Blob:null,YS={isBrowser:!0,classes:{URLSearchParams:JS,FormData:KS,Blob:QS},protocols:["http","https","file","blob","url","data"]},Md=typeof window<"u"&&typeof document<"u",rd=typeof navigator=="object"&&navigator||void 0,XS=Md&&(!rd||["ReactNative","NativeScript","NS"].indexOf(rd.product)<0),ZS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eb=Md&&window.location.href||"http://localhost",tb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Md,hasStandardBrowserEnv:XS,hasStandardBrowserWebWorkerEnv:ZS,navigator:rd,origin:eb},Symbol.toStringTag,{value:"Module"})),It={...tb,...YS};function nb(e,t){return xa(e,new It.classes.URLSearchParams,Object.assign({visitor:function(r,o,l,a){return It.isNode&&V.isBuffer(r)?(this.append(o,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function rb(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ib(e){const t={},r=Object.keys(e);let o;const l=r.length;let a;for(o=0;o<l;o++)a=r[o],t[a]=e[a];return t}function Dy(e){function t(r,o,l,a){let u=r[a++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=a>=r.length;return u=!u&&V.isArray(l)?l.length:u,f?(V.hasOwnProp(l,u)?l[u]=[l[u],o]:l[u]=o,!d):((!l[u]||!V.isObject(l[u]))&&(l[u]=[]),t(r,o,l[u],a)&&V.isArray(l[u])&&(l[u]=ib(l[u])),!d)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(o,l)=>{t(rb(o),l,r,0)}),r}return null}function ob(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const ul={transitional:zy,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",l=o.indexOf("application/json")>-1,a=V.isObject(t);if(a&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return l?JSON.stringify(Dy(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return nb(t,this.formSerializer).toString();if((d=V.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return xa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||l?(r.setContentType("application/json",!1),ob(t)):t}],transformResponse:[function(t){const r=this.transitional||ul.transitional,o=r&&r.forcedJSONParsing,l=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(o&&!this.responseType||l)){const u=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{ul.headers[e]={}});const lb=V.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"]),sb=e=>{const t={};let r,o,l;return e&&e.split(`
|
|
87
|
-
`).forEach(function(u){l=u.indexOf(":"),r=u.substring(0,l).trim().toLowerCase(),o=u.substring(l+1).trim(),!(!r||t[r]&&
|
|
88
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[Lm]=this[Lm]={accessors:{}}).accessors,l=this.prototype;function a(u){const d=Ho(u);o[d]||(db(l,u),o[d]=!0)}return V.isArray(t)?t.forEach(a):a(t),this}};Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(Gt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});V.freezeMethods(Gt);function Sc(e,t){const r=this||ul,o=t||r,l=Gt.from(o.headers);let a=o.data;return V.forEach(e,function(d){a=d.call(r,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function Oy(e){return!!(e&&e.__CANCEL__)}function Ki(e,t,r){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(Ki,Te,{__CANCEL__:!0});function My(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Te("Request failed with status code "+r.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function fb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pb(e,t){e=e||10;const r=new Array(e),o=new Array(e);let l=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=o[a];u||(u=p),r[l]=f,o[l]=p;let g=a,v=0;for(;g!==l;)v+=r[g++],g=g%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),p-u<t)return;const w=m&&p-m;return w?Math.round(v*1e3/w):void 0}}function hb(e,t){let r=0,o=1e3/t,l,a;const u=(p,m=Date.now())=>{r=m,l=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const m=Date.now(),g=m-r;g>=o?u(p,m):(l=p,a||(a=setTimeout(()=>{a=null,u(l)},o-g)))},()=>l&&u(l)]}const ea=(e,t,r=3)=>{let o=0;const l=pb(50,250);return hb(a=>{const u=a.loaded,d=a.lengthComputable?a.total:void 0,f=u-o,p=l(f),m=u<=d;o=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&m?(d-u)/p:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},$m=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},_m=e=>(...t)=>V.asap(()=>e(...t)),mb=It.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,It.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,gb=It.hasStandardBrowserEnv?{write(e,t,r,o,l,a){const u=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),V.isString(o)&&u.push("path="+o),V.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.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 yb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fy(e,t,r){let o=!yb(t);return e&&o||r==!1?xb(e,t):t}const zm=e=>e instanceof Gt?{...e}:e;function Yr(e,t){t=t||{};const r={};function o(p,m,g,v){return V.isPlainObject(p)&&V.isPlainObject(m)?V.merge.call({caseless:v},p,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function l(p,m,g,v){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p,g,v)}else return o(p,m,g,v)}function a(p,m){if(!V.isUndefined(m))return o(void 0,m)}function u(p,m){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p)}else return o(void 0,m)}function d(p,m,g){if(g in t)return o(p,m);if(g in e)return o(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,m,g)=>l(zm(p),zm(m),g,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=f[m]||l,v=g(e[m],t[m],m);V.isUndefined(v)&&g!==d||(r[m]=v)}),r}const By=e=>{const t=Yr({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:a,headers:u,auth:d}=t;t.headers=u=Gt.from(u),t.url=_y(Fy(t.baseURL,t.url),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(V.isFormData(r)){if(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(It.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||o!==!1&&mb(t.url))){const p=l&&a&&gb.read(a);p&&u.set(l,p)}return t},vb=typeof XMLHttpRequest<"u",wb=vb&&function(e){return new Promise(function(r,o){const l=By(e);let a=l.data;const u=Gt.from(l.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l,m,g,v,w,S;function b(){w&&w(),S&&S(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let j=new XMLHttpRequest;j.open(l.method.toUpperCase(),l.url,!0),j.timeout=l.timeout;function C(){if(!j)return;const L=Gt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:L,config:e,request:j};My(function(q){r(q),b()},function(q){o(q),b()},H),j=null}"onloadend"in j?j.onloadend=C:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(C)},j.onabort=function(){j&&(o(new Te("Request aborted",Te.ECONNABORTED,e,j)),j=null)},j.onerror=function(){o(new Te("Network Error",Te.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let M=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const H=l.transitional||zy;l.timeoutErrorMessage&&(M=l.timeoutErrorMessage),o(new Te(M,H.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,j)),j=null},a===void 0&&u.setContentType(null),"setRequestHeader"in j&&V.forEach(u.toJSON(),function(M,H){j.setRequestHeader(H,M)}),V.isUndefined(l.withCredentials)||(j.withCredentials=!!l.withCredentials),d&&d!=="json"&&(j.responseType=l.responseType),p&&([v,S]=ea(p,!0),j.addEventListener("progress",v)),f&&j.upload&&([g,w]=ea(f),j.upload.addEventListener("progress",g),j.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(m=L=>{j&&(o(!L||L.type?new Ki(null,e,j):L),j.abort(),j=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const P=fb(l.url);if(P&&It.protocols.indexOf(P)===-1){o(new Te("Unsupported protocol "+P+":",Te.ERR_BAD_REQUEST,e));return}j.send(a||null)})},kb=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,l;const a=function(p){if(!l){l=!0,d();const m=p instanceof Error?p:this.reason;o.abort(m instanceof Te?m:new Ki(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=o;return f.unsubscribe=()=>V.asap(d),f}},Sb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,l;for(;o<r;)l=o+t,yield e.slice(o,l),o=l},bb=async function*(e,t){for await(const r of Cb(e))yield*Sb(r,t)},Cb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},Dm=(e,t,r,o)=>{const l=bb(e,t);let a=0,u,d=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await l.next();if(p){d(),f.close();return}let g=m.byteLength;if(r){let v=a+=g;r(v)}f.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(f){return d(f),l.return()}},{highWaterMark:2})},va=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uy=va&&typeof ReadableStream=="function",Eb=va&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jb=Uy&&Vy(()=>{let e=!1;const t=new Request(It.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Om=64*1024,id=Uy&&Vy(()=>V.isReadableStream(new Response("").body)),ta={stream:id&&(e=>e.body)};va&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ta[t]&&(ta[t]=V.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new Te(`Response type '${t}' is not supported`,Te.ERR_NOT_SUPPORT,o)})})})(new Response);const Tb=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(It.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await Eb(e)).byteLength},Rb=async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return r??Tb(t)},Nb=va&&(async e=>{let{url:t,method:r,data:o,signal:l,cancelToken:a,timeout:u,onDownloadProgress:d,onUploadProgress:f,responseType:p,headers:m,withCredentials:g="same-origin",fetchOptions:v}=By(e);p=p?(p+"").toLowerCase():"text";let w=kb([l,a&&a.toAbortSignal()],u),S;const b=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let j;try{if(f&&jb&&r!=="get"&&r!=="head"&&(j=await Rb(m,o))!==0){let H=new Request(t,{method:"POST",body:o,duplex:"half"}),A;if(V.isFormData(o)&&(A=H.headers.get("content-type"))&&m.setContentType(A),H.body){const[q,K]=$m(j,ea(_m(f)));o=Dm(H.body,Om,q,K)}}V.isString(g)||(g=g?"include":"omit");const C="credentials"in Request.prototype;S=new Request(t,{...v,signal:w,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:o,duplex:"half",credentials:C?g:void 0});let P=await fetch(S);const L=id&&(p==="stream"||p==="response");if(id&&(d||L&&b)){const H={};["status","statusText","headers"].forEach(le=>{H[le]=P[le]});const A=V.toFiniteNumber(P.headers.get("content-length")),[q,K]=d&&$m(A,ea(_m(d),!0))||[];P=new Response(Dm(P.body,Om,q,()=>{K&&K(),b&&b()}),H)}p=p||"text";let M=await ta[V.findKey(ta,p)||"text"](P,e);return!L&&b&&b(),await new Promise((H,A)=>{My(H,A,{data:M,headers:Gt.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:S})})}catch(C){throw b&&b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,S),{cause:C.cause||C}):Te.from(C,C&&C.code,e,S)}}),od={http:HS,xhr:wb,fetch:Nb};V.forEach(od,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mm=e=>`- ${e}`,Ib=e=>V.isFunction(e)||e===null||e===!1,Hy={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let r,o;const l={};for(let a=0;a<t;a++){r=e[a];let u;if(o=r,!Ib(r)&&(o=od[(u=String(r)).toLowerCase()],o===void 0))throw new Te(`Unknown adapter '${u}'`);if(o)break;l[u||"#"+a]=o}if(!o){const a=Object.entries(l).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
|
85
|
+
animation: ${rS} 0.5s ease-in-out;
|
|
86
|
+
`;function Ey(e,t){return function(){return e.apply(t,arguments)}}const{toString:sS}=Object.prototype,{getPrototypeOf:Od}=Object,ma=(e=>t=>{const r=sS.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>ma(t)===e),ga=e=>t=>typeof t===e,{isArray:Ji}=Array,rl=ga("undefined");function aS(e){return e!==null&&!rl(e)&&e.constructor!==null&&!rl(e.constructor)&&ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jy=In("ArrayBuffer");function uS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jy(e.buffer),t}const cS=ga("string"),ln=ga("function"),Ty=ga("number"),ya=e=>e!==null&&typeof e=="object",dS=e=>e===!0||e===!1,Vs=e=>{if(ma(e)!=="object")return!1;const t=Od(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fS=In("Date"),pS=In("File"),hS=In("Blob"),mS=In("FileList"),gS=e=>ya(e)&&ln(e.pipe),yS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ln(e.append)&&((t=ma(e))==="formdata"||t==="object"&&ln(e.toString)&&e.toString()==="[object FormData]"))},xS=In("URLSearchParams"),[vS,wS,kS,SS]=["ReadableStream","Request","Response","Headers"].map(In),bS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function al(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,l;if(typeof e!="object"&&(e=[e]),Ji(e))for(o=0,l=e.length;o<l;o++)t.call(null,e[o],o,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let d;for(o=0;o<u;o++)d=a[o],t.call(null,e[d],d,e)}}function Ry(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,l;for(;o-- >0;)if(l=r[o],t===l.toLowerCase())return l;return null}const Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Iy=e=>!rl(e)&&e!==Gr;function td(){const{caseless:e}=Iy(this)&&this||{},t={},r=(o,l)=>{const a=e&&Ry(t,l)||l;Vs(t[a])&&Vs(o)?t[a]=td(t[a],o):Vs(o)?t[a]=td({},o):Ji(o)?t[a]=o.slice():t[a]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&al(arguments[o],r);return t}const CS=(e,t,r,{allOwnKeys:o}={})=>(al(t,(l,a)=>{r&&ln(l)?e[a]=Ey(l,r):e[a]=l},{allOwnKeys:o}),e),ES=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jS=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},TS=(e,t,r,o)=>{let l,a,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),a=l.length;a-- >0;)u=l[a],(!o||o(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&Od(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},RS=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},IS=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!Ty(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},NS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Od(Uint8Array)),PS=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=o.next())&&!l.done;){const a=l.value;t.call(e,a[0],a[1])}},AS=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},LS=In("HTMLFormElement"),$S=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),Nm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_S=In("RegExp"),Ny=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};al(r,(l,a)=>{let u;(u=t(l,a,e))!==!1&&(o[a]=u||l)}),Object.defineProperties(e,o)},zS=e=>{Ny(e,(t,r)=>{if(ln(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(ln(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},DS=(e,t)=>{const r={},o=l=>{l.forEach(a=>{r[a]=!0})};return Ji(e)?o(e):o(String(e).split(t)),r},OS=()=>{},FS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function MS(e){return!!(e&&ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const BS=e=>{const t=new Array(10),r=(o,l)=>{if(ya(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[l]=o;const a=Ji(o)?[]:{};return al(o,(u,d)=>{const f=r(u,l+1);!rl(f)&&(a[d]=f)}),t[l]=void 0,a}}return o};return r(e,0)},US=In("AsyncFunction"),VS=e=>e&&(ya(e)||ln(e))&&ln(e.then)&&ln(e.catch),Py=((e,t)=>e?setImmediate:t?((r,o)=>(Gr.addEventListener("message",({source:l,data:a})=>{l===Gr&&a===r&&o.length&&o.shift()()},!1),l=>{o.push(l),Gr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ln(Gr.postMessage)),HS=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||Py,q={isArray:Ji,isArrayBuffer:jy,isBuffer:aS,isFormData:yS,isArrayBufferView:uS,isString:cS,isNumber:Ty,isBoolean:dS,isObject:ya,isPlainObject:Vs,isReadableStream:vS,isRequest:wS,isResponse:kS,isHeaders:SS,isUndefined:rl,isDate:fS,isFile:pS,isBlob:hS,isRegExp:_S,isFunction:ln,isStream:gS,isURLSearchParams:xS,isTypedArray:NS,isFileList:mS,forEach:al,merge:td,extend:CS,trim:bS,stripBOM:ES,inherits:jS,toFlatObject:TS,kindOf:ma,kindOfTest:In,endsWith:RS,toArray:IS,forEachEntry:PS,matchAll:AS,isHTMLForm:LS,hasOwnProperty:Nm,hasOwnProp:Nm,reduceDescriptors:Ny,freezeMethods:zS,toObjectSet:DS,toCamelCase:$S,noop:OS,toFiniteNumber:FS,findKey:Ry,global:Gr,isContextDefined:Iy,isSpecCompliantForm:MS,toJSONObject:BS,isAsyncFn:US,isThenable:VS,setImmediate:Py,asap:HS};function Te(e,t,r,o,l){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),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}q.inherits(Te,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:q.toJSONObject(this.config),code:this.code,status:this.status}}});const Ay=Te.prototype,Ly={};["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=>{Ly[e]={value:e}});Object.defineProperties(Te,Ly);Object.defineProperty(Ay,"isAxiosError",{value:!0});Te.from=(e,t,r,o,l,a)=>{const u=Object.create(Ay);return q.toFlatObject(e,u,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Te.call(u,e.message,t,r,o,l),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const qS=null;function nd(e){return q.isPlainObject(e)||q.isArray(e)}function $y(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function Pm(e,t,r){return e?e.concat(t).map(function(l,a){return l=$y(l),!r&&a?"["+l+"]":l}).join(r?".":""):t}function WS(e){return q.isArray(e)&&!e.some(nd)}const GS=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function xa(e,t,r){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,j){return!q.isUndefined(j[b])});const o=r.metaTokens,l=r.visitor||m,a=r.dots,u=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(l))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(q.isDate(S))return S.toISOString();if(!f&&q.isBlob(S))throw new Te("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(S)||q.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,b,j){let C=S;if(S&&!j&&typeof S=="object"){if(q.endsWith(b,"{}"))b=o?b:b.slice(0,-2),S=JSON.stringify(S);else if(q.isArray(S)&&WS(S)||(q.isFileList(S)||q.endsWith(b,"[]"))&&(C=q.toArray(S)))return b=$y(b),C.forEach(function(A,F){!(q.isUndefined(A)||A===null)&&t.append(u===!0?Pm([b],F,a):u===null?b:b+"[]",p(A))}),!1}return nd(S)?!0:(t.append(Pm(j,b,a),p(S)),!1)}const g=[],v=Object.assign(GS,{defaultVisitor:m,convertValue:p,isVisitable:nd});function w(S,b){if(!q.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(S),q.forEach(S,function(C,N){(!(q.isUndefined(C)||C===null)&&l.call(t,C,q.isString(N)?N.trim():N,b,v))===!0&&w(C,b?b.concat(N):[N])}),g.pop()}}if(!q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Am(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Fd(e,t){this._pairs=[],e&&xa(e,this,t)}const _y=Fd.prototype;_y.append=function(t,r){this._pairs.push([t,r])};_y.toString=function(t){const r=t?function(o){return t.call(this,o,Am)}:Am;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function JS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zy(e,t,r){if(!t)return e;const o=r&&r.encode||JS;q.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let a;if(l?a=l(t,r):a=q.isURLSearchParams(t)?t.toString():new Fd(t,r).toString(o),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Lm{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){q.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Dy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KS=typeof URLSearchParams<"u"?URLSearchParams:Fd,QS=typeof FormData<"u"?FormData:null,YS=typeof Blob<"u"?Blob:null,XS={isBrowser:!0,classes:{URLSearchParams:KS,FormData:QS,Blob:YS},protocols:["http","https","file","blob","url","data"]},Md=typeof window<"u"&&typeof document<"u",rd=typeof navigator=="object"&&navigator||void 0,ZS=Md&&(!rd||["ReactNative","NativeScript","NS"].indexOf(rd.product)<0),eb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tb=Md&&window.location.href||"http://localhost",nb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Md,hasStandardBrowserEnv:ZS,hasStandardBrowserWebWorkerEnv:eb,navigator:rd,origin:tb},Symbol.toStringTag,{value:"Module"})),Nt={...nb,...XS};function rb(e,t){return xa(e,new Nt.classes.URLSearchParams,Object.assign({visitor:function(r,o,l,a){return Nt.isNode&&q.isBuffer(r)?(this.append(o,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function ib(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ob(e){const t={},r=Object.keys(e);let o;const l=r.length;let a;for(o=0;o<l;o++)a=r[o],t[a]=e[a];return t}function Oy(e){function t(r,o,l,a){let u=r[a++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=a>=r.length;return u=!u&&q.isArray(l)?l.length:u,f?(q.hasOwnProp(l,u)?l[u]=[l[u],o]:l[u]=o,!d):((!l[u]||!q.isObject(l[u]))&&(l[u]=[]),t(r,o,l[u],a)&&q.isArray(l[u])&&(l[u]=ob(l[u])),!d)}if(q.isFormData(e)&&q.isFunction(e.entries)){const r={};return q.forEachEntry(e,(o,l)=>{t(ib(o),l,r,0)}),r}return null}function lb(e,t,r){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const ul={transitional:Dy,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",l=o.indexOf("application/json")>-1,a=q.isObject(t);if(a&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return l?JSON.stringify(Oy(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t)||q.isReadableStream(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return rb(t,this.formSerializer).toString();if((d=q.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return xa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||l?(r.setContentType("application/json",!1),lb(t)):t}],transformResponse:[function(t){const r=this.transitional||ul.transitional,o=r&&r.forcedJSONParsing,l=this.responseType==="json";if(q.isResponse(t)||q.isReadableStream(t))return t;if(t&&q.isString(t)&&(o&&!this.responseType||l)){const u=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{ul.headers[e]={}});const sb=q.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"]),ab=e=>{const t={};let r,o,l;return e&&e.split(`
|
|
87
|
+
`).forEach(function(u){l=u.indexOf(":"),r=u.substring(0,l).trim().toLowerCase(),o=u.substring(l+1).trim(),!(!r||t[r]&&sb[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},$m=Symbol("internals");function Ho(e){return e&&String(e).trim().toLowerCase()}function Hs(e){return e===!1||e==null?e:q.isArray(e)?e.map(Hs):String(e)}function ub(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const cb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kc(e,t,r,o,l){if(q.isFunction(o))return o.call(this,t,r);if(l&&(t=r),!!q.isString(t)){if(q.isString(o))return t.indexOf(o)!==-1;if(q.isRegExp(o))return o.test(t)}}function db(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function fb(e,t){const r=q.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(l,a,u){return this[o].call(this,t,l,a,u)},configurable:!0})})}let Gt=class{constructor(t){t&&this.set(t)}set(t,r,o){const l=this;function a(d,f,p){const m=Ho(f);if(!m)throw new Error("header name must be a non-empty string");const g=q.findKey(l,m);(!g||l[g]===void 0||p===!0||p===void 0&&l[g]!==!1)&&(l[g||f]=Hs(d))}const u=(d,f)=>q.forEach(d,(p,m)=>a(p,m,f));if(q.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(q.isString(t)&&(t=t.trim())&&!cb(t))u(ab(t),r);else if(q.isHeaders(t))for(const[d,f]of t.entries())a(f,d,o);else t!=null&&a(r,t,o);return this}get(t,r){if(t=Ho(t),t){const o=q.findKey(this,t);if(o){const l=this[o];if(!r)return l;if(r===!0)return ub(l);if(q.isFunction(r))return r.call(this,l,o);if(q.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ho(t),t){const o=q.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||kc(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let l=!1;function a(u){if(u=Ho(u),u){const d=q.findKey(o,u);d&&(!r||kc(o,o[d],d,r))&&(delete o[d],l=!0)}}return q.isArray(t)?t.forEach(a):a(t),l}clear(t){const r=Object.keys(this);let o=r.length,l=!1;for(;o--;){const a=r[o];(!t||kc(this,this[a],a,t,!0))&&(delete this[a],l=!0)}return l}normalize(t){const r=this,o={};return q.forEach(this,(l,a)=>{const u=q.findKey(o,a);if(u){r[u]=Hs(l),delete r[a];return}const d=t?db(a):String(a).trim();d!==a&&delete r[a],r[d]=Hs(l),o[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return q.forEach(this,(o,l)=>{o!=null&&o!==!1&&(r[l]=t&&q.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
88
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[$m]=this[$m]={accessors:{}}).accessors,l=this.prototype;function a(u){const d=Ho(u);o[d]||(fb(l,u),o[d]=!0)}return q.isArray(t)?t.forEach(a):a(t),this}};Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(Gt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});q.freezeMethods(Gt);function Sc(e,t){const r=this||ul,o=t||r,l=Gt.from(o.headers);let a=o.data;return q.forEach(e,function(d){a=d.call(r,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function Fy(e){return!!(e&&e.__CANCEL__)}function Ki(e,t,r){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,r),this.name="CanceledError"}q.inherits(Ki,Te,{__CANCEL__:!0});function My(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Te("Request failed with status code "+r.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function pb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hb(e,t){e=e||10;const r=new Array(e),o=new Array(e);let l=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=o[a];u||(u=p),r[l]=f,o[l]=p;let g=a,v=0;for(;g!==l;)v+=r[g++],g=g%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),p-u<t)return;const w=m&&p-m;return w?Math.round(v*1e3/w):void 0}}function mb(e,t){let r=0,o=1e3/t,l,a;const u=(p,m=Date.now())=>{r=m,l=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const m=Date.now(),g=m-r;g>=o?u(p,m):(l=p,a||(a=setTimeout(()=>{a=null,u(l)},o-g)))},()=>l&&u(l)]}const ea=(e,t,r=3)=>{let o=0;const l=hb(50,250);return mb(a=>{const u=a.loaded,d=a.lengthComputable?a.total:void 0,f=u-o,p=l(f),m=u<=d;o=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&m?(d-u)/p:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},_m=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},zm=e=>(...t)=>q.asap(()=>e(...t)),gb=Nt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Nt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Nt.origin),Nt.navigator&&/(msie|trident)/i.test(Nt.navigator.userAgent)):()=>!0,yb=Nt.hasStandardBrowserEnv?{write(e,t,r,o,l,a){const u=[e+"="+encodeURIComponent(t)];q.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),q.isString(o)&&u.push("path="+o),q.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.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 xb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function By(e,t,r){let o=!xb(t);return e&&o||r==!1?vb(e,t):t}const Dm=e=>e instanceof Gt?{...e}:e;function Yr(e,t){t=t||{};const r={};function o(p,m,g,v){return q.isPlainObject(p)&&q.isPlainObject(m)?q.merge.call({caseless:v},p,m):q.isPlainObject(m)?q.merge({},m):q.isArray(m)?m.slice():m}function l(p,m,g,v){if(q.isUndefined(m)){if(!q.isUndefined(p))return o(void 0,p,g,v)}else return o(p,m,g,v)}function a(p,m){if(!q.isUndefined(m))return o(void 0,m)}function u(p,m){if(q.isUndefined(m)){if(!q.isUndefined(p))return o(void 0,p)}else return o(void 0,m)}function d(p,m,g){if(g in t)return o(p,m);if(g in e)return o(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,m,g)=>l(Dm(p),Dm(m),g,!0)};return q.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=f[m]||l,v=g(e[m],t[m],m);q.isUndefined(v)&&g!==d||(r[m]=v)}),r}const Uy=e=>{const t=Yr({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:a,headers:u,auth:d}=t;t.headers=u=Gt.from(u),t.url=zy(By(t.baseURL,t.url),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(q.isFormData(r)){if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(Nt.hasStandardBrowserEnv&&(o&&q.isFunction(o)&&(o=o(t)),o||o!==!1&&gb(t.url))){const p=l&&a&&yb.read(a);p&&u.set(l,p)}return t},wb=typeof XMLHttpRequest<"u",kb=wb&&function(e){return new Promise(function(r,o){const l=Uy(e);let a=l.data;const u=Gt.from(l.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l,m,g,v,w,S;function b(){w&&w(),S&&S(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let j=new XMLHttpRequest;j.open(l.method.toUpperCase(),l.url,!0),j.timeout=l.timeout;function C(){if(!j)return;const A=Gt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),V={data:!d||d==="text"||d==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:A,config:e,request:j};My(function(G){r(G),b()},function(G){o(G),b()},V),j=null}"onloadend"in j?j.onloadend=C:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(C)},j.onabort=function(){j&&(o(new Te("Request aborted",Te.ECONNABORTED,e,j)),j=null)},j.onerror=function(){o(new Te("Network Error",Te.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let F=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const V=l.transitional||Dy;l.timeoutErrorMessage&&(F=l.timeoutErrorMessage),o(new Te(F,V.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,j)),j=null},a===void 0&&u.setContentType(null),"setRequestHeader"in j&&q.forEach(u.toJSON(),function(F,V){j.setRequestHeader(V,F)}),q.isUndefined(l.withCredentials)||(j.withCredentials=!!l.withCredentials),d&&d!=="json"&&(j.responseType=l.responseType),p&&([v,S]=ea(p,!0),j.addEventListener("progress",v)),f&&j.upload&&([g,w]=ea(f),j.upload.addEventListener("progress",g),j.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(m=A=>{j&&(o(!A||A.type?new Ki(null,e,j):A),j.abort(),j=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const N=pb(l.url);if(N&&Nt.protocols.indexOf(N)===-1){o(new Te("Unsupported protocol "+N+":",Te.ERR_BAD_REQUEST,e));return}j.send(a||null)})},Sb=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,l;const a=function(p){if(!l){l=!0,d();const m=p instanceof Error?p:this.reason;o.abort(m instanceof Te?m:new Ki(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=o;return f.unsubscribe=()=>q.asap(d),f}},bb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,l;for(;o<r;)l=o+t,yield e.slice(o,l),o=l},Cb=async function*(e,t){for await(const r of Eb(e))yield*bb(r,t)},Eb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},Om=(e,t,r,o)=>{const l=Cb(e,t);let a=0,u,d=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await l.next();if(p){d(),f.close();return}let g=m.byteLength;if(r){let v=a+=g;r(v)}f.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(f){return d(f),l.return()}},{highWaterMark:2})},va=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vy=va&&typeof ReadableStream=="function",jb=va&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Hy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Tb=Vy&&Hy(()=>{let e=!1;const t=new Request(Nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Fm=64*1024,id=Vy&&Hy(()=>q.isReadableStream(new Response("").body)),ta={stream:id&&(e=>e.body)};va&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ta[t]&&(ta[t]=q.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new Te(`Response type '${t}' is not supported`,Te.ERR_NOT_SUPPORT,o)})})})(new Response);const Rb=async e=>{if(e==null)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e))return(await new Request(Nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(q.isArrayBufferView(e)||q.isArrayBuffer(e))return e.byteLength;if(q.isURLSearchParams(e)&&(e=e+""),q.isString(e))return(await jb(e)).byteLength},Ib=async(e,t)=>{const r=q.toFiniteNumber(e.getContentLength());return r??Rb(t)},Nb=va&&(async e=>{let{url:t,method:r,data:o,signal:l,cancelToken:a,timeout:u,onDownloadProgress:d,onUploadProgress:f,responseType:p,headers:m,withCredentials:g="same-origin",fetchOptions:v}=Uy(e);p=p?(p+"").toLowerCase():"text";let w=Sb([l,a&&a.toAbortSignal()],u),S;const b=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let j;try{if(f&&Tb&&r!=="get"&&r!=="head"&&(j=await Ib(m,o))!==0){let V=new Request(t,{method:"POST",body:o,duplex:"half"}),L;if(q.isFormData(o)&&(L=V.headers.get("content-type"))&&m.setContentType(L),V.body){const[G,K]=_m(j,ea(zm(f)));o=Om(V.body,Fm,G,K)}}q.isString(g)||(g=g?"include":"omit");const C="credentials"in Request.prototype;S=new Request(t,{...v,signal:w,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:o,duplex:"half",credentials:C?g:void 0});let N=await fetch(S);const A=id&&(p==="stream"||p==="response");if(id&&(d||A&&b)){const V={};["status","statusText","headers"].forEach(ie=>{V[ie]=N[ie]});const L=q.toFiniteNumber(N.headers.get("content-length")),[G,K]=d&&_m(L,ea(zm(d),!0))||[];N=new Response(Om(N.body,Fm,G,()=>{K&&K(),b&&b()}),V)}p=p||"text";let F=await ta[q.findKey(ta,p)||"text"](N,e);return!A&&b&&b(),await new Promise((V,L)=>{My(V,L,{data:F,headers:Gt.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:S})})}catch(C){throw b&&b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,S),{cause:C.cause||C}):Te.from(C,C&&C.code,e,S)}}),od={http:qS,xhr:kb,fetch:Nb};q.forEach(od,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mm=e=>`- ${e}`,Pb=e=>q.isFunction(e)||e===null||e===!1,qy={getAdapter:e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let r,o;const l={};for(let a=0;a<t;a++){r=e[a];let u;if(o=r,!Pb(r)&&(o=od[(u=String(r)).toLowerCase()],o===void 0))throw new Te(`Unknown adapter '${u}'`);if(o)break;l[u||"#"+a]=o}if(!o){const a=Object.entries(l).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
|
89
89
|
`+a.map(Mm).join(`
|
|
90
|
-
`):" "+Mm(a[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:od};function bc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ki(null,e)}function
|
|
91
|
-
`+a):o.stack=a}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yr(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:a}=r;o!==void 0&&qs.assertOptions(o,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),l!=null&&(V.isFunction(l)?r.paramsSerializer={serialize:l}:qs.assertOptions(l,{encode:On.function,serialize:On.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qs.assertOptions(r,{baseUrl:On.spelling("baseURL"),withXsrfToken:On.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&V.merge(a.common,a[r.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),r.headers=Gt.concat(u,a);const d=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(f=f&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const p=[];this.interceptors.response.forEach(function(b){p.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!f){const S=[Fm.bind(this),void 0];for(S.unshift.apply(S,d),S.push.apply(S,p),v=S.length,m=Promise.resolve(r);g<v;)m=m.then(S[g++],S[g++]);return m}v=d.length;let w=r;for(g=0;g<v;){const S=d[g++],b=d[g++];try{w=S(w)}catch(j){b.call(this,j);break}}try{m=Fm.call(this,w)}catch(S){return Promise.reject(S)}for(g=0,v=p.length;g<v;)m=m.then(p[g++],p[g++]);return m}getUri(t){t=Yr(this.defaults,t);const r=Fy(t.baseURL,t.url,t.allowAbsoluteUrls);return _y(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Kr.prototype[t]=function(r,o){return this.request(Yr(o||{},{method:t,url:r,data:(o||{}).data}))}});V.forEach(["post","put","patch"],function(t){function r(o){return function(a,u,d){return this.request(Yr(d||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Kr.prototype[t]=r(),Kr.prototype[t+"Form"]=r(!0)});let Ab=class Wy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const o=this;this.promise.then(l=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](l);o._listeners=null}),this.promise.then=l=>{let a;const u=new Promise(d=>{o.subscribe(d),a=d}).then(l);return u.cancel=function(){o.unsubscribe(a)},u},t(function(a,u,d){o.reason||(o.reason=new Ki(a,u,d),r(o.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Wy(function(l){t=l}),cancel:t}}};function Lb(e){return function(r){return e.apply(null,r)}}function $b(e){return V.isObject(e)&&e.isAxiosError===!0}const ld={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(ld).forEach(([e,t])=>{ld[t]=e});function Gy(e){const t=new Kr(e),r=Cy(Kr.prototype.request,t);return V.extend(r,Kr.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return Gy(Yr(e,l))},r}const Ze=Gy(ul);Ze.Axios=Kr;Ze.CanceledError=Ki;Ze.CancelToken=Ab;Ze.isCancel=Oy;Ze.VERSION=qy;Ze.toFormData=xa;Ze.AxiosError=Te;Ze.Cancel=Ze.CanceledError;Ze.all=function(t){return Promise.all(t)};Ze.spread=Lb;Ze.isAxiosError=$b;Ze.mergeConfig=Yr;Ze.AxiosHeaders=Gt;Ze.formToJSON=e=>Dy(V.isHTMLForm(e)?new FormData(e):e);Ze.getAdapter=Hy.getAdapter;Ze.HttpStatusCode=ld;Ze.default=Ze;const{Axios:YL,AxiosError:XL,CanceledError:ZL,isCancel:e$,CancelToken:t$,VERSION:n$,all:r$,Cancel:i$,isAxiosError:o$,spread:l$,toFormData:s$,AxiosHeaders:a$,HttpStatusCode:u$,formToJSON:c$,getAdapter:d$,mergeConfig:f$}=Ze,_b="/api",rt=Ze.create({baseURL:_b,headers:{"Content-Type":"application/json"}}),zb=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}};rt.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));rt.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const o=await zb();if(o)return t.headers.Authorization=`Bearer ${o}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",o),rt(t)}return Promise.reject(e)});const Db=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await rt.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw Ze.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Um=async()=>(await rt.get("/content")).data.content,Ob=async(e,t,r)=>{const o=new FormData;o.append("prompt",e),o.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(l=>{o.append("images",l)});try{await rt.post("/execute-codegen",o,{headers:{"Content-Type":"multipart/form-data"}})}catch(l){throw Ze.isAxiosError(l)?l.response?new Error(`Server error: ${l.response.data.message||"Unknown error"}`):l.request?new Error("No response received from server"):new Error(`Error setting up request: ${l.message}`):new Error("An unexpected error occurred")}},Jy=async(e,t,r,o)=>{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(!["default","cheap","reasoning","lite"].includes(r))throw new Error("Model type must be one of: default, cheap, reasoning");return(await rt.post("/generate-content",{prompt:e,temperature:t,modelType:r,options:o})).data.result}catch(l){if(Ze.isAxiosError(l))if(l.response){const a=l.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${a}`)}else throw l.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${l.message}`);throw l instanceof Error?l:new Error("An unexpected error occurred during content generation")}},sd=async()=>(await rt.get("/execution-status")).data.status,Mb=async()=>{await rt.post("/interrupt-execution")},Ky=async()=>await rt.post("/interrupt-execution",{scope:"container-command"}),Fb=async()=>{await rt.post("/pause-execution")},Bb=async()=>{await rt.post("/resume-execution")},ad=async()=>(await rt.get("/current-question")).data.question,Ub=async(e,t,r,o,l)=>{const a=new FormData;a.append("questionId",e),a.append("answer",t),r!==void 0&&a.append("confirmed",String(r)),o&&a.append("options",JSON.stringify(o)),l&&l.length>0&&l.forEach(u=>{a.append("images",u)}),await rt.post("/answer-question",a,{headers:{"Content-Type":"multipart/form-data"}})},Vm=async()=>(await rt.get("/usage")).data,Vb=async()=>(await rt.get("/default-codegen-options")).data.options,Hb=async()=>(await rt.get("/rcconfig")).data.rcConfig,qb=async e=>{await rt.delete(`/delete-iteration/${e}`)},Fd=async()=>(await rt.get("/available-ai-services")).data.services,Qy=async()=>{try{return(await rt.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Wb=async e=>{await rt.post("/service-configuration",e)};rt.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 cl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function dl(e,t){I.useEffect(()=>{const r=o=>{t(o.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function Gb(e,t){if(!(t!=null&&t.modelOverrides))return e;const r=[];return t.modelOverrides.default&&r.push(t.modelOverrides.default),t.modelOverrides.cheap&&r.push(t.modelOverrides.cheap),r.length>0?`${e} (${r.join("/")})`:e}function Yy(){const[e,t]=I.useState([]),[r,o]=I.useState(null);return I.useEffect(()=>{(async()=>{try{const a=await Fd();t(a)}catch(a){console.error("Error fetching AI services:",a),o("Failed to fetch available AI services.")}})()},[]),[e,r]}function Xy(){const[e,t]=I.useState({services:[],isLoading:!0,error:null});return I.useEffect(()=>{(async()=>{try{const[o,l]=await Promise.all([Fd(),Qy()]),a=o.map(u=>({service:u,config:l[u],displayName:Gb(u,l[u])}));t({services:a,isLoading:!1,error:null})}catch(o){console.error("Error fetching services with configurations:",o),t(l=>({...l,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const jr=R.button`
|
|
90
|
+
`):" "+Mm(a[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:od};function bc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ki(null,e)}function Bm(e){return bc(e),e.headers=Gt.from(e.headers),e.data=Sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qy.getAdapter(e.adapter||ul.adapter)(e).then(function(o){return bc(e),o.data=Sc.call(e,e.transformResponse,o),o.headers=Gt.from(o.headers),o},function(o){return Fy(o)||(bc(e),o&&o.response&&(o.response.data=Sc.call(e,e.transformResponse,o.response),o.response.headers=Gt.from(o.response.headers))),Promise.reject(o)})}const Wy="1.8.2",wa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wa[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Um={};wa.transitional=function(t,r,o){function l(a,u){return"[Axios v"+Wy+"] Transitional option '"+a+"'"+u+(o?". "+o:"")}return(a,u,d)=>{if(t===!1)throw new Te(l(u," has been removed"+(r?" in "+r:"")),Te.ERR_DEPRECATED);return r&&!Um[u]&&(Um[u]=!0,console.warn(l(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,u,d):!0}};wa.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function Ab(e,t,r){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let l=o.length;for(;l-- >0;){const a=o[l],u=t[a];if(u){const d=e[a],f=d===void 0||u(d,a,e);if(f!==!0)throw new Te("option "+a+" must be "+f,Te.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Te("Unknown option "+a,Te.ERR_BAD_OPTION)}}const qs={assertOptions:Ab,validators:wa},On=qs.validators;let Kr=class{constructor(t){this.defaults=t,this.interceptors={request:new Lm,response:new Lm}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const a=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?a&&!String(o.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
91
|
+
`+a):o.stack=a}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yr(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:a}=r;o!==void 0&&qs.assertOptions(o,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),l!=null&&(q.isFunction(l)?r.paramsSerializer={serialize:l}:qs.assertOptions(l,{encode:On.function,serialize:On.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qs.assertOptions(r,{baseUrl:On.spelling("baseURL"),withXsrfToken:On.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&q.merge(a.common,a[r.method]);a&&q.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),r.headers=Gt.concat(u,a);const d=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(f=f&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const p=[];this.interceptors.response.forEach(function(b){p.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!f){const S=[Bm.bind(this),void 0];for(S.unshift.apply(S,d),S.push.apply(S,p),v=S.length,m=Promise.resolve(r);g<v;)m=m.then(S[g++],S[g++]);return m}v=d.length;let w=r;for(g=0;g<v;){const S=d[g++],b=d[g++];try{w=S(w)}catch(j){b.call(this,j);break}}try{m=Bm.call(this,w)}catch(S){return Promise.reject(S)}for(g=0,v=p.length;g<v;)m=m.then(p[g++],p[g++]);return m}getUri(t){t=Yr(this.defaults,t);const r=By(t.baseURL,t.url,t.allowAbsoluteUrls);return zy(r,t.params,t.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(t){Kr.prototype[t]=function(r,o){return this.request(Yr(o||{},{method:t,url:r,data:(o||{}).data}))}});q.forEach(["post","put","patch"],function(t){function r(o){return function(a,u,d){return this.request(Yr(d||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Kr.prototype[t]=r(),Kr.prototype[t+"Form"]=r(!0)});let Lb=class Gy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const o=this;this.promise.then(l=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](l);o._listeners=null}),this.promise.then=l=>{let a;const u=new Promise(d=>{o.subscribe(d),a=d}).then(l);return u.cancel=function(){o.unsubscribe(a)},u},t(function(a,u,d){o.reason||(o.reason=new Ki(a,u,d),r(o.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Gy(function(l){t=l}),cancel:t}}};function $b(e){return function(r){return e.apply(null,r)}}function _b(e){return q.isObject(e)&&e.isAxiosError===!0}const ld={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(ld).forEach(([e,t])=>{ld[t]=e});function Jy(e){const t=new Kr(e),r=Ey(Kr.prototype.request,t);return q.extend(r,Kr.prototype,t,{allOwnKeys:!0}),q.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return Jy(Yr(e,l))},r}const Ze=Jy(ul);Ze.Axios=Kr;Ze.CanceledError=Ki;Ze.CancelToken=Lb;Ze.isCancel=Fy;Ze.VERSION=Wy;Ze.toFormData=xa;Ze.AxiosError=Te;Ze.Cancel=Ze.CanceledError;Ze.all=function(t){return Promise.all(t)};Ze.spread=$b;Ze.isAxiosError=_b;Ze.mergeConfig=Yr;Ze.AxiosHeaders=Gt;Ze.formToJSON=e=>Oy(q.isHTMLForm(e)?new FormData(e):e);Ze.getAdapter=qy.getAdapter;Ze.HttpStatusCode=ld;Ze.default=Ze;const{Axios:o$,AxiosError:l$,CanceledError:s$,isCancel:a$,CancelToken:u$,VERSION:c$,all:d$,Cancel:f$,isAxiosError:p$,spread:h$,toFormData:m$,AxiosHeaders:g$,HttpStatusCode:y$,formToJSON:x$,getAdapter:v$,mergeConfig:w$}=Ze,zb="/api",nt=Ze.create({baseURL:zb,headers:{"Content-Type":"application/json"}}),Db=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}};nt.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));nt.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const o=await Db();if(o)return t.headers.Authorization=`Bearer ${o}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",o),nt(t)}return Promise.reject(e)});const Ob=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await nt.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw Ze.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Vm=async()=>(await nt.get("/content")).data.content,Fb=async(e,t,r)=>{const o=new FormData;o.append("prompt",e),o.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(l=>{o.append("images",l)});try{await nt.post("/execute-codegen",o,{headers:{"Content-Type":"multipart/form-data"}})}catch(l){throw Ze.isAxiosError(l)?l.response?new Error(`Server error: ${l.response.data.message||"Unknown error"}`):l.request?new Error("No response received from server"):new Error(`Error setting up request: ${l.message}`):new Error("An unexpected error occurred")}},Ky=async(e,t,r,o)=>{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(!["default","cheap","reasoning","lite"].includes(r))throw new Error("Model type must be one of: default, cheap, reasoning");return(await nt.post("/generate-content",{prompt:e,temperature:t,modelType:r,options:o})).data.result}catch(l){if(Ze.isAxiosError(l))if(l.response){const a=l.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${a}`)}else throw l.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${l.message}`);throw l instanceof Error?l:new Error("An unexpected error occurred during content generation")}},sd=async()=>(await nt.get("/execution-status")).data.status,Mb=async()=>{await nt.post("/interrupt-execution")},Qy=async()=>await nt.post("/interrupt-execution",{scope:"container-command"}),Bb=async()=>{await nt.post("/pause-execution")},Ub=async()=>{await nt.post("/resume-execution")},ad=async()=>(await nt.get("/current-question")).data.question,Vb=async(e,t,r,o,l,a)=>{const u=new FormData;u.append("questionId",e),u.append("answer",t),r!==void 0&&u.append("confirmed",String(r)),o&&u.append("options",JSON.stringify(o)),l&&l.length>0&&l.forEach(d=>{u.append("images",d)}),a&&u.append("selectedActionType",a),await nt.post("/answer-question",u,{headers:{"Content-Type":"multipart/form-data"}})},Hm=async()=>(await nt.get("/usage")).data,Hb=async()=>(await nt.get("/default-codegen-options")).data.options,qb=async()=>(await nt.get("/rcconfig")).data.rcConfig,Wb=async e=>{await nt.delete(`/delete-iteration/${e}`)},Bd=async()=>(await nt.get("/available-ai-services")).data.services,Gb=async()=>(await nt.get("/action-type-options")).data.options,Yy=async()=>{try{return(await nt.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Jb=async e=>{await nt.post("/service-configuration",e)};nt.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 cl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function dl(e,t){P.useEffect(()=>{const r=o=>{t(o.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function Kb(e,t){if(!(t!=null&&t.modelOverrides))return e;const r=[];return t.modelOverrides.default&&r.push(t.modelOverrides.default),t.modelOverrides.cheap&&r.push(t.modelOverrides.cheap),r.length>0?`${e} (${r.join("/")})`:e}function Xy(){const[e,t]=P.useState([]),[r,o]=P.useState(null);return P.useEffect(()=>{(async()=>{try{const a=await Bd();t(a)}catch(a){console.error("Error fetching AI services:",a),o("Failed to fetch available AI services.")}})()},[]),[e,r]}function Zy(){const[e,t]=P.useState({services:[],isLoading:!0,error:null});return P.useEffect(()=>{(async()=>{try{const[o,l]=await Promise.all([Bd(),Yy()]),a=o.map(u=>({service:u,config:l[u],displayName:Kb(u,l[u])}));t({services:a,isLoading:!1,error:null})}catch(o){console.error("Error fetching services with configurations:",o),t(l=>({...l,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const jr=R.button`
|
|
92
92
|
background-color: transparent;
|
|
93
93
|
color: ${({theme:e})=>e.colors.text};
|
|
94
94
|
border: none;
|
|
@@ -110,7 +110,7 @@ Error generating stack: `+x.message+`
|
|
|
110
110
|
outline: none;
|
|
111
111
|
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
|
|
112
112
|
}
|
|
113
|
-
`;function
|
|
113
|
+
`;function ex(){cl("openContentGenerationModel")}function Qb(){return y.jsx(jr,{onClick:ex,"aria-label":"Content generation modal",children:"✨"})}const Yb=({currentService:e})=>{const[t,r]=P.useState(""),[o,l]=P.useState(e),[a,u]=P.useState(.7),[d,f]=P.useState("default"),[p,m]=P.useState(),[g,v]=P.useState(!1),[w,S]=P.useState(null),[b,j]=P.useState(null),[C,N]=P.useState(!1),A=()=>N(!1),[F]=Xy(),{services:V,isLoading:L}=Zy();if(dl("openContentGenerationModel",()=>N(!0)),P.useEffect(()=>{var ie;const K=(ie=V.find(D=>D.service===o))==null?void 0:ie.config;K!=null&&K.modelOverrides?m(K.modelOverrides[d]):m(void 0)},[o,d,V]),!C)return null;const G=async K=>{K.preventDefault(),v(!0),S(null),j(null);try{const ie=await Ky(t,a,d,{aiService:o,askQuestion:!1});j(ie)}catch(ie){S(ie instanceof Error?ie.message:"An unexpected error occurred")}finally{v(!1)}};return y.jsx(Xb,{onClick:K=>K.target===K.currentTarget&&A(),children:y.jsxs(Zb,{children:[y.jsx(eC,{onClick:A,children:"×"}),y.jsx("h2",{children:"Generate Content"}),y.jsxs(tC,{onSubmit:G,children:[y.jsxs(Is,{children:["Prompt",y.jsx(nC,{value:t,onChange:K=>r(K.target.value),placeholder:"Enter your prompt here...",required:!0})]}),y.jsxs(Is,{children:["AI Service",y.jsx(qm,{value:o,onChange:K=>l(K.target.value),disabled:L,children:F.map(K=>y.jsx("option",{value:K,children:K},K))})]}),y.jsxs(Is,{children:["Temperature (",a,")",y.jsxs(rC,{children:[y.jsx(iC,{type:"range",min:"0",max:"2",step:"0.1",value:a,onChange:K=>u(Number(K.target.value))}),y.jsx(oC,{children:a})]})]}),y.jsxs(Is,{children:["Model Type ",p?`(${p})`:"",y.jsxs(qm,{value:d,onChange:K=>f(K.target.value),children:[y.jsx("option",{value:"default",children:"Default"}),y.jsx("option",{value:"cheap",children:"Cheap"}),y.jsx("option",{value:"lite",children:"Lite"}),y.jsx("option",{value:"reasoning",children:"Reasoning"})]})]}),y.jsx(lC,{type:"submit",disabled:g||!t,children:g?"Generating...":"Generate"})]}),w&&y.jsx(aC,{children:w}),b&&y.jsx(sC,{children:b.map((K,ie)=>y.jsxs("div",{children:[y.jsx("strong",{children:K.name}),y.jsx("pre",{children:JSON.stringify(K,null,2)})]},ie))})]})})},Xb=R.div`
|
|
114
114
|
position: fixed;
|
|
115
115
|
top: 0;
|
|
116
116
|
left: 0;
|
|
@@ -121,7 +121,7 @@ Error generating stack: `+x.message+`
|
|
|
121
121
|
justify-content: center;
|
|
122
122
|
align-items: center;
|
|
123
123
|
z-index: 1000;
|
|
124
|
-
`,
|
|
124
|
+
`,Zb=R.div`
|
|
125
125
|
background: ${({theme:e})=>e.colors.background};
|
|
126
126
|
padding: 2rem;
|
|
127
127
|
border-radius: 8px;
|
|
@@ -131,7 +131,7 @@ Error generating stack: `+x.message+`
|
|
|
131
131
|
overflow-y: auto;
|
|
132
132
|
position: relative;
|
|
133
133
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
134
|
-
`,
|
|
134
|
+
`,eC=R.button`
|
|
135
135
|
position: absolute;
|
|
136
136
|
top: 1rem;
|
|
137
137
|
right: 1rem;
|
|
@@ -143,16 +143,16 @@ Error generating stack: `+x.message+`
|
|
|
143
143
|
&:hover {
|
|
144
144
|
opacity: 0.8;
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`,tC=R.form`
|
|
147
147
|
display: flex;
|
|
148
148
|
flex-direction: column;
|
|
149
149
|
gap: 1rem;
|
|
150
|
-
`,
|
|
150
|
+
`,Is=R.label`
|
|
151
151
|
display: flex;
|
|
152
152
|
flex-direction: column;
|
|
153
153
|
gap: 0.5rem;
|
|
154
154
|
color: ${({theme:e})=>e.colors.text};
|
|
155
|
-
`,
|
|
155
|
+
`,nC=R.textarea`
|
|
156
156
|
padding: 0.5rem;
|
|
157
157
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
158
158
|
border-radius: 4px;
|
|
@@ -160,22 +160,22 @@ Error generating stack: `+x.message+`
|
|
|
160
160
|
color: ${({theme:e})=>e.colors.text};
|
|
161
161
|
min-height: 100px;
|
|
162
162
|
resize: vertical;
|
|
163
|
-
`,
|
|
163
|
+
`,qm=R.select`
|
|
164
164
|
padding: 0.5rem;
|
|
165
165
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
166
166
|
border-radius: 4px;
|
|
167
167
|
background: ${({theme:e})=>e.colors.background};
|
|
168
168
|
color: ${({theme:e})=>e.colors.text};
|
|
169
|
-
`,
|
|
169
|
+
`,rC=R.div`
|
|
170
170
|
display: flex;
|
|
171
171
|
align-items: center;
|
|
172
172
|
gap: 1rem;
|
|
173
|
-
`,
|
|
173
|
+
`,iC=R.input`
|
|
174
174
|
flex: 1;
|
|
175
|
-
`,
|
|
175
|
+
`,oC=R.span`
|
|
176
176
|
min-width: 3rem;
|
|
177
177
|
text-align: right;
|
|
178
|
-
`,
|
|
178
|
+
`,lC=R.button`
|
|
179
179
|
padding: 0.5rem 1rem;
|
|
180
180
|
background: ${({theme:e})=>e.colors.primary};
|
|
181
181
|
color: white;
|
|
@@ -189,7 +189,7 @@ Error generating stack: `+x.message+`
|
|
|
189
189
|
opacity: 0.5;
|
|
190
190
|
cursor: not-allowed;
|
|
191
191
|
}
|
|
192
|
-
`,
|
|
192
|
+
`,sC=R.div`
|
|
193
193
|
margin-top: 1rem;
|
|
194
194
|
padding: 1rem;
|
|
195
195
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
@@ -200,13 +200,13 @@ Error generating stack: `+x.message+`
|
|
|
200
200
|
pre {
|
|
201
201
|
white-space: pre-wrap;
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,aC=R.div`
|
|
204
204
|
color: ${({theme:e})=>e.colors.error};
|
|
205
205
|
margin-top: 1rem;
|
|
206
206
|
padding: 0.5rem;
|
|
207
207
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
208
208
|
border-radius: 4px;
|
|
209
|
-
`;function
|
|
209
|
+
`;function tx(){cl("openHealthCheckModal")}function uC(){return y.jsx(jr,{onClick:tx,"aria-label":"Health check modal",children:"🏥"})}async function cC(){const e=(await Bd()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function dC(e){var t,r;try{const[o]=await Ky("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(r=(t=o==null?void 0:o.args)==null?void 0:t.message)!=null&&r.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const fC=()=>{const[e,t]=P.useState(!1),[r,o]=P.useState(!1),[l,a]=P.useState(null),[u,d]=P.useState(null),[f,p]=P.useState(null);dl("openHealthCheckModal",()=>t(!0));const m=()=>t(!1),g=async()=>{o(!0),a(null);try{const S=await cC();d(S),p(new Date);for(const[b,j]of Object.entries(S.services)){const C=Date.now(),N=await dC(b);j.status=N,j.responseTime=Date.now()-C,j.lastChecked=new Date().toISOString(),d(S),p(new Date)}}catch(S){a(S instanceof Error?S.message:"An unexpected error occurred")}finally{o(!1)}};if(P.useEffect(()=>{e&&g()},[e]),!e)return null;const v=S=>{switch(S){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},w=S=>{switch(S){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return y.jsx(pC,{onClick:S=>S.target===S.currentTarget&&m(),children:y.jsxs(hC,{children:[y.jsx(gC,{onClick:m,children:"×"}),y.jsxs(mC,{children:[y.jsx("h2",{children:"AI Services Health Check"}),y.jsx(yC,{onClick:g,disabled:r,children:r?"Checking...":"🔄 Refresh"})]}),l&&y.jsx(TC,{children:l}),y.jsx(xC,{children:u&&Object.entries(u.services).map(([S,b])=>y.jsxs(vC,{children:[y.jsxs(wC,{children:[y.jsx(kC,{children:S}),y.jsx(SC,{children:v(b.status)})]}),y.jsxs(bC,{color:w(b.status),children:[y.jsxs("div",{children:["Status: ",b.status]}),b.responseTime&&y.jsxs("div",{children:["Response time: ",b.responseTime,"ms"]}),b.error&&y.jsx(CC,{children:b.error}),y.jsxs(EC,{children:["Last checked: ",new Date(b.lastChecked).toLocaleTimeString()]})]})]},S))}),f&&y.jsxs(jC,{children:["Last updated: ",f.toLocaleTimeString()]}),r&&y.jsx(RC,{children:"Checking AI Services..."})]})})},pC=R.div`
|
|
210
210
|
position: fixed;
|
|
211
211
|
top: 0;
|
|
212
212
|
left: 0;
|
|
@@ -217,7 +217,7 @@ Error generating stack: `+x.message+`
|
|
|
217
217
|
justify-content: center;
|
|
218
218
|
align-items: center;
|
|
219
219
|
z-index: 1000;
|
|
220
|
-
`,
|
|
220
|
+
`,hC=R.div`
|
|
221
221
|
background: ${({theme:e})=>e.colors.background};
|
|
222
222
|
padding: 2rem;
|
|
223
223
|
border-radius: 8px;
|
|
@@ -227,7 +227,7 @@ Error generating stack: `+x.message+`
|
|
|
227
227
|
overflow-y: auto;
|
|
228
228
|
position: relative;
|
|
229
229
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
230
|
-
`,
|
|
230
|
+
`,mC=R.div`
|
|
231
231
|
display: flex;
|
|
232
232
|
justify-content: space-between;
|
|
233
233
|
align-items: center;
|
|
@@ -236,7 +236,7 @@ Error generating stack: `+x.message+`
|
|
|
236
236
|
h2 {
|
|
237
237
|
margin: 0;
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,gC=R.button`
|
|
240
240
|
position: absolute;
|
|
241
241
|
top: 1rem;
|
|
242
242
|
right: 1rem;
|
|
@@ -248,7 +248,7 @@ Error generating stack: `+x.message+`
|
|
|
248
248
|
&:hover {
|
|
249
249
|
opacity: 0.8;
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,yC=R.button`
|
|
252
252
|
padding: 0.5rem 1rem;
|
|
253
253
|
background: ${({theme:e})=>e.colors.primary};
|
|
254
254
|
color: white;
|
|
@@ -262,48 +262,48 @@ Error generating stack: `+x.message+`
|
|
|
262
262
|
opacity: 0.5;
|
|
263
263
|
cursor: not-allowed;
|
|
264
264
|
}
|
|
265
|
-
`,
|
|
265
|
+
`,xC=R.div`
|
|
266
266
|
display: grid;
|
|
267
267
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
268
268
|
gap: 1rem;
|
|
269
269
|
margin-bottom: 1rem;
|
|
270
|
-
`,
|
|
270
|
+
`,vC=R.div`
|
|
271
271
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
272
272
|
border-radius: 4px;
|
|
273
273
|
padding: 1rem;
|
|
274
274
|
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
275
|
-
`,
|
|
275
|
+
`,wC=R.div`
|
|
276
276
|
display: flex;
|
|
277
277
|
justify-content: space-between;
|
|
278
278
|
align-items: center;
|
|
279
279
|
margin-bottom: 0.5rem;
|
|
280
|
-
`,
|
|
280
|
+
`,kC=R.h3`
|
|
281
281
|
margin: 0;
|
|
282
282
|
font-size: 1.1rem;
|
|
283
|
-
`,
|
|
283
|
+
`,SC=R.span`
|
|
284
284
|
font-size: 1.2rem;
|
|
285
|
-
`,
|
|
285
|
+
`,bC=R.div`
|
|
286
286
|
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}}};
|
|
287
287
|
font-size: 0.9rem;
|
|
288
|
-
`,
|
|
288
|
+
`,CC=R.div`
|
|
289
289
|
color: ${({theme:e})=>e.colors.error};
|
|
290
290
|
margin-top: 0.5rem;
|
|
291
|
-
`,
|
|
291
|
+
`,EC=R.div`
|
|
292
292
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
293
293
|
font-size: 0.8rem;
|
|
294
294
|
margin-top: 0.5rem;
|
|
295
|
-
`,
|
|
295
|
+
`,jC=R.div`
|
|
296
296
|
text-align: right;
|
|
297
297
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
298
298
|
font-size: 0.8rem;
|
|
299
299
|
margin-top: 1rem;
|
|
300
|
-
`,
|
|
300
|
+
`,TC=R.div`
|
|
301
301
|
color: ${({theme:e})=>e.colors.error};
|
|
302
302
|
margin-bottom: 1rem;
|
|
303
303
|
padding: 0.5rem;
|
|
304
304
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
305
305
|
border-radius: 4px;
|
|
306
|
-
`,
|
|
306
|
+
`,RC=R.div`
|
|
307
307
|
position: absolute;
|
|
308
308
|
top: 0;
|
|
309
309
|
left: 0;
|
|
@@ -316,7 +316,7 @@ Error generating stack: `+x.message+`
|
|
|
316
316
|
border-radius: 8px;
|
|
317
317
|
color: white;
|
|
318
318
|
font-size: 1.2rem;
|
|
319
|
-
`,
|
|
319
|
+
`,nx=R.div`
|
|
320
320
|
position: fixed;
|
|
321
321
|
top: 0;
|
|
322
322
|
left: 0;
|
|
@@ -327,7 +327,7 @@ Error generating stack: `+x.message+`
|
|
|
327
327
|
justify-content: center;
|
|
328
328
|
align-items: center;
|
|
329
329
|
z-index: 1000;
|
|
330
|
-
`,
|
|
330
|
+
`,rx=R.div`
|
|
331
331
|
background: ${({theme:e})=>e.colors.background};
|
|
332
332
|
padding: 2rem;
|
|
333
333
|
border-radius: 8px;
|
|
@@ -337,7 +337,7 @@ Error generating stack: `+x.message+`
|
|
|
337
337
|
overflow-y: auto;
|
|
338
338
|
position: relative;
|
|
339
339
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
340
|
-
`,
|
|
340
|
+
`,ix=R.div`
|
|
341
341
|
display: flex;
|
|
342
342
|
justify-content: space-between;
|
|
343
343
|
align-items: center;
|
|
@@ -346,7 +346,7 @@ Error generating stack: `+x.message+`
|
|
|
346
346
|
h2 {
|
|
347
347
|
margin: 0;
|
|
348
348
|
}
|
|
349
|
-
`,
|
|
349
|
+
`,ox=R.button`
|
|
350
350
|
position: absolute;
|
|
351
351
|
top: 1rem;
|
|
352
352
|
right: 1rem;
|
|
@@ -358,12 +358,12 @@ Error generating stack: `+x.message+`
|
|
|
358
358
|
&:hover {
|
|
359
359
|
opacity: 0.8;
|
|
360
360
|
}
|
|
361
|
-
`,
|
|
361
|
+
`,IC=R.div`
|
|
362
362
|
display: grid;
|
|
363
363
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
364
364
|
gap: 1rem;
|
|
365
365
|
margin-bottom: 1rem;
|
|
366
|
-
`,
|
|
366
|
+
`,NC=R.div`
|
|
367
367
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
368
368
|
border-radius: 4px;
|
|
369
369
|
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
@@ -372,7 +372,7 @@ Error generating stack: `+x.message+`
|
|
|
372
372
|
&:hover {
|
|
373
373
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
374
374
|
}
|
|
375
|
-
`,
|
|
375
|
+
`,PC=R.div`
|
|
376
376
|
cursor: pointer;
|
|
377
377
|
padding: 1rem;
|
|
378
378
|
user-select: none;
|
|
@@ -388,26 +388,26 @@ Error generating stack: `+x.message+`
|
|
|
388
388
|
&:hover {
|
|
389
389
|
background-color: ${({theme:e})=>`${e.colors.border}20`};
|
|
390
390
|
}
|
|
391
|
-
`,
|
|
391
|
+
`,AC=R.div`
|
|
392
392
|
display: flex;
|
|
393
393
|
align-items: center;
|
|
394
394
|
gap: 0.5rem;
|
|
395
|
-
`,
|
|
395
|
+
`,LC=R.h3`
|
|
396
396
|
margin: 0;
|
|
397
397
|
font-size: 1.1rem;
|
|
398
|
-
|
|
398
|
+
`,$C=R.span`
|
|
399
399
|
display: inline-block;
|
|
400
400
|
transition: transform 0.2s ease;
|
|
401
401
|
transform: rotate(${({$isCollapsed:e})=>e?"0deg":"180deg"});
|
|
402
402
|
font-size: 0.8rem;
|
|
403
|
-
`,
|
|
403
|
+
`,_C=R.div`
|
|
404
404
|
overflow: hidden;
|
|
405
405
|
transition: height 0.3s ease;
|
|
406
406
|
height: ${({$isCollapsed:e})=>e?"0":"auto"};
|
|
407
407
|
padding: ${({$isCollapsed:e})=>e?"0 1rem":"0 1rem 1rem"};
|
|
408
408
|
opacity: ${({$isCollapsed:e})=>e?"0":"1"};
|
|
409
409
|
transition: all 0.3s ease;
|
|
410
|
-
|
|
410
|
+
`,zC=R.form`
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-direction: column;
|
|
413
413
|
gap: 1rem;
|
|
@@ -430,7 +430,7 @@ Error generating stack: `+x.message+`
|
|
|
430
430
|
outline: none;
|
|
431
431
|
border-color: ${({theme:e})=>e.colors.primary};
|
|
432
432
|
}
|
|
433
|
-
`,
|
|
433
|
+
`,DC=R.button`
|
|
434
434
|
padding: 0.5rem 1rem;
|
|
435
435
|
background: ${({theme:e})=>e.colors.primary};
|
|
436
436
|
color: white;
|
|
@@ -447,21 +447,21 @@ Error generating stack: `+x.message+`
|
|
|
447
447
|
opacity: 0.5;
|
|
448
448
|
cursor: not-allowed;
|
|
449
449
|
}
|
|
450
|
-
`,
|
|
450
|
+
`,OC=R.div`
|
|
451
451
|
color: ${({theme:e})=>e.colors.error};
|
|
452
452
|
margin-bottom: 1rem;
|
|
453
453
|
padding: 0.5rem;
|
|
454
454
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
455
455
|
border-radius: 4px;
|
|
456
|
-
`,
|
|
456
|
+
`,FC=R.div`
|
|
457
457
|
color: ${({theme:e})=>e.colors.success};
|
|
458
458
|
margin-bottom: 1rem;
|
|
459
459
|
padding: 0.5rem;
|
|
460
460
|
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
461
461
|
border-radius: 4px;
|
|
462
|
-
`,OC=R.div`
|
|
463
|
-
color: ${({theme:e})=>e.colors.error};
|
|
464
462
|
`,MC=R.div`
|
|
463
|
+
color: ${({theme:e})=>e.colors.error};
|
|
464
|
+
`,BC=R.div`
|
|
465
465
|
position: absolute;
|
|
466
466
|
top: 0;
|
|
467
467
|
left: 0;
|
|
@@ -474,23 +474,23 @@ Error generating stack: `+x.message+`
|
|
|
474
474
|
border-radius: 8px;
|
|
475
475
|
color: white;
|
|
476
476
|
font-size: 1.2rem;
|
|
477
|
-
`,wr=e=>e==="vertex-ai",
|
|
478
|
-
`)},
|
|
479
|
-
`).map((C,
|
|
477
|
+
`,wr=e=>e==="vertex-ai",UC=e=>e==="openai"||e==="local-llm",VC=({serviceType:e,config:t,onUpdate:r,isLoading:o,isExpanded:l,onCardClick:a})=>{var se,le,re;const[u,d]=P.useState(""),[f,p]=P.useState(!!(t!=null&&t.hasApiKey)),[m,g]=P.useState(((se=t==null?void 0:t.modelOverrides)==null?void 0:se.default)||""),[v,w]=P.useState(((le=t==null?void 0:t.modelOverrides)==null?void 0:le.cheap)||""),[S,b]=P.useState(((re=t==null?void 0:t.modelOverrides)==null?void 0:re.lite)||""),[j,C]=P.useState((t==null?void 0:t.googleCloudProjectId)||""),[N,A]=P.useState((t==null?void 0:t.googleCloudRegion)||""),[F,V]=P.useState((t==null?void 0:t.openaiBaseUrl)||""),[L,G]=P.useState(null);P.useEffect(()=>{var H,de,ae;p(!!(t!=null&&t.hasApiKey)),g(((H=t==null?void 0:t.modelOverrides)==null?void 0:H.default)||""),w(((de=t==null?void 0:t.modelOverrides)==null?void 0:de.cheap)||""),b(((ae=t==null?void 0:t.modelOverrides)==null?void 0:ae.lite)||""),C((t==null?void 0:t.googleCloudProjectId)||""),A((t==null?void 0:t.googleCloudRegion)||""),V((t==null?void 0:t.openaiBaseUrl)||"")},[t]);const K=()=>{if(wr(e)){if(!j)return G("GCP Project ID is required for Vertex AI services"),!1;if(wr(e)&&!N)return G("GCP Region is required for Vertex AI services"),!1}else if(!f&&!u)return G("API Key is required"),!1;return G(null),!0},ie=H=>{if(H.preventDefault(),!K())return;const de={modelOverrides:{default:m||void 0,cheap:v||void 0,lite:S||void 0}};wr(e)?(de.googleCloudProjectId=j,de.googleCloudRegion=N):(de.apiKey=u||void 0,de.openaiBaseUrl=F||void 0),r(de)},D=P.useCallback(()=>{a&&a(e)},[a,e]),ne=H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),D())};return y.jsxs(NC,{children:[y.jsxs(PC,{onClick:D,onKeyDown:ne,role:"button",tabIndex:0,"aria-expanded":!!l,"aria-controls":`config-content-${e}`,children:[y.jsxs(AC,{children:[y.jsx(LC,{children:e}),!wr(e)&&f&&y.jsx("span",{title:"API Key is set",children:"🔑"}),wr(e)&&j&&y.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),y.jsx($C,{$isCollapsed:!l,children:"▼"})]}),y.jsx(_C,{$isCollapsed:!l,id:`config-content-${e}`,"aria-hidden":!l,children:y.jsxs(zC,{onSubmit:ie,children:[!wr(e)&&y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`apiKey-${e}`,children:"API Key"}),y.jsx(Hr,{id:`apiKey-${e}`,type:"password",value:u,onChange:H=>d(H.target.value),placeholder:f?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),UC(e)&&y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`baseUrl-${e}`,children:"Base URL"}),y.jsx(Hr,{id:`baseUrl-${e}`,type:"text",value:F,onChange:H=>V(H.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${e}`})]}),wr(e)&&y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),y.jsx(Hr,{id:`projectId-${e}`,type:"text",value:j,onChange:H=>C(H.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),wr(e)&&y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`region-${e}`,children:"GCP Region"}),y.jsx(Hr,{id:`region-${e}`,type:"text",value:N,onChange:H=>A(H.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),y.jsx(Hr,{id:`defaultModel-${e}`,type:"text",value:m,onChange:H=>g(H.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),y.jsx(Hr,{id:`cheapModel-${e}`,type:"text",value:v,onChange:H=>w(H.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),y.jsxs(rn,{children:[y.jsx(on,{htmlFor:`liteModel-${e}`,children:"Lite Model"}),y.jsx(Hr,{id:`liteModel-${e}`,type:"text",value:S,onChange:H=>b(H.target.value),placeholder:"Enter model name","aria-label":`Lite Model for ${e}`})]}),L&&y.jsx(MC,{role:"alert","aria-live":"polite",children:L}),y.jsx(DC,{type:"submit",disabled:o,"aria-busy":o,children:o?"Updating...":"Update Configuration"})]})})]})};function lx(){cl("openServiceConfigurationModal")}function HC(){return y.jsx(jr,{onClick:lx,"aria-label":"Open service configuration",children:"⚙️"})}const sx=e=>e==="vertex-ai",qC=e=>e==="openai"||e==="local-llm",WC=(e,t)=>{var o,l,a;const r=["Configuration updated successfully for "+e];return sx(e)?(t.googleCloudProjectId&&r.push(`GCP Project ID: ${t.googleCloudProjectId}`),t.googleCloudRegion&&r.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&r.push("API key has been updated"),(o=t.modelOverrides)!=null&&o.default&&r.push(`Default model: ${t.modelOverrides.default}`),(l=t.modelOverrides)!=null&&l.cheap&&r.push(`Cheap model: ${t.modelOverrides.cheap}`),(a=t.modelOverrides)!=null&&a.lite&&r.push(`Lite model: ${t.modelOverrides.lite}`),qC(e)&&"openaiBaseUrl"in t&&r.push(`OpenAI base URL: ${t.openaiBaseUrl}`),r.join(`
|
|
478
|
+
`)},GC=(e,t)=>{if(sx(e)){if(!t.googleCloudProjectId)return`GCP Project ID is required for ${e}`;if(e==="vertex-ai"&&!t.googleCloudRegion)return"GCP Region is required for Vertex AI"}return null},JC=()=>{const[e,t]=P.useState(!1),[r,o]=P.useState(!1),[l,a]=P.useState(null),[u,d]=P.useState(null),[f,p]=P.useState(),[m]=Xy();dl("openServiceConfigurationModal",()=>t(!0));const g=()=>{t(!1),a(null),d(null)};P.useEffect(()=>{e&&v()},[e]);const v=async()=>{o(!0),a(null);try{const C=await Yy();p(C)}catch(C){a(C instanceof Error?C.message:"Failed to fetch configurations")}finally{o(!1)}},w=async(C,N)=>{o(!0),a(null),d(null);const A=GC(C,N);if(A){a(A),o(!1);return}try{await Jb({serviceType:C,config:N}),await v(),d(WC(C,N))}catch(F){let V="Failed to update configuration";F instanceof Error&&(V=F.message,F.message.includes("auth")?V=`Authentication error for ${C}: ${F.message}`:F.message.includes("permission")&&(V=`Permission error for ${C}: ${F.message}`)),a(V)}finally{o(!1)}},[S,b]=P.useState(null),j=P.useCallback(C=>{b(N=>N===C?null:C)},[b]);return e?y.jsx(nx,{onClick:C=>C.target===C.currentTarget&&g(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:y.jsxs(rx,{children:[y.jsx(ox,{onClick:g,"aria-label":"Close configuration modal",children:"×"}),y.jsx(ix,{children:y.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),l&&y.jsx(OC,{role:"alert","aria-live":"polite",children:l}),u&&y.jsx(FC,{role:"status","aria-live":"polite",children:u.split(`
|
|
479
|
+
`).map((C,N)=>y.jsx("div",{children:C},N))}),y.jsx(IC,{children:f?m.map(C=>y.jsx(VC,{serviceType:C,config:f[C],onUpdate:N=>w(C,N),isLoading:r,isExpanded:S===C,onCardClick:j},C)):y.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),r&&y.jsx(BC,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},ax=Gi`
|
|
480
480
|
from {
|
|
481
481
|
opacity: 0;
|
|
482
482
|
}
|
|
483
483
|
to {
|
|
484
484
|
opacity: 1;
|
|
485
485
|
}
|
|
486
|
-
`,
|
|
486
|
+
`,KC=Gi`
|
|
487
487
|
from {
|
|
488
488
|
transform: translateX(100%);
|
|
489
489
|
}
|
|
490
490
|
to {
|
|
491
491
|
transform: translateX(0);
|
|
492
492
|
}
|
|
493
|
-
`,
|
|
493
|
+
`,QC=R.button`
|
|
494
494
|
background: none;
|
|
495
495
|
border: none;
|
|
496
496
|
font-size: 1.5rem;
|
|
@@ -511,7 +511,7 @@ Error generating stack: `+x.message+`
|
|
|
511
511
|
outline-offset: 2px;
|
|
512
512
|
border-radius: 4px;
|
|
513
513
|
}
|
|
514
|
-
`,
|
|
514
|
+
`,YC=R.div`
|
|
515
515
|
position: fixed;
|
|
516
516
|
top: 0;
|
|
517
517
|
left: 0;
|
|
@@ -520,8 +520,8 @@ Error generating stack: `+x.message+`
|
|
|
520
520
|
background-color: rgba(0, 0, 0, 0.5);
|
|
521
521
|
z-index: 998;
|
|
522
522
|
display: ${({isOpen:e})=>e?"block":"none"};
|
|
523
|
-
animation: ${
|
|
524
|
-
`,
|
|
523
|
+
animation: ${ax} 0.2s ease;
|
|
524
|
+
`,XC=R.div`
|
|
525
525
|
position: absolute;
|
|
526
526
|
${({position:e})=>e?bt`
|
|
527
527
|
top: ${e.top??"auto"};
|
|
@@ -542,8 +542,8 @@ Error generating stack: `+x.message+`
|
|
|
542
542
|
visibility: ${({isOpen:e})=>e?"visible":"hidden"};
|
|
543
543
|
transform-origin: top right;
|
|
544
544
|
animation: ${({isOpen:e})=>e?bt`
|
|
545
|
-
${
|
|
546
|
-
${
|
|
545
|
+
${KC} 0.2s ease,
|
|
546
|
+
${ax} 0.2s ease
|
|
547
547
|
`:"none"};
|
|
548
548
|
|
|
549
549
|
@media (max-width: 576px) {
|
|
@@ -557,7 +557,7 @@ Error generating stack: `+x.message+`
|
|
|
557
557
|
border-bottom-left-radius: 8px;
|
|
558
558
|
transform-origin: center right;
|
|
559
559
|
}
|
|
560
|
-
`,
|
|
560
|
+
`,ZC=R.div`
|
|
561
561
|
padding: 12px 16px;
|
|
562
562
|
cursor: pointer;
|
|
563
563
|
transition: background-color 0.2s ease;
|
|
@@ -575,10 +575,10 @@ Error generating stack: `+x.message+`
|
|
|
575
575
|
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
576
576
|
outline-offset: -2px;
|
|
577
577
|
}
|
|
578
|
-
`,
|
|
578
|
+
`,eE=R.div`
|
|
579
579
|
position: relative;
|
|
580
580
|
display: inline-block;
|
|
581
|
-
`,
|
|
581
|
+
`,tE=({menuItems:e,isOpen:t,onToggle:r,className:o,buttonAriaLabel:l="Toggle menu",menuAriaLabel:a="Navigation menu",position:u})=>{const d=P.useRef(null),f=P.useRef(null),p=P.useRef(null);P.useEffect(()=>{const v=S=>{var b;t&&d.current&&!d.current.contains(S.target)&&!((b=p.current)!=null&&b.contains(S.target))&&r()},w=S=>{var b;t&&S.key==="Escape"&&(r(),(b=p.current)==null||b.focus())};return document.addEventListener("mousedown",v),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",w)}},[t,r]),P.useEffect(()=>{var v;t&&((v=f.current)==null||v.focus())},[t]);const m=v=>{var b,j;if(!t)return;const w=Array.from(((b=d.current)==null?void 0:b.querySelectorAll('[role="menuitem"]'))||[]),S=w.indexOf(document.activeElement);switch(v.key){case"ArrowDown":v.preventDefault(),S<w.length-1?w[S+1].focus():w[0].focus();break;case"ArrowUp":v.preventDefault(),S>0?w[S-1].focus():w[w.length-1].focus();break;case"Home":v.preventDefault(),w[0].focus();break;case"End":v.preventDefault(),w[w.length-1].focus();break;case"Enter":case" ":v.preventDefault(),S>=0&&(e[S].onClick(),r(),(j=p.current)==null||j.focus());break}},g=v=>{var w;v(),r(),(w=p.current)==null||w.focus()};return y.jsxs(eE,{className:o,children:[y.jsx(QC,{onClick:r,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":l,ref:p,children:"☰"}),y.jsx(YC,{isOpen:t,onClick:r}),y.jsx(XC,{isOpen:t,position:u,ref:d,role:"menu","aria-label":a,id:"menu-items",onKeyDown:m,children:e.map((v,w)=>y.jsxs(ZC,{onClick:()=>g(v.onClick),role:"menuitem",tabIndex:t?0:-1,ref:w===0?f:null,"aria-label":v.ariaLabel,children:[v.content," ",v.ariaLabel]},v.key||w))})]})};function ux(){cl("openRcConfigModal")}const nE=({rcConfig:e})=>{const[t,r]=P.useState(!1);dl("openRcConfigModal",()=>r(!0));const o=()=>{r(!1)};return!t||!e?null:y.jsx(nx,{onClick:l=>l.target===l.currentTarget&&o(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:y.jsxs(rx,{children:[y.jsx(ox,{onClick:o,"aria-label":"Close RC configuration modal",children:"×"}),y.jsx(ix,{children:y.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),y.jsxs(rE,{children:[y.jsxs(rn,{children:[y.jsx(on,{children:"Root Directory"}),y.jsx(ji,{children:e.rootDir})]}),e.lintCommand&&y.jsxs(rn,{children:[y.jsx(on,{children:"Lint Command"}),y.jsx(ji,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&y.jsxs(rn,{children:[y.jsx(on,{children:"Extensions"}),y.jsx(ji,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&y.jsxs(rn,{children:[y.jsx(on,{children:"Ignore Paths"}),y.jsx(ji,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&y.jsxs(rn,{children:[y.jsx(on,{children:"Important Context"}),y.jsx(ji,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&y.jsxs(rn,{children:[y.jsx(on,{children:"Model Overrides"}),y.jsx(ji,{children:y.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},rE=R.div`
|
|
582
582
|
display: flex;
|
|
583
583
|
flex-direction: column;
|
|
584
584
|
gap: 1rem;
|
|
@@ -595,7 +595,7 @@ Error generating stack: `+x.message+`
|
|
|
595
595
|
margin: 0;
|
|
596
596
|
white-space: pre-wrap;
|
|
597
597
|
}
|
|
598
|
-
`,
|
|
598
|
+
`,iE=()=>y.jsx(jr,{onClick:ux,children:"ℹ️"}),oE=R.div`
|
|
599
599
|
position: fixed;
|
|
600
600
|
top: 0;
|
|
601
601
|
left: 0;
|
|
@@ -606,7 +606,7 @@ Error generating stack: `+x.message+`
|
|
|
606
606
|
justify-content: center;
|
|
607
607
|
align-items: center;
|
|
608
608
|
z-index: 1000;
|
|
609
|
-
`,
|
|
609
|
+
`,lE=R.div`
|
|
610
610
|
background: ${({theme:e})=>e.colors.background};
|
|
611
611
|
padding: 2rem;
|
|
612
612
|
border-radius: 8px;
|
|
@@ -616,7 +616,7 @@ Error generating stack: `+x.message+`
|
|
|
616
616
|
overflow-y: auto;
|
|
617
617
|
position: relative;
|
|
618
618
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
619
|
-
`,
|
|
619
|
+
`,sE=R.div`
|
|
620
620
|
display: flex;
|
|
621
621
|
justify-content: space-between;
|
|
622
622
|
align-items: center;
|
|
@@ -625,7 +625,7 @@ Error generating stack: `+x.message+`
|
|
|
625
625
|
h2 {
|
|
626
626
|
margin: 0;
|
|
627
627
|
}
|
|
628
|
-
`,
|
|
628
|
+
`,aE=R.button`
|
|
629
629
|
position: absolute;
|
|
630
630
|
top: 1rem;
|
|
631
631
|
right: 1rem;
|
|
@@ -637,24 +637,24 @@ Error generating stack: `+x.message+`
|
|
|
637
637
|
&:hover {
|
|
638
638
|
opacity: 0.8;
|
|
639
639
|
}
|
|
640
|
-
`,
|
|
640
|
+
`,uE=R.div`
|
|
641
641
|
display: flex;
|
|
642
642
|
flex-direction: column;
|
|
643
643
|
gap: 1rem;
|
|
644
644
|
margin-bottom: 1rem;
|
|
645
|
-
`,
|
|
645
|
+
`,cE=R.div`
|
|
646
646
|
color: ${({theme:e})=>e.colors.error};
|
|
647
647
|
margin-bottom: 1rem;
|
|
648
648
|
padding: 0.5rem;
|
|
649
649
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
650
650
|
border-radius: 4px;
|
|
651
|
-
`,
|
|
651
|
+
`,dE=R.div`
|
|
652
652
|
color: ${({theme:e})=>e.colors.success};
|
|
653
653
|
margin-bottom: 1rem;
|
|
654
654
|
padding: 0.5rem;
|
|
655
655
|
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
656
656
|
border-radius: 4px;
|
|
657
|
-
`,
|
|
657
|
+
`,fE=R.div`
|
|
658
658
|
position: absolute;
|
|
659
659
|
top: 0;
|
|
660
660
|
left: 0;
|
|
@@ -667,11 +667,11 @@ Error generating stack: `+x.message+`
|
|
|
667
667
|
border-radius: 8px;
|
|
668
668
|
color: white;
|
|
669
669
|
font-size: 1.2rem;
|
|
670
|
-
`,na=({value:e,onChange:t,disabled:r})=>{const{services:o,isLoading:l,error:a}=
|
|
670
|
+
`,na=({value:e,onChange:t,disabled:r})=>{const{services:o,isLoading:l,error:a}=Zy(),u=d=>{t(d.target.value)};return y.jsxs(pE,{children:[y.jsxs(hE,{id:"aiService",value:e,onChange:u,disabled:r||l||a!==null,children:[y.jsx("option",{value:"",children:"Select AI Service"}),o.map(({service:d,displayName:f})=>y.jsx("option",{value:d,children:f},d))]}),l&&y.jsx(mE,{children:"Loading services..."}),a&&y.jsx(gE,{children:a})]})},pE=R.div`
|
|
671
671
|
display: flex;
|
|
672
672
|
flex-direction: column;
|
|
673
673
|
gap: 4px;
|
|
674
|
-
`,
|
|
674
|
+
`,hE=R.select`
|
|
675
675
|
padding: 8px;
|
|
676
676
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
677
677
|
border-radius: 4px;
|
|
@@ -690,20 +690,20 @@ Error generating stack: `+x.message+`
|
|
|
690
690
|
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
691
691
|
color: ${({theme:e})=>e.colors.inputText};
|
|
692
692
|
}
|
|
693
|
-
`,
|
|
693
|
+
`,mE=R.div`
|
|
694
694
|
color: ${({theme:e})=>e.colors.text};
|
|
695
695
|
font-size: 14px;
|
|
696
696
|
font-style: italic;
|
|
697
|
-
`,
|
|
697
|
+
`,gE=R.div`
|
|
698
698
|
color: ${({theme:e})=>e.colors.error};
|
|
699
699
|
font-size: 14px;
|
|
700
|
-
`;function
|
|
700
|
+
`;function cx(){cl("openGenaicodeConfigModal")}function yE(){return y.jsx(jr,{onClick:cx,"aria-label":"Open Genaicode configuration",children:"🐺"})}const xE=({options:e,onOptionsChange:t})=>{const[r,o]=P.useState(!1),[l,a]=P.useState(!1),[u,d]=P.useState(null),[f,p]=P.useState(null);dl("openGenaicodeConfigModal",()=>o(!0));const m=()=>{o(!1),d(null),p(null)},g=async b=>{a(!0),d(null),p(null);try{t(b),p("Configuration updated successfully")}catch{d("Failed to update configuration")}finally{a(!1)}},v=b=>{const{name:j,value:C,type:N}=b.target,A=N==="checkbox"?b.target.checked:C;g({...e,[j]:A})},w=b=>{g({...e,aiService:b})},S=b=>{const j=b.target.value.split(",").map(C=>C.trim());g({...e,ignorePatterns:j})};return r?y.jsx(oE,{onClick:b=>b.target===b.currentTarget&&m(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:y.jsxs(lE,{children:[y.jsx(aE,{onClick:m,"aria-label":"Close configuration modal",children:"×"}),y.jsx(sE,{children:y.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),u&&y.jsx(cE,{role:"alert","aria-live":"polite",children:u}),f&&y.jsx(dE,{role:"status","aria-live":"polite",children:f}),y.jsxs(uE,{children:[y.jsxs(qo,{children:[y.jsx(Fn,{htmlFor:"aiService",children:"Default AI Service:"}),y.jsx(na,{value:e.aiService,onChange:w,disabled:l})]}),y.jsxs(qo,{children:[y.jsx(Fn,{htmlFor:"contentMask",children:"Content Mask:"}),y.jsx(Wm,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:v,disabled:l})]}),y.jsxs(qo,{children:[y.jsx(Fn,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),y.jsx(Wm,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:S,disabled:l}),y.jsx("small",{children:"Comma-separated list of patterns"})]}),y.jsxs(qo,{children:[y.jsx(Fn,{children:"File Operations:"}),y.jsxs(Fn,{htmlFor:"allowFileCreate",children:[y.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:v,disabled:l}),"Allow File Create"]}),y.jsxs(Fn,{htmlFor:"allowFileDelete",children:[y.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:v,disabled:l}),"Allow File Delete"]}),y.jsxs(Fn,{htmlFor:"allowDirectoryCreate",children:[y.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:v,disabled:l}),"Allow Directory Create"]}),y.jsxs(Fn,{htmlFor:"allowFileMove",children:[y.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:v,disabled:l}),"Allow File Move"]})]}),y.jsxs(qo,{children:[y.jsx(Fn,{children:"Notification Settings:"}),y.jsxs(Fn,{htmlFor:"muteNotifications",children:[y.jsx("input",{type:"checkbox",id:"muteNotifications",name:"muteNotifications",checked:e.muteNotifications===!0,onChange:v,disabled:l}),"Mute Sound Notifications"]})]})]}),l&&y.jsx(fE,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},qo=R.div`
|
|
701
701
|
margin-bottom: 16px;
|
|
702
|
-
`,
|
|
702
|
+
`,Fn=R.label`
|
|
703
703
|
display: block;
|
|
704
704
|
margin-bottom: 4px;
|
|
705
705
|
color: ${e=>e.theme.colors.text};
|
|
706
|
-
`,
|
|
706
|
+
`,Wm=R.input`
|
|
707
707
|
width: 100%;
|
|
708
708
|
padding: 8px;
|
|
709
709
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -715,7 +715,7 @@ Error generating stack: `+x.message+`
|
|
|
715
715
|
background-color: ${e=>e.theme.colors.disabled};
|
|
716
716
|
cursor: not-allowed;
|
|
717
717
|
}
|
|
718
|
-
`,
|
|
718
|
+
`,vE="0.13.0",dx=()=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM13.96 12.29L11.21 15.83L9.25 13.47L6.5 17H17.5L13.96 12.29Z",fill:"currentColor"})}),wE=()=>y.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{d:"M10 3H8C6.89543 3 6 3.89543 6 5V7M10 21H8C6.89543 21 6 20.1046 6 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:"M14 3H16C17.1046 3 18 3.89543 18 5V7M14 21H16C17.1046 21 18 20.1046 18 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("rect",{x:"6",y:"10",width:"12",height:"4",rx:"1",stroke:"currentColor",strokeWidth:"2"}),y.jsx("path",{d:"M12 7V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M12 14V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),kE=500,Ns=5e3,Qi=P.createContext({messages:[],executionStatus:"idle",currentQuestion:null,suggestions:[],currentPrompt:"",theme:"dark",usage:void 0,codegenOptions:void 0,rcConfig:null,lastFinishedExecutionId:null,initialDataLoaded:!1,conversationGraphState:null,isGraphVisualiserOpen:!1,terminalEvents:{},isTerminalOpen:!1,setMessages:()=>{},setExecutionStatus:()=>{},setCurrentQuestion:()=>{},setSuggestions:()=>{},setCurrentPrompt:()=>{},toggleTheme:()=>{},setCodegenOptions:()=>{},setLastFinishedExecutionId:()=>{},startPolling:()=>{},stopPolling:()=>{},handlePauseExecution:async()=>{},handleResumeExecution:async()=>{},setConversationGraphState:()=>{},toggleGraphVisualiser:()=>{},toggleTerminal:()=>{},clearTerminalEvents:()=>{}}),SE=({children:e})=>{const[t,r]=P.useState([]),[o,l]=P.useState("idle"),[a,u]=P.useState(null),[d,f]=P.useState([]),[p,m]=P.useState(""),[g,v]=P.useState("dark"),[w,S]=P.useState(),[b,j]=P.useState(void 0),[C,N]=P.useState(null),[A,F]=P.useState(null),V=P.useRef(!1),[L,G]=P.useState(!1),K=P.useRef(null),[ie,D]=P.useState(null),[ne,se]=P.useState(!1),[le,re]=P.useState({}),[H,de]=P.useState(!1),[ae,X]=P.useState(!0),ue=P.useCallback(()=>{v(Ne=>Ne==="light"?"dark":"light")},[]),E=P.useCallback(Ne=>{j(Ne)},[]),_=P.useCallback(()=>{se(Ne=>!Ne)},[]),U=P.useCallback(()=>{de(Ne=>!Ne)},[]),T=P.useCallback(()=>{X(Ne=>!Ne)},[]),ye=P.useCallback(Ne=>{re($t=>({...$t,[Ne]:[]}))},[]),Se=P.useCallback(async()=>{try{const[Ne,$t,Pn,_t,_e,st]=await Promise.all([sd(),ad(),Vm(),Hm(),Hb(),qb()]);l(Ne),u($t);const Et=[],xt={};for(const Ye of Pn)if(Ye.message&&Et.push({...Ye.message,timestamp:new Date(Ye.message.timestamp),data:Ye.data}),Ye.terminalEvent){const{iterationId:it}=Ye.terminalEvent;xt[it]||(xt[it]=[]),xt[it].push({...Ye.terminalEvent,timestamp:new Date(Ye.terminalEvent.timestamp).toString()})}for(const Ye in xt)xt[Ye].length>Ns&&(xt[Ye]=xt[Ye].slice(-Ns));r(Et),re(xt),S(_t),j(_e),N(st),G(!0)}catch(Ne){console.error("Failed to fetch initial data:",Ne),G(!1)}},[]);P.useEffect(()=>{Se()},[Se]);const me=P.useCallback(async()=>{try{const[Ne,$t,Pn,_t]=await Promise.all([sd(),ad(),Vm(),Hm()]);l(_e=>_e!==Ne?Ne:_e),u(_e=>(_e==null?void 0:_e.id)!==($t==null?void 0:$t.id)?$t:_e),r(_e=>{const st=Pn.filter(Et=>!!Et.message).map(Et=>({...Et.message,timestamp:new Date(Et.message.timestamp),data:Et.data}));return _e.length!==st.length||_e.length>0&&st.length>0&&_e[_e.length-1].id!==st[st.length-1].id?st:_e}),re(_e=>{const st={};let Et=!1;for(const it of Pn)if(it.terminalEvent){const{iterationId:Ft}=it.terminalEvent;st[Ft]||(st[Ft]=[]),st[Ft].push({...it.terminalEvent,timestamp:new Date(it.terminalEvent.timestamp).toString()})}const xt=new Set([...Object.keys(_e),...Object.keys(st)]),Ye={..._e};for(const it of xt){const Ft=_e[it]||[],un=st[it]||[];(Ft.length!==un.length||un.length>0&&Ft.length>0&&Ft[Ft.length-1].id!==un[un.length-1].id)&&(Et=!0,Ye[it]=un.length>Ns?un.slice(-Ns):un)}return Et?Ye:_e}),S(_e=>(_e==null?void 0:_e.usageMetrics.total.cost)!==(_t==null?void 0:_t.usageMetrics.total.cost)||(_e==null?void 0:_e.usageMetrics.total.tpd)!==(_t==null?void 0:_t.usageMetrics.total.tpd)?_t:_e)}catch(Ne){console.error("Failed to poll data:",Ne)}K.current&&clearTimeout(K.current),V.current&&(K.current=setTimeout(me,kE))},[]),Ee=P.useCallback(()=>{V.current||(console.log("Starting polling..."),V.current=!0,K.current&&clearTimeout(K.current),requestAnimationFrame(()=>{me()}))},[me]),ke=P.useCallback(()=>{V.current&&(console.log("Stopping polling..."),V.current=!1,K.current&&(clearTimeout(K.current),K.current=null))},[]);P.useEffect(()=>(L&&Ee(),()=>{ke()}),[L,Ee,ke]);const je=P.useCallback(async()=>{try{await Bb(),l("paused")}catch(Ne){console.error("Failed to pause execution:",Ne)}},[]),Ve=P.useCallback(async()=>{try{await Ub(),l("executing")}catch(Ne){console.error("Failed to resume execution:",Ne)}},[]),Ct=P.useMemo(()=>({messages:t,executionStatus:o,currentQuestion:a,suggestions:d,currentPrompt:p,theme:g,usage:w,codegenOptions:b,rcConfig:C,lastFinishedExecutionId:A,initialDataLoaded:L,conversationGraphState:ie,isGraphVisualiserOpen:ne,terminalEvents:le,isTerminalOpen:H,autoScrollTerminal:ae,setMessages:r,setExecutionStatus:l,setCurrentQuestion:u,setSuggestions:f,setCurrentPrompt:m,toggleTheme:ue,setCodegenOptions:E,setLastFinishedExecutionId:F,startPolling:Ee,stopPolling:ke,handlePauseExecution:je,handleResumeExecution:Ve,setConversationGraphState:D,toggleGraphVisualiser:_,toggleTerminal:U,toggleAutoScrollTerminal:T,setAutoScrollTerminal:X,clearTerminalEvents:ye}),[t,o,a,d,p,g,w,b,C,A,L,ie,ne,le,H,ae,ue,E,Ee,ke,je,Ve,_,U,T,ye]);return y.jsx(Qi.Provider,{value:Ct,children:e})},fl=()=>{const e=Pt.useContext(Qi);if(!e)throw new Error("useChatState must be used within a ChatStateProvider");return e},bE=Gi`
|
|
719
719
|
0% {
|
|
720
720
|
transform: scale(1);
|
|
721
721
|
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); // Use theme primary color ideally
|
|
@@ -728,18 +728,18 @@ Error generating stack: `+x.message+`
|
|
|
728
728
|
transform: scale(1);
|
|
729
729
|
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
|
|
730
730
|
}
|
|
731
|
-
`,
|
|
731
|
+
`,CE=R.div`
|
|
732
732
|
position: absolute; // Positioned relative to MainContent
|
|
733
733
|
bottom: 40px;
|
|
734
734
|
right: 30px;
|
|
735
735
|
z-index: 1000; // Ensure it's above other content like scrollbars
|
|
736
|
-
`,
|
|
736
|
+
`,EE=R(jr)`
|
|
737
737
|
width: 50px; // Increased size
|
|
738
738
|
height: 50px; // Increased size
|
|
739
739
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
740
740
|
color: ${({theme:e})=>e.colors.buttonText||"#ffffff"}; // Ensure icon is visible
|
|
741
741
|
border: none;
|
|
742
|
-
animation: ${
|
|
742
|
+
animation: ${bE} 2s infinite;
|
|
743
743
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
744
744
|
|
|
745
745
|
&:hover {
|
|
@@ -753,14 +753,14 @@ Error generating stack: `+x.message+`
|
|
|
753
753
|
border: 1px solid ${t.colors.primary};
|
|
754
754
|
animation: none; // Turn off animation when visualiser is open
|
|
755
755
|
`}
|
|
756
|
-
`,
|
|
756
|
+
`,jE=()=>{const{toggleGraphVisualiser:e,isGraphVisualiserOpen:t,conversationGraphState:r}=fl();return r!=null&&r.isActive?y.jsx(CE,{children:y.jsx(EE,{onClick:e,"aria-label":"Toggle Conversation Graph",title:"Toggle Conversation Graph",isActive:t,children:y.jsx(wE,{})})}):null},TE="https://github.com/gtanczyk/genaicode/issues",RE=({themeToggle:e,chatInterface:t,inputArea:r,usage:o,toggleTheme:l})=>{const[a,u]=P.useState(!1),d=[{content:y.jsx(HC,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:lx},{content:y.jsx(uC,{}),ariaLabel:"Health Check",key:"health-check",onClick:tx},{content:y.jsx(Qb,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:ex},{content:y.jsx(yE,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:cx},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:l},{content:y.jsx(iE,{}),ariaLabel:"Information",key:"info",onClick:ux},{content:y.jsx(jr,{children:"🐛"}),ariaLabel:"Report Bug",key:"report-bug",onClick:()=>window.open(TE,"_blank","noopener,noreferrer")}];return y.jsxs(IE,{children:[y.jsxs(NE,{children:[y.jsx(PE,{children:y.jsxs(AE,{children:[y.jsx(LE,{children:"GenAIcode"}),y.jsxs($E,{children:["v",vE]})]})}),y.jsxs(_E,{children:[y.jsx(zE,{children:y.jsx(nS,{usage:o})}),y.jsx(DE,{children:y.jsx(tE,{menuItems:d,isOpen:a,onToggle:()=>u(!a),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),y.jsxs(OE,{children:[y.jsx(FE,{children:t}),y.jsx(ME,{children:r}),y.jsx(jE,{})]})]})},IE=R.div`
|
|
757
757
|
display: flex;
|
|
758
758
|
flex-direction: column;
|
|
759
759
|
height: 100vh;
|
|
760
760
|
max-width: 1200px;
|
|
761
761
|
margin: 0 auto;
|
|
762
762
|
padding: 0 10px;
|
|
763
|
-
`,
|
|
763
|
+
`,NE=R.header`
|
|
764
764
|
position: relative;
|
|
765
765
|
display: flex;
|
|
766
766
|
justify-content: space-between;
|
|
@@ -768,13 +768,13 @@ Error generating stack: `+x.message+`
|
|
|
768
768
|
padding: 10px 0;
|
|
769
769
|
flex-wrap: nowrap;
|
|
770
770
|
gap: 10px;
|
|
771
|
-
`,
|
|
771
|
+
`,PE=R.div`
|
|
772
772
|
display: flex;
|
|
773
773
|
align-items: center;
|
|
774
774
|
gap: 10px;
|
|
775
|
-
`,
|
|
775
|
+
`,AE=R.div`
|
|
776
776
|
position: relative;
|
|
777
|
-
`,
|
|
777
|
+
`,LE=R.h1`
|
|
778
778
|
text-transform: uppercase;
|
|
779
779
|
font-family: 'Press Start 2P', system-ui;
|
|
780
780
|
color: ${({theme:e})=>e.colors.primary};
|
|
@@ -783,7 +783,7 @@ Error generating stack: `+x.message+`
|
|
|
783
783
|
white-space: nowrap;
|
|
784
784
|
overflow: hidden;
|
|
785
785
|
text-overflow: ellipsis;
|
|
786
|
-
|
|
786
|
+
`,$E=R.span`
|
|
787
787
|
position: absolute;
|
|
788
788
|
bottom: 0;
|
|
789
789
|
right: 0;
|
|
@@ -794,7 +794,7 @@ Error generating stack: `+x.message+`
|
|
|
794
794
|
border-radius: 3px;
|
|
795
795
|
transform: translateY(100%);
|
|
796
796
|
white-space: nowrap;
|
|
797
|
-
`,
|
|
797
|
+
`,_E=R.div`
|
|
798
798
|
display: flex;
|
|
799
799
|
align-items: center;
|
|
800
800
|
gap: 16px;
|
|
@@ -804,30 +804,30 @@ Error generating stack: `+x.message+`
|
|
|
804
804
|
@media (max-width: 576px) {
|
|
805
805
|
gap: 8px;
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
`,zE=R.div`
|
|
808
808
|
flex-shrink: 1;
|
|
809
809
|
min-width: 0;
|
|
810
|
-
`,
|
|
810
|
+
`,DE=R.div`
|
|
811
811
|
display: flex;
|
|
812
812
|
align-items: center;
|
|
813
813
|
|
|
814
814
|
@media (max-width: 576px) {
|
|
815
815
|
position: relative;
|
|
816
816
|
}
|
|
817
|
-
`,
|
|
817
|
+
`,OE=R.main`
|
|
818
818
|
display: flex;
|
|
819
819
|
flex-direction: column;
|
|
820
820
|
flex-grow: 1;
|
|
821
821
|
min-height: 0;
|
|
822
822
|
position: relative;
|
|
823
823
|
z-index: 1;
|
|
824
|
-
`,
|
|
824
|
+
`,FE=R.div`
|
|
825
825
|
flex-grow: 1;
|
|
826
826
|
overflow: hidden;
|
|
827
827
|
margin-bottom: 20px;
|
|
828
|
-
`,
|
|
828
|
+
`,ME=R.div`
|
|
829
829
|
flex-shrink: 0;
|
|
830
|
-
`,ME=({codegenOptions:e})=>{const{setCurrentPrompt:t,setExecutionStatus:r,setCurrentQuestion:o,setCodegenOptions:l,handlePauseExecution:a,handleResumeExecution:u}=I.useContext(Qi),d=async(w,S)=>{t(w),r("executing");try{if(await sd()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await Ob(w,e,S.length>0?S:void 0),r("executing")}catch(b){console.error("Failed to execute codegen:",b),r("idle")}},f=async(w,S,b,j)=>{const C=await ad();if(C)try{if(o(null),e){const P={...e,aiService:j??e.aiService};l(P),await Ub(C.id,w,b,P,S)}else console.error("Codegen options not available for submitting answer")}catch(P){console.error("Failed to submit answer:",P),o(C)}},p=async()=>{try{o(null),await Mb()}catch(w){console.error("Failed to interrupt execution:",w)}},m=I.useCallback(w=>{l(w)},[l]);return{handleExecute:d,handleQuestionSubmit:f,handleInterrupt:p,handleOptionsChange:m,handlePauseExecution:a,handleResumeExecution:u}};var Cr=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Cr||{}),Bd=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Bd||{});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},W.apply(null,arguments)}function $e(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}var dx={},fx=I.createContext(dx),FE=(e,t)=>W({},e,t),BE=()=>I.useContext(fx),Ud=I.createContext(()=>{});Ud.displayName="JVR.DispatchShowTools";function UE(){return I.useReducer(FE,dx)}function px(){return I.useContext(Ud)}var hx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(fx.Provider,{value:t,children:y.jsx(Ud.Provider,{value:r,children:o})})};hx.displayName="JVR.ShowTools";var mx={},gx=I.createContext(mx),VE=(e,t)=>W({},e,t),ka=()=>I.useContext(gx),Vd=I.createContext(()=>{});Vd.displayName="JVR.DispatchExpands";function HE(){return I.useReducer(VE,mx)}function qE(){return I.useContext(Vd)}var yx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(gx.Provider,{value:t,children:y.jsx(Vd.Provider,{value:r,children:o})})};yx.displayName="JVR.Expands";var xx={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"}},vx=I.createContext(xx),WE=(e,t)=>W({},e,t),Ge=()=>I.useContext(vx),Hd=I.createContext(()=>{});Hd.displayName="JVR.DispatchTypes";function GE(){return I.useReducer(WE,xx)}function JE(){return I.useContext(Hd)}function wx(e){var{initial:t,dispatch:r,children:o}=e;return y.jsx(vx.Provider,{value:t,children:y.jsx(Hd.Provider,{value:r,children:o})})}wx.displayName="JVR.Types";var KE=["style"];function kx(e){var{style:t}=e,r=$e(e,KE),o=W({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return y.jsx("svg",W({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:o},r,{children:y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}kx.displayName="JVR.TriangleArrow";var Sx={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:y.jsx(kx,{})},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:"}"}},bx=I.createContext(Sx),QE=(e,t)=>W({},e,t),Jt=()=>I.useContext(bx),qd=I.createContext(()=>{});qd.displayName="JVR.DispatchSymbols";function YE(){return I.useReducer(QE,Sx)}function XE(){return I.useContext(qd)}var Cx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(bx.Provider,{value:t,children:y.jsx(qd.Provider,{value:r,children:o})})};Cx.displayName="JVR.Symbols";var Ex={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"}},jx=I.createContext(Ex),ZE=(e,t)=>W({},e,t),vn=()=>I.useContext(jx),Wd=I.createContext(()=>{});Wd.displayName="JVR.DispatchSection";function ej(){return I.useReducer(ZE,Ex)}function tj(){return I.useContext(Wd)}var Tx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(jx.Provider,{value:t,children:y.jsx(Wd.Provider,{value:r,children:o})})};Tx.displayName="JVR.Section";var Rx={objectSortKeys:!1,indentWidth:15},Gd=I.createContext(Rx);Gd.displayName="JVR.Context";var Nx=I.createContext(()=>{});Nx.displayName="JVR.DispatchContext";function nj(e,t){return W({},e,t)}var Zr=()=>I.useContext(Gd),Ix=e=>{var{children:t,initialState:r,initialTypes:o}=e,[l,a]=I.useReducer(nj,Object.assign({},Rx,r)),[u,d]=UE(),[f,p]=HE(),[m,g]=GE(),[v,w]=YE(),[S,b]=ej();return I.useEffect(()=>a(W({},r)),[r]),y.jsx(Gd.Provider,{value:l,children:y.jsx(Nx.Provider,{value:a,children:y.jsx(hx,{initial:u,dispatch:d,children:y.jsx(yx,{initial:f,dispatch:p,children:y.jsx(wx,{initial:W({},m,o),dispatch:g,children:y.jsx(Cx,{initial:v,dispatch:w,children:y.jsx(Tx,{initial:S,dispatch:b,children:t})})})})})})})};Ix.displayName="JVR.Provider";function rj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var ij=["isNumber","value","parentValue","keyName","keys"],oj=["as","render"],lj=["as","render"],sj=["as","render"],aj=["as","style","render"],uj=["as","render"],cj=["as","render"],dj=["as","render"],fj=["as","render"],ud=e=>{var{Quote:t={}}=Jt(),{isNumber:r,value:o,parentValue:l,keyName:a,keys:u}=e,d=$e(e,ij);if(r)return null;var{as:f,render:p}=t,m=$e(t,oj),g=f||"span",v=W({},d,m),w={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])},S=p&&typeof p=="function"&&p(v,w);return S||y.jsx(g,W({},v))};ud.displayName="JVR.Quote";var il=e=>{var{ValueQuote:t={}}=Jt(),r=W({},(rj(e),e)),{as:o,render:l}=t,a=$e(t,lj),u=o||"span",d=W({},r,a),f=l&&typeof l=="function"&&l(d,{});return f||y.jsx(u,W({},d))};il.displayName="JVR.ValueQuote";var Px=e=>{var{value:t,parentValue:r,keyName:o,keys:l}=e,{Colon:a={}}=Jt(),{as:u,render:d}=a,f=$e(a,sj),p=u||"span",m=d&&typeof d=="function"&&d(f,{value:t,parentValue:r,keyName:o,keys:l||(o?[o]:[])});return m||y.jsx(p,W({},f))};Px.displayName="JVR.Colon";var Ax=e=>{var{Arrow:t={}}=Jt(),r=ka(),{expandKey:o,style:l,value:a,parentValue:u,keyName:d,keys:f}=e,p=!!r[o],{as:m,style:g,render:v}=t,w=$e(t,aj),S=m||"span",b=v&&typeof v=="function",j=W({},w,{"data-expanded":p,style:W({},g,l)}),C={value:a,parentValue:u,keyName:d,keys:f||(d?[d]:[])},P=b&&v(j,C);return P||y.jsx(S,W({},w,{style:W({},g,l)}))};Ax.displayName="JVR.Arrow";var Lx=e=>{var{isBrackets:t,value:r,parentValue:o,keyName:l,keys:a}=e,{BracketsLeft:u={},BraceLeft:d={}}=Jt(),f={value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])};if(t){var{as:p,render:m}=u,g=$e(u,uj),v=p||"span",w=m&&typeof m=="function"&&m(g,f);return w||y.jsx(v,W({},g))}var{as:S,render:b}=d,j=$e(d,cj),C=S||"span",P=b&&typeof b=="function"&&b(j,f);return P||y.jsx(C,W({},j))};Lx.displayName="JVR.BracketsOpen";var Jd=e=>{var{isBrackets:t,isVisiable:r,value:o,parentValue:l,keyName:a,keys:u}=e,d={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])};if(!r)return null;var{BracketsRight:f={},BraceRight:p={}}=Jt();if(t){var{as:m,render:g}=f,v=$e(f,dj),w=m||"span",S=g&&typeof g=="function"&&g(v,d);return S||y.jsx(w,W({},v))}var{as:b,render:j}=p,C=$e(p,fj),P=b||"span",L=j&&typeof j=="function"&&j(C,d);return L||y.jsx(P,W({},C))};Jd.displayName="JVR.BracketsClose";var $x=e=>{var t,{value:r,expandKey:o,level:l,keys:a=[]}=e,u=ka(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=Zr(),m=r instanceof Set,g=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[o])!=null?t:g,w=Object.keys(r).length;if(u[o]===void 0&&p&&p(v,{value:r,keys:a,level:l})||v||w===0)return null;var S={paddingLeft:4};return y.jsx("div",{style:S,children:y.jsx(Jd,{isBrackets:d||m,isVisiable:!0})})};$x.displayName="JVR.NestedClose";var pj=["as","render"],hj=["as","render"],mj=["as","render"],gj=["as","render"],yj=["as","render"],xj=["as","render"],vj=["as","render"],wj=["as","render"],kj=["as","render"],Sj=["as","render"],bj=["as","render"],Cj=["as","render"],Ej=["as","render"],cd=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},_x=e=>{var{value:t,keyName:r}=e,{Set:o={},displayDataTypes:l}=Ge(),a=t instanceof Set;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,pj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};_x.displayName="JVR.SetComp";var zx=e=>{var{value:t,keyName:r}=e,{Map:o={},displayDataTypes:l}=Ge(),a=t instanceof Map;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,hj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};zx.displayName="JVR.MapComp";var In={opacity:.75,paddingRight:4},Dx=e=>{var{children:t="",keyName:r}=e,{Str:o={},displayDataTypes:l}=Ge(),{shortenTextAfterLength:a=30}=Zr(),{as:u,render:d}=o,f=$e(o,mj),p=t,[m,g]=I.useState(a&&p.length>a);I.useEffect(()=>g(a&&p.length>a),[a]);var v=u||"span",w=W({},In,o.style||{});a>0&&(f.style=W({},f.style,{cursor:p.length<=a?"initial":"pointer"}),p.length>a&&(f.onClick=()=>{g(!m)}));var S=m?p.slice(0,a)+"...":p,b=d&&typeof d=="function",j=b&&d(W({},f,{style:w}),{type:"type",value:t,keyName:r}),C=b&&d(W({},f,{children:S,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(j||y.jsx(v,W({},f,{style:w}))),C||y.jsxs(I.Fragment,{children:[y.jsx(il,{}),y.jsx(v,W({},f,{className:"w-rjv-value",children:S})),y.jsx(il,{})]})]})};Dx.displayName="JVR.TypeString";var Ox=e=>{var{children:t,keyName:r}=e,{True:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,gj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Ox.displayName="JVR.TypeTrue";var Mx=e=>{var{children:t,keyName:r}=e,{False:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,yj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Mx.displayName="JVR.TypeFalse";var Fx=e=>{var{children:t,keyName:r}=e,{Float:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,xj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Fx.displayName="JVR.TypeFloat";var Bx=e=>{var{children:t,keyName:r}=e,{Int:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,vj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Bx.displayName="JVR.TypeInt";var Ux=e=>{var{children:t,keyName:r}=e,{Bigint:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,wj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:cd(t==null?void 0:t.toString())}))]})};Ux.displayName="JVR.TypeFloat";var Vx=e=>{var{children:t,keyName:r}=e,{Url:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,kj),f=a||"span",p=W({},In,o.style),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsxs("a",W({href:t==null?void 0:t.href,target:"_blank"},d,{className:"w-rjv-value",children:[y.jsx(il,{}),t==null?void 0:t.href,y.jsx(il,{})]}))]})};Vx.displayName="JVR.TypeUrl";var Hx=e=>{var{children:t,keyName:r}=e,{Date:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Sj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=t instanceof Date?t.toLocaleString():t,w=m&&u(W({},d,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),w||y.jsx(f,W({},d,{className:"w-rjv-value",children:v}))]})};Hx.displayName="JVR.TypeDate";var qx=e=>{var{children:t,keyName:r}=e,{Undefined:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,bj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};qx.displayName="JVR.TypeUndefined";var Wx=e=>{var{children:t,keyName:r}=e,{Null:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Cj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Wx.displayName="JVR.TypeNull";var Gx=e=>{var{children:t,keyName:r}=e,{Nan:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Ej),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Gx.displayName="JVR.TypeNan";var jj=e=>Number(e)===e&&e%1!==0||isNaN(e),Jx=e=>{var{value:t,keyName:r}=e,o={keyName:r};return t instanceof URL?y.jsx(Vx,W({},o,{children:t})):typeof t=="string"?y.jsx(Dx,W({},o,{children:t})):t===!0?y.jsx(Ox,W({},o,{children:t})):t===!1?y.jsx(Mx,W({},o,{children:t})):t===null?y.jsx(Wx,W({},o,{children:t})):t===void 0?y.jsx(qx,W({},o,{children:t})):t instanceof Date?y.jsx(Hx,W({},o,{children:t})):typeof t=="number"&&isNaN(t)?y.jsx(Gx,W({},o,{children:t})):typeof t=="number"&&jj(t)?y.jsx(Fx,W({},o,{children:t})):typeof t=="bigint"?y.jsx(Ux,W({},o,{children:t})):typeof t=="number"?y.jsx(Bx,W({},o,{children:t})):null};Jx.displayName="JVR.Value";function Tr(e,t,r){var o=XE(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}function an(e,t,r){var o=JE(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}function Yi(e,t,r){var o=tj(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}var Tj=["as","render"],Kx=e=>{var{KeyName:t={}}=vn();return Yi(t,e,"KeyName"),null};Kx.displayName="JVR.KeyName";var Qx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=typeof t=="number",d={color:u?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=vn(),{as:p,render:m}=f,g=$e(f,Tj);g.style=W({},g.style,d);var v=p||"span",w=m&&typeof m=="function"&&m(W({},g,{children:t}),{value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])});return w||y.jsx(v,W({},g,{children:t}))};Qx.displayName="JVR.KeyNameComp";var Rj=["children","value","parentValue","keyName","keys"],Nj=["as","render","children"],Yx=e=>{var{Row:t={}}=vn();return Yi(t,e,"Row"),null};Yx.displayName="JVR.Row";var Xx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=$e(e,Rj),{Row:d={}}=vn(),{as:f,render:p}=d,m=$e(d,Nj),g=f||"div",v=p&&typeof p=="function"&&p(W({},u,m,{children:t}),{value:r,keyName:l,parentValue:o,keys:a});return v||y.jsx(g,W({},u,m,{children:t}))};Xx.displayName="JVR.RowComp";function Ij(e){var t=I.useRef();return I.useEffect(()=>{t.current=e}),t.current}function Pj(e){var{value:t,highlightUpdates:r,highlightContainer:o}=e,l=Ij(t),a=I.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof t!=typeof l)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(l)?!1:t!==l;if(Array.isArray(t)!==Array.isArray(l))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==l)return!0},[r,t]);I.useEffect(()=>{o&&o.current&&a&&"animate"in o.current&&o.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,o])}var Aj=["keyName","value","parentValue","expandKey","keys"],Lj=["as","render"],Kd=e=>{var{keyName:t,value:r,parentValue:o,expandKey:l,keys:a}=e,u=$e(e,Aj),{onCopied:d,enableClipboard:f}=Zr(),p=BE(),m=p[l],[g,v]=I.useState(!1),{Copied:w={}}=vn();if(f===!1||!m)return null;var S=H=>{H.stopPropagation();var A="";typeof r=="number"&&r===1/0?A="Infinity":typeof r=="number"&&isNaN(r)?A="NaN":typeof r=="bigint"?A=cd(r):r instanceof Date?A=r.toLocaleString():A=JSON.stringify(r,(K,le)=>typeof le=="bigint"?cd(le):le,2),d&&d(A,r),v(!0);var q=navigator.clipboard||{writeText(K){return new Promise((le,D)=>{var ne=document.createElement("textarea");ne.style.position="absolute",ne.style.opacity="0",ne.style.left="-99999999px",ne.value=K,document.body.appendChild(ne),ne.select(),document.execCommand("copy")?le():D(),ne.remove()})}};q.writeText(A).then(()=>{var K=setTimeout(()=>{v(!1),clearTimeout(K)},3e3)}).catch(K=>{})},b={style:{display:"inline-flex"},fill:g?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:S},{render:j}=w,C=$e(w,Lj),P=W({},C,u,b,{style:W({},C.style,u.style,b.style)}),L=j&&typeof j=="function",M=L&&j(W({},P,{"data-copied":g}),{value:r,keyName:t,keys:a,parentValue:o});return M||(g?y.jsx("svg",W({viewBox:"0 0 32 36"},P,{children:y.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"})})):y.jsx("svg",W({viewBox:"0 0 32 36"},P,{children:y.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"})})))};Kd.displayName="JVR.Copied";function Zx(){var e=I.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var ev=e=>{var t,{value:r,expandKey:o="",level:l,keys:a=[]}=e,u=ka(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:m}=Zr(),g=Array.isArray(r),v=typeof p=="boolean"?p:typeof p=="number"?l>p:!1,w=(t=u[o])!=null?t:v;if(u[o]===void 0&&m&&m(w,{value:r,keys:a,level:l})||w)return null;var S=g?Object.entries(r).map(j=>[Number(j[0]),j[1]]):Object.entries(r);d&&(S=d===!0?S.sort((j,C)=>{var[P]=j,[L]=C;return typeof P=="string"&&typeof L=="string"?P.localeCompare(L):0}):S.sort((j,C)=>{var[P,L]=j,[M,H]=C;return typeof P=="string"&&typeof M=="string"?d(P,M,L,H):0}));var b={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return y.jsx("div",{className:"w-rjv-wrap",style:b,children:S.map((j,C)=>{var[P,L]=j;return y.jsx(tv,{parentValue:r,keyName:P,keys:[...a,P],value:L,level:l},C)})})};ev.displayName="JVR.KeyValues";var Qd=e=>{var{keyName:t,parentValue:r,keys:o,value:l}=e,{highlightUpdates:a}=Zr(),u=typeof t=="number",d=I.useRef(null);Pj({value:l,highlightUpdates:a,highlightContainer:d});var f={keyName:t,value:l,keys:o,parentValue:r};return y.jsxs(I.Fragment,{children:[y.jsxs("span",{ref:d,children:[y.jsx(ud,W({isNumber:u,"data-placement":"left"},f)),y.jsx(Qx,W({},f,{children:t})),y.jsx(ud,W({isNumber:u,"data-placement":"right"},f))]}),y.jsx(Px,W({},f))]})};Qd.displayName="JVR.KayName";var tv=e=>{var{keyName:t,value:r,parentValue:o,level:l=0,keys:a=[]}=e,u=px(),d=Zx(),f=Array.isArray(r),p=r instanceof Set,m=r instanceof Map,g=r instanceof Date,v=r instanceof URL,w=r&&typeof r=="object"&&!f&&!p&&!m&&!g&&!v,S=w||f||p||m;if(S){var b=p?Array.from(r):m?Object.fromEntries(r):r;return y.jsx(Yd,{keyName:t,value:b,parentValue:o,initialValue:r,keys:a,level:l+1})}var j={onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})};return y.jsxs(Xx,W({className:"w-rjv-line",value:r,keyName:t,keys:a,parentValue:o},j,{children:[y.jsx(Qd,{keyName:t,value:r,keys:a,parentValue:o}),y.jsx(Jx,{keyName:t,value:r}),y.jsx(Kd,{keyName:t,value:r,keys:a,parentValue:o,expandKey:d})]}))};tv.displayName="JVR.KeyValuesItem";var $j=["value","keyName"],_j=["as","render"],nv=e=>{var{CountInfoExtra:t={}}=vn();return Yi(t,e,"CountInfoExtra"),null};nv.displayName="JVR.CountInfoExtra";var rv=e=>{var{value:t={},keyName:r}=e,o=$e(e,$j),{CountInfoExtra:l={}}=vn(),{as:a,render:u}=l,d=$e(l,_j);if(!u&&!d.children)return null;var f=a||"span",p=u&&typeof u=="function",m=W({},d,o),g=p&&u(m,{value:t,keyName:r});return g||y.jsx(f,W({},m))};rv.displayName="JVR.CountInfoExtraComps";var zj=["value","keyName"],Dj=["as","render"],iv=e=>{var{CountInfo:t={}}=vn();return Yi(t,e,"CountInfo"),null};iv.displayName="JVR.CountInfo";var ov=e=>{var{value:t={},keyName:r}=e,o=$e(e,zj),{displayObjectSize:l}=Zr(),{CountInfo:a={}}=vn();if(!l)return null;var{as:u,render:d}=a,f=$e(a,Dj),p=u||"span";f.style=W({},f.style,e.style);var m=Object.keys(t).length;f.children||(f.children=m+" item"+(m===1?"":"s"));var g=W({},f,o),v=d&&typeof d=="function",w=v&&d(W({},g,{"data-length":m}),{value:t,keyName:r});return w||y.jsx(p,W({},g))};ov.displayName="JVR.CountInfoComp";var Oj=["as","render"],lv=e=>{var{Ellipsis:t={}}=vn();return Yi(t,e,"Ellipsis"),null};lv.displayName="JVR.Ellipsis";var sv=e=>{var{isExpanded:t,value:r,keyName:o}=e,{Ellipsis:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Oj),f=a||"span",p=u&&typeof u=="function"&&u(W({},d,{"data-expanded":t}),{value:r,keyName:o});return p||(!t||typeof r=="object"&&Object.keys(r).length==0?null:y.jsx(f,W({},d)))};sv.displayName="JVR.EllipsisComp";var av=e=>{var t,{keyName:r,expandKey:o,keys:l=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=ka(),m=qE(),{onExpand:g,collapsed:v,shouldExpandNodeInitially:w}=Zr(),S=Array.isArray(u),b=u instanceof Set,j=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,C=typeof u=="object",P=(t=p[o])!=null?t:j,L=w&&w(P,{value:u,keys:l,level:f});p[o]===void 0&&L!==void 0&&(P=L);var M=()=>{var ne={expand:!P,value:u,keyid:o,keyName:r};g&&g(ne),m({[o]:ne.expand})},H={display:"inline-flex",alignItems:"center"},A={transform:"rotate("+(P?"-90":"0")+"deg)",transition:"all 0.3s"},q=Object.keys(u).length,K=q!==0&&(S||b||C),le={style:H};K&&(le.onClick=M);var D={keyName:r,value:u,keys:l,parentValue:d};return y.jsxs("span",W({},le,{children:[K&&y.jsx(Ax,W({style:A,expandKey:o},D)),(r||typeof r=="number")&&y.jsx(Qd,W({},D)),y.jsx(_x,{value:a,keyName:r}),y.jsx(zx,{value:a,keyName:r}),y.jsx(Lx,W({isBrackets:S||b},D)),y.jsx(sv,{keyName:r,value:u,isExpanded:P}),y.jsx(Jd,W({isVisiable:P||!K,isBrackets:S||b},D)),y.jsx(ov,{value:u,keyName:r}),y.jsx(rv,{value:u,keyName:r}),y.jsx(Kd,{keyName:r,value:u,expandKey:o,parentValue:d,keys:l})]}))};av.displayName="JVR.NestedOpen";var Mj=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Yd=I.forwardRef((e,t)=>{var{className:r="",parentValue:o,level:l=1,value:a,initialValue:u,keys:d,keyName:f}=e,p=$e(e,Mj),m=px(),g=Zx(),v=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>m({[g]:!0}),onMouseLeave:()=>m({[g]:!1})};return y.jsxs("div",W({className:v,ref:t},p,w,{children:[y.jsx(av,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f,initialValue:u}),y.jsx(ev,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f}),y.jsx($x,{expandKey:g,value:a,level:l,keys:d})]}))});Yd.displayName="JVR.Container";var uv=e=>{var{BraceLeft:t={}}=Jt();return Tr(t,e,"BraceLeft"),null};uv.displayName="JVR.BraceLeft";var cv=e=>{var{BraceRight:t={}}=Jt();return Tr(t,e,"BraceRight"),null};cv.displayName="JVR.BraceRight";var dv=e=>{var{BracketsLeft:t={}}=Jt();return Tr(t,e,"BracketsLeft"),null};dv.displayName="JVR.BracketsLeft";var fv=e=>{var{BracketsRight:t={}}=Jt();return Tr(t,e,"BracketsRight"),null};fv.displayName="JVR.BracketsRight";var pv=e=>{var{Arrow:t={}}=Jt();return Tr(t,e,"Arrow"),null};pv.displayName="JVR.Arrow";var hv=e=>{var{Colon:t={}}=Jt();return Tr(t,e,"Colon"),null};hv.displayName="JVR.Colon";var mv=e=>{var{Quote:t={}}=Jt();return Tr(t,e,"Quote"),null};mv.displayName="JVR.Quote";var gv=e=>{var{ValueQuote:t={}}=Jt();return Tr(t,e,"ValueQuote"),null};gv.displayName="JVR.ValueQuote";var yv=e=>{var{Bigint:t={}}=Ge();return an(t,e,"Bigint"),null};yv.displayName="JVR.Bigint";var xv=e=>{var{Date:t={}}=Ge();return an(t,e,"Date"),null};xv.displayName="JVR.Date";var vv=e=>{var{False:t={}}=Ge();return an(t,e,"False"),null};vv.displayName="JVR.False";var wv=e=>{var{Float:t={}}=Ge();return an(t,e,"Float"),null};wv.displayName="JVR.Float";var kv=e=>{var{Int:t={}}=Ge();return an(t,e,"Int"),null};kv.displayName="JVR.Int";var Sv=e=>{var{Map:t={}}=Ge();return an(t,e,"Map"),null};Sv.displayName="JVR.Map";var bv=e=>{var{Nan:t={}}=Ge();return an(t,e,"Nan"),null};bv.displayName="JVR.Nan";var Cv=e=>{var{Null:t={}}=Ge();return an(t,e,"Null"),null};Cv.displayName="JVR.Null";var Ev=e=>{var{Set:t={}}=Ge();return an(t,e,"Set"),null};Ev.displayName="JVR.Set";var jv=e=>{var{Str:t={}}=Ge();return an(t,e,"Str"),null};jv.displayName="JVR.StringText";var Tv=e=>{var{True:t={}}=Ge();return an(t,e,"True"),null};Tv.displayName="JVR.True";var Rv=e=>{var{Undefined:t={}}=Ge();return an(t,e,"Undefined"),null};Rv.displayName="JVR.Undefined";var Nv=e=>{var{Url:t={}}=Ge();return an(t,e,"Url"),null};Nv.displayName="JVR.Url";var Iv=e=>{var{Copied:t={}}=vn();return Yi(t,e,"Copied"),null};Iv.displayName="JVR.Copied";var Fj=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Ue=I.forwardRef((e,t)=>{var{className:r="",style:o,value:l,children:a,collapsed:u,shouldExpandNodeInitially:d,indentWidth:f=15,displayObjectSize:p=!0,shortenTextAfterLength:m=30,highlightUpdates:g=!0,enableClipboard:v=!0,displayDataTypes:w=!0,objectSortKeys:S=!1,onExpand:b,onCopied:j}=e,C=$e(e,Fj),P=W({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},o),L=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return y.jsxs(Ix,{initialState:{value:l,objectSortKeys:S,indentWidth:f,shouldExpandNodeInitially:d,displayObjectSize:p,collapsed:u,enableClipboard:v,shortenTextAfterLength:m,highlightUpdates:g,onCopied:j,onExpand:b},initialTypes:{displayDataTypes:w},children:[y.jsx(Yd,W({value:l},C,{ref:t,className:L,style:P})),a]})});Ue.Bigint=yv;Ue.Date=xv;Ue.False=vv;Ue.Float=wv;Ue.Int=kv;Ue.Map=Sv;Ue.Nan=bv;Ue.Null=Cv;Ue.Set=Ev;Ue.String=jv;Ue.True=Tv;Ue.Undefined=Rv;Ue.Url=Nv;Ue.ValueQuote=gv;Ue.Arrow=pv;Ue.Colon=hv;Ue.Quote=mv;Ue.Ellipsis=lv;Ue.BraceLeft=uv;Ue.BraceRight=cv;Ue.BracketsLeft=dv;Ue.BracketsRight=fv;Ue.Copied=Iv;Ue.CountInfo=iv;Ue.CountInfoExtra=nv;Ue.KeyName=Kx;Ue.Row=Yx;Ue.displayName="JVR.JsonView";var Bj={"--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"},Uj={"--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 Vj=R.pre`
|
|
830
|
+
`,BE=({codegenOptions:e})=>{const{setCurrentPrompt:t,setExecutionStatus:r,setCurrentQuestion:o,setCodegenOptions:l,handlePauseExecution:a,handleResumeExecution:u}=P.useContext(Qi),d=async(w,S)=>{t(w),r("executing");try{if(await sd()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await Fb(w,e,S.length>0?S:void 0),r("executing")}catch(b){console.error("Failed to execute codegen:",b),r("idle")}},f=async(w,S,b,j,C)=>{const N=await ad();if(N)try{if(o(null),e){const A={...e,aiService:j??e.aiService};l(A),await Vb(N.id,w,b,A,S,C)}else console.error("Codegen options not available for submitting answer")}catch(A){console.error("Failed to submit answer:",A),o(N)}},p=async()=>{try{o(null),await Mb()}catch(w){console.error("Failed to interrupt execution:",w)}},m=P.useCallback(w=>{l(w)},[l]);return{handleExecute:d,handleQuestionSubmit:f,handleInterrupt:p,handleOptionsChange:m,handlePauseExecution:a,handleResumeExecution:u}};var Cr=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Cr||{}),Ud=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Ud||{});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},W.apply(null,arguments)}function $e(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}var fx={},px=P.createContext(fx),UE=(e,t)=>W({},e,t),VE=()=>P.useContext(px),Vd=P.createContext(()=>{});Vd.displayName="JVR.DispatchShowTools";function HE(){return P.useReducer(UE,fx)}function hx(){return P.useContext(Vd)}var mx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(px.Provider,{value:t,children:y.jsx(Vd.Provider,{value:r,children:o})})};mx.displayName="JVR.ShowTools";var gx={},yx=P.createContext(gx),qE=(e,t)=>W({},e,t),ka=()=>P.useContext(yx),Hd=P.createContext(()=>{});Hd.displayName="JVR.DispatchExpands";function WE(){return P.useReducer(qE,gx)}function GE(){return P.useContext(Hd)}var xx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(yx.Provider,{value:t,children:y.jsx(Hd.Provider,{value:r,children:o})})};xx.displayName="JVR.Expands";var vx={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"}},wx=P.createContext(vx),JE=(e,t)=>W({},e,t),Ge=()=>P.useContext(wx),qd=P.createContext(()=>{});qd.displayName="JVR.DispatchTypes";function KE(){return P.useReducer(JE,vx)}function QE(){return P.useContext(qd)}function kx(e){var{initial:t,dispatch:r,children:o}=e;return y.jsx(wx.Provider,{value:t,children:y.jsx(qd.Provider,{value:r,children:o})})}kx.displayName="JVR.Types";var YE=["style"];function Sx(e){var{style:t}=e,r=$e(e,YE),o=W({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return y.jsx("svg",W({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:o},r,{children:y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Sx.displayName="JVR.TriangleArrow";var bx={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:y.jsx(Sx,{})},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:"}"}},Cx=P.createContext(bx),XE=(e,t)=>W({},e,t),Jt=()=>P.useContext(Cx),Wd=P.createContext(()=>{});Wd.displayName="JVR.DispatchSymbols";function ZE(){return P.useReducer(XE,bx)}function ej(){return P.useContext(Wd)}var Ex=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(Cx.Provider,{value:t,children:y.jsx(Wd.Provider,{value:r,children:o})})};Ex.displayName="JVR.Symbols";var jx={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"}},Tx=P.createContext(jx),tj=(e,t)=>W({},e,t),vn=()=>P.useContext(Tx),Gd=P.createContext(()=>{});Gd.displayName="JVR.DispatchSection";function nj(){return P.useReducer(tj,jx)}function rj(){return P.useContext(Gd)}var Rx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(Tx.Provider,{value:t,children:y.jsx(Gd.Provider,{value:r,children:o})})};Rx.displayName="JVR.Section";var Ix={objectSortKeys:!1,indentWidth:15},Jd=P.createContext(Ix);Jd.displayName="JVR.Context";var Nx=P.createContext(()=>{});Nx.displayName="JVR.DispatchContext";function ij(e,t){return W({},e,t)}var Zr=()=>P.useContext(Jd),Px=e=>{var{children:t,initialState:r,initialTypes:o}=e,[l,a]=P.useReducer(ij,Object.assign({},Ix,r)),[u,d]=HE(),[f,p]=WE(),[m,g]=KE(),[v,w]=ZE(),[S,b]=nj();return P.useEffect(()=>a(W({},r)),[r]),y.jsx(Jd.Provider,{value:l,children:y.jsx(Nx.Provider,{value:a,children:y.jsx(mx,{initial:u,dispatch:d,children:y.jsx(xx,{initial:f,dispatch:p,children:y.jsx(kx,{initial:W({},m,o),dispatch:g,children:y.jsx(Ex,{initial:v,dispatch:w,children:y.jsx(Rx,{initial:S,dispatch:b,children:t})})})})})})})};Px.displayName="JVR.Provider";function oj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var lj=["isNumber","value","parentValue","keyName","keys"],sj=["as","render"],aj=["as","render"],uj=["as","render"],cj=["as","style","render"],dj=["as","render"],fj=["as","render"],pj=["as","render"],hj=["as","render"],ud=e=>{var{Quote:t={}}=Jt(),{isNumber:r,value:o,parentValue:l,keyName:a,keys:u}=e,d=$e(e,lj);if(r)return null;var{as:f,render:p}=t,m=$e(t,sj),g=f||"span",v=W({},d,m),w={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])},S=p&&typeof p=="function"&&p(v,w);return S||y.jsx(g,W({},v))};ud.displayName="JVR.Quote";var il=e=>{var{ValueQuote:t={}}=Jt(),r=W({},(oj(e),e)),{as:o,render:l}=t,a=$e(t,aj),u=o||"span",d=W({},r,a),f=l&&typeof l=="function"&&l(d,{});return f||y.jsx(u,W({},d))};il.displayName="JVR.ValueQuote";var Ax=e=>{var{value:t,parentValue:r,keyName:o,keys:l}=e,{Colon:a={}}=Jt(),{as:u,render:d}=a,f=$e(a,uj),p=u||"span",m=d&&typeof d=="function"&&d(f,{value:t,parentValue:r,keyName:o,keys:l||(o?[o]:[])});return m||y.jsx(p,W({},f))};Ax.displayName="JVR.Colon";var Lx=e=>{var{Arrow:t={}}=Jt(),r=ka(),{expandKey:o,style:l,value:a,parentValue:u,keyName:d,keys:f}=e,p=!!r[o],{as:m,style:g,render:v}=t,w=$e(t,cj),S=m||"span",b=v&&typeof v=="function",j=W({},w,{"data-expanded":p,style:W({},g,l)}),C={value:a,parentValue:u,keyName:d,keys:f||(d?[d]:[])},N=b&&v(j,C);return N||y.jsx(S,W({},w,{style:W({},g,l)}))};Lx.displayName="JVR.Arrow";var $x=e=>{var{isBrackets:t,value:r,parentValue:o,keyName:l,keys:a}=e,{BracketsLeft:u={},BraceLeft:d={}}=Jt(),f={value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])};if(t){var{as:p,render:m}=u,g=$e(u,dj),v=p||"span",w=m&&typeof m=="function"&&m(g,f);return w||y.jsx(v,W({},g))}var{as:S,render:b}=d,j=$e(d,fj),C=S||"span",N=b&&typeof b=="function"&&b(j,f);return N||y.jsx(C,W({},j))};$x.displayName="JVR.BracketsOpen";var Kd=e=>{var{isBrackets:t,isVisiable:r,value:o,parentValue:l,keyName:a,keys:u}=e,d={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])};if(!r)return null;var{BracketsRight:f={},BraceRight:p={}}=Jt();if(t){var{as:m,render:g}=f,v=$e(f,pj),w=m||"span",S=g&&typeof g=="function"&&g(v,d);return S||y.jsx(w,W({},v))}var{as:b,render:j}=p,C=$e(p,hj),N=b||"span",A=j&&typeof j=="function"&&j(C,d);return A||y.jsx(N,W({},C))};Kd.displayName="JVR.BracketsClose";var _x=e=>{var t,{value:r,expandKey:o,level:l,keys:a=[]}=e,u=ka(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=Zr(),m=r instanceof Set,g=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[o])!=null?t:g,w=Object.keys(r).length;if(u[o]===void 0&&p&&p(v,{value:r,keys:a,level:l})||v||w===0)return null;var S={paddingLeft:4};return y.jsx("div",{style:S,children:y.jsx(Kd,{isBrackets:d||m,isVisiable:!0})})};_x.displayName="JVR.NestedClose";var mj=["as","render"],gj=["as","render"],yj=["as","render"],xj=["as","render"],vj=["as","render"],wj=["as","render"],kj=["as","render"],Sj=["as","render"],bj=["as","render"],Cj=["as","render"],Ej=["as","render"],jj=["as","render"],Tj=["as","render"],cd=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},zx=e=>{var{value:t,keyName:r}=e,{Set:o={},displayDataTypes:l}=Ge(),a=t instanceof Set;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,mj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};zx.displayName="JVR.SetComp";var Dx=e=>{var{value:t,keyName:r}=e,{Map:o={},displayDataTypes:l}=Ge(),a=t instanceof Map;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,gj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};Dx.displayName="JVR.MapComp";var Nn={opacity:.75,paddingRight:4},Ox=e=>{var{children:t="",keyName:r}=e,{Str:o={},displayDataTypes:l}=Ge(),{shortenTextAfterLength:a=30}=Zr(),{as:u,render:d}=o,f=$e(o,yj),p=t,[m,g]=P.useState(a&&p.length>a);P.useEffect(()=>g(a&&p.length>a),[a]);var v=u||"span",w=W({},Nn,o.style||{});a>0&&(f.style=W({},f.style,{cursor:p.length<=a?"initial":"pointer"}),p.length>a&&(f.onClick=()=>{g(!m)}));var S=m?p.slice(0,a)+"...":p,b=d&&typeof d=="function",j=b&&d(W({},f,{style:w}),{type:"type",value:t,keyName:r}),C=b&&d(W({},f,{children:S,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(j||y.jsx(v,W({},f,{style:w}))),C||y.jsxs(P.Fragment,{children:[y.jsx(il,{}),y.jsx(v,W({},f,{className:"w-rjv-value",children:S})),y.jsx(il,{})]})]})};Ox.displayName="JVR.TypeString";var Fx=e=>{var{children:t,keyName:r}=e,{True:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,xj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Fx.displayName="JVR.TypeTrue";var Mx=e=>{var{children:t,keyName:r}=e,{False:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,vj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Mx.displayName="JVR.TypeFalse";var Bx=e=>{var{children:t,keyName:r}=e,{Float:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,wj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Bx.displayName="JVR.TypeFloat";var Ux=e=>{var{children:t,keyName:r}=e,{Int:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,kj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Ux.displayName="JVR.TypeInt";var Vx=e=>{var{children:t,keyName:r}=e,{Bigint:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Sj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:cd(t==null?void 0:t.toString())}))]})};Vx.displayName="JVR.TypeFloat";var Hx=e=>{var{children:t,keyName:r}=e,{Url:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,bj),f=a||"span",p=W({},Nn,o.style),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsxs("a",W({href:t==null?void 0:t.href,target:"_blank"},d,{className:"w-rjv-value",children:[y.jsx(il,{}),t==null?void 0:t.href,y.jsx(il,{})]}))]})};Hx.displayName="JVR.TypeUrl";var qx=e=>{var{children:t,keyName:r}=e,{Date:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Cj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=t instanceof Date?t.toLocaleString():t,w=m&&u(W({},d,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),w||y.jsx(f,W({},d,{className:"w-rjv-value",children:v}))]})};qx.displayName="JVR.TypeDate";var Wx=e=>{var{children:t,keyName:r}=e,{Undefined:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Ej),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Wx.displayName="JVR.TypeUndefined";var Gx=e=>{var{children:t,keyName:r}=e,{Null:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,jj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Gx.displayName="JVR.TypeNull";var Jx=e=>{var{children:t,keyName:r}=e,{Nan:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Tj),f=a||"span",p=W({},Nn,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(P.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Jx.displayName="JVR.TypeNan";var Rj=e=>Number(e)===e&&e%1!==0||isNaN(e),Kx=e=>{var{value:t,keyName:r}=e,o={keyName:r};return t instanceof URL?y.jsx(Hx,W({},o,{children:t})):typeof t=="string"?y.jsx(Ox,W({},o,{children:t})):t===!0?y.jsx(Fx,W({},o,{children:t})):t===!1?y.jsx(Mx,W({},o,{children:t})):t===null?y.jsx(Gx,W({},o,{children:t})):t===void 0?y.jsx(Wx,W({},o,{children:t})):t instanceof Date?y.jsx(qx,W({},o,{children:t})):typeof t=="number"&&isNaN(t)?y.jsx(Jx,W({},o,{children:t})):typeof t=="number"&&Rj(t)?y.jsx(Bx,W({},o,{children:t})):typeof t=="bigint"?y.jsx(Vx,W({},o,{children:t})):typeof t=="number"?y.jsx(Ux,W({},o,{children:t})):null};Kx.displayName="JVR.Value";function Tr(e,t,r){var o=ej(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});P.useEffect(()=>o({[r]:a}),[t])}function an(e,t,r){var o=QE(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});P.useEffect(()=>o({[r]:a}),[t])}function Yi(e,t,r){var o=rj(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});P.useEffect(()=>o({[r]:a}),[t])}var Ij=["as","render"],Qx=e=>{var{KeyName:t={}}=vn();return Yi(t,e,"KeyName"),null};Qx.displayName="JVR.KeyName";var Yx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=typeof t=="number",d={color:u?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=vn(),{as:p,render:m}=f,g=$e(f,Ij);g.style=W({},g.style,d);var v=p||"span",w=m&&typeof m=="function"&&m(W({},g,{children:t}),{value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])});return w||y.jsx(v,W({},g,{children:t}))};Yx.displayName="JVR.KeyNameComp";var Nj=["children","value","parentValue","keyName","keys"],Pj=["as","render","children"],Xx=e=>{var{Row:t={}}=vn();return Yi(t,e,"Row"),null};Xx.displayName="JVR.Row";var Zx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=$e(e,Nj),{Row:d={}}=vn(),{as:f,render:p}=d,m=$e(d,Pj),g=f||"div",v=p&&typeof p=="function"&&p(W({},u,m,{children:t}),{value:r,keyName:l,parentValue:o,keys:a});return v||y.jsx(g,W({},u,m,{children:t}))};Zx.displayName="JVR.RowComp";function Aj(e){var t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current}function Lj(e){var{value:t,highlightUpdates:r,highlightContainer:o}=e,l=Aj(t),a=P.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof t!=typeof l)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(l)?!1:t!==l;if(Array.isArray(t)!==Array.isArray(l))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==l)return!0},[r,t]);P.useEffect(()=>{o&&o.current&&a&&"animate"in o.current&&o.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,o])}var $j=["keyName","value","parentValue","expandKey","keys"],_j=["as","render"],Qd=e=>{var{keyName:t,value:r,parentValue:o,expandKey:l,keys:a}=e,u=$e(e,$j),{onCopied:d,enableClipboard:f}=Zr(),p=VE(),m=p[l],[g,v]=P.useState(!1),{Copied:w={}}=vn();if(f===!1||!m)return null;var S=V=>{V.stopPropagation();var L="";typeof r=="number"&&r===1/0?L="Infinity":typeof r=="number"&&isNaN(r)?L="NaN":typeof r=="bigint"?L=cd(r):r instanceof Date?L=r.toLocaleString():L=JSON.stringify(r,(K,ie)=>typeof ie=="bigint"?cd(ie):ie,2),d&&d(L,r),v(!0);var G=navigator.clipboard||{writeText(K){return new Promise((ie,D)=>{var ne=document.createElement("textarea");ne.style.position="absolute",ne.style.opacity="0",ne.style.left="-99999999px",ne.value=K,document.body.appendChild(ne),ne.select(),document.execCommand("copy")?ie():D(),ne.remove()})}};G.writeText(L).then(()=>{var K=setTimeout(()=>{v(!1),clearTimeout(K)},3e3)}).catch(K=>{})},b={style:{display:"inline-flex"},fill:g?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:S},{render:j}=w,C=$e(w,_j),N=W({},C,u,b,{style:W({},C.style,u.style,b.style)}),A=j&&typeof j=="function",F=A&&j(W({},N,{"data-copied":g}),{value:r,keyName:t,keys:a,parentValue:o});return F||(g?y.jsx("svg",W({viewBox:"0 0 32 36"},N,{children:y.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"})})):y.jsx("svg",W({viewBox:"0 0 32 36"},N,{children:y.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"})})))};Qd.displayName="JVR.Copied";function ev(){var e=P.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var tv=e=>{var t,{value:r,expandKey:o="",level:l,keys:a=[]}=e,u=ka(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:m}=Zr(),g=Array.isArray(r),v=typeof p=="boolean"?p:typeof p=="number"?l>p:!1,w=(t=u[o])!=null?t:v;if(u[o]===void 0&&m&&m(w,{value:r,keys:a,level:l})||w)return null;var S=g?Object.entries(r).map(j=>[Number(j[0]),j[1]]):Object.entries(r);d&&(S=d===!0?S.sort((j,C)=>{var[N]=j,[A]=C;return typeof N=="string"&&typeof A=="string"?N.localeCompare(A):0}):S.sort((j,C)=>{var[N,A]=j,[F,V]=C;return typeof N=="string"&&typeof F=="string"?d(N,F,A,V):0}));var b={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return y.jsx("div",{className:"w-rjv-wrap",style:b,children:S.map((j,C)=>{var[N,A]=j;return y.jsx(nv,{parentValue:r,keyName:N,keys:[...a,N],value:A,level:l},C)})})};tv.displayName="JVR.KeyValues";var Yd=e=>{var{keyName:t,parentValue:r,keys:o,value:l}=e,{highlightUpdates:a}=Zr(),u=typeof t=="number",d=P.useRef(null);Lj({value:l,highlightUpdates:a,highlightContainer:d});var f={keyName:t,value:l,keys:o,parentValue:r};return y.jsxs(P.Fragment,{children:[y.jsxs("span",{ref:d,children:[y.jsx(ud,W({isNumber:u,"data-placement":"left"},f)),y.jsx(Yx,W({},f,{children:t})),y.jsx(ud,W({isNumber:u,"data-placement":"right"},f))]}),y.jsx(Ax,W({},f))]})};Yd.displayName="JVR.KayName";var nv=e=>{var{keyName:t,value:r,parentValue:o,level:l=0,keys:a=[]}=e,u=hx(),d=ev(),f=Array.isArray(r),p=r instanceof Set,m=r instanceof Map,g=r instanceof Date,v=r instanceof URL,w=r&&typeof r=="object"&&!f&&!p&&!m&&!g&&!v,S=w||f||p||m;if(S){var b=p?Array.from(r):m?Object.fromEntries(r):r;return y.jsx(Xd,{keyName:t,value:b,parentValue:o,initialValue:r,keys:a,level:l+1})}var j={onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})};return y.jsxs(Zx,W({className:"w-rjv-line",value:r,keyName:t,keys:a,parentValue:o},j,{children:[y.jsx(Yd,{keyName:t,value:r,keys:a,parentValue:o}),y.jsx(Kx,{keyName:t,value:r}),y.jsx(Qd,{keyName:t,value:r,keys:a,parentValue:o,expandKey:d})]}))};nv.displayName="JVR.KeyValuesItem";var zj=["value","keyName"],Dj=["as","render"],rv=e=>{var{CountInfoExtra:t={}}=vn();return Yi(t,e,"CountInfoExtra"),null};rv.displayName="JVR.CountInfoExtra";var iv=e=>{var{value:t={},keyName:r}=e,o=$e(e,zj),{CountInfoExtra:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Dj);if(!u&&!d.children)return null;var f=a||"span",p=u&&typeof u=="function",m=W({},d,o),g=p&&u(m,{value:t,keyName:r});return g||y.jsx(f,W({},m))};iv.displayName="JVR.CountInfoExtraComps";var Oj=["value","keyName"],Fj=["as","render"],ov=e=>{var{CountInfo:t={}}=vn();return Yi(t,e,"CountInfo"),null};ov.displayName="JVR.CountInfo";var lv=e=>{var{value:t={},keyName:r}=e,o=$e(e,Oj),{displayObjectSize:l}=Zr(),{CountInfo:a={}}=vn();if(!l)return null;var{as:u,render:d}=a,f=$e(a,Fj),p=u||"span";f.style=W({},f.style,e.style);var m=Object.keys(t).length;f.children||(f.children=m+" item"+(m===1?"":"s"));var g=W({},f,o),v=d&&typeof d=="function",w=v&&d(W({},g,{"data-length":m}),{value:t,keyName:r});return w||y.jsx(p,W({},g))};lv.displayName="JVR.CountInfoComp";var Mj=["as","render"],sv=e=>{var{Ellipsis:t={}}=vn();return Yi(t,e,"Ellipsis"),null};sv.displayName="JVR.Ellipsis";var av=e=>{var{isExpanded:t,value:r,keyName:o}=e,{Ellipsis:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Mj),f=a||"span",p=u&&typeof u=="function"&&u(W({},d,{"data-expanded":t}),{value:r,keyName:o});return p||(!t||typeof r=="object"&&Object.keys(r).length==0?null:y.jsx(f,W({},d)))};av.displayName="JVR.EllipsisComp";var uv=e=>{var t,{keyName:r,expandKey:o,keys:l=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=ka(),m=GE(),{onExpand:g,collapsed:v,shouldExpandNodeInitially:w}=Zr(),S=Array.isArray(u),b=u instanceof Set,j=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,C=typeof u=="object",N=(t=p[o])!=null?t:j,A=w&&w(N,{value:u,keys:l,level:f});p[o]===void 0&&A!==void 0&&(N=A);var F=()=>{var ne={expand:!N,value:u,keyid:o,keyName:r};g&&g(ne),m({[o]:ne.expand})},V={display:"inline-flex",alignItems:"center"},L={transform:"rotate("+(N?"-90":"0")+"deg)",transition:"all 0.3s"},G=Object.keys(u).length,K=G!==0&&(S||b||C),ie={style:V};K&&(ie.onClick=F);var D={keyName:r,value:u,keys:l,parentValue:d};return y.jsxs("span",W({},ie,{children:[K&&y.jsx(Lx,W({style:L,expandKey:o},D)),(r||typeof r=="number")&&y.jsx(Yd,W({},D)),y.jsx(zx,{value:a,keyName:r}),y.jsx(Dx,{value:a,keyName:r}),y.jsx($x,W({isBrackets:S||b},D)),y.jsx(av,{keyName:r,value:u,isExpanded:N}),y.jsx(Kd,W({isVisiable:N||!K,isBrackets:S||b},D)),y.jsx(lv,{value:u,keyName:r}),y.jsx(iv,{value:u,keyName:r}),y.jsx(Qd,{keyName:r,value:u,expandKey:o,parentValue:d,keys:l})]}))};uv.displayName="JVR.NestedOpen";var Bj=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Xd=P.forwardRef((e,t)=>{var{className:r="",parentValue:o,level:l=1,value:a,initialValue:u,keys:d,keyName:f}=e,p=$e(e,Bj),m=hx(),g=ev(),v=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>m({[g]:!0}),onMouseLeave:()=>m({[g]:!1})};return y.jsxs("div",W({className:v,ref:t},p,w,{children:[y.jsx(uv,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f,initialValue:u}),y.jsx(tv,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f}),y.jsx(_x,{expandKey:g,value:a,level:l,keys:d})]}))});Xd.displayName="JVR.Container";var cv=e=>{var{BraceLeft:t={}}=Jt();return Tr(t,e,"BraceLeft"),null};cv.displayName="JVR.BraceLeft";var dv=e=>{var{BraceRight:t={}}=Jt();return Tr(t,e,"BraceRight"),null};dv.displayName="JVR.BraceRight";var fv=e=>{var{BracketsLeft:t={}}=Jt();return Tr(t,e,"BracketsLeft"),null};fv.displayName="JVR.BracketsLeft";var pv=e=>{var{BracketsRight:t={}}=Jt();return Tr(t,e,"BracketsRight"),null};pv.displayName="JVR.BracketsRight";var hv=e=>{var{Arrow:t={}}=Jt();return Tr(t,e,"Arrow"),null};hv.displayName="JVR.Arrow";var mv=e=>{var{Colon:t={}}=Jt();return Tr(t,e,"Colon"),null};mv.displayName="JVR.Colon";var gv=e=>{var{Quote:t={}}=Jt();return Tr(t,e,"Quote"),null};gv.displayName="JVR.Quote";var yv=e=>{var{ValueQuote:t={}}=Jt();return Tr(t,e,"ValueQuote"),null};yv.displayName="JVR.ValueQuote";var xv=e=>{var{Bigint:t={}}=Ge();return an(t,e,"Bigint"),null};xv.displayName="JVR.Bigint";var vv=e=>{var{Date:t={}}=Ge();return an(t,e,"Date"),null};vv.displayName="JVR.Date";var wv=e=>{var{False:t={}}=Ge();return an(t,e,"False"),null};wv.displayName="JVR.False";var kv=e=>{var{Float:t={}}=Ge();return an(t,e,"Float"),null};kv.displayName="JVR.Float";var Sv=e=>{var{Int:t={}}=Ge();return an(t,e,"Int"),null};Sv.displayName="JVR.Int";var bv=e=>{var{Map:t={}}=Ge();return an(t,e,"Map"),null};bv.displayName="JVR.Map";var Cv=e=>{var{Nan:t={}}=Ge();return an(t,e,"Nan"),null};Cv.displayName="JVR.Nan";var Ev=e=>{var{Null:t={}}=Ge();return an(t,e,"Null"),null};Ev.displayName="JVR.Null";var jv=e=>{var{Set:t={}}=Ge();return an(t,e,"Set"),null};jv.displayName="JVR.Set";var Tv=e=>{var{Str:t={}}=Ge();return an(t,e,"Str"),null};Tv.displayName="JVR.StringText";var Rv=e=>{var{True:t={}}=Ge();return an(t,e,"True"),null};Rv.displayName="JVR.True";var Iv=e=>{var{Undefined:t={}}=Ge();return an(t,e,"Undefined"),null};Iv.displayName="JVR.Undefined";var Nv=e=>{var{Url:t={}}=Ge();return an(t,e,"Url"),null};Nv.displayName="JVR.Url";var Pv=e=>{var{Copied:t={}}=vn();return Yi(t,e,"Copied"),null};Pv.displayName="JVR.Copied";var Uj=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Ue=P.forwardRef((e,t)=>{var{className:r="",style:o,value:l,children:a,collapsed:u,shouldExpandNodeInitially:d,indentWidth:f=15,displayObjectSize:p=!0,shortenTextAfterLength:m=30,highlightUpdates:g=!0,enableClipboard:v=!0,displayDataTypes:w=!0,objectSortKeys:S=!1,onExpand:b,onCopied:j}=e,C=$e(e,Uj),N=W({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},o),A=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return y.jsxs(Px,{initialState:{value:l,objectSortKeys:S,indentWidth:f,shouldExpandNodeInitially:d,displayObjectSize:p,collapsed:u,enableClipboard:v,shortenTextAfterLength:m,highlightUpdates:g,onCopied:j,onExpand:b},initialTypes:{displayDataTypes:w},children:[y.jsx(Xd,W({value:l},C,{ref:t,className:A,style:N})),a]})});Ue.Bigint=xv;Ue.Date=vv;Ue.False=wv;Ue.Float=kv;Ue.Int=Sv;Ue.Map=bv;Ue.Nan=Cv;Ue.Null=Ev;Ue.Set=jv;Ue.String=Tv;Ue.True=Rv;Ue.Undefined=Iv;Ue.Url=Nv;Ue.ValueQuote=yv;Ue.Arrow=hv;Ue.Colon=mv;Ue.Quote=gv;Ue.Ellipsis=sv;Ue.BraceLeft=cv;Ue.BraceRight=dv;Ue.BracketsLeft=fv;Ue.BracketsRight=pv;Ue.Copied=Pv;Ue.CountInfo=ov;Ue.CountInfoExtra=rv;Ue.KeyName=Qx;Ue.Row=Xx;Ue.displayName="JVR.JsonView";var Vj={"--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"},Hj={"--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 qj=R.pre`
|
|
831
831
|
margin-top: 8px;
|
|
832
832
|
padding: 8px;
|
|
833
833
|
background-color: ${e=>e.theme.colors.codeBackground};
|
|
@@ -840,35 +840,35 @@ Error generating stack: `+x.message+`
|
|
|
840
840
|
.w-json-view-container {
|
|
841
841
|
background: none !important;
|
|
842
842
|
}
|
|
843
|
-
`,Pv=({data:e})=>{const t=Kk();return y.jsx(Vj,{children:typeof e=="object"?y.jsx(Ue,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?Bj:Uj}):JSON.stringify(e,null,2)})};function Hj(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const qj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gj={};function Wm(e,t){return(Gj.jsx?Wj:qj).test(e)}const Jj=/[ \t\n\f\r]/g;function Kj(e){return typeof e=="object"?e.type==="text"?Gm(e.value):!1:Gm(e)}function Gm(e){return e.replace(Jj,"")===""}class pl{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}pl.prototype.normal={};pl.prototype.property={};pl.prototype.space=void 0;function Av(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new pl(r,o,t)}function dd(e){return e.toLowerCase()}class Kt{constructor(t,r){this.attribute=r,this.property=t}}Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let Qj=0;const Re=ei(),ut=ei(),fd=ei(),ee=ei(),We=ei(),Pi=ei(),tn=ei();function ei(){return 2**++Qj}const pd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:ut,commaOrSpaceSeparated:tn,commaSeparated:Pi,number:ee,overloadedBoolean:fd,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),Cc=Object.keys(pd);class Xd extends Kt{constructor(t,r,o,l){let a=-1;if(super(t,r),Jm(this,"space",l),typeof o=="number")for(;++a<Cc.length;){const u=Cc[a];Jm(this,Cc[a],(o&pd[u])===pd[u])}}}Xd.prototype.defined=!0;function Jm(e,t,r){r&&(e[t]=r)}function Xi(e){const t={},r={};for(const[o,l]of Object.entries(e.properties)){const a=new Xd(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[dd(o)]=o,r[dd(a.attribute)]=o}return new pl(t,r,e.space)}const Lv=Xi({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:We,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:ee,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:We,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:ut,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $v(e,t){return t in e?e[t]:t}function _v(e,t){return $v(e,t.toLowerCase())}const Yj=Xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pi,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:We,autoFocus:Re,autoPlay:Re,blocking:We,capture:null,charSet:null,checked:Re,cite:null,className:We,cols:ee,colSpan:null,content:null,contentEditable:ut,controls:Re,controlsList:We,coords:ee|Pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:fd,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:We,height:ee,hidden:fd,high:ee,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:We,itemRef:We,itemScope:Re,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re,optimum:ee,pattern:null,ping:We,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:We,required:Re,reversed:Re,rows:ee,rowSpan:ee,sandbox:We,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:ut,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:_v}),Xj=Xi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tn,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:We,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pi,g2:Pi,glyphName:Pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tn,rev:tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tn,requiredFeatures:tn,requiredFonts:tn,requiredFormats:tn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tn,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$v}),zv=Xi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Dv=Xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_v}),Ov=Xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Zj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},e2=/[A-Z]/g,Km=/-[a-z]/g,t2=/^data[-\w.:]+$/i;function n2(e,t){const r=dd(t);let o=t,l=Kt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&t2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Km,i2);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Km.test(a)){let u=a.replace(e2,r2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Xd}return new l(o,t)}function r2(e){return"-"+e.toLowerCase()}function i2(e){return e.charAt(1).toUpperCase()}const o2=Av([Lv,Yj,zv,Dv,Ov],"html"),Zd=Av([Lv,Xj,zv,Dv,Ov],"svg");function l2(e){return e.join(" ").trim()}var Ti={},Ec,Qm;function s2(){if(Qm)return Ec;Qm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
844
|
-
`,p="/",m="*",g="",v="comment",w="declaration";Ec=function(b,j){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];j=j||{};var C=1,P=1;function L(oe){var re=oe.match(t);re&&(C+=re.length);var B=oe.lastIndexOf(f);P=~B?oe.length-B:P+oe.length}function M(){var oe={line:C,column:P};return function(re){return re.position=new H(oe),K(),re}}function H(oe){this.start=oe,this.end={line:C,column:P},this.source=j.source}H.prototype.content=b;function A(oe){var re=new Error(j.source+":"+C+":"+P+": "+oe);if(re.reason=oe,re.filename=j.source,re.line=C,re.column=P,re.source=b,!j.silent)throw re}function q(oe){var re=oe.exec(b);if(re){var B=re[0];return L(B),b=b.slice(B.length),re}}function K(){q(r)}function le(oe){var re;for(oe=oe||[];re=D();)re!==!1&&oe.push(re);return oe}function D(){var oe=M();if(!(p!=b.charAt(0)||m!=b.charAt(1))){for(var re=2;g!=b.charAt(re)&&(m!=b.charAt(re)||p!=b.charAt(re+1));)++re;if(re+=2,g===b.charAt(re-1))return A("End of comment missing");var B=b.slice(2,re-2);return P+=2,L(B),b=b.slice(re),P+=2,oe({type:v,comment:B})}}function ne(){var oe=M(),re=q(o);if(re){if(D(),!q(l))return A("property missing ':'");var B=q(a),ae=oe({type:w,property:S(re[0].replace(e,g)),value:B?S(B[0].replace(e,g)):g});return q(u),ae}}function se(){var oe=[];le(oe);for(var re;re=ne();)re!==!1&&(oe.push(re),le(oe));return oe}return K(),se()};function S(b){return b?b.replace(d,g):g}return Ec}var Ym;function a2(){if(Ym)return Ti;Ym=1;var e=Ti&&Ti.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=r;var t=e(s2());function r(o,l){var a=null;if(!o||typeof o!="string")return a;var u=(0,t.default)(o),d=typeof l=="function";return u.forEach(function(f){if(f.type==="declaration"){var p=f.property,m=f.value;d?l(p,m,f):m&&(a=a||{},a[p]=m)}}),a}return Ti}var Wo={},Xm;function u2(){if(Xm)return Wo;Xm=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},d=function(p,m){return"".concat(m,"-")},f=function(p,m){return m===void 0&&(m={}),a(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(l,d):p=p.replace(o,d),p.replace(t,u))};return Wo.camelCase=f,Wo}var Go,Zm;function c2(){if(Zm)return Go;Zm=1;var e=Go&&Go.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(a2()),r=u2();function o(l,a){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return o.default=o,Go=o,Go}var d2=c2();const f2=Nd(d2),Mv=Fv("end"),ef=Fv("start");function Fv(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function p2(e){const t=ef(e),r=Mv(e);if(t&&r)return{start:t,end:r}}function el(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?eg(e.position):"start"in e||"end"in e?eg(e):"line"in e||"column"in e?hd(e):""}function hd(e){return tg(e&&e.line)+":"+tg(e&&e.column)}function eg(e){return hd(e&&e.start)+"-"+hd(e&&e.end)}function tg(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?l=t:!a.cause&&t&&(u=!0,l=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){const f=o.indexOf(":");f===-1?a.ruleId=o:(a.source=o.slice(0,f),a.ruleId=o.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=el(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Lt.prototype.file="";Lt.prototype.name="";Lt.prototype.reason="";Lt.prototype.message="";Lt.prototype.stack="";Lt.prototype.column=void 0;Lt.prototype.line=void 0;Lt.prototype.ancestors=void 0;Lt.prototype.cause=void 0;Lt.prototype.fatal=void 0;Lt.prototype.place=void 0;Lt.prototype.ruleId=void 0;Lt.prototype.source=void 0;const tf={}.hasOwnProperty,h2=new Map,m2=/[A-Z]/g,g2=new Set(["table","tbody","thead","tfoot","tr"]),y2=new Set(["td","th"]),Bv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=j2(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=E2(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zd:o2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Uv(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function Uv(e,t,r){if(t.type==="element")return v2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return S2(e,t,r);if(t.type==="mdxjsEsm")return k2(e,t);if(t.type==="root")return b2(e,t,r);if(t.type==="text")return C2(e,t)}function v2(e,t,r){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=Zd,e.schema=l),e.ancestors.push(t);const a=Hv(e,t.tagName,!1),u=T2(e,t);let d=rf(e,t);return g2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!Kj(f):!0})),Vv(e,u,a,t),nf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function w2(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}ol(e,t.position)}function k2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ol(e,t.position)}function S2(e,t,r){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=Zd,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:Hv(e,t.name,!0),u=R2(e,t),d=rf(e,t);return Vv(e,u,a,t),nf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function b2(e,t,r){const o={};return nf(o,rf(e,t)),e.create(t,e.Fragment,o,r)}function C2(e,t){return t.value}function Vv(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function nf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function E2(e,t,r){return o;function o(l,a,u,d){const p=Array.isArray(u.children)?r:t;return d?p(a,u,d):p(a,u)}}function j2(e,t){return r;function r(o,l,a,u){const d=Array.isArray(a.children),f=ef(o);return t(l,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function T2(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&tf.call(t.properties,l)){const a=N2(e,l,t.properties[l]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&y2.has(t.tagName)?o=d:r[u]=d}}if(o){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function R2(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ol(e,t.position);else{const l=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else ol(e,t.position);else a=o.value===null?!0:o.value;r[l]=a}return r}function rf(e,t){const r=[];let o=-1;const l=e.passKeys?new Map:h2;for(;++o<t.children.length;){const a=t.children[o];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=l.get(f)||0;u=f+"-"+p,l.set(f,p+1)}}const d=Uv(e,a,u);d!==void 0&&r.push(d)}return r}function N2(e,t,r){const o=n2(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Hj(r):l2(r)),o.property==="style"){let l=typeof r=="object"?r:I2(e,String(r));return e.stylePropertyNameCase==="css"&&(l=P2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?Zj[o.property]||o.property:o.attribute,r]}}function I2(e,t){try{return f2(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Bv+"#cannot-parse-style-attribute",l}}function Hv(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,u;for(;++a<l.length;){const d=Wm(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}o=u}else o=Wm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return tf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);ol(e)}function ol(e,t){const r=new Lt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Bv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function P2(e){const t={};let r;for(r in e)tf.call(e,r)&&(t[A2(r)]=e[r]);return t}function A2(e){let t=e.replace(m2,L2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function L2(e){return"-"+e.toLowerCase()}const jc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},$2={};function of(e,t){const r=$2,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return qv(e,o,l)}function qv(e,t,r){if(_2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ng(e.children,t,r)}return Array.isArray(e)?ng(e,t,r):""}function ng(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=qv(e[l],t,r);return o.join("")}function _2(e){return!!(e&&typeof e=="object")}const rg=document.createElement("i");function lf(e){const t="&"+e+";";rg.innerHTML=t;const r=rg.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function sn(e,t,r,o){const l=e.length;let a=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<o.length;)u=o.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function yn(e,t){return e.length>0?(sn(e,e.length,0,t),e):t}const ig={}.hasOwnProperty;function Wv(e){const t={};let r=-1;for(;++r<e.length;)z2(t,e[r]);return t}function z2(e,t){let r;for(r in t){const l=(ig.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){ig.call(l,u)||(l[u]=[]);const d=a[u];D2(l[u],Array.isArray(d)?d:d?[d]:[])}}}function D2(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);sn(e,0,0,o)}function Gv(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=Rr(/[A-Za-z]/),At=Rr(/[\dA-Za-z]/),O2=Rr(/[#-'*+\--9=?A-Z^-~]/);function ra(e){return e!==null&&(e<32||e===127)}const md=Rr(/\d/),M2=Rr(/[\dA-Fa-f]/),F2=Rr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Sa=Rr(new RegExp("\\p{P}|\\p{S}","u")),Xr=Rr(/\s/);function Rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Zi(e){const t=[];let r=-1,o=0,l=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&At(e.charCodeAt(r+1))&&At(e.charCodeAt(r+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),l=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(o,r),encodeURIComponent(u)),o=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(o)}function ze(e,t,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Le(f)?(e.enter(r),d(f)):t(f)}function d(f){return Le(f)&&a++<l?(e.consume(f),d):(e.exit(r),t(f))}}const B2={tokenize:U2};function U2(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ze(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const V2={tokenize:H2},og={tokenize:q2};function H2(e){const t=this,r=[];let o=0,l,a,u;return d;function d(L){if(o<r.length){const M=r[o];return t.containerState=M[1],e.attempt(M[0].continuation,f,p)(L)}return p(L)}function f(L){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&P();const M=t.events.length;let H=M,A;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){A=t.events[H][1].end;break}C(o);let q=M;for(;q<t.events.length;)t.events[q][1].end={...A},q++;return sn(t.events,H+1,0,t.events.slice(M)),t.events.length=q,p(L)}return d(L)}function p(L){if(o===r.length){if(!l)return v(L);if(l.currentConstruct&&l.currentConstruct.concrete)return S(L);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(og,m,g)(L)}function m(L){return l&&P(),C(o),v(L)}function g(L){return t.parser.lazy[t.now().line]=o!==r.length,u=t.now().offset,S(L)}function v(L){return t.containerState={},e.attempt(og,w,S)(L)}function w(L){return o++,r.push([t.currentConstruct,t.containerState]),v(L)}function S(L){if(L===null){l&&P(),C(0),e.consume(L);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),b(L)}function b(L){if(L===null){j(e.exit("chunkFlow"),!0),C(0),e.consume(L);return}return we(L)?(e.consume(L),j(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(L),b)}function j(L,M){const H=t.sliceStream(L);if(M&&H.push(null),L.previous=a,a&&(a.next=L),a=L,l.defineSkip(L.start),l.write(H),t.parser.lazy[L.start.line]){let A=l.events.length;for(;A--;)if(l.events[A][1].start.offset<u&&(!l.events[A][1].end||l.events[A][1].end.offset>u))return;const q=t.events.length;let K=q,le,D;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(le){D=t.events[K][1].end;break}le=!0}for(C(o),A=q;A<t.events.length;)t.events[A][1].end={...D},A++;sn(t.events,K+1,0,t.events.slice(q)),t.events.length=A}}function C(L){let M=r.length;for(;M-- >L;){const H=r[M];t.containerState=H[1],H[0].exit.call(t,e)}r.length=L}function P(){l.write([null]),a=void 0,l=void 0,t.containerState._closeFlow=void 0}}function q2(e,t,r){return ze(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vi(e){if(e===null||He(e)||Xr(e))return 1;if(Sa(e))return 2}function ba(e,t,r){const o=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}const gd={name:"attention",resolveAll:W2,tokenize:G2};function W2(e,t){let r=-1,o,l,a,u,d,f,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[o][1].end},v={...e[r][1].start};lg(g,-f),lg(v,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[o][1].end={...u.start},e[r][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=yn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=yn(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",a,t]]),p=yn(p,ba(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=yn(p,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=yn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,sn(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function G2(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=Vi(o);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const p=e.exit("attentionSequence"),m=Vi(f),g=!m||m===2&&l||r.includes(f),v=!l||l===2&&m||r.includes(o);return p._open=!!(a===42?g:g&&(l||!v)),p._close=!!(a===42?v:v&&(m||!g)),t(f)}}function lg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const J2={name:"autolink",tokenize:K2};function K2(e,t,r){let o=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return Ot(w)?(e.consume(w),u):w===64?r(w):p(w)}function u(w){return w===43||w===45||w===46||At(w)?(o=1,d(w)):p(w)}function d(w){return w===58?(e.consume(w),o=0,f):(w===43||w===45||w===46||At(w))&&o++<32?(e.consume(w),d):(o=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||ra(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),m):O2(w)?(e.consume(w),p):r(w)}function m(w){return At(w)?g(w):r(w)}function g(w){return w===46?(e.consume(w),o=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||At(w))&&o++<63){const S=w===45?v:g;return e.consume(w),S}return r(w)}}const hl={partial:!0,tokenize:Q2};function Q2(e,t,r){return o;function o(a){return Le(a)?ze(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||we(a)?t(a):r(a)}}const Jv={continuation:{tokenize:X2},exit:Z2,name:"blockQuote",tokenize:Y2};function Y2(e,t,r){const o=this;return l;function l(u){if(u===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Le(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function X2(e,t,r){const o=this;return l;function l(u){return Le(u)?ze(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Jv,t,r)(u)}}function Z2(e){e.exit("blockQuote")}const Kv={name:"characterEscape",tokenize:eT};function eT(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return F2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Qv={name:"characterReference",tokenize:tT};function tT(e,t,r){const o=this;let l=0,a,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=At,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=M2,m):(e.enter("characterReferenceValue"),a=7,u=md,m(g))}function m(g){if(g===59&&l){const v=e.exit("characterReferenceValue");return u===At&&!lf(o.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&l++<a?(e.consume(g),m):r(g)}}const sg={partial:!0,tokenize:rT},ag={concrete:!0,name:"codeFenced",tokenize:nT};function nT(e,t,r){const o=this,l={partial:!0,tokenize:H};let a=0,u=0,d;return f;function f(A){return p(A)}function p(A){const q=o.events[o.events.length-1];return a=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,d=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(A)}function m(A){return A===d?(u++,e.consume(A),m):u<3?r(A):(e.exit("codeFencedFenceSequence"),Le(A)?ze(e,g,"whitespace")(A):g(A))}function g(A){return A===null||we(A)?(e.exit("codeFencedFence"),o.interrupt?t(A):e.check(sg,b,M)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(A)):Le(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,w,"whitespace")(A)):A===96&&A===d?r(A):(e.consume(A),v)}function w(A){return A===null||we(A)?g(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(A))}function S(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(A)):A===96&&A===d?r(A):(e.consume(A),S)}function b(A){return e.attempt(l,M,j)(A)}function j(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),C}function C(A){return a>0&&Le(A)?ze(e,P,"linePrefix",a+1)(A):P(A)}function P(A){return A===null||we(A)?e.check(sg,b,M)(A):(e.enter("codeFlowValue"),L(A))}function L(A){return A===null||we(A)?(e.exit("codeFlowValue"),P(A)):(e.consume(A),L)}function M(A){return e.exit("codeFenced"),t(A)}function H(A,q,K){let le=0;return D;function D(B){return A.enter("lineEnding"),A.consume(B),A.exit("lineEnding"),ne}function ne(B){return A.enter("codeFencedFence"),Le(B)?ze(A,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):se(B)}function se(B){return B===d?(A.enter("codeFencedFenceSequence"),oe(B)):K(B)}function oe(B){return B===d?(le++,A.consume(B),oe):le>=u?(A.exit("codeFencedFenceSequence"),Le(B)?ze(A,re,"whitespace")(B):re(B)):K(B)}function re(B){return B===null||we(B)?(A.exit("codeFencedFence"),q(B)):K(B)}}}function rT(e,t,r){const o=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}const Tc={name:"codeIndented",tokenize:oT},iT={partial:!0,tokenize:lT};function oT(e,t,r){const o=this;return l;function l(p){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(p)}function a(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):we(p)?e.attempt(iT,u,f)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||we(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),d)}function f(p){return e.exit("codeIndented"),t(p)}}function lT(e,t,r){const o=this;return l;function l(u){return o.parser.lazy[o.now().line]?r(u):we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):ze(e,a,"linePrefix",5)(u)}function a(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):we(u)?l(u):r(u)}}const sT={name:"codeText",previous:uT,resolve:aT,tokenize:cT};function aT(e){let t=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}function uT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cT(e,t,r){let o=0,l,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),o++,d):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),l=0,m(g)):we(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||we(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),l++,m):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}class dT{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const l=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&Jo(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Jo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Jo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jo(this.left,r.reverse())}}}function Jo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Yv(e){const t={};let r=-1,o,l,a,u,d,f,p;const m=new dT(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=o[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,fT(m,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,l=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(o[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(o),m.splice(l,r-l+1,d))}}return sn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function fT(e,t){const r=e.get(t)[1],o=e.get(t)[2];let l=t-1;const a=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],p={};let m,g,v=-1,w=r,S=0,b=0;const j=[b];for(;w;){for(;e.get(++l)[1]!==w;);a.push(l),w._tokenizer||(m=o.sliceStream(w),w.next||m.push(null),g&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(b=v+1,j.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),v=j.length;v--;){const C=d.slice(j[v],j[v+1]),P=a.pop();f.push([P,P+C.length-1]),e.splice(P,2,C)}for(f.reverse(),v=-1;++v<f.length;)p[S+f[v][0]]=S+f[v][1],S+=f[v][1]-f[v][0]-1;return p}const pT={resolve:mT,tokenize:gT},hT={partial:!0,tokenize:yT};function mT(e){return Yv(e),e}function gT(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?a(d):we(d)?e.check(hT,u,a)(d):(e.consume(d),l)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function yT(e,t,r){const o=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(u){if(u===null||we(u))return r(u);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,r,t)(u)}}function Xv(e,t,r,o,l,a,u,d,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return g;function g(C){return C===60?(e.enter(o),e.enter(l),e.enter(a),e.consume(C),e.exit(a),v):C===null||C===32||C===41||ra(C)?r(C):(e.enter(o),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),b(C))}function v(C){return C===62?(e.enter(a),e.consume(C),e.exit(a),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function w(C){return C===62?(e.exit("chunkString"),e.exit(d),v(C)):C===null||C===60||we(C)?r(C):(e.consume(C),C===92?S:w)}function S(C){return C===60||C===62||C===92?(e.consume(C),w):w(C)}function b(C){return!m&&(C===null||C===41||He(C))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(o),t(C)):m<p&&C===40?(e.consume(C),m++,b):C===41?(e.consume(C),m--,b):C===null||C===32||C===40||ra(C)?r(C):(e.consume(C),C===92?j:b)}function j(C){return C===40||C===41||C===92?(e.consume(C),b):b(C)}}function Zv(e,t,r,o,l,a){const u=this;let d=0,f;return p;function p(w){return e.enter(o),e.enter(l),e.consume(w),e.exit(l),e.enter(a),m}function m(w){return d>999||w===null||w===91||w===93&&!f||w===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(a),e.enter(l),e.consume(w),e.exit(l),e.exit(o),t):we(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||we(w)||d++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!Le(w)),w===92?v:g)}function v(w){return w===91||w===92||w===93?(e.consume(w),d++,g):g(w)}}function e0(e,t,r,o,l,a){let u;return d;function d(v){return v===34||v===39||v===40?(e.enter(o),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,f):r(v)}function f(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(o),t):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),f(u)):v===null?r(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ze(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||we(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function tl(e,t){let r;return o;function o(l){return we(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):Le(l)?ze(e,o,r?"linePrefix":"lineSuffix")(l):t(l)}}const xT={name:"definition",tokenize:wT},vT={partial:!0,tokenize:kT};function wT(e,t,r){const o=this;let l;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return Zv.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return l=Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return He(w)?tl(e,p)(w):p(w)}function p(w){return Xv(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(vT,g,g)(w)}function g(w){return Le(w)?ze(e,v,"whitespace")(w):v(w)}function v(w){return w===null||we(w)?(e.exit("definition"),o.parser.defined.push(l),t(w)):r(w)}}function kT(e,t,r){return o;function o(d){return He(d)?tl(e,l)(d):r(d)}function l(d){return e0(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Le(d)?ze(e,u,"whitespace")(d):u(d)}function u(d){return d===null||we(d)?t(d):r(d)}}const ST={name:"hardBreakEscape",tokenize:bT};function bT(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const CT={name:"headingAtx",resolve:ET,tokenize:jT};function ET(e,t){let r=e.length-2,o=3,l,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},sn(e,o,r-o+1,[["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t]])),e}function jT(e,t,r){let o=0;return l;function l(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&o++<6?(e.consume(m),u):m===null||He(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||we(m)?(e.exit("atxHeading"),t(m)):Le(m)?ze(e,d,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function p(m){return m===null||m===35||He(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),p)}}const TT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ug=["pre","script","style","textarea"],RT={concrete:!0,name:"htmlFlow",resolveTo:PT,tokenize:AT},NT={partial:!0,tokenize:$T},IT={partial:!0,tokenize:LT};function PT(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function AT(e,t,r){const o=this;let l,a,u,d,f;return p;function p(N){return m(N)}function m(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),a=!0,b):N===63?(e.consume(N),l=3,o.interrupt?t:E):Ot(N)?(e.consume(N),u=String.fromCharCode(N),j):r(N)}function v(N){return N===45?(e.consume(N),l=2,w):N===91?(e.consume(N),l=5,d=0,S):Ot(N)?(e.consume(N),l=4,o.interrupt?t:E):r(N)}function w(N){return N===45?(e.consume(N),o.interrupt?t:E):r(N)}function S(N){const ye="CDATA[";return N===ye.charCodeAt(d++)?(e.consume(N),d===ye.length?o.interrupt?t:se:S):r(N)}function b(N){return Ot(N)?(e.consume(N),u=String.fromCharCode(N),j):r(N)}function j(N){if(N===null||N===47||N===62||He(N)){const ye=N===47,Se=u.toLowerCase();return!ye&&!a&&ug.includes(Se)?(l=1,o.interrupt?t(N):se(N)):TT.includes(u.toLowerCase())?(l=6,ye?(e.consume(N),C):o.interrupt?t(N):se(N)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(N):a?P(N):L(N))}return N===45||At(N)?(e.consume(N),u+=String.fromCharCode(N),j):r(N)}function C(N){return N===62?(e.consume(N),o.interrupt?t:se):r(N)}function P(N){return Le(N)?(e.consume(N),P):D(N)}function L(N){return N===47?(e.consume(N),D):N===58||N===95||Ot(N)?(e.consume(N),M):Le(N)?(e.consume(N),L):D(N)}function M(N){return N===45||N===46||N===58||N===95||At(N)?(e.consume(N),M):H(N)}function H(N){return N===61?(e.consume(N),A):Le(N)?(e.consume(N),H):L(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),f=N,q):Le(N)?(e.consume(N),A):K(N)}function q(N){return N===f?(e.consume(N),f=null,le):N===null||we(N)?r(N):(e.consume(N),q)}function K(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||He(N)?H(N):(e.consume(N),K)}function le(N){return N===47||N===62||Le(N)?L(N):r(N)}function D(N){return N===62?(e.consume(N),ne):r(N)}function ne(N){return N===null||we(N)?se(N):Le(N)?(e.consume(N),ne):r(N)}function se(N){return N===45&&l===2?(e.consume(N),ae):N===60&&l===1?(e.consume(N),ue):N===62&&l===4?(e.consume(N),z):N===63&&l===3?(e.consume(N),E):N===93&&l===5?(e.consume(N),ce):we(N)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(NT,G,oe)(N)):N===null||we(N)?(e.exit("htmlFlowData"),oe(N)):(e.consume(N),se)}function oe(N){return e.check(IT,re,G)(N)}function re(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),B}function B(N){return N===null||we(N)?oe(N):(e.enter("htmlFlowData"),se(N))}function ae(N){return N===45?(e.consume(N),E):se(N)}function ue(N){return N===47?(e.consume(N),u="",X):se(N)}function X(N){if(N===62){const ye=u.toLowerCase();return ug.includes(ye)?(e.consume(N),z):se(N)}return Ot(N)&&u.length<8?(e.consume(N),u+=String.fromCharCode(N),X):se(N)}function ce(N){return N===93?(e.consume(N),E):se(N)}function E(N){return N===62?(e.consume(N),z):N===45&&l===2?(e.consume(N),E):se(N)}function z(N){return N===null||we(N)?(e.exit("htmlFlowData"),G(N)):(e.consume(N),z)}function G(N){return e.exit("htmlFlow"),t(N)}}function LT(e,t,r){const o=this;return l;function l(u){return we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}function $T(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(hl,t,r)}}const _T={name:"htmlText",tokenize:zT};function zT(e,t,r){const o=this;let l,a,u;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),p):E===47?(e.consume(E),H):E===63?(e.consume(E),L):Ot(E)?(e.consume(E),K):r(E)}function p(E){return E===45?(e.consume(E),m):E===91?(e.consume(E),a=0,S):Ot(E)?(e.consume(E),P):r(E)}function m(E){return E===45?(e.consume(E),w):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),v):we(E)?(u=g,ue(E)):(e.consume(E),g)}function v(E){return E===45?(e.consume(E),w):g(E)}function w(E){return E===62?ae(E):E===45?v(E):g(E)}function S(E){const z="CDATA[";return E===z.charCodeAt(a++)?(e.consume(E),a===z.length?b:S):r(E)}function b(E){return E===null?r(E):E===93?(e.consume(E),j):we(E)?(u=b,ue(E)):(e.consume(E),b)}function j(E){return E===93?(e.consume(E),C):b(E)}function C(E){return E===62?ae(E):E===93?(e.consume(E),C):b(E)}function P(E){return E===null||E===62?ae(E):we(E)?(u=P,ue(E)):(e.consume(E),P)}function L(E){return E===null?r(E):E===63?(e.consume(E),M):we(E)?(u=L,ue(E)):(e.consume(E),L)}function M(E){return E===62?ae(E):L(E)}function H(E){return Ot(E)?(e.consume(E),A):r(E)}function A(E){return E===45||At(E)?(e.consume(E),A):q(E)}function q(E){return we(E)?(u=q,ue(E)):Le(E)?(e.consume(E),q):ae(E)}function K(E){return E===45||At(E)?(e.consume(E),K):E===47||E===62||He(E)?le(E):r(E)}function le(E){return E===47?(e.consume(E),ae):E===58||E===95||Ot(E)?(e.consume(E),D):we(E)?(u=le,ue(E)):Le(E)?(e.consume(E),le):ae(E)}function D(E){return E===45||E===46||E===58||E===95||At(E)?(e.consume(E),D):ne(E)}function ne(E){return E===61?(e.consume(E),se):we(E)?(u=ne,ue(E)):Le(E)?(e.consume(E),ne):le(E)}function se(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,oe):we(E)?(u=se,ue(E)):Le(E)?(e.consume(E),se):(e.consume(E),re)}function oe(E){return E===l?(e.consume(E),l=void 0,B):E===null?r(E):we(E)?(u=oe,ue(E)):(e.consume(E),oe)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||He(E)?le(E):(e.consume(E),re)}function B(E){return E===47||E===62||He(E)?le(E):r(E)}function ae(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function ue(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X}function X(E){return Le(E)?ze(e,ce,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ce(E)}function ce(E){return e.enter("htmlTextData"),u(E)}}const sf={name:"labelEnd",resolveAll:FT,resolveTo:BT,tokenize:UT},DT={tokenize:VT},OT={tokenize:HT},MT={tokenize:qT};function FT(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==r.length&&sn(e,0,e.length,r),e}function BT(e,t){let r=e.length,o=0,l,a,u,d;for(;r--;)if(l=e[r][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",p,t]],d=yn(d,e.slice(a+1,a+o+3)),d=yn(d,[["enter",m,t]]),d=yn(d,ba(t.parser.constructs.insideSpan.null,e.slice(a+o+4,u-3),t)),d=yn(d,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),d=yn(d,e.slice(u+1)),d=yn(d,[["exit",f,t]]),sn(e,a,e.length,d),e}function UT(e,t,r){const o=this;let l=o.events.length,a,u;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){a=o.events[l][1];break}return d;function d(v){return a?a._inactive?g(v):(u=o.parser.defined.includes(Rn(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):r(v)}function f(v){return v===40?e.attempt(DT,m,u?m:g)(v):v===91?e.attempt(OT,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(MT,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,r(v)}}function VT(e,t,r){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),l}function l(g){return He(g)?tl(e,a)(g):a(g)}function a(g){return g===41?m(g):Xv(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return He(g)?tl(e,f)(g):m(g)}function d(g){return r(g)}function f(g){return g===34||g===39||g===40?e0(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return He(g)?tl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function HT(e,t,r){const o=this;return l;function l(d){return Zv.call(o,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return o.parser.defined.includes(Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function qT(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const WT={name:"labelStartImage",resolveAll:sf.resolveAll,tokenize:GT};function GT(e,t,r){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}const JT={name:"labelStartLink",resolveAll:sf.resolveAll,tokenize:KT};function KT(e,t,r){const o=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):t(u)}}const Rc={name:"lineEnding",tokenize:QT};function QT(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const Ws={name:"thematicBreak",tokenize:YT};function YT(e,t,r){let o=0,l;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),f(p)):o>=3&&(p===null||we(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===l?(e.consume(p),o++,f):(e.exit("thematicBreakSequence"),Le(p)?ze(e,d,"whitespace")(p):d(p))}}const Wt={continuation:{tokenize:tR},exit:rR,name:"list",tokenize:eR},XT={partial:!0,tokenize:iR},ZT={partial:!0,tokenize:nR};function eR(e,t,r){const o=this,l=o.events[o.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(w){const S=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:md(w)){if(o.containerState.type||(o.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Ws,r,p)(w):p(w);if(!o.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return md(w)&&++u<10?(e.consume(w),f):(!o.interrupt||u<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,e.check(hl,o.interrupt?r:m,e.attempt(XT,v,g))}function m(w){return o.containerState.initialBlankLine=!0,a++,v(w)}function g(w){return Le(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):r(w)}function v(w){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function tR(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(hl,l,a);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,ze(e,t,"listItemIndent",o.containerState.size+1)(d)}function a(d){return o.containerState.furtherBlankLines||!Le(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(ZT,t,u)(d))}function u(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,ze(e,e.attempt(Wt,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function nR(e,t,r){const o=this;return ze(e,l,"listItemIndent",o.containerState.size+1);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(a):r(a)}}function rR(e){e.exit(this.containerState.type)}function iR(e,t,r){const o=this;return ze(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const u=o.events[o.events.length-1];return!Le(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const cg={name:"setextUnderline",resolveTo:oR,tokenize:lR};function oR(e,t){let r=e.length,o,l,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",u,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end={...e[a][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function lR(e,t,r){const o=this;let l;return a;function a(p){let m=o.events.length,g;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){g=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),Le(p)?ze(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||we(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const sR={tokenize:aR};function aR(e){const t=this,r=e.attempt(hl,o,e.attempt(this.parser.constructs.flowInitial,l,ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(pT,l)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const uR={resolveAll:n0()},cR=t0("string"),dR=t0("text");function t0(e){return{resolveAll:n0(e==="text"?fR:void 0),tokenize:t};function t(r){const o=this,l=this.parser.constructs[e],a=r.attempt(l,u,d);return u;function u(m){return p(m)?a(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),a(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const g=l[m];let v=-1;if(g)for(;++v<g.length;){const w=g[v];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function n0(e){return t;function t(r,o){let l=-1,a;for(;++l<=r.length;)a===void 0?r[l]&&r[l][1].type==="data"&&(a=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==a+2&&(r[a][1].end=r[l-1][1].end,r.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(r,o):r}}function fR(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=t.sliceStream(o);let a=l.length,u=-1,d=0,f;for(;a--;){const p=l[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(p===-2)f=!0,d++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:o.start._bufferIndex+u,_index:o.start._index+a,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const pR={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Jv},hR={91:xT},mR={[-2]:Tc,[-1]:Tc,32:Tc},gR={35:CT,42:Ws,45:[cg,Ws],60:RT,61:cg,95:Ws,96:ag,126:ag},yR={38:Qv,92:Kv},xR={[-5]:Rc,[-4]:Rc,[-3]:Rc,33:WT,38:Qv,42:gd,60:[J2,_T],91:JT,92:[ST,Kv],93:sf,95:gd,96:sT},vR={null:[gd,uR]},wR={null:[42,95]},kR={null:[]},SR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wR,contentInitial:hR,disable:kR,document:pR,flow:gR,flowInitial:mR,insideSpan:vR,string:yR,text:xR},Symbol.toStringTag,{value:"Module"}));function bR(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},a=[];let u=[],d=[];const f={attempt:q(H),check:q(A),consume:P,enter:L,exit:M,interrupt:q(A,{interrupt:!0})},p={code:null,containerState:{},defineSkip:b,events:[],now:S,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:g};let m=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function g(ne){return u=yn(u,ne),j(),u[u.length-1]!==null?[]:(K(t,0),p.events=ba(a,p.events,p),p.events)}function v(ne,se){return ER(w(ne),se)}function w(ne){return CR(u,ne)}function S(){const{_bufferIndex:ne,_index:se,line:oe,column:re,offset:B}=o;return{_bufferIndex:ne,_index:se,line:oe,column:re,offset:B}}function b(ne){l[ne.line]=ne.column,D()}function j(){let ne;for(;o._index<u.length;){const se=u[o._index];if(typeof se=="string")for(ne=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===ne&&o._bufferIndex<se.length;)C(se.charCodeAt(o._bufferIndex));else C(se)}}function C(ne){m=m(ne)}function P(ne){we(ne)?(o.line++,o.column=1,o.offset+=ne===-3?2:1,D()):ne!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=ne}function L(ne,se){const oe=se||{};return oe.type=ne,oe.start=S(),p.events.push(["enter",oe,p]),d.push(oe),oe}function M(ne){const se=d.pop();return se.end=S(),p.events.push(["exit",se,p]),se}function H(ne,se){K(ne,se.from)}function A(ne,se){se.restore()}function q(ne,se){return oe;function oe(re,B,ae){let ue,X,ce,E;return Array.isArray(re)?G(re):"tokenize"in re?G([re]):z(re);function z(me){return Ee;function Ee(ke){const je=ke!==null&&me[ke],Ve=ke!==null&&me.null,Ct=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ve)?Ve:Ve?[Ve]:[]];return G(Ct)(ke)}}function G(me){return ue=me,X=0,me.length===0?ae:N(me[X])}function N(me){return Ee;function Ee(ke){return E=le(),ce=me,me.partial||(p.currentConstruct=me),me.name&&p.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(se?Object.assign(Object.create(p),se):p,f,ye,Se)(ke)}}function ye(me){return ne(ce,E),B}function Se(me){return E.restore(),++X<ue.length?N(ue[X]):ae}}}function K(ne,se){ne.resolveAll&&!a.includes(ne)&&a.push(ne),ne.resolve&&sn(p.events,se,p.events.length-se,ne.resolve(p.events.slice(se),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function le(){const ne=S(),se=p.previous,oe=p.currentConstruct,re=p.events.length,B=Array.from(d);return{from:re,restore:ae};function ae(){o=ne,p.previous=se,p.currentConstruct=oe,p.events.length=re,d=B,D()}}function D(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function CR(e,t){const r=t.start._index,o=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(o,a)];else{if(u=e.slice(r,l),o>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(o):u.shift()}a>0&&u.push(e[l].slice(0,a))}return u}function ER(e,t){let r=-1;const o=[];let l;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
843
|
+
`,Av=({data:e})=>{const t=Qk();return y.jsx(qj,{children:typeof e=="object"?y.jsx(Ue,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?Vj:Hj}):JSON.stringify(e,null,2)})};function Wj(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Gj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kj={};function Gm(e,t){return(Kj.jsx?Jj:Gj).test(e)}const Qj=/[ \t\n\f\r]/g;function Yj(e){return typeof e=="object"?e.type==="text"?Jm(e.value):!1:Jm(e)}function Jm(e){return e.replace(Qj,"")===""}class pl{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}pl.prototype.normal={};pl.prototype.property={};pl.prototype.space=void 0;function Lv(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new pl(r,o,t)}function dd(e){return e.toLowerCase()}class Kt{constructor(t,r){this.attribute=r,this.property=t}}Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let Xj=0;const Re=ei(),ut=ei(),fd=ei(),ee=ei(),We=ei(),Pi=ei(),tn=ei();function ei(){return 2**++Xj}const pd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:ut,commaOrSpaceSeparated:tn,commaSeparated:Pi,number:ee,overloadedBoolean:fd,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),Cc=Object.keys(pd);class Zd extends Kt{constructor(t,r,o,l){let a=-1;if(super(t,r),Km(this,"space",l),typeof o=="number")for(;++a<Cc.length;){const u=Cc[a];Km(this,Cc[a],(o&pd[u])===pd[u])}}}Zd.prototype.defined=!0;function Km(e,t,r){r&&(e[t]=r)}function Xi(e){const t={},r={};for(const[o,l]of Object.entries(e.properties)){const a=new Zd(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[dd(o)]=o,r[dd(a.attribute)]=o}return new pl(t,r,e.space)}const $v=Xi({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:We,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:ee,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:We,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:ut,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _v(e,t){return t in e?e[t]:t}function zv(e,t){return _v(e,t.toLowerCase())}const Zj=Xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pi,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:We,autoFocus:Re,autoPlay:Re,blocking:We,capture:null,charSet:null,checked:Re,cite:null,className:We,cols:ee,colSpan:null,content:null,contentEditable:ut,controls:Re,controlsList:We,coords:ee|Pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:fd,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:We,height:ee,hidden:fd,high:ee,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:We,itemRef:We,itemScope:Re,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re,optimum:ee,pattern:null,ping:We,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:We,required:Re,reversed:Re,rows:ee,rowSpan:ee,sandbox:We,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:ut,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:zv}),e2=Xi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tn,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:We,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pi,g2:Pi,glyphName:Pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tn,rev:tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tn,requiredFeatures:tn,requiredFonts:tn,requiredFormats:tn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tn,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),Dv=Xi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ov=Xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zv}),Fv=Xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),t2={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},n2=/[A-Z]/g,Qm=/-[a-z]/g,r2=/^data[-\w.:]+$/i;function i2(e,t){const r=dd(t);let o=t,l=Kt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&r2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Qm,l2);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Qm.test(a)){let u=a.replace(n2,o2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Zd}return new l(o,t)}function o2(e){return"-"+e.toLowerCase()}function l2(e){return e.charAt(1).toUpperCase()}const s2=Lv([$v,Zj,Dv,Ov,Fv],"html"),ef=Lv([$v,e2,Dv,Ov,Fv],"svg");function a2(e){return e.join(" ").trim()}var Ti={},Ec,Ym;function u2(){if(Ym)return Ec;Ym=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
844
|
+
`,p="/",m="*",g="",v="comment",w="declaration";Ec=function(b,j){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];j=j||{};var C=1,N=1;function A(le){var re=le.match(t);re&&(C+=re.length);var H=le.lastIndexOf(f);N=~H?le.length-H:N+le.length}function F(){var le={line:C,column:N};return function(re){return re.position=new V(le),K(),re}}function V(le){this.start=le,this.end={line:C,column:N},this.source=j.source}V.prototype.content=b;function L(le){var re=new Error(j.source+":"+C+":"+N+": "+le);if(re.reason=le,re.filename=j.source,re.line=C,re.column=N,re.source=b,!j.silent)throw re}function G(le){var re=le.exec(b);if(re){var H=re[0];return A(H),b=b.slice(H.length),re}}function K(){G(r)}function ie(le){var re;for(le=le||[];re=D();)re!==!1&&le.push(re);return le}function D(){var le=F();if(!(p!=b.charAt(0)||m!=b.charAt(1))){for(var re=2;g!=b.charAt(re)&&(m!=b.charAt(re)||p!=b.charAt(re+1));)++re;if(re+=2,g===b.charAt(re-1))return L("End of comment missing");var H=b.slice(2,re-2);return N+=2,A(H),b=b.slice(re),N+=2,le({type:v,comment:H})}}function ne(){var le=F(),re=G(o);if(re){if(D(),!G(l))return L("property missing ':'");var H=G(a),de=le({type:w,property:S(re[0].replace(e,g)),value:H?S(H[0].replace(e,g)):g});return G(u),de}}function se(){var le=[];ie(le);for(var re;re=ne();)re!==!1&&(le.push(re),ie(le));return le}return K(),se()};function S(b){return b?b.replace(d,g):g}return Ec}var Xm;function c2(){if(Xm)return Ti;Xm=1;var e=Ti&&Ti.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=r;var t=e(u2());function r(o,l){var a=null;if(!o||typeof o!="string")return a;var u=(0,t.default)(o),d=typeof l=="function";return u.forEach(function(f){if(f.type==="declaration"){var p=f.property,m=f.value;d?l(p,m,f):m&&(a=a||{},a[p]=m)}}),a}return Ti}var Wo={},Zm;function d2(){if(Zm)return Wo;Zm=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},d=function(p,m){return"".concat(m,"-")},f=function(p,m){return m===void 0&&(m={}),a(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(l,d):p=p.replace(o,d),p.replace(t,u))};return Wo.camelCase=f,Wo}var Go,eg;function f2(){if(eg)return Go;eg=1;var e=Go&&Go.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(c2()),r=d2();function o(l,a){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return o.default=o,Go=o,Go}var p2=f2();const h2=Nd(p2),Mv=Bv("end"),tf=Bv("start");function Bv(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function m2(e){const t=tf(e),r=Mv(e);if(t&&r)return{start:t,end:r}}function el(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tg(e.position):"start"in e||"end"in e?tg(e):"line"in e||"column"in e?hd(e):""}function hd(e){return ng(e&&e.line)+":"+ng(e&&e.column)}function tg(e){return hd(e&&e.start)+"-"+hd(e&&e.end)}function ng(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?l=t:!a.cause&&t&&(u=!0,l=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){const f=o.indexOf(":");f===-1?a.ruleId=o:(a.source=o.slice(0,f),a.ruleId=o.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=el(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Lt.prototype.file="";Lt.prototype.name="";Lt.prototype.reason="";Lt.prototype.message="";Lt.prototype.stack="";Lt.prototype.column=void 0;Lt.prototype.line=void 0;Lt.prototype.ancestors=void 0;Lt.prototype.cause=void 0;Lt.prototype.fatal=void 0;Lt.prototype.place=void 0;Lt.prototype.ruleId=void 0;Lt.prototype.source=void 0;const nf={}.hasOwnProperty,g2=new Map,y2=/[A-Z]/g,x2=new Set(["table","tbody","thead","tfoot","tr"]),v2=new Set(["td","th"]),Uv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function w2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=R2(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=T2(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ef:s2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Vv(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function Vv(e,t,r){if(t.type==="element")return k2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return S2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return C2(e,t,r);if(t.type==="mdxjsEsm")return b2(e,t);if(t.type==="root")return E2(e,t,r);if(t.type==="text")return j2(e,t)}function k2(e,t,r){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=ef,e.schema=l),e.ancestors.push(t);const a=qv(e,t.tagName,!1),u=I2(e,t);let d=of(e,t);return x2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!Yj(f):!0})),Hv(e,u,a,t),rf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function S2(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}ol(e,t.position)}function b2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ol(e,t.position)}function C2(e,t,r){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=ef,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:qv(e,t.name,!0),u=N2(e,t),d=of(e,t);return Hv(e,u,a,t),rf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function E2(e,t,r){const o={};return rf(o,of(e,t)),e.create(t,e.Fragment,o,r)}function j2(e,t){return t.value}function Hv(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function rf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function T2(e,t,r){return o;function o(l,a,u,d){const p=Array.isArray(u.children)?r:t;return d?p(a,u,d):p(a,u)}}function R2(e,t){return r;function r(o,l,a,u){const d=Array.isArray(a.children),f=tf(o);return t(l,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function I2(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&nf.call(t.properties,l)){const a=P2(e,l,t.properties[l]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&v2.has(t.tagName)?o=d:r[u]=d}}if(o){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function N2(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ol(e,t.position);else{const l=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else ol(e,t.position);else a=o.value===null?!0:o.value;r[l]=a}return r}function of(e,t){const r=[];let o=-1;const l=e.passKeys?new Map:g2;for(;++o<t.children.length;){const a=t.children[o];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=l.get(f)||0;u=f+"-"+p,l.set(f,p+1)}}const d=Vv(e,a,u);d!==void 0&&r.push(d)}return r}function P2(e,t,r){const o=i2(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Wj(r):a2(r)),o.property==="style"){let l=typeof r=="object"?r:A2(e,String(r));return e.stylePropertyNameCase==="css"&&(l=L2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?t2[o.property]||o.property:o.attribute,r]}}function A2(e,t){try{return h2(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Uv+"#cannot-parse-style-attribute",l}}function qv(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,u;for(;++a<l.length;){const d=Gm(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}o=u}else o=Gm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return nf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);ol(e)}function ol(e,t){const r=new Lt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Uv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function L2(e){const t={};let r;for(r in e)nf.call(e,r)&&(t[$2(r)]=e[r]);return t}function $2(e){let t=e.replace(y2,_2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _2(e){return"-"+e.toLowerCase()}const jc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},z2={};function lf(e,t){const r=z2,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Wv(e,o,l)}function Wv(e,t,r){if(D2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return rg(e.children,t,r)}return Array.isArray(e)?rg(e,t,r):""}function rg(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=Wv(e[l],t,r);return o.join("")}function D2(e){return!!(e&&typeof e=="object")}const ig=document.createElement("i");function sf(e){const t="&"+e+";";ig.innerHTML=t;const r=ig.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function sn(e,t,r,o){const l=e.length;let a=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<o.length;)u=o.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function yn(e,t){return e.length>0?(sn(e,e.length,0,t),e):t}const og={}.hasOwnProperty;function Gv(e){const t={};let r=-1;for(;++r<e.length;)O2(t,e[r]);return t}function O2(e,t){let r;for(r in t){const l=(og.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){og.call(l,u)||(l[u]=[]);const d=a[u];F2(l[u],Array.isArray(d)?d:d?[d]:[])}}}function F2(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);sn(e,0,0,o)}function Jv(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=Rr(/[A-Za-z]/),At=Rr(/[\dA-Za-z]/),M2=Rr(/[#-'*+\--9=?A-Z^-~]/);function ra(e){return e!==null&&(e<32||e===127)}const md=Rr(/\d/),B2=Rr(/[\dA-Fa-f]/),U2=Rr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Sa=Rr(new RegExp("\\p{P}|\\p{S}","u")),Xr=Rr(/\s/);function Rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Zi(e){const t=[];let r=-1,o=0,l=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&At(e.charCodeAt(r+1))&&At(e.charCodeAt(r+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),l=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(o,r),encodeURIComponent(u)),o=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(o)}function ze(e,t,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Le(f)?(e.enter(r),d(f)):t(f)}function d(f){return Le(f)&&a++<l?(e.consume(f),d):(e.exit(r),t(f))}}const V2={tokenize:H2};function H2(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ze(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const q2={tokenize:W2},lg={tokenize:G2};function W2(e){const t=this,r=[];let o=0,l,a,u;return d;function d(A){if(o<r.length){const F=r[o];return t.containerState=F[1],e.attempt(F[0].continuation,f,p)(A)}return p(A)}function f(A){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&N();const F=t.events.length;let V=F,L;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){L=t.events[V][1].end;break}C(o);let G=F;for(;G<t.events.length;)t.events[G][1].end={...L},G++;return sn(t.events,V+1,0,t.events.slice(F)),t.events.length=G,p(A)}return d(A)}function p(A){if(o===r.length){if(!l)return v(A);if(l.currentConstruct&&l.currentConstruct.concrete)return S(A);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(lg,m,g)(A)}function m(A){return l&&N(),C(o),v(A)}function g(A){return t.parser.lazy[t.now().line]=o!==r.length,u=t.now().offset,S(A)}function v(A){return t.containerState={},e.attempt(lg,w,S)(A)}function w(A){return o++,r.push([t.currentConstruct,t.containerState]),v(A)}function S(A){if(A===null){l&&N(),C(0),e.consume(A);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),b(A)}function b(A){if(A===null){j(e.exit("chunkFlow"),!0),C(0),e.consume(A);return}return we(A)?(e.consume(A),j(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(A),b)}function j(A,F){const V=t.sliceStream(A);if(F&&V.push(null),A.previous=a,a&&(a.next=A),a=A,l.defineSkip(A.start),l.write(V),t.parser.lazy[A.start.line]){let L=l.events.length;for(;L--;)if(l.events[L][1].start.offset<u&&(!l.events[L][1].end||l.events[L][1].end.offset>u))return;const G=t.events.length;let K=G,ie,D;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(ie){D=t.events[K][1].end;break}ie=!0}for(C(o),L=G;L<t.events.length;)t.events[L][1].end={...D},L++;sn(t.events,K+1,0,t.events.slice(G)),t.events.length=L}}function C(A){let F=r.length;for(;F-- >A;){const V=r[F];t.containerState=V[1],V[0].exit.call(t,e)}r.length=A}function N(){l.write([null]),a=void 0,l=void 0,t.containerState._closeFlow=void 0}}function G2(e,t,r){return ze(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vi(e){if(e===null||He(e)||Xr(e))return 1;if(Sa(e))return 2}function ba(e,t,r){const o=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}const gd={name:"attention",resolveAll:J2,tokenize:K2};function J2(e,t){let r=-1,o,l,a,u,d,f,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[o][1].end},v={...e[r][1].start};sg(g,-f),sg(v,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[o][1].end={...u.start},e[r][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=yn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=yn(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",a,t]]),p=yn(p,ba(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=yn(p,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=yn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,sn(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function K2(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=Vi(o);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const p=e.exit("attentionSequence"),m=Vi(f),g=!m||m===2&&l||r.includes(f),v=!l||l===2&&m||r.includes(o);return p._open=!!(a===42?g:g&&(l||!v)),p._close=!!(a===42?v:v&&(m||!g)),t(f)}}function sg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Q2={name:"autolink",tokenize:Y2};function Y2(e,t,r){let o=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return Ot(w)?(e.consume(w),u):w===64?r(w):p(w)}function u(w){return w===43||w===45||w===46||At(w)?(o=1,d(w)):p(w)}function d(w){return w===58?(e.consume(w),o=0,f):(w===43||w===45||w===46||At(w))&&o++<32?(e.consume(w),d):(o=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||ra(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),m):M2(w)?(e.consume(w),p):r(w)}function m(w){return At(w)?g(w):r(w)}function g(w){return w===46?(e.consume(w),o=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||At(w))&&o++<63){const S=w===45?v:g;return e.consume(w),S}return r(w)}}const hl={partial:!0,tokenize:X2};function X2(e,t,r){return o;function o(a){return Le(a)?ze(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||we(a)?t(a):r(a)}}const Kv={continuation:{tokenize:eT},exit:tT,name:"blockQuote",tokenize:Z2};function Z2(e,t,r){const o=this;return l;function l(u){if(u===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Le(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function eT(e,t,r){const o=this;return l;function l(u){return Le(u)?ze(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Kv,t,r)(u)}}function tT(e){e.exit("blockQuote")}const Qv={name:"characterEscape",tokenize:nT};function nT(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return U2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Yv={name:"characterReference",tokenize:rT};function rT(e,t,r){const o=this;let l=0,a,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=At,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=B2,m):(e.enter("characterReferenceValue"),a=7,u=md,m(g))}function m(g){if(g===59&&l){const v=e.exit("characterReferenceValue");return u===At&&!sf(o.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&l++<a?(e.consume(g),m):r(g)}}const ag={partial:!0,tokenize:oT},ug={concrete:!0,name:"codeFenced",tokenize:iT};function iT(e,t,r){const o=this,l={partial:!0,tokenize:V};let a=0,u=0,d;return f;function f(L){return p(L)}function p(L){const G=o.events[o.events.length-1];return a=G&&G[1].type==="linePrefix"?G[2].sliceSerialize(G[1],!0).length:0,d=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===d?(u++,e.consume(L),m):u<3?r(L):(e.exit("codeFencedFenceSequence"),Le(L)?ze(e,g,"whitespace")(L):g(L))}function g(L){return L===null||we(L)?(e.exit("codeFencedFence"),o.interrupt?t(L):e.check(ag,b,F)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||we(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Le(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,w,"whitespace")(L)):L===96&&L===d?r(L):(e.consume(L),v)}function w(L){return L===null||we(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(L))}function S(L){return L===null||we(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===d?r(L):(e.consume(L),S)}function b(L){return e.attempt(l,F,j)(L)}function j(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),C}function C(L){return a>0&&Le(L)?ze(e,N,"linePrefix",a+1)(L):N(L)}function N(L){return L===null||we(L)?e.check(ag,b,F)(L):(e.enter("codeFlowValue"),A(L))}function A(L){return L===null||we(L)?(e.exit("codeFlowValue"),N(L)):(e.consume(L),A)}function F(L){return e.exit("codeFenced"),t(L)}function V(L,G,K){let ie=0;return D;function D(H){return L.enter("lineEnding"),L.consume(H),L.exit("lineEnding"),ne}function ne(H){return L.enter("codeFencedFence"),Le(H)?ze(L,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):se(H)}function se(H){return H===d?(L.enter("codeFencedFenceSequence"),le(H)):K(H)}function le(H){return H===d?(ie++,L.consume(H),le):ie>=u?(L.exit("codeFencedFenceSequence"),Le(H)?ze(L,re,"whitespace")(H):re(H)):K(H)}function re(H){return H===null||we(H)?(L.exit("codeFencedFence"),G(H)):K(H)}}}function oT(e,t,r){const o=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}const Tc={name:"codeIndented",tokenize:sT},lT={partial:!0,tokenize:aT};function sT(e,t,r){const o=this;return l;function l(p){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(p)}function a(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):we(p)?e.attempt(lT,u,f)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||we(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),d)}function f(p){return e.exit("codeIndented"),t(p)}}function aT(e,t,r){const o=this;return l;function l(u){return o.parser.lazy[o.now().line]?r(u):we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):ze(e,a,"linePrefix",5)(u)}function a(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):we(u)?l(u):r(u)}}const uT={name:"codeText",previous:dT,resolve:cT,tokenize:fT};function cT(e){let t=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}function dT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fT(e,t,r){let o=0,l,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),o++,d):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),l=0,m(g)):we(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||we(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),l++,m):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}class pT{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const l=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&Jo(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Jo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Jo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jo(this.left,r.reverse())}}}function Jo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Xv(e){const t={};let r=-1,o,l,a,u,d,f,p;const m=new pT(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=o[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,hT(m,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,l=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(o[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(o),m.splice(l,r-l+1,d))}}return sn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function hT(e,t){const r=e.get(t)[1],o=e.get(t)[2];let l=t-1;const a=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],p={};let m,g,v=-1,w=r,S=0,b=0;const j=[b];for(;w;){for(;e.get(++l)[1]!==w;);a.push(l),w._tokenizer||(m=o.sliceStream(w),w.next||m.push(null),g&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(b=v+1,j.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),v=j.length;v--;){const C=d.slice(j[v],j[v+1]),N=a.pop();f.push([N,N+C.length-1]),e.splice(N,2,C)}for(f.reverse(),v=-1;++v<f.length;)p[S+f[v][0]]=S+f[v][1],S+=f[v][1]-f[v][0]-1;return p}const mT={resolve:yT,tokenize:xT},gT={partial:!0,tokenize:vT};function yT(e){return Xv(e),e}function xT(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?a(d):we(d)?e.check(gT,u,a)(d):(e.consume(d),l)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function vT(e,t,r){const o=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(u){if(u===null||we(u))return r(u);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,r,t)(u)}}function Zv(e,t,r,o,l,a,u,d,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return g;function g(C){return C===60?(e.enter(o),e.enter(l),e.enter(a),e.consume(C),e.exit(a),v):C===null||C===32||C===41||ra(C)?r(C):(e.enter(o),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),b(C))}function v(C){return C===62?(e.enter(a),e.consume(C),e.exit(a),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function w(C){return C===62?(e.exit("chunkString"),e.exit(d),v(C)):C===null||C===60||we(C)?r(C):(e.consume(C),C===92?S:w)}function S(C){return C===60||C===62||C===92?(e.consume(C),w):w(C)}function b(C){return!m&&(C===null||C===41||He(C))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(o),t(C)):m<p&&C===40?(e.consume(C),m++,b):C===41?(e.consume(C),m--,b):C===null||C===32||C===40||ra(C)?r(C):(e.consume(C),C===92?j:b)}function j(C){return C===40||C===41||C===92?(e.consume(C),b):b(C)}}function e0(e,t,r,o,l,a){const u=this;let d=0,f;return p;function p(w){return e.enter(o),e.enter(l),e.consume(w),e.exit(l),e.enter(a),m}function m(w){return d>999||w===null||w===91||w===93&&!f||w===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(a),e.enter(l),e.consume(w),e.exit(l),e.exit(o),t):we(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||we(w)||d++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!Le(w)),w===92?v:g)}function v(w){return w===91||w===92||w===93?(e.consume(w),d++,g):g(w)}}function t0(e,t,r,o,l,a){let u;return d;function d(v){return v===34||v===39||v===40?(e.enter(o),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,f):r(v)}function f(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(o),t):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),f(u)):v===null?r(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ze(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||we(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function tl(e,t){let r;return o;function o(l){return we(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):Le(l)?ze(e,o,r?"linePrefix":"lineSuffix")(l):t(l)}}const wT={name:"definition",tokenize:ST},kT={partial:!0,tokenize:bT};function ST(e,t,r){const o=this;let l;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return e0.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return l=Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return He(w)?tl(e,p)(w):p(w)}function p(w){return Zv(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(kT,g,g)(w)}function g(w){return Le(w)?ze(e,v,"whitespace")(w):v(w)}function v(w){return w===null||we(w)?(e.exit("definition"),o.parser.defined.push(l),t(w)):r(w)}}function bT(e,t,r){return o;function o(d){return He(d)?tl(e,l)(d):r(d)}function l(d){return t0(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Le(d)?ze(e,u,"whitespace")(d):u(d)}function u(d){return d===null||we(d)?t(d):r(d)}}const CT={name:"hardBreakEscape",tokenize:ET};function ET(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const jT={name:"headingAtx",resolve:TT,tokenize:RT};function TT(e,t){let r=e.length-2,o=3,l,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},sn(e,o,r-o+1,[["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t]])),e}function RT(e,t,r){let o=0;return l;function l(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&o++<6?(e.consume(m),u):m===null||He(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||we(m)?(e.exit("atxHeading"),t(m)):Le(m)?ze(e,d,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function p(m){return m===null||m===35||He(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),p)}}const IT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cg=["pre","script","style","textarea"],NT={concrete:!0,name:"htmlFlow",resolveTo:LT,tokenize:$T},PT={partial:!0,tokenize:zT},AT={partial:!0,tokenize:_T};function LT(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $T(e,t,r){const o=this;let l,a,u,d,f;return p;function p(T){return m(T)}function m(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),g}function g(T){return T===33?(e.consume(T),v):T===47?(e.consume(T),a=!0,b):T===63?(e.consume(T),l=3,o.interrupt?t:E):Ot(T)?(e.consume(T),u=String.fromCharCode(T),j):r(T)}function v(T){return T===45?(e.consume(T),l=2,w):T===91?(e.consume(T),l=5,d=0,S):Ot(T)?(e.consume(T),l=4,o.interrupt?t:E):r(T)}function w(T){return T===45?(e.consume(T),o.interrupt?t:E):r(T)}function S(T){const ye="CDATA[";return T===ye.charCodeAt(d++)?(e.consume(T),d===ye.length?o.interrupt?t:se:S):r(T)}function b(T){return Ot(T)?(e.consume(T),u=String.fromCharCode(T),j):r(T)}function j(T){if(T===null||T===47||T===62||He(T)){const ye=T===47,Se=u.toLowerCase();return!ye&&!a&&cg.includes(Se)?(l=1,o.interrupt?t(T):se(T)):IT.includes(u.toLowerCase())?(l=6,ye?(e.consume(T),C):o.interrupt?t(T):se(T)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(T):a?N(T):A(T))}return T===45||At(T)?(e.consume(T),u+=String.fromCharCode(T),j):r(T)}function C(T){return T===62?(e.consume(T),o.interrupt?t:se):r(T)}function N(T){return Le(T)?(e.consume(T),N):D(T)}function A(T){return T===47?(e.consume(T),D):T===58||T===95||Ot(T)?(e.consume(T),F):Le(T)?(e.consume(T),A):D(T)}function F(T){return T===45||T===46||T===58||T===95||At(T)?(e.consume(T),F):V(T)}function V(T){return T===61?(e.consume(T),L):Le(T)?(e.consume(T),V):A(T)}function L(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),f=T,G):Le(T)?(e.consume(T),L):K(T)}function G(T){return T===f?(e.consume(T),f=null,ie):T===null||we(T)?r(T):(e.consume(T),G)}function K(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||He(T)?V(T):(e.consume(T),K)}function ie(T){return T===47||T===62||Le(T)?A(T):r(T)}function D(T){return T===62?(e.consume(T),ne):r(T)}function ne(T){return T===null||we(T)?se(T):Le(T)?(e.consume(T),ne):r(T)}function se(T){return T===45&&l===2?(e.consume(T),de):T===60&&l===1?(e.consume(T),ae):T===62&&l===4?(e.consume(T),_):T===63&&l===3?(e.consume(T),E):T===93&&l===5?(e.consume(T),ue):we(T)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(PT,U,le)(T)):T===null||we(T)?(e.exit("htmlFlowData"),le(T)):(e.consume(T),se)}function le(T){return e.check(AT,re,U)(T)}function re(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),H}function H(T){return T===null||we(T)?le(T):(e.enter("htmlFlowData"),se(T))}function de(T){return T===45?(e.consume(T),E):se(T)}function ae(T){return T===47?(e.consume(T),u="",X):se(T)}function X(T){if(T===62){const ye=u.toLowerCase();return cg.includes(ye)?(e.consume(T),_):se(T)}return Ot(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),X):se(T)}function ue(T){return T===93?(e.consume(T),E):se(T)}function E(T){return T===62?(e.consume(T),_):T===45&&l===2?(e.consume(T),E):se(T)}function _(T){return T===null||we(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),_)}function U(T){return e.exit("htmlFlow"),t(T)}}function _T(e,t,r){const o=this;return l;function l(u){return we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}function zT(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(hl,t,r)}}const DT={name:"htmlText",tokenize:OT};function OT(e,t,r){const o=this;let l,a,u;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),p):E===47?(e.consume(E),V):E===63?(e.consume(E),A):Ot(E)?(e.consume(E),K):r(E)}function p(E){return E===45?(e.consume(E),m):E===91?(e.consume(E),a=0,S):Ot(E)?(e.consume(E),N):r(E)}function m(E){return E===45?(e.consume(E),w):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),v):we(E)?(u=g,ae(E)):(e.consume(E),g)}function v(E){return E===45?(e.consume(E),w):g(E)}function w(E){return E===62?de(E):E===45?v(E):g(E)}function S(E){const _="CDATA[";return E===_.charCodeAt(a++)?(e.consume(E),a===_.length?b:S):r(E)}function b(E){return E===null?r(E):E===93?(e.consume(E),j):we(E)?(u=b,ae(E)):(e.consume(E),b)}function j(E){return E===93?(e.consume(E),C):b(E)}function C(E){return E===62?de(E):E===93?(e.consume(E),C):b(E)}function N(E){return E===null||E===62?de(E):we(E)?(u=N,ae(E)):(e.consume(E),N)}function A(E){return E===null?r(E):E===63?(e.consume(E),F):we(E)?(u=A,ae(E)):(e.consume(E),A)}function F(E){return E===62?de(E):A(E)}function V(E){return Ot(E)?(e.consume(E),L):r(E)}function L(E){return E===45||At(E)?(e.consume(E),L):G(E)}function G(E){return we(E)?(u=G,ae(E)):Le(E)?(e.consume(E),G):de(E)}function K(E){return E===45||At(E)?(e.consume(E),K):E===47||E===62||He(E)?ie(E):r(E)}function ie(E){return E===47?(e.consume(E),de):E===58||E===95||Ot(E)?(e.consume(E),D):we(E)?(u=ie,ae(E)):Le(E)?(e.consume(E),ie):de(E)}function D(E){return E===45||E===46||E===58||E===95||At(E)?(e.consume(E),D):ne(E)}function ne(E){return E===61?(e.consume(E),se):we(E)?(u=ne,ae(E)):Le(E)?(e.consume(E),ne):ie(E)}function se(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,le):we(E)?(u=se,ae(E)):Le(E)?(e.consume(E),se):(e.consume(E),re)}function le(E){return E===l?(e.consume(E),l=void 0,H):E===null?r(E):we(E)?(u=le,ae(E)):(e.consume(E),le)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||He(E)?ie(E):(e.consume(E),re)}function H(E){return E===47||E===62||He(E)?ie(E):r(E)}function de(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function ae(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X}function X(E){return Le(E)?ze(e,ue,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ue(E)}function ue(E){return e.enter("htmlTextData"),u(E)}}const af={name:"labelEnd",resolveAll:UT,resolveTo:VT,tokenize:HT},FT={tokenize:qT},MT={tokenize:WT},BT={tokenize:GT};function UT(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==r.length&&sn(e,0,e.length,r),e}function VT(e,t){let r=e.length,o=0,l,a,u,d;for(;r--;)if(l=e[r][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",p,t]],d=yn(d,e.slice(a+1,a+o+3)),d=yn(d,[["enter",m,t]]),d=yn(d,ba(t.parser.constructs.insideSpan.null,e.slice(a+o+4,u-3),t)),d=yn(d,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),d=yn(d,e.slice(u+1)),d=yn(d,[["exit",f,t]]),sn(e,a,e.length,d),e}function HT(e,t,r){const o=this;let l=o.events.length,a,u;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){a=o.events[l][1];break}return d;function d(v){return a?a._inactive?g(v):(u=o.parser.defined.includes(Rn(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):r(v)}function f(v){return v===40?e.attempt(FT,m,u?m:g)(v):v===91?e.attempt(MT,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(BT,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,r(v)}}function qT(e,t,r){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),l}function l(g){return He(g)?tl(e,a)(g):a(g)}function a(g){return g===41?m(g):Zv(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return He(g)?tl(e,f)(g):m(g)}function d(g){return r(g)}function f(g){return g===34||g===39||g===40?t0(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return He(g)?tl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function WT(e,t,r){const o=this;return l;function l(d){return e0.call(o,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return o.parser.defined.includes(Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function GT(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const JT={name:"labelStartImage",resolveAll:af.resolveAll,tokenize:KT};function KT(e,t,r){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}const QT={name:"labelStartLink",resolveAll:af.resolveAll,tokenize:YT};function YT(e,t,r){const o=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):t(u)}}const Rc={name:"lineEnding",tokenize:XT};function XT(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const Ws={name:"thematicBreak",tokenize:ZT};function ZT(e,t,r){let o=0,l;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),f(p)):o>=3&&(p===null||we(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===l?(e.consume(p),o++,f):(e.exit("thematicBreakSequence"),Le(p)?ze(e,d,"whitespace")(p):d(p))}}const Wt={continuation:{tokenize:rR},exit:oR,name:"list",tokenize:nR},eR={partial:!0,tokenize:lR},tR={partial:!0,tokenize:iR};function nR(e,t,r){const o=this,l=o.events[o.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(w){const S=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:md(w)){if(o.containerState.type||(o.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Ws,r,p)(w):p(w);if(!o.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return md(w)&&++u<10?(e.consume(w),f):(!o.interrupt||u<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,e.check(hl,o.interrupt?r:m,e.attempt(eR,v,g))}function m(w){return o.containerState.initialBlankLine=!0,a++,v(w)}function g(w){return Le(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):r(w)}function v(w){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function rR(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(hl,l,a);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,ze(e,t,"listItemIndent",o.containerState.size+1)(d)}function a(d){return o.containerState.furtherBlankLines||!Le(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(tR,t,u)(d))}function u(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,ze(e,e.attempt(Wt,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function iR(e,t,r){const o=this;return ze(e,l,"listItemIndent",o.containerState.size+1);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(a):r(a)}}function oR(e){e.exit(this.containerState.type)}function lR(e,t,r){const o=this;return ze(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const u=o.events[o.events.length-1];return!Le(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const dg={name:"setextUnderline",resolveTo:sR,tokenize:aR};function sR(e,t){let r=e.length,o,l,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",u,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end={...e[a][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function aR(e,t,r){const o=this;let l;return a;function a(p){let m=o.events.length,g;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){g=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),Le(p)?ze(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||we(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const uR={tokenize:cR};function cR(e){const t=this,r=e.attempt(hl,o,e.attempt(this.parser.constructs.flowInitial,l,ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(mT,l)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const dR={resolveAll:r0()},fR=n0("string"),pR=n0("text");function n0(e){return{resolveAll:r0(e==="text"?hR:void 0),tokenize:t};function t(r){const o=this,l=this.parser.constructs[e],a=r.attempt(l,u,d);return u;function u(m){return p(m)?a(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),a(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const g=l[m];let v=-1;if(g)for(;++v<g.length;){const w=g[v];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function r0(e){return t;function t(r,o){let l=-1,a;for(;++l<=r.length;)a===void 0?r[l]&&r[l][1].type==="data"&&(a=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==a+2&&(r[a][1].end=r[l-1][1].end,r.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(r,o):r}}function hR(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=t.sliceStream(o);let a=l.length,u=-1,d=0,f;for(;a--;){const p=l[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(p===-2)f=!0,d++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:o.start._bufferIndex+u,_index:o.start._index+a,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const mR={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Kv},gR={91:wT},yR={[-2]:Tc,[-1]:Tc,32:Tc},xR={35:jT,42:Ws,45:[dg,Ws],60:NT,61:dg,95:Ws,96:ug,126:ug},vR={38:Yv,92:Qv},wR={[-5]:Rc,[-4]:Rc,[-3]:Rc,33:JT,38:Yv,42:gd,60:[Q2,DT],91:QT,92:[CT,Qv],93:af,95:gd,96:uT},kR={null:[gd,dR]},SR={null:[42,95]},bR={null:[]},CR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:SR,contentInitial:gR,disable:bR,document:mR,flow:xR,flowInitial:yR,insideSpan:kR,string:vR,text:wR},Symbol.toStringTag,{value:"Module"}));function ER(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},a=[];let u=[],d=[];const f={attempt:G(V),check:G(L),consume:N,enter:A,exit:F,interrupt:G(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:b,events:[],now:S,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:g};let m=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function g(ne){return u=yn(u,ne),j(),u[u.length-1]!==null?[]:(K(t,0),p.events=ba(a,p.events,p),p.events)}function v(ne,se){return TR(w(ne),se)}function w(ne){return jR(u,ne)}function S(){const{_bufferIndex:ne,_index:se,line:le,column:re,offset:H}=o;return{_bufferIndex:ne,_index:se,line:le,column:re,offset:H}}function b(ne){l[ne.line]=ne.column,D()}function j(){let ne;for(;o._index<u.length;){const se=u[o._index];if(typeof se=="string")for(ne=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===ne&&o._bufferIndex<se.length;)C(se.charCodeAt(o._bufferIndex));else C(se)}}function C(ne){m=m(ne)}function N(ne){we(ne)?(o.line++,o.column=1,o.offset+=ne===-3?2:1,D()):ne!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=ne}function A(ne,se){const le=se||{};return le.type=ne,le.start=S(),p.events.push(["enter",le,p]),d.push(le),le}function F(ne){const se=d.pop();return se.end=S(),p.events.push(["exit",se,p]),se}function V(ne,se){K(ne,se.from)}function L(ne,se){se.restore()}function G(ne,se){return le;function le(re,H,de){let ae,X,ue,E;return Array.isArray(re)?U(re):"tokenize"in re?U([re]):_(re);function _(me){return Ee;function Ee(ke){const je=ke!==null&&me[ke],Ve=ke!==null&&me.null,Ct=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ve)?Ve:Ve?[Ve]:[]];return U(Ct)(ke)}}function U(me){return ae=me,X=0,me.length===0?de:T(me[X])}function T(me){return Ee;function Ee(ke){return E=ie(),ue=me,me.partial||(p.currentConstruct=me),me.name&&p.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(se?Object.assign(Object.create(p),se):p,f,ye,Se)(ke)}}function ye(me){return ne(ue,E),H}function Se(me){return E.restore(),++X<ae.length?T(ae[X]):de}}}function K(ne,se){ne.resolveAll&&!a.includes(ne)&&a.push(ne),ne.resolve&&sn(p.events,se,p.events.length-se,ne.resolve(p.events.slice(se),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function ie(){const ne=S(),se=p.previous,le=p.currentConstruct,re=p.events.length,H=Array.from(d);return{from:re,restore:de};function de(){o=ne,p.previous=se,p.currentConstruct=le,p.events.length=re,d=H,D()}}function D(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function jR(e,t){const r=t.start._index,o=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(o,a)];else{if(u=e.slice(r,l),o>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(o):u.shift()}a>0&&u.push(e[l].slice(0,a))}return u}function TR(e,t){let r=-1;const o=[];let l;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
845
845
|
`;break}case-3:{u=`\r
|
|
846
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(a)}l=a===-2,o.push(u)}return o.join("")}function jR(e){const o={constructs:Wv([SR,...(e||{}).extensions||[]]),content:l(B2),defined:[],document:l(V2),flow:l(sR),lazy:{},string:l(cR),text:l(dR)};return o;function l(a){return u;function u(d){return bR(o,a,d)}}}function TR(e){for(;!Yv(e););return e}const dg=/[\0\t\n\r]/g;function RR(){let e=1,t="",r=!0,o;return l;function l(a,u,d){const f=[];let p,m,g,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(dg.lastIndex=g,p=dg.exec(a),v=p&&p.index!==void 0?p.index:a.length,w=a.charCodeAt(v),!p){t=a.slice(g);break}if(w===10&&g===v&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),g<v&&(f.push(a.slice(g,v)),e+=v-g),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:o=!0,e=1}g=v+1}return d&&(o&&f.push(-5),t&&f.push(t),f.push(null)),f}}const NR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IR(e){return e.replace(NR,PR)}function PR(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return Gv(r.slice(a?2:1),a?16:10)}return lf(r)||e}const r0={}.hasOwnProperty;function AR(e,t,r){return typeof t!="string"&&(r=t,t=void 0),LR(r)(TR(jR(r).document().write(RR()(e,t,!0))))}function LR(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xt),autolinkProtocol:le,autolinkEmail:le,atxHeading:a(_t),blockQuote:a(Ve),characterEscape:le,characterReference:le,codeFenced:a(Ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ct,u),codeText:a(Ie,u),codeTextData:le,data:le,codeFlowValue:le,definition:a($t),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Pn),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(st,u),htmlFlowData:le,htmlText:a(st,u),htmlTextData:le,image:a(Et),label:u,link:a(xt),listItem:a(it),listItemValue:v,listOrdered:a(Ye,g),listUnordered:a(Ye),paragraph:a(Mt),reference:N,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(_t),strong:a(un),thematicBreak:a(xl)},exit:{atxHeading:f(),atxHeadingSequence:H,autolink:f(),autolinkEmail:je,autolinkProtocol:ke,blockQuote:f(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:me,characterReference:Ee,codeFenced:f(j),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:f(C),codeText:f(B),codeTextData:D,data:D,definition:f(),definitionDestinationString:M,definitionLabelString:P,definitionTitleString:L,emphasis:f(),hardBreakEscape:f(se),hardBreakTrailing:f(se),htmlFlow:f(oe),htmlFlowData:D,htmlText:f(re),htmlTextData:D,image:f(ue),label:ce,labelText:X,lineEnding:ne,link:f(ae),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ye,resourceDestinationString:E,resourceTitleString:z,resource:G,setextHeading:f(K),setextHeadingLineSequence:q,setextHeadingText:A,strong:f(),thematicBreak:f()}};i0(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(J){let ie={type:"root",children:[]};const be={stack:[ie],tokenStack:[],config:t,enter:d,exit:p,buffer:u,resume:m,data:r},Pe=[];let De=-1;for(;++De<J.length;)if(J[De][1].type==="listOrdered"||J[De][1].type==="listUnordered")if(J[De][0]==="enter")Pe.push(De);else{const vt=Pe.pop();De=l(J,vt,De)}for(De=-1;++De<J.length;){const vt=t[J[De][0]];r0.call(vt,J[De][1].type)&&vt[J[De][1].type].call(Object.assign({sliceSerialize:J[De][2].sliceSerialize},be),J[De][1])}if(be.tokenStack.length>0){const vt=be.tokenStack[be.tokenStack.length-1];(vt[1]||fg).call(be,void 0,vt[0])}for(ie.position={start:kr(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:kr(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)ie=t.transforms[De](ie)||ie;return ie}function l(J,ie,be){let Pe=ie-1,De=-1,vt=!1,Vn,cn,er,Ir;for(;++Pe<=be;){const wt=J[Pe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?De++:De--,Ir=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Vn&&!Ir&&!De&&!er&&(er=Pe),Ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ir=void 0}if(!De&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||De===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Vn){let An=Pe;for(cn=void 0;An--;){const Qt=J[An];if(Qt[1].type==="lineEnding"||Qt[1].type==="lineEndingBlank"){if(Qt[0]==="exit")continue;cn&&(J[cn][1].type="lineEndingBlank",vt=!0),Qt[1].type="lineEnding",cn=An}else if(!(Qt[1].type==="linePrefix"||Qt[1].type==="blockQuotePrefix"||Qt[1].type==="blockQuotePrefixWhitespace"||Qt[1].type==="blockQuoteMarker"||Qt[1].type==="listItemIndent"))break}er&&(!cn||er<cn)&&(Vn._spread=!0),Vn.end=Object.assign({},cn?J[cn][1].start:wt[1].end),J.splice(cn||Pe,0,["exit",Vn,wt[2]]),Pe++,be++}if(wt[1].type==="listItemPrefix"){const An={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Vn=An,J.splice(Pe,0,["enter",An,wt[2]]),Pe++,be++,er=void 0,Ir=!0}}}return J[ie][1]._spread=vt,be}function a(J,ie){return be;function be(Pe){d.call(this,J(Pe),Pe),ie&&ie.call(this,Pe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,ie,be){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ie,be||void 0]),J.position={start:kr(ie.start),end:void 0}}function f(J){return ie;function ie(be){J&&J.call(this,be),p.call(this,be)}}function p(J,ie){const be=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==J.type&&(ie?ie.call(this,J,Pe[0]):(Pe[1]||fg).call(this,J,Pe[0]));else throw new Error("Cannot close `"+J.type+"` ("+el({start:J.start,end:J.end})+"): it’s not open");be.position.end=kr(J.end)}function m(){return of(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=J}function S(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=J}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/(\r?\n|\r)$/g,"")}function P(J){const ie=this.resume(),be=this.stack[this.stack.length-1];be.label=ie,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase()}function L(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function M(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function H(J){const ie=this.stack[this.stack.length-1];if(!ie.depth){const be=this.sliceSerialize(J).length;ie.depth=be}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function q(J){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function le(J){const be=this.stack[this.stack.length-1].children;let Pe=be[be.length-1];(!Pe||Pe.type!=="text")&&(Pe=yl(),Pe.position={start:kr(J.start),end:void 0},be.push(Pe)),this.stack.push(Pe)}function D(J){const ie=this.stack.pop();ie.value+=this.sliceSerialize(J),ie.position.end=kr(J.end)}function ne(J){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ie.children[ie.children.length-1];be.position.end=kr(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(le.call(this,J),D.call(this,J))}function se(){this.data.atHardBreak=!0}function oe(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function re(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function B(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function ae(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ue(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function X(J){const ie=this.sliceSerialize(J),be=this.stack[this.stack.length-2];be.label=IR(ie),be.identifier=Rn(ie).toLowerCase()}function ce(){const J=this.stack[this.stack.length-1],ie=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Pe=J.children;be.children=Pe}else be.alt=ie}function E(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function z(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function G(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ye(J){const ie=this.resume(),be=this.stack[this.stack.length-1];be.label=ie,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function Se(J){this.data.characterReferenceType=J.type}function me(J){const ie=this.sliceSerialize(J),be=this.data.characterReferenceType;let Pe;be?(Pe=Gv(ie,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=lf(ie);const De=this.stack[this.stack.length-1];De.value+=Pe}function Ee(J){const ie=this.stack.pop();ie.position.end=kr(J.end)}function ke(J){D.call(this,J);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(J)}function je(J){D.call(this,J);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(J)}function Ve(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Ie(){return{type:"inlineCode",value:""}}function $t(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Et(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function Ye(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function it(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Mt(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function yl(){return{type:"text",value:""}}function xl(){return{type:"thematicBreak"}}}function kr(e){return{line:e.line,column:e.column,offset:e.offset}}function i0(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?i0(e,o):$R(e,o)}}function $R(e,t){let r;for(r in t)if(r0.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}function fg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+el({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is still open")}function _R(e){const t=this;t.parser=r;function r(o){return AR(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zR(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function DR(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
847
|
-
`}]}function
|
|
848
|
-
`:"",o={};t.lang&&(o.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function
|
|
846
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(a)}l=a===-2,o.push(u)}return o.join("")}function RR(e){const o={constructs:Gv([CR,...(e||{}).extensions||[]]),content:l(V2),defined:[],document:l(q2),flow:l(uR),lazy:{},string:l(fR),text:l(pR)};return o;function l(a){return u;function u(d){return ER(o,a,d)}}}function IR(e){for(;!Xv(e););return e}const fg=/[\0\t\n\r]/g;function NR(){let e=1,t="",r=!0,o;return l;function l(a,u,d){const f=[];let p,m,g,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(fg.lastIndex=g,p=fg.exec(a),v=p&&p.index!==void 0?p.index:a.length,w=a.charCodeAt(v),!p){t=a.slice(g);break}if(w===10&&g===v&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),g<v&&(f.push(a.slice(g,v)),e+=v-g),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:o=!0,e=1}g=v+1}return d&&(o&&f.push(-5),t&&f.push(t),f.push(null)),f}}const PR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function AR(e){return e.replace(PR,LR)}function LR(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return Jv(r.slice(a?2:1),a?16:10)}return sf(r)||e}const i0={}.hasOwnProperty;function $R(e,t,r){return typeof t!="string"&&(r=t,t=void 0),_R(r)(IR(RR(r).document().write(NR()(e,t,!0))))}function _R(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xt),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:a(_t),blockQuote:a(Ve),characterEscape:ie,characterReference:ie,codeFenced:a(Ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ct,u),codeText:a(Ne,u),codeTextData:ie,data:ie,codeFlowValue:ie,definition:a($t),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Pn),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(st,u),htmlFlowData:ie,htmlText:a(st,u),htmlTextData:ie,image:a(Et),label:u,link:a(xt),listItem:a(it),listItemValue:v,listOrdered:a(Ye,g),listUnordered:a(Ye),paragraph:a(Ft),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(_t),strong:a(un),thematicBreak:a(xl)},exit:{atxHeading:f(),atxHeadingSequence:V,autolink:f(),autolinkEmail:je,autolinkProtocol:ke,blockQuote:f(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:me,characterReference:Ee,codeFenced:f(j),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:f(C),codeText:f(H),codeTextData:D,data:D,definition:f(),definitionDestinationString:F,definitionLabelString:N,definitionTitleString:A,emphasis:f(),hardBreakEscape:f(se),hardBreakTrailing:f(se),htmlFlow:f(le),htmlFlowData:D,htmlText:f(re),htmlTextData:D,image:f(ae),label:ue,labelText:X,lineEnding:ne,link:f(de),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ye,resourceDestinationString:E,resourceTitleString:_,resource:U,setextHeading:f(K),setextHeadingLineSequence:G,setextHeadingText:L,strong:f(),thematicBreak:f()}};o0(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(J){let oe={type:"root",children:[]};const be={stack:[oe],tokenStack:[],config:t,enter:d,exit:p,buffer:u,resume:m,data:r},Pe=[];let De=-1;for(;++De<J.length;)if(J[De][1].type==="listOrdered"||J[De][1].type==="listUnordered")if(J[De][0]==="enter")Pe.push(De);else{const vt=Pe.pop();De=l(J,vt,De)}for(De=-1;++De<J.length;){const vt=t[J[De][0]];i0.call(vt,J[De][1].type)&&vt[J[De][1].type].call(Object.assign({sliceSerialize:J[De][2].sliceSerialize},be),J[De][1])}if(be.tokenStack.length>0){const vt=be.tokenStack[be.tokenStack.length-1];(vt[1]||pg).call(be,void 0,vt[0])}for(oe.position={start:kr(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:kr(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)oe=t.transforms[De](oe)||oe;return oe}function l(J,oe,be){let Pe=oe-1,De=-1,vt=!1,Vn,cn,er,Nr;for(;++Pe<=be;){const wt=J[Pe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?De++:De--,Nr=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Vn&&!Nr&&!De&&!er&&(er=Pe),Nr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nr=void 0}if(!De&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||De===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Vn){let An=Pe;for(cn=void 0;An--;){const Qt=J[An];if(Qt[1].type==="lineEnding"||Qt[1].type==="lineEndingBlank"){if(Qt[0]==="exit")continue;cn&&(J[cn][1].type="lineEndingBlank",vt=!0),Qt[1].type="lineEnding",cn=An}else if(!(Qt[1].type==="linePrefix"||Qt[1].type==="blockQuotePrefix"||Qt[1].type==="blockQuotePrefixWhitespace"||Qt[1].type==="blockQuoteMarker"||Qt[1].type==="listItemIndent"))break}er&&(!cn||er<cn)&&(Vn._spread=!0),Vn.end=Object.assign({},cn?J[cn][1].start:wt[1].end),J.splice(cn||Pe,0,["exit",Vn,wt[2]]),Pe++,be++}if(wt[1].type==="listItemPrefix"){const An={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Vn=An,J.splice(Pe,0,["enter",An,wt[2]]),Pe++,be++,er=void 0,Nr=!0}}}return J[oe][1]._spread=vt,be}function a(J,oe){return be;function be(Pe){d.call(this,J(Pe),Pe),oe&&oe.call(this,Pe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,oe,be){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([oe,be||void 0]),J.position={start:kr(oe.start),end:void 0}}function f(J){return oe;function oe(be){J&&J.call(this,be),p.call(this,be)}}function p(J,oe){const be=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==J.type&&(oe?oe.call(this,J,Pe[0]):(Pe[1]||pg).call(this,J,Pe[0]));else throw new Error("Cannot close `"+J.type+"` ("+el({start:J.start,end:J.end})+"): it’s not open");be.position.end=kr(J.end)}function m(){return lf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=J}function S(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=J}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.value=J.replace(/(\r?\n|\r)$/g,"")}function N(J){const oe=this.resume(),be=this.stack[this.stack.length-1];be.label=oe,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase()}function A(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.title=J}function F(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.url=J}function V(J){const oe=this.stack[this.stack.length-1];if(!oe.depth){const be=this.sliceSerialize(J).length;oe.depth=be}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function G(J){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(J){const be=this.stack[this.stack.length-1].children;let Pe=be[be.length-1];(!Pe||Pe.type!=="text")&&(Pe=yl(),Pe.position={start:kr(J.start),end:void 0},be.push(Pe)),this.stack.push(Pe)}function D(J){const oe=this.stack.pop();oe.value+=this.sliceSerialize(J),oe.position.end=kr(J.end)}function ne(J){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=oe.children[oe.children.length-1];be.position.end=kr(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(ie.call(this,J),D.call(this,J))}function se(){this.data.atHardBreak=!0}function le(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.value=J}function re(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.value=J}function H(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.value=J}function de(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=oe,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ae(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=oe,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function X(J){const oe=this.sliceSerialize(J),be=this.stack[this.stack.length-2];be.label=AR(oe),be.identifier=Rn(oe).toLowerCase()}function ue(){const J=this.stack[this.stack.length-1],oe=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Pe=J.children;be.children=Pe}else be.alt=oe}function E(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.url=J}function _(){const J=this.resume(),oe=this.stack[this.stack.length-1];oe.title=J}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function ye(J){const oe=this.resume(),be=this.stack[this.stack.length-1];be.label=oe,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function Se(J){this.data.characterReferenceType=J.type}function me(J){const oe=this.sliceSerialize(J),be=this.data.characterReferenceType;let Pe;be?(Pe=Jv(oe,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=sf(oe);const De=this.stack[this.stack.length-1];De.value+=Pe}function Ee(J){const oe=this.stack.pop();oe.position.end=kr(J.end)}function ke(J){D.call(this,J);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(J)}function je(J){D.call(this,J);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(J)}function Ve(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function $t(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Et(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function Ye(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function it(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function yl(){return{type:"text",value:""}}function xl(){return{type:"thematicBreak"}}}function kr(e){return{line:e.line,column:e.column,offset:e.offset}}function o0(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?o0(e,o):zR(e,o)}}function zR(e,t){let r;for(r in t)if(i0.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}function pg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+el({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is still open")}function DR(e){const t=this;t.parser=r;function r(o){return $R(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function OR(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function FR(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
847
|
+
`}]}function MR(e,t){const r=t.value?t.value+`
|
|
848
|
+
`:"",o={};t.lang&&(o.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function BR(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function UR(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function VR(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),l=Zi(o.toLowerCase()),a=e.footnoteOrder.indexOf(o);let u,d=e.footnoteCounts.get(o);d===void 0?(d=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=a+1,d+=1,e.footnoteCounts.set(o,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const p={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,p),e.applyData(t,p)}function HR(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qR(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function l0(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const l=e.all(t),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=o:l.push({type:"text",value:o}),l}function WR(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return l0(e,t);const l={src:Zi(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,a),e.applyData(t,a)}function GR(e,t){const r={src:Zi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function JR(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}function KR(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return l0(e,t);const l={href:Zi(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const a={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function QR(e,t){const r={href:Zi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function YR(e,t,r){const o=e.all(t),l=r?XR(r):s0(t),a={},u=[];if(typeof t.checked=="boolean"){const m=o[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const m=o[d];(l||d!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
849
849
|
`}),m.type==="element"&&m.tagName==="p"&&!l?u.push(...m.children):u.push(m)}const f=o[o.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
850
|
-
`});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function
|
|
850
|
+
`});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function XR(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let o=-1;for(;!t&&++o<r.length;)t=s0(r[o])}return t}function s0(e){const t=e.spread;return t??e.children.length>1}function ZR(e,t){const r={},o=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<o.length;){const u=o[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function eI(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tI(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function nI(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rI(e,t){const r=e.all(t),o=r.shift(),l=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=tf(t.children[1]),f=Mv(t.children[t.children.length-1]);d&&f&&(u.position={start:d,end:f}),l.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,a),e.applyData(t,a)}function iI(e,t,r){const o=r?r.children:void 0,a=(o?o.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let f=-1;const p=[];for(;++f<d;){const g=t.children[f],v={},w=u?u[f]:void 0;w&&(v.align=w);let S={type:"element",tagName:a,properties:v,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),p.push(S)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function oI(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const hg=9,mg=32;function lI(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),l=0;const a=[];for(;o;)a.push(gg(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=r.exec(t);return a.push(gg(t.slice(l),l>0,!1)),a.join("")}function gg(e,t,r){let o=0,l=e.length;if(t){let a=e.codePointAt(o);for(;a===hg||a===mg;)o++,a=e.codePointAt(o)}if(r){let a=e.codePointAt(l-1);for(;a===hg||a===mg;)l--,a=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}function sI(e,t){const r={type:"text",value:lI(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function aI(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const uI={blockquote:OR,break:FR,code:MR,delete:BR,emphasis:UR,footnoteReference:VR,heading:HR,html:qR,imageReference:WR,image:GR,inlineCode:JR,linkReference:KR,link:QR,listItem:YR,list:ZR,paragraph:eI,root:tI,strong:nI,table:rI,tableCell:oI,tableRow:iI,text:sI,thematicBreak:aI,toml:Ps,yaml:Ps,definition:Ps,footnoteDefinition:Ps};function Ps(){}const a0=-1,Ca=0,ia=1,oa=2,uf=3,cf=4,df=5,ff=6,u0=7,c0=8,yg=typeof self=="object"?self:globalThis,cI=(e,t)=>{const r=(l,a)=>(e.set(a,l),l),o=l=>{if(e.has(l))return e.get(l);const[a,u]=t[l];switch(a){case Ca:case a0:return r(u,l);case ia:{const d=r([],l);for(const f of u)d.push(o(f));return d}case oa:{const d=r({},l);for(const[f,p]of u)d[o(f)]=o(p);return d}case uf:return r(new Date(u),l);case cf:{const{source:d,flags:f}=u;return r(new RegExp(d,f),l)}case df:{const d=r(new Map,l);for(const[f,p]of u)d.set(o(f),o(p));return d}case ff:{const d=r(new Set,l);for(const f of u)d.add(o(f));return d}case u0:{const{name:d,message:f}=u;return r(new yg[d](f),l)}case c0:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l)}return r(new yg[a](u),l)};return o},xg=e=>cI(new Map,e)(0),Ri="",{toString:dI}={},{keys:fI}=Object,Ko=e=>{const t=typeof e;if(t!=="object"||!e)return[Ca,t];const r=dI.call(e).slice(8,-1);switch(r){case"Array":return[ia,Ri];case"Object":return[oa,Ri];case"Date":return[uf,Ri];case"RegExp":return[cf,Ri];case"Map":return[df,Ri];case"Set":return[ff,Ri]}return r.includes("Array")?[ia,r]:r.includes("Error")?[u0,r]:[oa,r]},As=([e,t])=>e===Ca&&(t==="function"||t==="symbol"),pI=(e,t,r,o)=>{const l=(u,d)=>{const f=o.push(u)-1;return r.set(d,f),f},a=u=>{if(r.has(u))return r.get(u);let[d,f]=Ko(u);switch(d){case Ca:{let m=u;switch(f){case"bigint":d=c0,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return l([a0],u)}return l([d,m],u)}case ia:{if(f)return l([f,[...u]],u);const m=[],g=l([d,m],u);for(const v of u)m.push(a(v));return g}case oa:{if(f)switch(f){case"BigInt":return l([f,u.toString()],u);case"Boolean":case"Number":case"String":return l([f,u.valueOf()],u)}if(t&&"toJSON"in u)return a(u.toJSON());const m=[],g=l([d,m],u);for(const v of fI(u))(e||!As(Ko(u[v])))&&m.push([a(v),a(u[v])]);return g}case uf:return l([d,u.toISOString()],u);case cf:{const{source:m,flags:g}=u;return l([d,{source:m,flags:g}],u)}case df:{const m=[],g=l([d,m],u);for(const[v,w]of u)(e||!(As(Ko(v))||As(Ko(w))))&&m.push([a(v),a(w)]);return g}case ff:{const m=[],g=l([d,m],u);for(const v of u)(e||!As(Ko(v)))&&m.push(a(v));return g}}const{message:p}=u;return l([d,{name:f,message:p}],u)};return a},vg=(e,{json:t,lossy:r}={})=>{const o=[];return pI(!(t||r),!!t,new Map,o)(e),o},la=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xg(vg(e,t)):structuredClone(e):(e,t)=>xg(vg(e,t));function hI(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function mI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||hI,o=e.options.footnoteBackLabel||mI,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[f]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=Zi(g.toLowerCase());let w=0;const S=[],b=e.footnoteCounts.get(g);for(;b!==void 0&&++w<=b;){S.length>0&&S.push({type:"text",value:" "});let N=typeof r=="string"?r:r(f,w);typeof N=="string"&&(N={type:"text",value:N}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(f,w),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const j=m[m.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const N=j.children[j.children.length-1];N&&N.type==="text"?N.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...S)}else m.push(...S);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...la(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
851
851
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
852
|
-
`}]}}const Ea=function(e){if(e==null)return
|
|
852
|
+
`}]}}const Ea=function(e){if(e==null)return wI;if(typeof e=="function")return ja(e);if(typeof e=="object")return Array.isArray(e)?yI(e):xI(e);if(typeof e=="string")return vI(e);throw new Error("Expected function, string, or object as test")};function yI(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ea(e[r]);return ja(o);function o(...l){let a=-1;for(;++a<t.length;)if(t[a].apply(this,l))return!0;return!1}}function xI(e){const t=e;return ja(r);function r(o){const l=o;let a;for(a in e)if(l[a]!==t[a])return!1;return!0}}function vI(e){return ja(t);function t(r){return r&&r.type===e}}function ja(e){return t;function t(r,o,l){return!!(kI(r)&&e.call(this,r,typeof o=="number"?o:void 0,l||void 0))}}function wI(){return!0}function kI(e){return e!==null&&typeof e=="object"&&"type"in e}const d0=[],SI=!0,yd=!1,bI="skip";function f0(e,t,r,o){let l;typeof t=="function"&&typeof r!="function"?(o=r,r=t):l=t;const a=Ea(l),u=o?-1:1;d(e,void 0,[])();function d(f,p,m){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const w=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return v;function v(){let w=d0,S,b,j;if((!t||a(f,p,m[m.length-1]||void 0))&&(w=CI(r(f,m)),w[0]===yd))return w;if("children"in f&&f.children){const C=f;if(C.children&&w[0]!==bI)for(b=(o?C.children.length:-1)+u,j=m.concat(C);b>-1&&b<C.children.length;){const N=C.children[b];if(S=d(N,b,j)(),S[0]===yd)return S;b=typeof S[1]=="number"?S[1]:b+u}}return w}}}function CI(e){return Array.isArray(e)?e:typeof e=="number"?[SI,e]:e==null?d0:[e]}function pf(e,t,r,o){let l,a,u;typeof t=="function"?(a=void 0,u=t,l=r):(a=t,u=r,l=o),f0(e,a,d,l);function d(f,p){const m=p[p.length-1],g=m?m.children.indexOf(f):void 0;return u(f,g,m)}}const xd={}.hasOwnProperty,EI={};function jI(e,t){const r=t||EI,o=new Map,l=new Map,a=new Map,u={...uI,...r.handlers},d={all:p,applyData:RI,definitionById:o,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:TI,wrap:NI};return pf(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?o:l,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),d;function f(m,g){const v=m.type,w=d.handlers[v];if(xd.call(d.handlers,v)&&w)return w(d,m,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in m){const{children:b,...j}=m,C=la(j);return C.children=d.all(m),C}return la(m)}return(d.options.unknownHandler||II)(d,m,g)}function p(m){const g=[];if("children"in m){const v=m.children;let w=-1;for(;++w<v.length;){const S=d.one(v[w],m);if(S){if(w&&v[w-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=wg(S.value)),!Array.isArray(S)&&S.type==="element")){const b=S.children[0];b&&b.type==="text"&&(b.value=wg(b.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function TI(e,t){e.position&&(t.position=m2(e))}function RI(e,t){let r=t;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,la(a)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function II(e,t){const r=t.data||{},o="value"in t&&!(xd.call(r,"hProperties")||xd.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function NI(e,t){const r=[];let o=-1;for(t&&r.push({type:"text",value:`
|
|
853
853
|
`});++o<e.length;)o&&r.push({type:"text",value:`
|
|
854
854
|
`}),r.push(e[o]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
855
|
-
`}),r}function
|
|
856
|
-
`},l),a}function NN(e,t){return e&&"run"in e?async function(r,o){const l=wg(r,{file:o,...t});await e.run(l,o)}:function(r,o){return wg(r,{file:o,...e||t})}}function kg(e){if(e)throw e}var Nc,Sg;function IN(){if(Sg)return Nc;Sg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},d=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]};return Nc=function f(){var p,m,g,v,w,S,b=arguments[0],j=1,C=arguments.length,P=!1;for(typeof b=="boolean"&&(P=b,b=arguments[1]||{},j=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});j<C;++j)if(p=arguments[j],p!=null)for(m in p)g=d(b,m),v=d(p,m),b!==v&&(P&&v&&(a(v)||(w=l(v)))?(w?(w=!1,S=g&&l(g)?g:[]):S=g&&a(g)?g:{},u(b,{name:m,newValue:f(P,S,v)})):typeof v<"u"&&u(b,{name:m,newValue:v}));return b},Nc}var PN=IN();const Ic=Nd(PN);function vd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function AN(){const e=[],t={run:r,use:o};return t;function r(...l){let a=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...p){const m=e[++a];let g=-1;if(f){u(f);return}for(;++g<l.length;)(p[g]===null||p[g]===void 0)&&(p[g]=l[g]);l=p,m?LN(m,d)(...p):u(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function LN(e,t){let r;return o;function o(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(p){const m=p;if(d&&r)throw m;return l(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,l):f instanceof Error?l(f):a(f))}function l(u,...d){r||(r=!0,t(u,...d))}function a(u){l(null,u)}}const Fn={basename:$N,dirname:_N,extname:zN,join:DN,sep:"/"};function $N(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ml(e);let r=0,o=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else o<0&&(a=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let u=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else u<0&&(a=!0,u=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function _N(e){if(ml(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function zN(e){ml(e);let t=e.length,r=-1,o=0,l=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){o=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||r<0||a===0||a===1&&l===r-1&&l===o+1?"":e.slice(l,r)}function DN(...e){let t=-1,r;for(;++t<e.length;)ml(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":ON(r)}function ON(e){ml(e);const t=e.codePointAt(0)===47;let r=MN(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function MN(e,t){let r="",o=0,l=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||a===1))if(l!==u-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",o=0):(r=r.slice(0,f),o=r.length-1-r.lastIndexOf("/")),l=u,a=0;continue}}else if(r.length>0){r="",o=0,l=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),o=u-l-1;l=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function ml(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FN={cwd:BN};function BN(){return"/"}function wd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function UN(e){if(typeof e=="string")e=new URL(e);else if(!wd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return VN(e)}function VN(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Pc=["history","path","basename","stem","extname","dirname"];class f0{constructor(t){let r;t?wd(t)?r={path:t}:typeof t=="string"||HN(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":FN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Pc.length;){const a=Pc[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let l;for(l in r)Pc.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Fn.basename(this.path):void 0}set basename(t){Lc(t,"basename"),Ac(t,"basename"),this.path=Fn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fn.dirname(this.path):void 0}set dirname(t){bg(this.basename,"dirname"),this.path=Fn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fn.extname(this.path):void 0}set extname(t){if(Ac(t,"extname"),bg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wd(t)&&(t=UN(t)),Lc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fn.basename(this.path,this.extname):void 0}set stem(t){Lc(t,"stem"),Ac(t,"stem"),this.path=Fn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new Lt(t,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ac(e,t){if(e&&e.includes(Fn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fn.sep+"`")}function Lc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function HN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qN=function(e){const o=this.constructor.prototype,l=o[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,o),a},WN={}.hasOwnProperty;class pf extends qN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=AN()}copy(){const t=new pf;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(Ic(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(zc("data",this.frozen),this.namespace[t]=r,this):WN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(zc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ls(t),o=this.parser||this.Parser;return $c("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),$c("process",this.parser||this.Parser),_c("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const d=Ls(t),f=o.parse(d);o.run(f,d,function(m,g,v){if(m||!g||!v)return p(m);const w=g,S=o.stringify(w,v);KN(S)?v.value=S:v.result=S,p(m,v)});function p(m,g){m||!g?u(m):a?a(g):r(void 0,g)}}}processSync(t){let r=!1,o;return this.freeze(),$c("processSync",this.parser||this.Parser),_c("processSync",this.compiler||this.Compiler),this.process(t,l),Eg("processSync","process",r),o;function l(a,u){r=!0,kg(a),o=u}}run(t,r,o){Cg(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(u,d){const f=Ls(r);l.run(t,f,p);function p(m,g,v){const w=g||t;m?d(m):u?u(w):o(void 0,w,v)}}}runSync(t,r){let o=!1,l;return this.run(t,r,a),Eg("runSync","run",o),l;function a(u,d){kg(u),l=d,o=!0}}stringify(t,r){this.freeze();const o=Ls(r),l=this.compiler||this.Compiler;return _c("stringify",l),Cg(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(zc("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;f(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=Ic(!0,l.settings,p.settings))}function d(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,m){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===p){v=g;break}if(v===-1)o.push([p,...m]);else if(m.length>0){let[w,...S]=m;const b=o[v][1];vd(b)&&vd(w)&&(w=Ic(!0,b,w)),o[v]=[p,w,...S]}}}}const GN=new pf().freeze();function $c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cg(e){if(!vd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Eg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ls(e){return JN(e)?e:new f0(e)}function JN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function KN(e){return typeof e=="string"||QN(e)}function QN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const YN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jg=[],Tg={allowDangerousHtml:!0},XN=/^(https?|ircs?|mailto|xmpp)$/i,ZN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Hi(e){const t=eI(e),r=tI(e);return nI(t.runSync(t.parse(r),r),e)}function eI(e){const t=e.rehypePlugins||jg,r=e.remarkPlugins||jg,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Tg}:Tg;return GN().use(_R).use(r).use(NN,o).use(t)}function tI(e){const t=e.children||"",r=new f0;return typeof t=="string"&&(r.value=t),r}function nI(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||rI;for(const m of ZN)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+YN+m.id,void 0);return ff(e,p),x2(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let w;for(w in jc)if(Object.hasOwn(jc,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=jc[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(S||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):a?a.includes(m.tagName):!1;if(!w&&o&&typeof g=="number"&&(w=!o(m,g,v)),w&&v&&typeof g=="number")return d&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function rI(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||XN.test(e.slice(0,t))?e:""}function Rg(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,l=r.indexOf(t);for(;l!==-1;)o++,l=r.indexOf(t,l+t.length);return o}function iI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oI(e,t,r){const l=Ea((r||{}).ignore||[]),a=lI(t);let u=-1;for(;++u<a.length;)d0(e,"text",d);function d(p,m){let g=-1,v;for(;++g<m.length;){const w=m[g],S=v?v.children:void 0;if(l(w,S?S.indexOf(w):void 0,v))return;v=w}if(v)return f(p,m)}function f(p,m){const g=m[m.length-1],v=a[u][0],w=a[u][1];let S=0;const j=g.children.indexOf(p);let C=!1,P=[];v.lastIndex=0;let L=v.exec(p.value);for(;L;){const M=L.index,H={index:L.index,input:L.input,stack:[...m,p]};let A=w(...L,H);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?v.lastIndex=M+1:(S!==M&&P.push({type:"text",value:p.value.slice(S,M)}),Array.isArray(A)?P.push(...A):A&&P.push(A),S=M+L[0].length,C=!0),!v.global)break;L=v.exec(p.value)}return C?(S<p.value.length&&P.push({type:"text",value:p.value.slice(S)}),g.children.splice(j,1,...P)):P=[p],j+P.length}}function lI(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<r.length;){const l=r[o];t.push([sI(l[0]),aI(l[1])])}return t}function sI(e){return typeof e=="string"?new RegExp(iI(e),"g"):e}function aI(e){return typeof e=="function"?e:function(){return e}}const Dc="phrasing",Oc=["autolink","link","image","label"];function uI(){return{transforms:[gI],enter:{literalAutolink:dI,literalAutolinkEmail:Mc,literalAutolinkHttp:Mc,literalAutolinkWww:Mc},exit:{literalAutolink:mI,literalAutolinkEmail:hI,literalAutolinkHttp:fI,literalAutolinkWww:pI}}}function cI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dc,notInConstruct:Oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dc,notInConstruct:Oc},{character:":",before:"[ps]",after:"\\/",inConstruct:Dc,notInConstruct:Oc}]}}function dI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mc(e){this.config.enter.autolinkProtocol.call(this,e)}function fI(e){this.config.exit.autolinkProtocol.call(this,e)}function pI(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function hI(e){this.config.exit.autolinkEmail.call(this,e)}function mI(e){this.exit(e)}function gI(e){oI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yI],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xI]],{ignore:["link","linkReference"]})}function yI(e,t,r,o,l){let a="";if(!p0(l)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!vI(r)))return!1;const u=wI(r+o);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function xI(e,t,r,o){return!p0(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function vI(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function wI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],o=r.indexOf(")");const l=Rg(e,"(");let a=Rg(e,")");for(;o!==-1&&l>a;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[e,r]}function p0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Xr(r)||Sa(r))&&(!t||r!==47)}h0.peek=NI;function kI(){this.buffer()}function SI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function bI(){this.buffer()}function CI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function EI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function jI(e){this.exit(e)}function TI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function RI(e){this.exit(e)}function NI(){return"["}function h0(e,t,r,o){const l=r.createTracker(o);let a=l.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=l.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=l.move("]"),a}function II(){return{enter:{gfmFootnoteCallString:kI,gfmFootnoteCall:SI,gfmFootnoteDefinitionLabelString:bI,gfmFootnoteDefinition:CI},exit:{gfmFootnoteCallString:EI,gfmFootnoteCall:jI,gfmFootnoteDefinitionLabelString:TI,gfmFootnoteDefinition:RI}}}function PI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:h0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,l,a,u){const d=a.createTracker(u);let f=d.move("[^");const p=a.enter("footnoteDefinition"),m=a.enter("label");return f+=d.move(a.safe(a.associationId(o),{before:f,after:"]"})),m(),f+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
857
|
-
`:" ")+a.indentLines(a.containerFlow(o,d.current()),t?
|
|
858
|
-
`)}function
|
|
859
|
-
`&&
|
|
860
|
-
`}function
|
|
855
|
+
`}),r}function wg(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function kg(e,t){const r=jI(e,t),o=r.one(e,void 0),l=gI(r),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&a.children.push({type:"text",value:`
|
|
856
|
+
`},l),a}function PI(e,t){return e&&"run"in e?async function(r,o){const l=kg(r,{file:o,...t});await e.run(l,o)}:function(r,o){return kg(r,{file:o,...e||t})}}function Sg(e){if(e)throw e}var Ic,bg;function AI(){if(bg)return Ic;bg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},d=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]};return Ic=function f(){var p,m,g,v,w,S,b=arguments[0],j=1,C=arguments.length,N=!1;for(typeof b=="boolean"&&(N=b,b=arguments[1]||{},j=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});j<C;++j)if(p=arguments[j],p!=null)for(m in p)g=d(b,m),v=d(p,m),b!==v&&(N&&v&&(a(v)||(w=l(v)))?(w?(w=!1,S=g&&l(g)?g:[]):S=g&&a(g)?g:{},u(b,{name:m,newValue:f(N,S,v)})):typeof v<"u"&&u(b,{name:m,newValue:v}));return b},Ic}var LI=AI();const Nc=Nd(LI);function vd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $I(){const e=[],t={run:r,use:o};return t;function r(...l){let a=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...p){const m=e[++a];let g=-1;if(f){u(f);return}for(;++g<l.length;)(p[g]===null||p[g]===void 0)&&(p[g]=l[g]);l=p,m?_I(m,d)(...p):u(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function _I(e,t){let r;return o;function o(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(p){const m=p;if(d&&r)throw m;return l(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,l):f instanceof Error?l(f):a(f))}function l(u,...d){r||(r=!0,t(u,...d))}function a(u){l(null,u)}}const Mn={basename:zI,dirname:DI,extname:OI,join:FI,sep:"/"};function zI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ml(e);let r=0,o=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else o<0&&(a=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let u=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else u<0&&(a=!0,u=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function DI(e){if(ml(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function OI(e){ml(e);let t=e.length,r=-1,o=0,l=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){o=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||r<0||a===0||a===1&&l===r-1&&l===o+1?"":e.slice(l,r)}function FI(...e){let t=-1,r;for(;++t<e.length;)ml(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":MI(r)}function MI(e){ml(e);const t=e.codePointAt(0)===47;let r=BI(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function BI(e,t){let r="",o=0,l=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||a===1))if(l!==u-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",o=0):(r=r.slice(0,f),o=r.length-1-r.lastIndexOf("/")),l=u,a=0;continue}}else if(r.length>0){r="",o=0,l=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),o=u-l-1;l=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function ml(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const UI={cwd:VI};function VI(){return"/"}function wd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function HI(e){if(typeof e=="string")e=new URL(e);else if(!wd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return qI(e)}function qI(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Pc=["history","path","basename","stem","extname","dirname"];class p0{constructor(t){let r;t?wd(t)?r={path:t}:typeof t=="string"||WI(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":UI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Pc.length;){const a=Pc[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let l;for(l in r)Pc.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Mn.basename(this.path):void 0}set basename(t){Lc(t,"basename"),Ac(t,"basename"),this.path=Mn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mn.dirname(this.path):void 0}set dirname(t){Cg(this.basename,"dirname"),this.path=Mn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mn.extname(this.path):void 0}set extname(t){if(Ac(t,"extname"),Cg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wd(t)&&(t=HI(t)),Lc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mn.basename(this.path,this.extname):void 0}set stem(t){Lc(t,"stem"),Ac(t,"stem"),this.path=Mn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new Lt(t,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ac(e,t){if(e&&e.includes(Mn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mn.sep+"`")}function Lc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Cg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function WI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GI=function(e){const o=this.constructor.prototype,l=o[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,o),a},JI={}.hasOwnProperty;class hf extends GI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$I()}copy(){const t=new hf;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(Nc(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(zc("data",this.frozen),this.namespace[t]=r,this):JI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(zc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ls(t),o=this.parser||this.Parser;return $c("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),$c("process",this.parser||this.Parser),_c("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const d=Ls(t),f=o.parse(d);o.run(f,d,function(m,g,v){if(m||!g||!v)return p(m);const w=g,S=o.stringify(w,v);YI(S)?v.value=S:v.result=S,p(m,v)});function p(m,g){m||!g?u(m):a?a(g):r(void 0,g)}}}processSync(t){let r=!1,o;return this.freeze(),$c("processSync",this.parser||this.Parser),_c("processSync",this.compiler||this.Compiler),this.process(t,l),jg("processSync","process",r),o;function l(a,u){r=!0,Sg(a),o=u}}run(t,r,o){Eg(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(u,d){const f=Ls(r);l.run(t,f,p);function p(m,g,v){const w=g||t;m?d(m):u?u(w):o(void 0,w,v)}}}runSync(t,r){let o=!1,l;return this.run(t,r,a),jg("runSync","run",o),l;function a(u,d){Sg(u),l=d,o=!0}}stringify(t,r){this.freeze();const o=Ls(r),l=this.compiler||this.Compiler;return _c("stringify",l),Eg(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(zc("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;f(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=Nc(!0,l.settings,p.settings))}function d(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,m){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===p){v=g;break}if(v===-1)o.push([p,...m]);else if(m.length>0){let[w,...S]=m;const b=o[v][1];vd(b)&&vd(w)&&(w=Nc(!0,b,w)),o[v]=[p,w,...S]}}}}const KI=new hf().freeze();function $c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Eg(e){if(!vd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ls(e){return QI(e)?e:new p0(e)}function QI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function YI(e){return typeof e=="string"||XI(e)}function XI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ZI="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Tg=[],Rg={allowDangerousHtml:!0},eN=/^(https?|ircs?|mailto|xmpp)$/i,tN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Hi(e){const t=nN(e),r=rN(e);return iN(t.runSync(t.parse(r),r),e)}function nN(e){const t=e.rehypePlugins||Tg,r=e.remarkPlugins||Tg,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rg}:Rg;return KI().use(DR).use(r).use(PI,o).use(t)}function rN(e){const t=e.children||"",r=new p0;return typeof t=="string"&&(r.value=t),r}function iN(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||oN;for(const m of tN)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+ZI+m.id,void 0);return pf(e,p),w2(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let w;for(w in jc)if(Object.hasOwn(jc,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=jc[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(S||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):a?a.includes(m.tagName):!1;if(!w&&o&&typeof g=="number"&&(w=!o(m,g,v)),w&&v&&typeof g=="number")return d&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function oN(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||eN.test(e.slice(0,t))?e:""}function Ig(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,l=r.indexOf(t);for(;l!==-1;)o++,l=r.indexOf(t,l+t.length);return o}function lN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function sN(e,t,r){const l=Ea((r||{}).ignore||[]),a=aN(t);let u=-1;for(;++u<a.length;)f0(e,"text",d);function d(p,m){let g=-1,v;for(;++g<m.length;){const w=m[g],S=v?v.children:void 0;if(l(w,S?S.indexOf(w):void 0,v))return;v=w}if(v)return f(p,m)}function f(p,m){const g=m[m.length-1],v=a[u][0],w=a[u][1];let S=0;const j=g.children.indexOf(p);let C=!1,N=[];v.lastIndex=0;let A=v.exec(p.value);for(;A;){const F=A.index,V={index:A.index,input:A.input,stack:[...m,p]};let L=w(...A,V);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?v.lastIndex=F+1:(S!==F&&N.push({type:"text",value:p.value.slice(S,F)}),Array.isArray(L)?N.push(...L):L&&N.push(L),S=F+A[0].length,C=!0),!v.global)break;A=v.exec(p.value)}return C?(S<p.value.length&&N.push({type:"text",value:p.value.slice(S)}),g.children.splice(j,1,...N)):N=[p],j+N.length}}function aN(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<r.length;){const l=r[o];t.push([uN(l[0]),cN(l[1])])}return t}function uN(e){return typeof e=="string"?new RegExp(lN(e),"g"):e}function cN(e){return typeof e=="function"?e:function(){return e}}const Dc="phrasing",Oc=["autolink","link","image","label"];function dN(){return{transforms:[xN],enter:{literalAutolink:pN,literalAutolinkEmail:Fc,literalAutolinkHttp:Fc,literalAutolinkWww:Fc},exit:{literalAutolink:yN,literalAutolinkEmail:gN,literalAutolinkHttp:hN,literalAutolinkWww:mN}}}function fN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dc,notInConstruct:Oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dc,notInConstruct:Oc},{character:":",before:"[ps]",after:"\\/",inConstruct:Dc,notInConstruct:Oc}]}}function pN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Fc(e){this.config.enter.autolinkProtocol.call(this,e)}function hN(e){this.config.exit.autolinkProtocol.call(this,e)}function mN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gN(e){this.config.exit.autolinkEmail.call(this,e)}function yN(e){this.exit(e)}function xN(e){sN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,vN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),wN]],{ignore:["link","linkReference"]})}function vN(e,t,r,o,l){let a="";if(!h0(l)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!kN(r)))return!1;const u=SN(r+o);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function wN(e,t,r,o){return!h0(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function kN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function SN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],o=r.indexOf(")");const l=Ig(e,"(");let a=Ig(e,")");for(;o!==-1&&l>a;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[e,r]}function h0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Xr(r)||Sa(r))&&(!t||r!==47)}m0.peek=PN;function bN(){this.buffer()}function CN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function EN(){this.buffer()}function jN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function TN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function RN(e){this.exit(e)}function IN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function NN(e){this.exit(e)}function PN(){return"["}function m0(e,t,r,o){const l=r.createTracker(o);let a=l.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=l.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=l.move("]"),a}function AN(){return{enter:{gfmFootnoteCallString:bN,gfmFootnoteCall:CN,gfmFootnoteDefinitionLabelString:EN,gfmFootnoteDefinition:jN},exit:{gfmFootnoteCallString:TN,gfmFootnoteCall:RN,gfmFootnoteDefinitionLabelString:IN,gfmFootnoteDefinition:NN}}}function LN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:m0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,l,a,u){const d=a.createTracker(u);let f=d.move("[^");const p=a.enter("footnoteDefinition"),m=a.enter("label");return f+=d.move(a.safe(a.associationId(o),{before:f,after:"]"})),m(),f+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
857
|
+
`:" ")+a.indentLines(a.containerFlow(o,d.current()),t?g0:$N))),p(),f}}function $N(e,t,r){return t===0?e:g0(e,t,r)}function g0(e,t,r){return(r?"":" ")+e}const _N=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];y0.peek=MN;function zN(){return{canContainEols:["delete"],enter:{strikethrough:ON},exit:{strikethrough:FN}}}function DN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_N}],handlers:{delete:y0}}}function ON(e){this.enter({type:"delete",children:[]},e)}function FN(e){this.exit(e)}function y0(e,t,r,o){const l=r.createTracker(o),a=r.enter("strikethrough");let u=l.move("~~");return u+=r.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),a(),u}function MN(){return"~"}function BN(e){return e.length}function UN(e,t){const r=t||{},o=(r.align||[]).concat(),l=r.stringLength||BN,a=[],u=[],d=[],f=[];let p=0,m=-1;for(;++m<e.length;){const b=[],j=[];let C=-1;for(e[m].length>p&&(p=e[m].length);++C<e[m].length;){const N=VN(e[m][C]);if(r.alignDelimiters!==!1){const A=l(N);j[C]=A,(f[C]===void 0||A>f[C])&&(f[C]=A)}b.push(N)}u[m]=b,d[m]=j}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<p;)a[g]=Ng(o[g]);else{const b=Ng(o);for(;++g<p;)a[g]=b}g=-1;const v=[],w=[];for(;++g<p;){const b=a[g];let j="",C="";b===99?(j=":",C=":"):b===108?j=":":b===114&&(C=":");let N=r.alignDelimiters===!1?1:Math.max(1,f[g]-j.length-C.length);const A=j+"-".repeat(N)+C;r.alignDelimiters!==!1&&(N=j.length+N+C.length,N>f[g]&&(f[g]=N),w[g]=N),v[g]=A}u.splice(1,0,v),d.splice(1,0,w),m=-1;const S=[];for(;++m<u.length;){const b=u[m],j=d[m];g=-1;const C=[];for(;++g<p;){const N=b[g]||"";let A="",F="";if(r.alignDelimiters!==!1){const V=f[g]-(j[g]||0),L=a[g];L===114?A=" ".repeat(V):L===99?V%2?(A=" ".repeat(V/2+.5),F=" ".repeat(V/2-.5)):(A=" ".repeat(V/2),F=A):F=" ".repeat(V)}r.delimiterStart!==!1&&!g&&C.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&N==="")&&(r.delimiterStart!==!1||g)&&C.push(" "),r.alignDelimiters!==!1&&C.push(A),C.push(N),r.alignDelimiters!==!1&&C.push(F),r.padding!==!1&&C.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&C.push("|")}S.push(r.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return S.join(`
|
|
858
|
+
`)}function VN(e){return e==null?"":String(e)}function Ng(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function HN(e,t,r,o){const l=r.enter("blockquote"),a=r.createTracker(o);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),qN);return l(),u}function qN(e,t,r){return">"+(r?"":" ")+e}function WN(e,t){return Pg(e,t.inConstruct,!0)&&!Pg(e,t.notInConstruct,!1)}function Pg(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let o=-1;for(;++o<t.length;)if(e.includes(t[o]))return!0;return!1}function Ag(e,t,r,o){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
859
|
+
`&&WN(r.stack,r.unsafe[l]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
860
|
+
`}function GN(e,t){const r=String(e);let o=r.indexOf(t),l=o,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===l?++a>u&&(u=a):a=1,l=o+t.length,o=r.indexOf(t,l);return u}function JN(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function KN(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function QN(e,t,r,o){const l=KN(r),a=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(JN(e,r)){const g=r.enter("codeIndented"),v=r.indentLines(a,YN);return g(),v}const d=r.createTracker(o),f=l.repeat(Math.max(GN(a,l)+1,3)),p=r.enter("codeFenced");let m=d.move(f);if(e.lang){const g=r.enter(`codeFencedLang${u}`);m+=d.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${u}`);m+=d.move(" "),m+=d.move(r.safe(e.meta,{before:m,after:`
|
|
861
861
|
`,encode:["`"],...d.current()})),g()}return m+=d.move(`
|
|
862
862
|
`),a&&(m+=d.move(a+`
|
|
863
|
-
`)),m+=d.move(f),p(),m}function
|
|
864
|
-
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),u(),p}function
|
|
863
|
+
`)),m+=d.move(f),p(),m}function YN(e,t,r){return(r?"":" ")+e}function mf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function XN(e,t,r,o){const l=mf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(o);let p=f.move("[");return p+=f.move(r.safe(r.associationId(e),{before:p,after:"]",...f.current()})),p+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":`
|
|
864
|
+
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),u(),p}function ZN(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ll(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sa(e,t,r){const o=Vi(e),l=Vi(t);return o===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}x0.peek=eP;function x0(e,t,r,o){const l=ZN(r),a=r.enter("emphasis"),u=r.createTracker(o),d=u.move(l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const p=f.charCodeAt(0),m=sa(o.before.charCodeAt(o.before.length-1),p,l);m.inside&&(f=ll(p)+f.slice(1));const g=f.charCodeAt(f.length-1),v=sa(o.after.charCodeAt(0),g,l);v.inside&&(f=f.slice(0,-1)+ll(g));const w=u.move(l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function eP(e,t,r){return r.options.emphasis||"*"}function tP(e,t){let r=!1;return pf(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,yd}),!!((!e.depth||e.depth<3)&&lf(e)&&(t.options.setext||r))}function nP(e,t,r,o){const l=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(o);if(tP(e,r)){const m=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(e,{...a.current(),before:`
|
|
865
865
|
`,after:`
|
|
866
866
|
`});return g(),m(),v+`
|
|
867
867
|
`+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
868
868
|
`))+1))}const u="#".repeat(l),d=r.enter("headingAtx"),f=r.enter("phrasing");a.move(u+" ");let p=r.containerPhrasing(e,{before:"# ",after:`
|
|
869
|
-
`,...a.current()});return/^[\t ]/.test(p)&&(p=ll(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}
|
|
870
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:f,tableRow:d}};function u(w,S,b,j){return p(m(w,b,j),w.align)}function d(w,S,b,j){const C=g(w,b,j),
|
|
871
|
-
`))}function f(w,S,b,j){const C=b.enter("tableCell"),P=b.enter("phrasing"),L=b.containerPhrasing(w,{...j,before:a,after:a});return P(),C(),L}function p(w,S){return FI(w,{align:S,alignDelimiters:o,padding:r,stringLength:l})}function m(w,S,b){const j=w.children;let C=-1;const P=[],L=S.enter("table");for(;++C<j.length;)P[C]=g(j[C],S,b);return L(),P}function g(w,S,b){const j=w.children;let C=-1;const P=[],L=S.enter("tableRow");for(;++C<j.length;)P[C]=f(j[C],w,S,b);return L(),P}function v(w,S,b){let j=T0.inlineCode(w,S,b);return b.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function TP(){return{exit:{taskListCheckValueChecked:Lg,taskListCheckValueUnchecked:Lg,paragraph:NP}}}function RP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IP}}}function Lg(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function NP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const l=t.children;let a=-1,u;for(;++a<l.length;){const d=l[a];if(d.type==="paragraph"){u=d;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function IP(e,t,r,o){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(o);a&&d.move(u);let f=T0.listItem(e,t,r,{...o,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),f;function p(m){return m+u}}function PP(){return[uI(),II(),$I(),wP(),TP()]}function AP(e){return{extensions:[cI(),PI(e),_I(),jP(e),RP()]}}const LP={tokenize:MP,partial:!0},R0={tokenize:FP,partial:!0},N0={tokenize:BP,partial:!0},I0={tokenize:UP,partial:!0},$P={tokenize:VP,partial:!0},P0={name:"wwwAutolink",tokenize:DP,previous:L0},A0={name:"protocolAutolink",tokenize:OP,previous:$0},Zn={name:"emailAutolink",tokenize:zP,previous:_0},Un={};function _P(){return{text:Un}}let qr=48;for(;qr<123;)Un[qr]=Zn,qr++,qr===58?qr=65:qr===91&&(qr=97);Un[43]=Zn;Un[45]=Zn;Un[46]=Zn;Un[95]=Zn;Un[72]=[Zn,A0];Un[104]=[Zn,A0];Un[87]=[Zn,P0];Un[119]=[Zn,P0];function zP(e,t,r){const o=this;let l,a;return u;function u(g){return!kd(g)||!_0.call(o,o.previous)||gf(o.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return kd(g)?(e.consume(g),d):g===64?(e.consume(g),f):r(g)}function f(g){return g===46?e.check($P,m,p)(g):g===45||g===95||At(g)?(a=!0,e.consume(g),f):m(g)}function p(g){return e.consume(g),l=!0,f}function m(g){return a&&l&&Ot(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function DP(e,t,r){const o=this;return l;function l(u){return u!==87&&u!==119||!L0.call(o,o.previous)||gf(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(LP,e.attempt(R0,e.attempt(N0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function OP(e,t,r){const o=this;let l="",a=!1;return u;function u(g){return(g===72||g===104)&&$0.call(o,o.previous)&&!gf(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Ot(g)&&l.length<5)return l+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(g),f}return r(g)}function f(g){return g===47?(e.consume(g),a?p:(a=!0,f)):r(g)}function p(g){return g===null||ra(g)||He(g)||Xr(g)||Sa(g)?r(g):e.attempt(R0,e.attempt(N0,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function MP(e,t,r){let o=0;return l;function l(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),l):u===46&&o===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function FP(e,t,r){let o,l,a;return u;function u(p){return p===46||p===95?e.check(I0,f,d)(p):p===null||He(p)||Xr(p)||p!==45&&Sa(p)?f(p):(a=!0,e.consume(p),u)}function d(p){return p===95?o=!0:(l=o,o=void 0),e.consume(p),u}function f(p){return l||o||!a?r(p):t(p)}}function BP(e,t){let r=0,o=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&o<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(I0,t,a)(u):u===null||He(u)||Xr(u)?t(u):(e.consume(u),l)}function a(u){return u===41&&o++,e.consume(u),l}}function UP(e,t,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),o):d===38?(e.consume(d),a):d===93?(e.consume(d),l):d===60||d===null||He(d)||Xr(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||He(d)||Xr(d)?t(d):o(d)}function a(d){return Ot(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),o):Ot(d)?(e.consume(d),u):r(d)}}function VP(e,t,r){return o;function o(a){return e.consume(a),l}function l(a){return At(a)?r(a):t(a)}}function L0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function $0(e){return!Ot(e)}function _0(e){return!(e===47||kd(e))}function kd(e){return e===43||e===45||e===46||e===95||At(e)}function gf(e){let t=e.length,r=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const HP={tokenize:XP,partial:!0};function qP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:KP,continuation:{tokenize:QP},exit:YP}},text:{91:{name:"gfmFootnoteCall",tokenize:JP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:WP,resolveTo:GP}}}}function WP(e,t,r){const o=this;let l=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;l--;){const f=o.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const p=Rn(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function GP(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...d),e}function JP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(a>999||g===93&&!u||g===null||g===91||He(g))return r(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Rn(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return He(g)||(u=!0),a++,e.consume(g),g===92?m:p}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,p):p(g)}}function KP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(S)}function m(S){if(u>999||S===93&&!d||S===null||S===91||He(S))return r(S);if(S===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Rn(o.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return He(S)||(d=!0),u++,e.consume(S),S===92?g:m}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,m):m(S)}function v(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),l.includes(a)||l.push(a),ze(e,w,"gfmFootnoteDefinitionWhitespace")):r(S)}function w(S){return t(S)}}function QP(e,t,r){return e.check(hl,t,e.attempt(HP,t,r))}function YP(e){e.exit("gfmFootnoteDefinition")}function XP(e,t,r){const o=this;return ze(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function ZP(e){let r=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:l};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let p=f;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[f][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[f][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[f][1].start)},v=[["enter",m,d],["enter",u[p][1],d],["exit",u[p][1],d],["enter",g,d]],w=d.parser.constructs.insideSpan.null;w&&sn(v,v.length,0,ba(w,u.slice(p+1,f),d)),sn(v,v.length,0,[["exit",g,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",m,d]]),sn(u,p-1,f-p+3,v),f=p+v.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const p=this.previous,m=this.events;let g=0;return v;function v(S){return p===126&&m[m.length-1][1].type!=="characterEscape"?f(S):(u.enter("strikethroughSequenceTemporary"),w(S))}function w(S){const b=Vi(p);if(S===126)return g>1?f(S):(u.consume(S),g++,w);if(g<2&&!r)return f(S);const j=u.exit("strikethroughSequenceTemporary"),C=Vi(S);return j._open=!C||C===2&&!!b,j._close=!b||b===2&&!!C,d(S)}}}class e4{constructor(){this.map=[]}add(t,r,o){t4(this,t,r,o)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];o.push(t.slice()),t.length=0;let l=o.pop();for(;l;){for(const a of l)t.push(a);l=o.pop()}this.map.length=0}}function t4(e,t,r,o){let l=0;if(!(r===0&&o.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...o);return}l+=1}e.map.push([t,r,o])}}function n4(e,t){let r=!1;const o=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return o}function r4(){return{flow:{null:{name:"table",tokenize:i4,resolveAll:o4}}}}function i4(e,t,r){const o=this;let l=0,a=0,u;return d;function d(D){let ne=o.events.length-1;for(;ne>-1;){const re=o.events[ne][1].type;if(re==="lineEnding"||re==="linePrefix")ne--;else break}const se=ne>-1?o.events[ne][1].type:null,oe=se==="tableHead"||se==="tableRow"?A:f;return oe===A&&o.parser.lazy[o.now().line]?r(D):oe(D)}function f(D){return e.enter("tableHead"),e.enter("tableRow"),p(D)}function p(D){return D===124||(u=!0,a+=1),m(D)}function m(D){return D===null?r(D):we(D)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),w):r(D):Le(D)?ze(e,m,"whitespace")(D):(a+=1,u&&(u=!1,l+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||He(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?v:g)}function v(D){return D===92||D===124?(e.consume(D),g):g(D)}function w(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(D):(e.enter("tableDelimiterRow"),u=!1,Le(D)?ze(e,S,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):S(D))}function S(D){return D===45||D===58?j(D):D===124?(u=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),b):H(D)}function b(D){return Le(D)?ze(e,j,"whitespace")(D):j(D)}function j(D){return D===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):D===45?(a+=1,C(D)):D===null||we(D)?M(D):H(D)}function C(D){return D===45?(e.enter("tableDelimiterFiller"),P(D)):H(D)}function P(D){return D===45?(e.consume(D),P):D===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(D))}function L(D){return Le(D)?ze(e,M,"whitespace")(D):M(D)}function M(D){return D===124?S(D):D===null||we(D)?!u||l!==a?H(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):H(D)}function H(D){return r(D)}function A(D){return e.enter("tableRow"),q(D)}function q(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),q):D===null||we(D)?(e.exit("tableRow"),t(D)):Le(D)?ze(e,q,"whitespace")(D):(e.enter("data"),K(D))}function K(D){return D===null||D===124||He(D)?(e.exit("data"),q(D)):(e.consume(D),D===92?le:K)}function le(D){return D===92||D===124?(e.consume(D),K):K(D)}}function o4(e,t){let r=-1,o=!0,l=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,p,m,g;const v=new e4;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(d=!1,f!==0&&($g(v,t,f,p,m),m=void 0,f=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",m,t]])),l=S.type==="tableDelimiterRow"?2:m?3:1):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],g=$s(v,t,a,l,void 0,g),a=[0,0,0,0]),u[2]=r)):S.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(u[0]=u[1],g=$s(v,t,a,l,void 0,g)),a=u,u=[a[1],r,0,0])):S.type==="tableHead"?(d=!0,f=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],g=$s(v,t,a,l,r,g)):u[1]!==0&&(g=$s(v,t,u,l,r,g)),l=0):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&$g(v,t,f,p,m),v.consume(t.events),r=-1;++r<t.events.length;){const w=t.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=n4(t.events,r))}return e}function $s(e,t,r,o,l,a){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=Ni(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const p=Ni(t.events,r[2]),m=Ni(t.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,t]]),o!==2){const v=t.events[r[2]],w=t.events[r[3]];if(v[1].end=Object.assign({},w[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,b=r[3]-r[2]-1;e.add(S,b,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return l!==void 0&&(a.end=Object.assign({},Ni(t.events,l)),e.add(l,0,[["exit",a,t]]),a=void 0),a}function $g(e,t,r,o,l){const a=[],u=Ni(t.events,r);l&&(l.end=Object.assign({},u),a.push(["exit",l,t])),o.end=Object.assign({},u),a.push(["exit",o,t]),e.add(r+1,0,a)}function Ni(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const l4={name:"tasklistCheck",tokenize:a4};function s4(){return{text:{91:l4}}}function a4(e,t,r){const o=this;return l;function l(f){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return He(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return we(f)?t(f):Le(f)?e.check({tokenize:u4},t,r)(f):r(f)}}function u4(e,t,r){return ze(e,o,"whitespace");function o(l){return l===null?r(l):t(l)}}function c4(e){return Wv([_P(),qP(),ZP(e),r4(),s4()])}const d4={};function qi(e){const t=this,r=e||d4,o=t.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(c4(r)),a.push(PP()),u.push(AP(r))}const eo=R.div`
|
|
869
|
+
`,...a.current()});return/^[\t ]/.test(p)&&(p=ll(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}v0.peek=rP;function v0(e){return e.value||""}function rP(){return"<"}w0.peek=iP;function w0(e,t,r,o){const l=mf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(o);let p=f.move("![");return p+=f.move(r.safe(e.alt,{before:p,after:"]",...f.current()})),p+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),p+=f.move(")"),u(),p}function iP(){return"!"}k0.peek=oP;function k0(e,t,r,o){const l=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(o);let f=d.move("![");const p=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,a(),l==="full"||!p||p!==g?f+=d.move(g+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function oP(){return"!"}S0.peek=lP;function S0(e,t,r){let o=e.value||"",l="`",a=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(o);)l+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<r.unsafe.length;){const u=r.unsafe[a],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(o);){let p=f.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(f.index+1)}}return l+o+l}function lP(){return"`"}function b0(e,t){const r=lf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}C0.peek=sP;function C0(e,t,r,o){const l=mf(r),a=l==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let d,f;if(b0(e,r)){const m=r.stack;r.stack=[],d=r.enter("autolink");let g=u.move("<");return g+=u.move(r.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),d(),r.stack=m,g}d=r.enter("link"),f=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(f=r.enter("destinationRaw"),p+=u.move(r.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${a}`),p+=u.move(" "+l),p+=u.move(r.safe(e.title,{before:p,after:l,...u.current()})),p+=u.move(l),f()),p+=u.move(")"),d(),p}function sP(e,t,r){return b0(e,r)?"<":"["}E0.peek=aP;function E0(e,t,r,o){const l=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(o);let f=d.move("[");const p=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,a(),l==="full"||!p||p!==g?f+=d.move(g+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function aP(){return"["}function gf(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function uP(e){const t=gf(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function cP(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function j0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dP(e,t,r,o){const l=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?cP(r):gf(r);const d=e.ordered?u==="."?")":".":uP(r);let f=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),j0(r)===u&&m){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const p=r.containerFlow(e,o);return r.bulletLastUsed=u,r.bulletCurrent=a,l(),p}function fP(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function pP(e,t,r,o){const l=fP(r);let a=r.bulletCurrent||gf(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(o);d.move(a+" ".repeat(u-a.length)),d.shift(u);const f=r.enter("listItem"),p=r.indentLines(r.containerFlow(e,d.current()),m);return f(),p;function m(g,v,w){return v?(w?"":" ".repeat(u))+g:(w?a:a+" ".repeat(u-a.length))+g}}function hP(e,t,r,o){const l=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,o);return a(),l(),u}const mP=Ea(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gP(e,t,r,o){return(e.children.some(function(u){return mP(u)})?r.containerPhrasing:r.containerFlow).call(r,e,o)}function yP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}T0.peek=xP;function T0(e,t,r,o){const l=yP(r),a=r.enter("strong"),u=r.createTracker(o),d=u.move(l+l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const p=f.charCodeAt(0),m=sa(o.before.charCodeAt(o.before.length-1),p,l);m.inside&&(f=ll(p)+f.slice(1));const g=f.charCodeAt(f.length-1),v=sa(o.after.charCodeAt(0),g,l);v.inside&&(f=f.slice(0,-1)+ll(g));const w=u.move(l+l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function xP(e,t,r){return r.options.strong||"*"}function vP(e,t,r,o){return r.safe(e.value,o)}function wP(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function kP(e,t,r){const o=(j0(r)+(r.options.ruleSpaces?" ":"")).repeat(wP(r));return r.options.ruleSpaces?o.slice(0,-1):o}const R0={blockquote:HN,break:Ag,code:QN,definition:XN,emphasis:x0,hardBreak:Ag,heading:nP,html:v0,image:w0,imageReference:k0,inlineCode:S0,link:C0,linkReference:E0,list:dP,listItem:pP,paragraph:hP,root:gP,strong:T0,text:vP,thematicBreak:kP};function SP(){return{enter:{table:bP,tableData:Lg,tableHeader:Lg,tableRow:EP},exit:{codeText:jP,table:CP,tableData:Mc,tableHeader:Mc,tableRow:Mc}}}function bP(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function CP(e){this.exit(e),this.data.inTable=void 0}function EP(e){this.enter({type:"tableRow",children:[]},e)}function Mc(e){this.exit(e)}function Lg(e){this.enter({type:"tableCell",children:[]},e)}function jP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,TP));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function TP(e,t){return t==="|"?t:e}function RP(e){const t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,l=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
870
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:f,tableRow:d}};function u(w,S,b,j){return p(m(w,b,j),w.align)}function d(w,S,b,j){const C=g(w,b,j),N=p([C]);return N.slice(0,N.indexOf(`
|
|
871
|
+
`))}function f(w,S,b,j){const C=b.enter("tableCell"),N=b.enter("phrasing"),A=b.containerPhrasing(w,{...j,before:a,after:a});return N(),C(),A}function p(w,S){return UN(w,{align:S,alignDelimiters:o,padding:r,stringLength:l})}function m(w,S,b){const j=w.children;let C=-1;const N=[],A=S.enter("table");for(;++C<j.length;)N[C]=g(j[C],S,b);return A(),N}function g(w,S,b){const j=w.children;let C=-1;const N=[],A=S.enter("tableRow");for(;++C<j.length;)N[C]=f(j[C],w,S,b);return A(),N}function v(w,S,b){let j=R0.inlineCode(w,S,b);return b.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function IP(){return{exit:{taskListCheckValueChecked:$g,taskListCheckValueUnchecked:$g,paragraph:PP}}}function NP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:AP}}}function $g(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function PP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const l=t.children;let a=-1,u;for(;++a<l.length;){const d=l[a];if(d.type==="paragraph"){u=d;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function AP(e,t,r,o){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(o);a&&d.move(u);let f=R0.listItem(e,t,r,{...o,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),f;function p(m){return m+u}}function LP(){return[dN(),AN(),zN(),SP(),IP()]}function $P(e){return{extensions:[fN(),LN(e),DN(),RP(e),NP()]}}const _P={tokenize:BP,partial:!0},I0={tokenize:UP,partial:!0},N0={tokenize:VP,partial:!0},P0={tokenize:HP,partial:!0},zP={tokenize:qP,partial:!0},A0={name:"wwwAutolink",tokenize:FP,previous:$0},L0={name:"protocolAutolink",tokenize:MP,previous:_0},Zn={name:"emailAutolink",tokenize:OP,previous:z0},Un={};function DP(){return{text:Un}}let qr=48;for(;qr<123;)Un[qr]=Zn,qr++,qr===58?qr=65:qr===91&&(qr=97);Un[43]=Zn;Un[45]=Zn;Un[46]=Zn;Un[95]=Zn;Un[72]=[Zn,L0];Un[104]=[Zn,L0];Un[87]=[Zn,A0];Un[119]=[Zn,A0];function OP(e,t,r){const o=this;let l,a;return u;function u(g){return!kd(g)||!z0.call(o,o.previous)||yf(o.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return kd(g)?(e.consume(g),d):g===64?(e.consume(g),f):r(g)}function f(g){return g===46?e.check(zP,m,p)(g):g===45||g===95||At(g)?(a=!0,e.consume(g),f):m(g)}function p(g){return e.consume(g),l=!0,f}function m(g){return a&&l&&Ot(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function FP(e,t,r){const o=this;return l;function l(u){return u!==87&&u!==119||!$0.call(o,o.previous)||yf(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_P,e.attempt(I0,e.attempt(N0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function MP(e,t,r){const o=this;let l="",a=!1;return u;function u(g){return(g===72||g===104)&&_0.call(o,o.previous)&&!yf(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Ot(g)&&l.length<5)return l+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(g),f}return r(g)}function f(g){return g===47?(e.consume(g),a?p:(a=!0,f)):r(g)}function p(g){return g===null||ra(g)||He(g)||Xr(g)||Sa(g)?r(g):e.attempt(I0,e.attempt(N0,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function BP(e,t,r){let o=0;return l;function l(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),l):u===46&&o===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function UP(e,t,r){let o,l,a;return u;function u(p){return p===46||p===95?e.check(P0,f,d)(p):p===null||He(p)||Xr(p)||p!==45&&Sa(p)?f(p):(a=!0,e.consume(p),u)}function d(p){return p===95?o=!0:(l=o,o=void 0),e.consume(p),u}function f(p){return l||o||!a?r(p):t(p)}}function VP(e,t){let r=0,o=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&o<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(P0,t,a)(u):u===null||He(u)||Xr(u)?t(u):(e.consume(u),l)}function a(u){return u===41&&o++,e.consume(u),l}}function HP(e,t,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),o):d===38?(e.consume(d),a):d===93?(e.consume(d),l):d===60||d===null||He(d)||Xr(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||He(d)||Xr(d)?t(d):o(d)}function a(d){return Ot(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),o):Ot(d)?(e.consume(d),u):r(d)}}function qP(e,t,r){return o;function o(a){return e.consume(a),l}function l(a){return At(a)?r(a):t(a)}}function $0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function _0(e){return!Ot(e)}function z0(e){return!(e===47||kd(e))}function kd(e){return e===43||e===45||e===46||e===95||At(e)}function yf(e){let t=e.length,r=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const WP={tokenize:e4,partial:!0};function GP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:YP,continuation:{tokenize:XP},exit:ZP}},text:{91:{name:"gfmFootnoteCall",tokenize:QP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:JP,resolveTo:KP}}}}function JP(e,t,r){const o=this;let l=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;l--;){const f=o.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const p=Rn(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function KP(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...d),e}function QP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(a>999||g===93&&!u||g===null||g===91||He(g))return r(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Rn(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return He(g)||(u=!0),a++,e.consume(g),g===92?m:p}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,p):p(g)}}function YP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(S)}function m(S){if(u>999||S===93&&!d||S===null||S===91||He(S))return r(S);if(S===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Rn(o.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return He(S)||(d=!0),u++,e.consume(S),S===92?g:m}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,m):m(S)}function v(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),l.includes(a)||l.push(a),ze(e,w,"gfmFootnoteDefinitionWhitespace")):r(S)}function w(S){return t(S)}}function XP(e,t,r){return e.check(hl,t,e.attempt(WP,t,r))}function ZP(e){e.exit("gfmFootnoteDefinition")}function e4(e,t,r){const o=this;return ze(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function t4(e){let r=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:l};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let p=f;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[f][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[f][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[f][1].start)},v=[["enter",m,d],["enter",u[p][1],d],["exit",u[p][1],d],["enter",g,d]],w=d.parser.constructs.insideSpan.null;w&&sn(v,v.length,0,ba(w,u.slice(p+1,f),d)),sn(v,v.length,0,[["exit",g,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",m,d]]),sn(u,p-1,f-p+3,v),f=p+v.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const p=this.previous,m=this.events;let g=0;return v;function v(S){return p===126&&m[m.length-1][1].type!=="characterEscape"?f(S):(u.enter("strikethroughSequenceTemporary"),w(S))}function w(S){const b=Vi(p);if(S===126)return g>1?f(S):(u.consume(S),g++,w);if(g<2&&!r)return f(S);const j=u.exit("strikethroughSequenceTemporary"),C=Vi(S);return j._open=!C||C===2&&!!b,j._close=!b||b===2&&!!C,d(S)}}}class n4{constructor(){this.map=[]}add(t,r,o){r4(this,t,r,o)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];o.push(t.slice()),t.length=0;let l=o.pop();for(;l;){for(const a of l)t.push(a);l=o.pop()}this.map.length=0}}function r4(e,t,r,o){let l=0;if(!(r===0&&o.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...o);return}l+=1}e.map.push([t,r,o])}}function i4(e,t){let r=!1;const o=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return o}function o4(){return{flow:{null:{name:"table",tokenize:l4,resolveAll:s4}}}}function l4(e,t,r){const o=this;let l=0,a=0,u;return d;function d(D){let ne=o.events.length-1;for(;ne>-1;){const re=o.events[ne][1].type;if(re==="lineEnding"||re==="linePrefix")ne--;else break}const se=ne>-1?o.events[ne][1].type:null,le=se==="tableHead"||se==="tableRow"?L:f;return le===L&&o.parser.lazy[o.now().line]?r(D):le(D)}function f(D){return e.enter("tableHead"),e.enter("tableRow"),p(D)}function p(D){return D===124||(u=!0,a+=1),m(D)}function m(D){return D===null?r(D):we(D)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),w):r(D):Le(D)?ze(e,m,"whitespace")(D):(a+=1,u&&(u=!1,l+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||He(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?v:g)}function v(D){return D===92||D===124?(e.consume(D),g):g(D)}function w(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(D):(e.enter("tableDelimiterRow"),u=!1,Le(D)?ze(e,S,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):S(D))}function S(D){return D===45||D===58?j(D):D===124?(u=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),b):V(D)}function b(D){return Le(D)?ze(e,j,"whitespace")(D):j(D)}function j(D){return D===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):D===45?(a+=1,C(D)):D===null||we(D)?F(D):V(D)}function C(D){return D===45?(e.enter("tableDelimiterFiller"),N(D)):V(D)}function N(D){return D===45?(e.consume(D),N):D===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(D))}function A(D){return Le(D)?ze(e,F,"whitespace")(D):F(D)}function F(D){return D===124?S(D):D===null||we(D)?!u||l!==a?V(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):V(D)}function V(D){return r(D)}function L(D){return e.enter("tableRow"),G(D)}function G(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),G):D===null||we(D)?(e.exit("tableRow"),t(D)):Le(D)?ze(e,G,"whitespace")(D):(e.enter("data"),K(D))}function K(D){return D===null||D===124||He(D)?(e.exit("data"),G(D)):(e.consume(D),D===92?ie:K)}function ie(D){return D===92||D===124?(e.consume(D),K):K(D)}}function s4(e,t){let r=-1,o=!0,l=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,p,m,g;const v=new n4;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(d=!1,f!==0&&(_g(v,t,f,p,m),m=void 0,f=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",m,t]])),l=S.type==="tableDelimiterRow"?2:m?3:1):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],g=$s(v,t,a,l,void 0,g),a=[0,0,0,0]),u[2]=r)):S.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(u[0]=u[1],g=$s(v,t,a,l,void 0,g)),a=u,u=[a[1],r,0,0])):S.type==="tableHead"?(d=!0,f=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],g=$s(v,t,a,l,r,g)):u[1]!==0&&(g=$s(v,t,u,l,r,g)),l=0):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&_g(v,t,f,p,m),v.consume(t.events),r=-1;++r<t.events.length;){const w=t.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=i4(t.events,r))}return e}function $s(e,t,r,o,l,a){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},Ii(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=Ii(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const p=Ii(t.events,r[2]),m=Ii(t.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,t]]),o!==2){const v=t.events[r[2]],w=t.events[r[3]];if(v[1].end=Object.assign({},w[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,b=r[3]-r[2]-1;e.add(S,b,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return l!==void 0&&(a.end=Object.assign({},Ii(t.events,l)),e.add(l,0,[["exit",a,t]]),a=void 0),a}function _g(e,t,r,o,l){const a=[],u=Ii(t.events,r);l&&(l.end=Object.assign({},u),a.push(["exit",l,t])),o.end=Object.assign({},u),a.push(["exit",o,t]),e.add(r+1,0,a)}function Ii(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const a4={name:"tasklistCheck",tokenize:c4};function u4(){return{text:{91:a4}}}function c4(e,t,r){const o=this;return l;function l(f){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return He(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return we(f)?t(f):Le(f)?e.check({tokenize:d4},t,r)(f):r(f)}}function d4(e,t,r){return ze(e,o,"whitespace");function o(l){return l===null?r(l):t(l)}}function f4(e){return Gv([DP(),GP(),t4(e),o4(),u4()])}const p4={};function qi(e){const t=this,r=e||p4,o=t.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(f4(r)),a.push(LP()),u.push($P(r))}const eo=R.div`
|
|
872
872
|
display: flex;
|
|
873
873
|
&[data-type='user'] {
|
|
874
874
|
justify-content: flex-end;
|
|
@@ -877,7 +877,7 @@ Error generating stack: `+x.message+`
|
|
|
877
877
|
&[data-type='assistant'] {
|
|
878
878
|
justify-content: flex-start;
|
|
879
879
|
}
|
|
880
|
-
`,
|
|
880
|
+
`,D0=R.div`
|
|
881
881
|
color: ${e=>e.theme.colors.text};
|
|
882
882
|
border-radius: 12px;
|
|
883
883
|
padding: 8px 12px;
|
|
@@ -895,13 +895,13 @@ Error generating stack: `+x.message+`
|
|
|
895
895
|
&[data-edit-mode='true'] {
|
|
896
896
|
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
|
|
897
897
|
}
|
|
898
|
-
`,
|
|
898
|
+
`,h4=R.div`
|
|
899
899
|
font-weight: bold;
|
|
900
900
|
margin-bottom: 4px;
|
|
901
901
|
display: flex;
|
|
902
902
|
justify-content: space-between;
|
|
903
903
|
align-items: center;
|
|
904
|
-
`,
|
|
904
|
+
`,m4=R.div`
|
|
905
905
|
word-wrap: break-word;
|
|
906
906
|
font-family: inherit;
|
|
907
907
|
margin: 0;
|
|
@@ -959,7 +959,7 @@ Error generating stack: `+x.message+`
|
|
|
959
959
|
margin: 8px 0;
|
|
960
960
|
color: ${e=>e.theme.colors.textSecondary};
|
|
961
961
|
}
|
|
962
|
-
`,
|
|
962
|
+
`,g4=R.textarea`
|
|
963
963
|
width: 100%;
|
|
964
964
|
min-height: 100px;
|
|
965
965
|
padding: 8px;
|
|
@@ -983,7 +983,7 @@ Error generating stack: `+x.message+`
|
|
|
983
983
|
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
984
984
|
color: ${e=>e.theme.colors.userMessageText};
|
|
985
985
|
}
|
|
986
|
-
`,
|
|
986
|
+
`,y4=R.div`
|
|
987
987
|
display: flex;
|
|
988
988
|
justify-content: space-between;
|
|
989
989
|
align-items: center;
|
|
@@ -995,14 +995,14 @@ Error generating stack: `+x.message+`
|
|
|
995
995
|
align-items: center;
|
|
996
996
|
gap: 8px;
|
|
997
997
|
}
|
|
998
|
-
`,
|
|
998
|
+
`,x4=R.div`
|
|
999
999
|
font-size: 0.8em;
|
|
1000
1000
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1001
1001
|
|
|
1002
1002
|
${eo}[data-type='user'] & {
|
|
1003
1003
|
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
1004
1004
|
}
|
|
1005
|
-
`,
|
|
1005
|
+
`,v4=R.span`
|
|
1006
1006
|
font-size: 0.8em;
|
|
1007
1007
|
color: ${e=>e.theme.colors.primary};
|
|
1008
1008
|
cursor: pointer;
|
|
@@ -1011,11 +1011,11 @@ Error generating stack: `+x.message+`
|
|
|
1011
1011
|
&:hover {
|
|
1012
1012
|
color: ${e=>e.theme.colors.primaryHover};
|
|
1013
1013
|
}
|
|
1014
|
-
`,
|
|
1014
|
+
`,w4=R.div`
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
gap: 8px;
|
|
1017
1017
|
margin-top: 8px;
|
|
1018
|
-
`,
|
|
1018
|
+
`,xf=R.button`
|
|
1019
1019
|
padding: 4px 8px;
|
|
1020
1020
|
border: none;
|
|
1021
1021
|
border-radius: 4px;
|
|
@@ -1027,7 +1027,7 @@ Error generating stack: `+x.message+`
|
|
|
1027
1027
|
opacity: 0.5;
|
|
1028
1028
|
cursor: not-allowed;
|
|
1029
1029
|
}
|
|
1030
|
-
`,
|
|
1030
|
+
`,k4=R(xf)`
|
|
1031
1031
|
background-color: transparent;
|
|
1032
1032
|
color: ${e=>e.theme.colors.primary};
|
|
1033
1033
|
|
|
@@ -1041,21 +1041,21 @@ Error generating stack: `+x.message+`
|
|
|
1041
1041
|
background-color: ${e=>e.theme.colors.userMessageText}20;
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
`,
|
|
1044
|
+
`,S4=R(xf)`
|
|
1045
1045
|
background-color: ${e=>e.theme.colors.primary};
|
|
1046
1046
|
color: ${e=>e.theme.colors.buttonText};
|
|
1047
1047
|
|
|
1048
1048
|
&:hover:not(:disabled) {
|
|
1049
1049
|
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1050
1050
|
}
|
|
1051
|
-
`,
|
|
1051
|
+
`,b4=R(xf)`
|
|
1052
1052
|
background-color: transparent;
|
|
1053
1053
|
color: ${e=>e.theme.colors.error};
|
|
1054
1054
|
|
|
1055
1055
|
&:hover:not(:disabled) {
|
|
1056
1056
|
background-color: ${e=>e.theme.colors.error}20;
|
|
1057
1057
|
}
|
|
1058
|
-
`,
|
|
1058
|
+
`,C4=R.div`
|
|
1059
1059
|
width: 16px;
|
|
1060
1060
|
height: 16px;
|
|
1061
1061
|
border: 2px solid ${e=>e.theme.colors.primary};
|
|
@@ -1074,11 +1074,11 @@ Error generating stack: `+x.message+`
|
|
|
1074
1074
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1075
1075
|
margin-left: 8px;
|
|
1076
1076
|
font-style: italic;
|
|
1077
|
-
`;const
|
|
1077
|
+
`;const E4=e=>e>=1e3?`Context size: ${(e/1e3).toFixed(1)}K tokens`:`Context size: ${e} tokens`,j4=e=>{var r;const t=e.filter(o=>{var l;return o.type===Cr.ASSISTANT&&typeof((l=o.data)==null?void 0:l.contextSize)=="number"});if(t.length!==0)return(r=t[t.length-1].data)==null?void 0:r.contextSize},T4=e=>{const t=j4(e),r=t!==void 0?E4(t):"Context size N/A";return{contextSize:t,formattedSize:r}},R4=R.span`
|
|
1078
1078
|
font-size: 12px;
|
|
1079
1079
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1080
1080
|
white-space: nowrap;
|
|
1081
|
-
`,
|
|
1081
|
+
`,O0=({messages:e,className:t})=>{if(!e||e.length===0)return null;const{formattedSize:r}=T4(e);return y.jsx(R4,{className:t,children:r})},I4=R.div`
|
|
1082
1082
|
font-weight: bold;
|
|
1083
1083
|
font-size: 0.9em;
|
|
1084
1084
|
color: ${e=>e.theme.colors.text};
|
|
@@ -1178,8 +1178,8 @@ Error generating stack: `+x.message+`
|
|
|
1178
1178
|
}
|
|
1179
1179
|
`;R.div`
|
|
1180
1180
|
margin: 16px 0;
|
|
1181
|
-
`;function
|
|
1182
|
-
`));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var l=r[o];o%2&&!this.options.newlineIsToken?t[t.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),t.push(l))}return t};function
|
|
1181
|
+
`;function Ir(){}Ir.prototype={diff:function(t,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=l.callback;typeof l=="function"&&(a=l,l={}),this.options=l;var u=this;function d(F){return a?(setTimeout(function(){a(void 0,F)},0),!0):F}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,p=t.length,m=1,g=f+p;l.maxEditLength&&(g=Math.min(g,l.maxEditLength));var v=(o=l.timeout)!==null&&o!==void 0?o:1/0,w=Date.now()+v,S=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(S[0],r,t,0);if(S[0].oldPos+1>=p&&b+1>=f)return d([{value:this.join(r),count:r.length}]);var j=-1/0,C=1/0;function N(){for(var F=Math.max(j,-m);F<=Math.min(C,m);F+=2){var V=void 0,L=S[F-1],G=S[F+1];L&&(S[F-1]=void 0);var K=!1;if(G){var ie=G.oldPos-F;K=G&&0<=ie&&ie<f}var D=L&&L.oldPos+1<p;if(!K&&!D){S[F]=void 0;continue}if(!D||K&&L.oldPos+1<G.oldPos?V=u.addToPath(G,!0,void 0,0):V=u.addToPath(L,void 0,!0,1),b=u.extractCommon(V,r,t,F),V.oldPos+1>=p&&b+1>=f)return d(N4(u,V.lastComponent,r,t,u.useLongestToken));S[F]=V,V.oldPos+1>=p&&(C=Math.min(C,F-1)),b+1>=f&&(j=Math.max(j,F+1))}m++}if(a)(function F(){setTimeout(function(){if(m>g||Date.now()>w)return a();N()||F()},0)})();else for(;m<=g&&Date.now()<=w;){var A=N();if(A)return A}},addToPath:function(t,r,o,l){var a=t.lastComponent;return a&&a.added===r&&a.removed===o?{oldPos:t.oldPos+l,lastComponent:{count:a.count+1,added:r,removed:o,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+l,lastComponent:{count:1,added:r,removed:o,previousComponent:a}}},extractCommon:function(t,r,o,l){for(var a=r.length,u=o.length,d=t.oldPos,f=d-l,p=0;f+1<a&&d+1<u&&this.equals(r[f+1],o[d+1]);)f++,d++,p++;return p&&(t.lastComponent={count:p,previousComponent:t.lastComponent}),t.oldPos=d,f},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],o=0;o<t.length;o++)t[o]&&r.push(t[o]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function N4(e,t,r,o,l){for(var a=[],u;t;)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();for(var d=0,f=a.length,p=0,m=0;d<f;d++){var g=a[d];if(g.removed){if(g.value=e.join(o.slice(m,m+g.count)),m+=g.count,d&&a[d-1].added){var w=a[d-1];a[d-1]=a[d],a[d]=w}}else{if(!g.added&&l){var v=r.slice(p,p+g.count);v=v.map(function(b,j){var C=o[m+j];return C.length>b.length?C:b}),g.value=e.join(v)}else g.value=e.join(r.slice(p,p+g.count));p+=g.count,g.added||(m+=g.count)}}var S=a[f-1];return f>1&&typeof S.value=="string"&&(S.added||S.removed)&&e.equals("",S.value)&&(a[f-2].value+=S.value,a.pop()),a}var zg=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Dg=/\S/,F0=new Ir;F0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Dg.test(e)&&!Dg.test(t)};F0.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&zg.test(t[r])&&zg.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var vf=new Ir;vf.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
1182
|
+
`));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var l=r[o];o%2&&!this.options.newlineIsToken?t[t.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),t.push(l))}return t};function P4(e,t,r){return vf.diff(e,t,r)}var A4=new Ir;A4.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var L4=new Ir;L4.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Gs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gs=function(t){return typeof t}:Gs=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}var $4=Object.prototype.toString,sl=new Ir;sl.useLongestToken=!0;sl.tokenize=vf.tokenize;sl.castInput=function(e){var t=this.options,r=t.undefinedReplacement,o=t.stringifyReplacer,l=o===void 0?function(a,u){return typeof u>"u"?r:u}:o;return typeof e=="string"?e:JSON.stringify(Sd(e,null,null,l),l," ")};sl.equals=function(e,t){return Ir.prototype.equals.call(sl,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Sd(e,t,r,o,l){t=t||[],r=r||[],o&&(e=o(l,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var u;if($4.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),r.push(u),a=0;a<e.length;a+=1)u[a]=Sd(e[a],t,r,o,l);return t.pop(),r.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Gs(e)==="object"&&e!==null){t.push(e),u={},r.push(u);var d=[],f;for(f in e)e.hasOwnProperty(f)&&d.push(f);for(d.sort(),a=0;a<d.length;a+=1)f=d[a],u[f]=Sd(e[f],t,r,o,f);t.pop(),r.pop()}else u=e;return u}var bd=new Ir;bd.tokenize=function(e){return e.slice()};bd.join=bd.removeEmpty=function(e){return e};const Qo=({content:e})=>{const[t,r]=P.useState(null),o=async()=>{try{await navigator.clipboard.writeText(e),r("success"),setTimeout(()=>r(null),2e3)}catch{r("error"),setTimeout(()=>r(null),2e3)}};return y.jsxs(M0,{onClick:o,status:t,children:[t===null&&y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[y.jsx("path",{d:"M4 4v8h8V4H4zm1 1h6v6H5V5z"}),y.jsx("path",{d:"M3 3v9h9V3H3zm1 1h7v7H4V4z"})]}),t==="success"&&y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:y.jsx("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z"})}),t==="error"&&y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:y.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM6.5 11a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zm.75-6.5h1.5v4.5h-1.5V4.5z"})})]})},M0=R.button`
|
|
1183
1183
|
padding: 4px;
|
|
1184
1184
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1185
1185
|
border-radius: 4px;
|
|
@@ -1201,7 +1201,7 @@ Error generating stack: `+x.message+`
|
|
|
1201
1201
|
width: 16px;
|
|
1202
1202
|
height: 16px;
|
|
1203
1203
|
}
|
|
1204
|
-
`,
|
|
1204
|
+
`,_4=({oldContent:e,newContent:t})=>{const[r,o]=P.useState("unified"),l=P4(e??"",t),a=()=>y.jsxs(O4,{children:[y.jsx(Qo,{content:t}),l.map((p,m)=>y.jsx(Bc,{added:p.added,removed:p.removed,children:p.value},m))]}),u=()=>y.jsxs(F4,{children:[y.jsxs(Og,{children:[e&&y.jsx(Qo,{content:e}),l.filter(p=>!p.added).map((p,m)=>y.jsx(Bc,{removed:p.removed,children:p.value},m))]}),y.jsxs(Og,{children:[y.jsx(Qo,{content:t}),l.filter(p=>!p.removed).map((p,m)=>y.jsx(Bc,{added:p.added,children:p.value},m))]})]}),d=()=>y.jsxs(Fg,{children:[e&&y.jsx(Qo,{content:e}),y.jsx(Mg,{children:e})]}),f=()=>y.jsxs(Fg,{children:[y.jsx(Qo,{content:t}),y.jsx(Mg,{children:t})]});return y.jsxs(z4,{children:[y.jsxs(D4,{children:[y.jsx(_s,{active:r==="unified",onClick:()=>o("unified"),children:"Unified"}),y.jsx(_s,{active:r==="sideBySide",onClick:()=>o("sideBySide"),children:"Side by Side"}),y.jsx(_s,{active:r==="old",onClick:()=>o("old"),children:"Old Content"}),y.jsx(_s,{active:r==="new",onClick:()=>o("new"),children:"New Content"})]}),r==="unified"&&a(),r==="sideBySide"&&u(),r==="old"&&d(),r==="new"&&f()]})},z4=R.div`
|
|
1205
1205
|
margin: 16px 0;
|
|
1206
1206
|
position: relative;
|
|
1207
1207
|
|
|
@@ -1209,7 +1209,7 @@ Error generating stack: `+x.message+`
|
|
|
1209
1209
|
position: absolute;
|
|
1210
1210
|
right: 20px;
|
|
1211
1211
|
}
|
|
1212
|
-
`,
|
|
1212
|
+
`,D4=R.div`
|
|
1213
1213
|
display: flex;
|
|
1214
1214
|
gap: 8px;
|
|
1215
1215
|
margin-bottom: 16px;
|
|
@@ -1225,7 +1225,7 @@ Error generating stack: `+x.message+`
|
|
|
1225
1225
|
&:hover {
|
|
1226
1226
|
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1227
1227
|
}
|
|
1228
|
-
`,
|
|
1228
|
+
`,O4=R.div`
|
|
1229
1229
|
margin: 16px 0;
|
|
1230
1230
|
padding: 8px;
|
|
1231
1231
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1233,12 +1233,12 @@ Error generating stack: `+x.message+`
|
|
|
1233
1233
|
background-color: ${e=>e.theme.colors.background};
|
|
1234
1234
|
max-height: 400px;
|
|
1235
1235
|
overflow-y: auto;
|
|
1236
|
-
`,
|
|
1236
|
+
`,F4=R.div`
|
|
1237
1237
|
display: grid;
|
|
1238
1238
|
grid-template-columns: 1fr 1fr;
|
|
1239
1239
|
gap: 16px;
|
|
1240
1240
|
margin: 16px 0;
|
|
1241
|
-
`,
|
|
1241
|
+
`,Og=R.div`
|
|
1242
1242
|
position: relative;
|
|
1243
1243
|
padding: 8px;
|
|
1244
1244
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1246,7 +1246,7 @@ Error generating stack: `+x.message+`
|
|
|
1246
1246
|
background-color: ${e=>e.theme.colors.background};
|
|
1247
1247
|
max-height: 400px;
|
|
1248
1248
|
overflow-y: auto;
|
|
1249
|
-
`,
|
|
1249
|
+
`,Fg=R.div`
|
|
1250
1250
|
margin: 16px 0;
|
|
1251
1251
|
padding: 8px;
|
|
1252
1252
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1268,7 +1268,7 @@ Error generating stack: `+x.message+`
|
|
|
1268
1268
|
margin: 2px 0;
|
|
1269
1269
|
background-color: ${e=>e.added?e.theme.colors.diffAdded:e.removed?e.theme.colors.diffRemoved:"transparent"};
|
|
1270
1270
|
color: ${e=>e.added?e.theme.colors.diffAddedText:e.removed?e.theme.colors.diffRemovedText:e.theme.colors.text};
|
|
1271
|
-
`,
|
|
1271
|
+
`,B0=R.div`
|
|
1272
1272
|
display: flex;
|
|
1273
1273
|
flex-direction: column;
|
|
1274
1274
|
gap: 12px;
|
|
@@ -1397,7 +1397,7 @@ Error generating stack: `+x.message+`
|
|
|
1397
1397
|
&:hover {
|
|
1398
1398
|
border-color: ${e=>e.theme.colors.primary}66;
|
|
1399
1399
|
}
|
|
1400
|
-
`,
|
|
1400
|
+
`,M4=R.div`
|
|
1401
1401
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1402
1402
|
font-size: 0.95em;
|
|
1403
1403
|
font-weight: 500;
|
|
@@ -1411,7 +1411,7 @@ Error generating stack: `+x.message+`
|
|
|
1411
1411
|
border-radius: 3px;
|
|
1412
1412
|
color: ${e=>e.theme.colors.codeText};
|
|
1413
1413
|
word-break: break-all;
|
|
1414
|
-
`,
|
|
1414
|
+
`,B4=R.div`
|
|
1415
1415
|
margin-top: 8px;
|
|
1416
1416
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1417
1417
|
font-size: 0.95em;
|
|
@@ -1470,10 +1470,10 @@ Error generating stack: `+x.message+`
|
|
|
1470
1470
|
margin: 8px 0;
|
|
1471
1471
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1472
1472
|
}
|
|
1473
|
-
`,
|
|
1473
|
+
`,U4=R.div`
|
|
1474
1474
|
font-size: 0.9em;
|
|
1475
1475
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1476
|
-
`,
|
|
1476
|
+
`,V4=R.div`
|
|
1477
1477
|
margin-top: 4px;
|
|
1478
1478
|
font-family: monospace;
|
|
1479
1479
|
color: ${e=>e.theme.colors.info};
|
|
@@ -1493,7 +1493,7 @@ Error generating stack: `+x.message+`
|
|
|
1493
1493
|
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1494
1494
|
border-color: ${e=>e.theme.colors.primary}66;
|
|
1495
1495
|
}
|
|
1496
|
-
`,
|
|
1496
|
+
`,U0=R.div`
|
|
1497
1497
|
margin-top: 8px;
|
|
1498
1498
|
padding: 8px;
|
|
1499
1499
|
border-radius: 4px;
|
|
@@ -1512,7 +1512,7 @@ Error generating stack: `+x.message+`
|
|
|
1512
1512
|
overflow-x: auto;
|
|
1513
1513
|
white-space: pre-wrap;
|
|
1514
1514
|
word-wrap: break-word;
|
|
1515
|
-
`;const
|
|
1515
|
+
`;const H4=(e,t)=>{switch(e){case"createFile":return bt`
|
|
1516
1516
|
background: ${t.colors.info}22;
|
|
1517
1517
|
color: ${t.colors.info};
|
|
1518
1518
|
border-color: ${t.colors.info}44;
|
|
@@ -1549,31 +1549,31 @@ Error generating stack: `+x.message+`
|
|
|
1549
1549
|
font-weight: 500;
|
|
1550
1550
|
margin-bottom: 6px;
|
|
1551
1551
|
border: 1px solid;
|
|
1552
|
-
${e=>
|
|
1552
|
+
${e=>H4(e.variant,e.theme)}
|
|
1553
1553
|
`;R.div`
|
|
1554
1554
|
margin-top: 8px;
|
|
1555
1555
|
font-size: 0.9em;
|
|
1556
1556
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1557
|
-
`;const
|
|
1557
|
+
`;const q4=R.div`
|
|
1558
1558
|
display: flex;
|
|
1559
1559
|
gap: 8px;
|
|
1560
1560
|
align-items: center;
|
|
1561
1561
|
flex-wrap: wrap;
|
|
1562
|
-
`,
|
|
1562
|
+
`,W4=({data:{fileUpdates:e}})=>y.jsx("div",{children:e.map((t,r)=>y.jsx(wf,{data:{name:t.name,args:t.args}},r))}),wf=({data:{name:e,args:{filePath:t,explanation:r,oldContent:o,newContent:l}}})=>{const[a,u]=P.useState(!0),[d,f]=P.useState(!1);return y.jsxs(J4,{children:[y.jsxs(K4,{children:[y.jsx(Js,{variant:e,children:e}),y.jsx(I4,{children:t}),y.jsxs(Q4,{children:[y.jsx(Ug,{onClick:()=>u(!a),children:a?"Hide Explanation":"Explanation"}),(o||l)&&y.jsx(Ug,{onClick:()=>f(!d),children:d?"Hide Diff":"Show Diff"})]})]}),a&&r&&y.jsx(Y4,{children:y.jsx(Hi,{remarkPlugins:[qi],children:r})}),d&&y.jsx(X4,{children:y.jsx(_4,{oldContent:o,newContent:l})})]})},G4=["updateFile","createFile","patchFile","createDirectory","deleteFile","moveFile","downloadFile","splitImage","resizeImage","imglyRemoveBackground"];function aa(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.name!="string"||!G4.includes(t.name)?!1:typeof t.args.filePath=="string"}function Bg(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.fileUpdates)&&t.fileUpdates.every(aa)}const J4=R.div`
|
|
1563
1563
|
margin: 16px 0;
|
|
1564
1564
|
padding: 16px;
|
|
1565
1565
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1566
1566
|
border-radius: 8px;
|
|
1567
1567
|
background-color: ${e=>e.theme.colors.background};
|
|
1568
|
-
`,
|
|
1568
|
+
`,K4=R.div`
|
|
1569
1569
|
display: flex;
|
|
1570
1570
|
gap: 8px;
|
|
1571
1571
|
align-items: center;
|
|
1572
|
-
`,
|
|
1572
|
+
`,Q4=R.div`
|
|
1573
1573
|
display: flex;
|
|
1574
1574
|
gap: 8px;
|
|
1575
1575
|
margin-left: auto;
|
|
1576
|
-
`,
|
|
1576
|
+
`,Ug=R.button`
|
|
1577
1577
|
padding: 4px 8px;
|
|
1578
1578
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1579
1579
|
border-radius: 4px;
|
|
@@ -1585,7 +1585,7 @@ Error generating stack: `+x.message+`
|
|
|
1585
1585
|
&:hover {
|
|
1586
1586
|
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1587
1587
|
}
|
|
1588
|
-
`,
|
|
1588
|
+
`,Y4=R.div`
|
|
1589
1589
|
margin-top: 8px;
|
|
1590
1590
|
padding: 8px;
|
|
1591
1591
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1593,19 +1593,19 @@ Error generating stack: `+x.message+`
|
|
|
1593
1593
|
background-color: ${e=>e.theme.colors.background};
|
|
1594
1594
|
font-size: 0.9em;
|
|
1595
1595
|
line-height: 1.5;
|
|
1596
|
-
`,
|
|
1596
|
+
`,X4=R.div`
|
|
1597
1597
|
margin: 16px 0;
|
|
1598
|
-
`,
|
|
1598
|
+
`,Z4=R.div`
|
|
1599
1599
|
display: grid;
|
|
1600
1600
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
1601
1601
|
gap: 8px;
|
|
1602
1602
|
max-width: 800px;
|
|
1603
1603
|
margin: 8px 0;
|
|
1604
|
-
`,
|
|
1604
|
+
`,eA=R.div`
|
|
1605
1605
|
position: relative;
|
|
1606
1606
|
width: 100%;
|
|
1607
1607
|
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
1608
|
-
`,
|
|
1608
|
+
`,tA=R.img`
|
|
1609
1609
|
position: absolute;
|
|
1610
1610
|
top: 0;
|
|
1611
1611
|
left: 0;
|
|
@@ -1614,7 +1614,7 @@ Error generating stack: `+x.message+`
|
|
|
1614
1614
|
object-fit: contain;
|
|
1615
1615
|
border-radius: 4px;
|
|
1616
1616
|
background-color: rgba(0, 0, 0, 0.05);
|
|
1617
|
-
`,
|
|
1617
|
+
`,nA=({message:e,visibleDataIds:t,toggleDataVisibility:r})=>{var N;const[o,l]=P.useState(!1),[a,u]=P.useState(e.content),[d,f]=P.useState(!1),[p,m]=P.useState(null),g=P.useRef(null);P.useEffect(()=>{o&&g.current&&(g.current.focus(),g.current.selectionStart=g.current.value.length,g.current.selectionEnd=g.current.value.length)},[o]);const v=()=>{u(e.content),l(!0),m(null)},w=()=>{l(!1),u(e.content),m(null)},S=A=>A.trim()?A===e.content?(m("No changes made to the message"),!1):!0:(m("Message content cannot be empty"),!1),b=async()=>{if(S(a)){f(!0),m(null);try{await Ob(e.id,a),l(!1)}catch(A){m(A instanceof Error?A.message:"Failed to save changes")}finally{f(!1)}}},j=A=>{A.key==="Enter"&&A.ctrlKey?b():A.key==="Escape"&&w()},C=e.type!=="system"&&((N=e.flags)==null?void 0:N.includes(Ud.MESSAGE_EDITABLE));return y.jsx(eo,{"data-type":e.type,children:y.jsxs(D0,{"data-edit-mode":o,children:[y.jsxs(h4,{children:[y.jsx("div",{children:e.type==="user"?"You":"Assistant"}),C&&!o&&y.jsx(k4,{onClick:v,title:"Edit message",children:"✎"})]}),o?y.jsxs(y.Fragment,{children:[y.jsx(g4,{ref:g,value:a,onChange:A=>u(A.target.value),onKeyDown:j,placeholder:"Enter your message..."}),p&&y.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:p}),y.jsxs(w4,{children:[y.jsx(S4,{onClick:b,disabled:d,children:d?y.jsx(C4,{}):"Save"}),y.jsx(b4,{onClick:w,disabled:d,children:"Cancel"})]})]}):y.jsx(m4,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.content})}),e.images&&e.images.length>0&&y.jsx(Z4,{children:e.images.map((A,F)=>y.jsx(eA,{children:y.jsx(tA,{src:`data:${A.mediaType};base64,${A.base64url}`,alt:A.originalName||`Image ${F+1}`,title:A.originalName||`Image ${F+1}`})},F))}),y.jsxs(y4,{children:[y.jsx("div",{children:e.data?y.jsx(v4,{onClick:()=>r(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null}),y.jsxs("div",{children:[e.timestamp&&e.type==="assistant"&&e.data&&"contextSize"in e.data&&y.jsx(O0,{messages:[e]}),y.jsx(x4,{children:e.timestamp.toLocaleString()})]})]}),t.has(e.id)&&e.data?y.jsx(y.Fragment,{children:aa(e.data)?y.jsx(wf,{data:e.data}):y.jsx(Av,{data:e.data})}):null]})})},Vg=R.div`
|
|
1618
1618
|
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
1619
1619
|
color: ${e=>e.theme.colors.systemMessageText};
|
|
1620
1620
|
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
@@ -1631,7 +1631,7 @@ Error generating stack: `+x.message+`
|
|
|
1631
1631
|
}\n
|
|
1632
1632
|
${e=>e.isExecutionEnd&&`
|
|
1633
1633
|
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
1634
|
-
`}\n`,
|
|
1634
|
+
`}\n`,Hg=R.div`
|
|
1635
1635
|
cursor: pointer;
|
|
1636
1636
|
font-weight: bold;
|
|
1637
1637
|
margin-bottom: 8px;
|
|
@@ -1640,7 +1640,7 @@ Error generating stack: `+x.message+`
|
|
|
1640
1640
|
gap: 4px;
|
|
1641
1641
|
|
|
1642
1642
|
&:hover {\n opacity: 0.8;
|
|
1643
|
-
}\n`,
|
|
1643
|
+
}\n`,rA=R.div`
|
|
1644
1644
|
white-space: pre-wrap;
|
|
1645
1645
|
word-wrap: break-word;
|
|
1646
1646
|
font-family: inherit;
|
|
@@ -1648,19 +1648,19 @@ Error generating stack: `+x.message+`
|
|
|
1648
1648
|
|
|
1649
1649
|
/* Add spacing between content sections */
|
|
1650
1650
|
& > *:not(:last-child) {\n margin-bottom: 12px;
|
|
1651
|
-
}\n`,
|
|
1651
|
+
}\n`,iA=R.div`
|
|
1652
1652
|
margin-bottom: 8px;
|
|
1653
1653
|
position: relative;
|
|
1654
1654
|
padding-right: 150px; /* Space for timestamp and data link */
|
|
1655
1655
|
|
|
1656
1656
|
&:last-child {\n margin-bottom: 0;
|
|
1657
|
-
}\n`,
|
|
1657
|
+
}\n`,oA=R.div`
|
|
1658
1658
|
font-size: 0.8em;
|
|
1659
1659
|
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
1660
1660
|
position: absolute;
|
|
1661
1661
|
right: 60px;
|
|
1662
1662
|
top: 0;
|
|
1663
|
-
`,
|
|
1663
|
+
`,lA=R.span`
|
|
1664
1664
|
font-size: 0.8em;
|
|
1665
1665
|
color: ${e=>e.theme.colors.primary};
|
|
1666
1666
|
cursor: pointer;
|
|
@@ -1669,14 +1669,14 @@ Error generating stack: `+x.message+`
|
|
|
1669
1669
|
right: 0;
|
|
1670
1670
|
top: 0;
|
|
1671
1671
|
|
|
1672
|
-
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,
|
|
1672
|
+
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,sA=({data:e})=>{const[t,r]=P.useState({analysis:!0,changes:!0,files:!0}),[o,l]=P.useState({}),a=d=>{r(f=>({...f,[d]:!f[d]}))},u=d=>{l(f=>({...f,[d]:!f[d]}))};return y.jsxs(B0,{children:[y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>a("analysis"),children:y.jsxs(_i,{expanded:t.analysis,children:[y.jsx(zi,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&y.jsx($i,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.args.problemAnalysis})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>a("changes"),children:y.jsxs(_i,{expanded:t.changes,children:[y.jsx(zi,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&y.jsx($i,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.args.codeChanges})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>a("files"),children:y.jsxs(_i,{expanded:t.files,children:[y.jsx(zi,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&y.jsx($i,{children:y.jsx(Cd,{children:e.args.affectedFiles.map((d,f)=>y.jsxs(Ed,{children:[y.jsxs(jd,{children:[d.filePath,d.dependencies&&d.dependencies.length>0&&y.jsxs(Td,{onClick:()=>u(d.filePath),title:"Dependencies",children:["(",d.dependencies.length,")"]})]}),d.dependencies&&d.dependencies.length>0&&o[d.filePath]&&y.jsx(U0,{children:y.jsxs(U4,{children:["Dependencies:",d.dependencies.map((p,m)=>y.jsx(V4,{children:p},m))]})}),y.jsx(M4,{children:d.reason})]},f))})})]})]})};function qg(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 r=t.args;return typeof r.problemAnalysis=="string"&&typeof r.codeChanges=="string"&&Array.isArray(r.affectedFiles)&&r.affectedFiles.every(o=>typeof o=="object"&&o!==null&&typeof o.reason=="string"&&typeof o.filePath=="string")}const aA=({data:e})=>{const[t,r]=P.useState({explanation:!0,updates:!0,context:!1}),o=l=>{r(a=>({...a,[l]:!a[l]}))};return y.jsxs(B0,{children:[y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>o("explanation"),children:y.jsxs(_i,{expanded:t.explanation,children:[y.jsx(zi,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&y.jsx($i,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.args.explanation})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>o("updates"),children:y.jsxs(_i,{expanded:t.updates,children:[y.jsx(zi,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&y.jsx($i,{children:y.jsx(Cd,{children:e.args.fileUpdates.map((l,a)=>{var u;return y.jsxs(Ed,{id:"file-update-"+l.id,children:[y.jsxs(q4,{children:[y.jsx(Js,{variant:l.updateToolName,children:l.updateToolName}),y.jsx(jd,{children:l.filePath}),y.jsx(Td,{onClick:()=>o(l.id),children:l.id}),l.temperature&&y.jsx(Js,{variant:"temperature",title:"Temperature",children:l.temperature}),l.cheap&&y.jsx(Js,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),l.dependsOn&&t[l.id]&&y.jsxs(U0,{children:["Depends on:"," ",(u=l.dependsOn)==null?void 0:u.map(d=>y.jsx(Td,{onClick:()=>{var f;return(f=document.getElementById("file-update-"+d))==null?void 0:f.scrollIntoView()},children:d},d))]}),y.jsx(B4,{title:"Prompt",children:y.jsx(Hi,{remarkPlugins:[qi],children:l.prompt})})]},a)})})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>o("context"),children:y.jsxs(_i,{expanded:t.context,children:[y.jsx(zi,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&y.jsx($i,{children:y.jsx(Cd,{children:e.args.contextPaths.map((l,a)=>y.jsx(Ed,{children:y.jsx(jd,{children:l})},a))})})]})]})};function Wg(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 r=t.args;return typeof r.explanation=="string"&&Array.isArray(r.fileUpdates)&&Array.isArray(r.contextPaths)&&r.fileUpdates.every(o=>typeof o=="object"&&o!==null&&typeof o.prompt=="string"&&typeof o.filePath=="string"&&typeof o.updateToolName=="string")}const uA=({message:e,collapsedExecutions:t,toggleExecutionCollapse:r,visibleDataIds:o,toggleDataVisibility:l})=>t.has(e.id)?y.jsx(Vg,{isExecutionEnd:e.isExecutionEnd,children:y.jsxs(Hg,{onClick:()=>r(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):cA(e.parts).map((u,d)=>u.parts.length>0?y.jsxs(Vg,{isExecutionEnd:e.isExecutionEnd,children:[y.jsxs(Hg,{onClick:()=>r(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),y.jsx(rA,{children:u.parts.map(f=>y.jsxs(iA,{children:[f.content,y.jsx(oA,{children:f.timestamp.toLocaleString()}),f.data?y.jsx(lA,{onClick:()=>l(f.id),children:o.has(f.id)?"Hide data":"Show data"}):null,o.has(f.id)&&f.data?y.jsx(Av,{data:f.data}):null]},f.id))})]},`section-${d}`):u.codegenView?y.jsx(Pt.Fragment,{children:u.codegenView},`view-${d}`):null);function cA(e){const t=[];let r=[];return t.push({parts:r}),e.forEach(o=>{if(r.push(o),qg(o.data)||Wg(o.data)||aa(o.data)||Bg(o.data)){const l=qg(o.data)?y.jsx(sA,{data:o.data},`planning-${o.id}`):Wg(o.data)?y.jsx(aA,{data:o.data},`summary-${o.id}`):aa(o.data)?y.jsx(wf,{data:o.data},`file-update-${o.id}`):Bg(o.data)?y.jsx(W4,{data:o.data}):null;t.push({parts:[],codegenView:l}),r=[],t.push({parts:r})}}),t}const dA=R.div`
|
|
1673
1673
|
display: flex;
|
|
1674
1674
|
flex-direction: column;
|
|
1675
1675
|
height: 100%;
|
|
1676
1676
|
background-color: ${e=>e.theme.colors.background};
|
|
1677
1677
|
position: relative;
|
|
1678
1678
|
overflow: hidden;
|
|
1679
|
-
`,
|
|
1679
|
+
`,fA=R.div`
|
|
1680
1680
|
display: flex;
|
|
1681
1681
|
flex-direction: column;
|
|
1682
1682
|
gap: 16px;
|
|
@@ -1685,14 +1685,14 @@ Error generating stack: `+x.message+`
|
|
|
1685
1685
|
flex-grow: 1;
|
|
1686
1686
|
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
1687
1687
|
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
1688
|
-
`,
|
|
1688
|
+
`,pA=R.div`
|
|
1689
1689
|
display: flex;
|
|
1690
1690
|
flex-direction: column;
|
|
1691
1691
|
gap: 8px;
|
|
1692
1692
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1693
1693
|
border-radius: 8px;
|
|
1694
1694
|
margin-bottom: 24px;
|
|
1695
|
-
`,
|
|
1695
|
+
`,hA=R.div`
|
|
1696
1696
|
font-size: 16px;
|
|
1697
1697
|
font-weight: bold;
|
|
1698
1698
|
color: ${e=>e.theme.colors.text};
|
|
@@ -1745,7 +1745,7 @@ Error generating stack: `+x.message+`
|
|
|
1745
1745
|
overflow: visible;
|
|
1746
1746
|
text-overflow: ellipsis;
|
|
1747
1747
|
}
|
|
1748
|
-
`,
|
|
1748
|
+
`,mA=R.button`
|
|
1749
1749
|
display: flex;
|
|
1750
1750
|
justify-content: center;
|
|
1751
1751
|
align-items: center;
|
|
@@ -1766,12 +1766,12 @@ Error generating stack: `+x.message+`
|
|
|
1766
1766
|
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1767
1767
|
color: ${e=>e.theme.colors.error};
|
|
1768
1768
|
}
|
|
1769
|
-
`,
|
|
1769
|
+
`,gA=R.div`
|
|
1770
1770
|
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
1771
1771
|
flex-direction: column;
|
|
1772
1772
|
gap: 8px;
|
|
1773
1773
|
padding: 16px;
|
|
1774
|
-
`,
|
|
1774
|
+
`,yA=R.p`
|
|
1775
1775
|
font-size: 14px;
|
|
1776
1776
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1777
1777
|
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
@@ -1784,12 +1784,12 @@ Error generating stack: `+x.message+`
|
|
|
1784
1784
|
&:last-child {
|
|
1785
1785
|
margin-bottom: 0;
|
|
1786
1786
|
}
|
|
1787
|
-
`;const
|
|
1787
|
+
`;const xA=R.span`
|
|
1788
1788
|
&:before {
|
|
1789
1789
|
content: '▼';
|
|
1790
1790
|
margin-right: 8px;
|
|
1791
1791
|
}
|
|
1792
|
-
`,
|
|
1792
|
+
`,vA=R.span`
|
|
1793
1793
|
&:before {
|
|
1794
1794
|
content: '▶';
|
|
1795
1795
|
margin-right: 8px;
|
|
@@ -1802,16 +1802,16 @@ Error generating stack: `+x.message+`
|
|
|
1802
1802
|
&:hover {
|
|
1803
1803
|
text-decoration: underline;
|
|
1804
1804
|
}
|
|
1805
|
-
`;const
|
|
1805
|
+
`;const wA=R.div`
|
|
1806
1806
|
// TODO
|
|
1807
|
-
`;function
|
|
1807
|
+
`;function kA(e){return P.useMemo(()=>{const t=[];let r=null,o=null,l=0;return e.sort((a,u)=>a.iterationId<u.iterationId?-1:1).forEach((a,u)=>{var d;(!r||a.iterationId!==r.iterationId)&&(r&&(r.timestampEnd=new Date(a.timestamp),t.push(r)),r={iterationId:a.iterationId,timestampStart:new Date(a.timestamp),timestampEnd:new Date(a.timestamp),conversationSummaries:[],messages:[]}),(d=a.flags)!=null&&d.includes(Ud.CONVERSATION_SUMMARY)&&a.data&&(r.conversationSummaries.push(a.data),r.iterationTitle=a.data),a.type===Cr.SYSTEM?o?o.parts.push(a):(l++,o={...a,type:Cr.SYSTEM,parts:[a],id:`execution_${l}`,isExecutionEnd:u===e.length-1||e[u+1].type!==Cr.SYSTEM},r.messages.push(o)):(o&&(o.isExecutionEnd=!0),o=null,r.messages.push(a)),r.timestampEnd=new Date(a.timestamp)}),r&&t.push(r),t.sort((a,u)=>a.timestampStart.getTime()-u.timestampStart.getTime())},[e])}const SA=({onClick:e})=>y.jsxs(CA,{onClick:e,children:[y.jsx(EA,{children:"New messages"}),y.jsx(Uc,{}),y.jsx(Uc,{}),y.jsx(Uc,{})]}),bA=Gi`
|
|
1808
1808
|
0%, 80%, 100% {
|
|
1809
1809
|
transform: scale(0.8);
|
|
1810
1810
|
}
|
|
1811
1811
|
40% {
|
|
1812
1812
|
transform: scale(1.2);
|
|
1813
1813
|
}
|
|
1814
|
-
`,
|
|
1814
|
+
`,CA=R.div`
|
|
1815
1815
|
display: flex;
|
|
1816
1816
|
justify-content: center;
|
|
1817
1817
|
align-items: center;
|
|
@@ -1831,7 +1831,7 @@ Error generating stack: `+x.message+`
|
|
|
1831
1831
|
&:hover {
|
|
1832
1832
|
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1833
1833
|
}
|
|
1834
|
-
`,
|
|
1834
|
+
`,EA=R.span`
|
|
1835
1835
|
margin-right: 10px;
|
|
1836
1836
|
font-weight: bold;
|
|
1837
1837
|
`,Uc=R.div`
|
|
@@ -1840,7 +1840,7 @@ Error generating stack: `+x.message+`
|
|
|
1840
1840
|
background-color: ${e=>e.theme.colors.text};
|
|
1841
1841
|
border-radius: 50%;
|
|
1842
1842
|
margin: 0 2px;
|
|
1843
|
-
animation: ${
|
|
1843
|
+
animation: ${bA} 1.4s infinite ease-in-out both;
|
|
1844
1844
|
|
|
1845
1845
|
&:nth-child(2) {
|
|
1846
1846
|
animation-delay: -0.32s;
|
|
@@ -1849,10 +1849,10 @@ Error generating stack: `+x.message+`
|
|
|
1849
1849
|
&:nth-child(3) {
|
|
1850
1850
|
animation-delay: -0.16s;
|
|
1851
1851
|
}
|
|
1852
|
-
`,
|
|
1852
|
+
`,jA=R.div`
|
|
1853
1853
|
position: relative;
|
|
1854
1854
|
width: 100%;
|
|
1855
|
-
`,
|
|
1855
|
+
`,TA=R.textarea`
|
|
1856
1856
|
width: 100%;
|
|
1857
1857
|
min-height: 60px;
|
|
1858
1858
|
resize: none;
|
|
@@ -1873,17 +1873,17 @@ Error generating stack: `+x.message+`
|
|
|
1873
1873
|
outline: none;
|
|
1874
1874
|
border-color: ${e=>e.theme.colors.primary};
|
|
1875
1875
|
}
|
|
1876
|
-
`,
|
|
1876
|
+
`,V0=({value:e,onChange:t,onKeyDown:r,onPaste:o,onImagePaste:l,maxViewportHeight:a=.5,...u})=>{const d=P.useRef(null);P.useEffect(()=>{const m=d.current;if(!m)return;const g=()=>{m.style.height="auto";const w=m.scrollHeight,S=a*window.innerHeight,b=Math.min(w,S);m.style.height=`${b}px`,m.style.overflowY=w<=S?"hidden":"auto"};g();const v=()=>g();return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[e,a]);const f=m=>{t(m.target.value)},p=m=>{var v;const g=(v=m.clipboardData)==null?void 0:v.items;if(g){for(let w=0;w<g.length;w++)if(g[w].type.indexOf("image")!==-1){m.preventDefault();const S=g[w].getAsFile();if(S){const b=new File([S],`pasted-image-${Date.now()}.png`,{type:"image/png"});l==null||l(b)}break}}o==null||o(m)};return y.jsx(jA,{children:y.jsx(TA,{ref:d,value:e,onChange:f,onKeyDown:r,onPaste:p,...u})})},RA=5*1024*1024,Gg=["image/jpeg","image/png","image/gif","image/webp"],Jg=5,H0=({images:e,onImagesChange:t,error:r,setError:o,fileInputRef:l})=>{const a=d=>{const p=Array.from(d.target.files||[]).filter(m=>Gg.includes(m.type)?m.size>RA?(o(`File too large: ${m.name}. Maximum size is 5MB.`),!1):!0:(o(`Invalid file type: ${m.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(p.length+e.length>Jg){o(`Too many images. Maximum ${Jg} images allowed.`);return}t([...e,...p]),o(null)},u=d=>{const f=e.filter((p,m)=>m!==d);t(f)};return y.jsxs(IA,{children:[r&&y.jsx(NA,{children:r}),y.jsx(PA,{children:e.map((d,f)=>y.jsxs(AA,{children:[y.jsx("img",{src:URL.createObjectURL(d),alt:`Uploaded ${f+1}`}),y.jsx(LA,{onClick:()=>u(f),children:"×"})]},f))}),y.jsx("input",{type:"file",ref:l,style:{display:"none"},onChange:a,accept:Gg.join(","),multiple:!0})]})},IA=R.div`
|
|
1877
1877
|
margin-bottom: 8px;
|
|
1878
|
-
`,
|
|
1878
|
+
`,NA=R.div`
|
|
1879
1879
|
color: ${e=>e.theme.colors.error};
|
|
1880
1880
|
font-size: 14px;
|
|
1881
1881
|
margin-bottom: 8px;
|
|
1882
|
-
`,
|
|
1882
|
+
`,PA=R.div`
|
|
1883
1883
|
display: flex;
|
|
1884
1884
|
flex-wrap: wrap;
|
|
1885
1885
|
gap: 8px;
|
|
1886
|
-
`,
|
|
1886
|
+
`,AA=R.div`
|
|
1887
1887
|
position: relative;
|
|
1888
1888
|
width: 60px;
|
|
1889
1889
|
height: 60px;
|
|
@@ -1894,7 +1894,7 @@ Error generating stack: `+x.message+`
|
|
|
1894
1894
|
object-fit: cover;
|
|
1895
1895
|
border-radius: 4px;
|
|
1896
1896
|
}
|
|
1897
|
-
`,
|
|
1897
|
+
`,LA=R.button`
|
|
1898
1898
|
position: absolute;
|
|
1899
1899
|
top: -8px;
|
|
1900
1900
|
right: -8px;
|
|
@@ -1914,7 +1914,37 @@ Error generating stack: `+x.message+`
|
|
|
1914
1914
|
&:hover {
|
|
1915
1915
|
background-color: ${e=>e.theme.colors.errorHover};
|
|
1916
1916
|
}
|
|
1917
|
-
|
|
1917
|
+
`,$A={sendMessage:"✉️ Send Message",updateFile:"📝 Update File",createFile:"📄 Create File",confirmCodeGeneration:"🚀 Generate Code",runProjectCommand:"⚙️ Run Command",runBashCommand:"셸 Run Bash Command",searchCode:"🔍 Search Code",requestFilesContent:"📂 Request Files",endConversation:"👋 End Conversation",compoundAction:"🧱 Compound Action",runContainerTask:"🐳 Run Container Task",requestPermissions:"🔒 Request Permissions",performAnalysis:"🔬 Perform Analysis",contextOptimization:"✨ Optimize Context",reasoningInference:"🤔 Reasoning Inference",genaicodeHelp:"❓ GenAIcode Help",conversationGraph:"📊 Conversation Graph",generateImage:"🎨 Generate Image",readExternalFiles:"📖 Read External Files",exploreExternalDirectories:"🗺️ Explore External Dirs",removeFilesFromContext:"🗑️ Remove Files from Context",requestGitContext:"🐙 Request Git Context",webSearch:"🌐 Web Search",codeGeneration:"💻 Code Generation",contextCompression:"📦 Compress Context",pullAppContext:"🔽 Pull App Context",pushAppContext:"🔼 Push App Context",requestFilesFragments:"🧩 Request Files Fragments"},_A=e=>$A[e]||e,Rd=({value:e,onChange:t,disabled:r})=>{const[o,l]=P.useState([]),[a,u]=P.useState(!0),[d,f]=P.useState(null);P.useEffect(()=>{(async()=>{try{u(!0);const g=await Gb();l(g),f(null)}catch(g){f("Failed to load action types."),console.error(g)}finally{u(!1)}})()},[]);const p=m=>{t(m.target.value)};return y.jsxs(zA,{children:[y.jsxs(DA,{id:"promptActionType",value:e||"",onChange:p,disabled:r||a||d!==null,children:[y.jsx("option",{value:"",children:"Auto mode"}),o.map(m=>y.jsx("option",{value:m,children:_A(m)},m))]}),a&&y.jsx(OA,{children:"Loading actions..."}),d&&y.jsx(FA,{children:d})]})},zA=R.div`
|
|
1918
|
+
display: flex;
|
|
1919
|
+
flex-direction: column;
|
|
1920
|
+
gap: 4px;
|
|
1921
|
+
`,DA=R.select`
|
|
1922
|
+
padding: 8px;
|
|
1923
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1924
|
+
border-radius: 4px;
|
|
1925
|
+
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
1926
|
+
color: ${({theme:e})=>e.colors.inputText};
|
|
1927
|
+
font-size: 14px;
|
|
1928
|
+
max-width: 200px;
|
|
1929
|
+
|
|
1930
|
+
&:disabled {
|
|
1931
|
+
background-color: ${({theme:e})=>e.colors.disabled};
|
|
1932
|
+
cursor: not-allowed;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
option {
|
|
1936
|
+
padding: 4px;
|
|
1937
|
+
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
1938
|
+
color: ${({theme:e})=>e.colors.inputText};
|
|
1939
|
+
}
|
|
1940
|
+
`,OA=R.div`
|
|
1941
|
+
color: ${({theme:e})=>e.colors.text};
|
|
1942
|
+
font-size: 14px;
|
|
1943
|
+
font-style: italic;
|
|
1944
|
+
`,FA=R.div`
|
|
1945
|
+
color: ${({theme:e})=>e.colors.error};
|
|
1946
|
+
font-size: 14px;
|
|
1947
|
+
`,Kg=({onSubmit:e,onInterrupt:t,onPauseResume:r,question:o,codegenOptions:l,executionStatus:a})=>{var H,de,ae,X,ue,E,_;const[u,d]=P.useState(""),[f,p]=P.useState([]),[m,g]=P.useState(null),{suggestions:v}=P.useContext(Qi)??{suggestions:[]},[w,S]=P.useState(null),[b,j]=P.useState(l.aiService),[C,N]=P.useState(void 0),[A,F]=P.useState(!1),V=P.useRef(null),L=P.useRef(null);P.useEffect(()=>{j(l.aiService)},[l.aiService]),P.useEffect(()=>{const U=T=>{V.current&&!V.current.contains(T.target)&&F(!1)};return document.addEventListener("mousedown",U),()=>{document.removeEventListener("mousedown",U)}},[V]);const G=U=>{p(T=>[...T,U]),g(null)},K=async U=>{if(U.preventDefault(),(u.trim()||f.length>0)&&o)try{await e(u,f,void 0,b,C),d(""),p([]),S(null),g(null)}catch(T){console.error("Error submitting answer:",T),S("Failed to submit the answer. Please try again.")}},ie=async U=>{try{await e(u,f,U,b,C),d(""),p([]),S(null),g(null)}catch(T){console.error("Error submitting confirmation:",T),S("Failed to submit the confirmation. Please try again.")}},D=U=>{d(U),F(!1)},ne=()=>{F(!A)},se=()=>{var U;(U=L.current)==null||U.click()},le=a==="paused",re=!(o!=null&&o.confirmation)||!o.confirmation.confirmLabel&&!o.confirmation.declineLabel&&!o.confirmation.secret;return y.jsxs(MA,{children:[o?y.jsxs(BA,{onSubmit:K,children:[y.jsx("p",{children:o.text}),(H=o.confirmation)!=null&&H.secret?y.jsx(UA,{type:"password",value:u,onChange:U=>d(U.target.value),placeholder:"Enter secret",autoFocus:!0}):((de=o.confirmation)==null?void 0:de.includeAnswer)!==!1&&y.jsxs(y.Fragment,{children:[y.jsx(V0,{value:u,onChange:d,placeholder:"Enter your answer here or select a suggestion",maxViewportHeight:.3,onImagePaste:G}),y.jsx(H0,{images:f,onImagesChange:p,error:m,setError:g,fileInputRef:L})]}),(ae=o.confirmation)!=null&&ae.secret?y.jsxs(zs,{children:[y.jsx(Qg,{type:"submit",disabled:!u.trim(),children:"Submit"}),y.jsx(Vc,{onClick:()=>ie(!1),"data-secondary":"true",children:"Decline"}),y.jsx(Ds,{onClick:t,children:"Interrupt"})]}):re?y.jsxs(zs,{children:[y.jsx(Qg,{type:"submit",disabled:!u.trim()&&f.length===0,children:"Submit Answer"}),y.jsx(JA,{type:"button",onClick:se,title:"Upload Images",children:y.jsx(dx,{})}),y.jsx(na,{value:b,onChange:j,disabled:!1}),((X=o.confirmation)==null?void 0:X.promptActionType)&&y.jsx(Rd,{value:C,onChange:N,disabled:!1}),v&&v.length>0&&y.jsxs(VA,{ref:V,children:[y.jsxs(HA,{type:"button",onClick:ne,children:[v[0],v.length>1&&y.jsx(qA,{children:" ▼"})]}),A&&y.jsx(WA,{children:v.map((U,T)=>y.jsx(GA,{onClick:()=>D(U),children:U},T))})]}),y.jsx(Ds,{onClick:t,children:"Interrupt"})]}):y.jsxs(zs,{children:[y.jsx(Vc,{onClick:()=>ie(!0),children:(ue=o.confirmation)==null?void 0:ue.confirmLabel}),y.jsx(Vc,{onClick:()=>ie(!1),"data-secondary":"true",children:(E=o.confirmation)==null?void 0:E.declineLabel}),y.jsx(na,{value:b,onChange:j,disabled:!1}),((_=o.confirmation)==null?void 0:_.promptActionType)&&y.jsx(Rd,{value:C,onChange:N,disabled:!1}),y.jsx(Ds,{onClick:t,children:"Interrupt"})]})]}):y.jsxs(zs,{children:[y.jsx(KA,{onClick:r,isPaused:le,children:le?"Resume":"Pause"}),y.jsx(Ds,{onClick:t,children:"Interrupt"})]}),w&&y.jsx(QA,{children:w})]})},MA=R.div`
|
|
1918
1948
|
background-color: ${({theme:e})=>e.colors.background};
|
|
1919
1949
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1920
1950
|
border-radius: 8px;
|
|
@@ -1924,14 +1954,14 @@ Error generating stack: `+x.message+`
|
|
|
1924
1954
|
max-width: 70%;
|
|
1925
1955
|
width: 100%;
|
|
1926
1956
|
box-sizing: border-box;
|
|
1927
|
-
`,
|
|
1957
|
+
`,BA=R.form`
|
|
1928
1958
|
display: flex;
|
|
1929
1959
|
flex-direction: column;
|
|
1930
1960
|
|
|
1931
1961
|
> p {
|
|
1932
1962
|
margin-top: 0;
|
|
1933
1963
|
}
|
|
1934
|
-
|
|
1964
|
+
`,UA=R.input`
|
|
1935
1965
|
width: 100%;
|
|
1936
1966
|
padding: 10px;
|
|
1937
1967
|
border: 1px solid ${({theme:e})=>e.colors.inputBorder};
|
|
@@ -1942,10 +1972,10 @@ Error generating stack: `+x.message+`
|
|
|
1942
1972
|
font-size: 14px;
|
|
1943
1973
|
box-sizing: border-box;
|
|
1944
1974
|
margin-bottom: 10px;
|
|
1945
|
-
`,
|
|
1975
|
+
`,VA=R.div`
|
|
1946
1976
|
position: relative;
|
|
1947
1977
|
display: inline-block;
|
|
1948
|
-
`,
|
|
1978
|
+
`,HA=R.button`
|
|
1949
1979
|
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1950
1980
|
color: ${e=>e.theme.colors.text};
|
|
1951
1981
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1964,10 +1994,10 @@ Error generating stack: `+x.message+`
|
|
|
1964
1994
|
&:hover {
|
|
1965
1995
|
background-color: ${e=>e.theme.colors.primary+"22"};
|
|
1966
1996
|
}
|
|
1967
|
-
`,
|
|
1997
|
+
`,qA=R.span`
|
|
1968
1998
|
margin-left: 5px;
|
|
1969
1999
|
font-size: 0.8em;
|
|
1970
|
-
`,
|
|
2000
|
+
`,WA=R.div`
|
|
1971
2001
|
position: absolute;
|
|
1972
2002
|
bottom: 100%;
|
|
1973
2003
|
left: 0;
|
|
@@ -1980,7 +2010,7 @@ Error generating stack: `+x.message+`
|
|
|
1980
2010
|
max-height: 200px;
|
|
1981
2011
|
overflow-y: auto;
|
|
1982
2012
|
margin-bottom: 5px;
|
|
1983
|
-
`,
|
|
2013
|
+
`,GA=R.div`
|
|
1984
2014
|
padding: 8px 12px;
|
|
1985
2015
|
color: ${({theme:e})=>e.colors.inputText};
|
|
1986
2016
|
cursor: pointer;
|
|
@@ -2011,13 +2041,13 @@ Error generating stack: `+x.message+`
|
|
|
2011
2041
|
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2012
2042
|
cursor: not-allowed;
|
|
2013
2043
|
}
|
|
2014
|
-
`,
|
|
2044
|
+
`,Qg=R(gl)`
|
|
2015
2045
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
2016
2046
|
|
|
2017
2047
|
&:hover:not(:disabled) {
|
|
2018
2048
|
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
2019
2049
|
}
|
|
2020
|
-
`,
|
|
2050
|
+
`,JA=R(gl)`
|
|
2021
2051
|
background-color: ${({theme:e})=>e.colors.buttonBg}; /* Or choose another appropriate color */
|
|
2022
2052
|
|
|
2023
2053
|
&:hover {
|
|
@@ -2042,25 +2072,25 @@ Error generating stack: `+x.message+`
|
|
|
2042
2072
|
&:hover {
|
|
2043
2073
|
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
2044
2074
|
}
|
|
2045
|
-
`,
|
|
2075
|
+
`,KA=R(gl)`
|
|
2046
2076
|
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
2047
2077
|
|
|
2048
2078
|
&:hover {
|
|
2049
2079
|
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
2050
2080
|
}
|
|
2051
|
-
`,
|
|
2081
|
+
`,QA=R.p`
|
|
2052
2082
|
color: ${({theme:e})=>e.colors.error};
|
|
2053
2083
|
font-weight: bold;
|
|
2054
2084
|
margin-top: 10px;
|
|
2055
2085
|
margin-bottom: 0;
|
|
2056
|
-
`,
|
|
2086
|
+
`,YA=({isVisible:e,onInterrupt:t,onPauseResume:r,executionStatus:o})=>e?y.jsxs(ZA,{children:[y.jsx(tL,{onClick:t,children:"Interrupt"}),y.jsxs(eL,{"data-execution-status":o,children:[y.jsx(Hc,{}),y.jsx(Hc,{}),y.jsx(Hc,{})]}),y.jsx(q0,{onClick:r,children:o==="paused"?"Resume":"Pause"})]}):null,XA=Gi`
|
|
2057
2087
|
0%, 80%, 100% {
|
|
2058
2088
|
transform: scale(0);
|
|
2059
2089
|
}
|
|
2060
2090
|
40% {
|
|
2061
2091
|
transform: scale(1.0);
|
|
2062
2092
|
}
|
|
2063
|
-
`,
|
|
2093
|
+
`,ZA=R.div`
|
|
2064
2094
|
display: flex;
|
|
2065
2095
|
flex-direction: row;
|
|
2066
2096
|
align-items: center;
|
|
@@ -2069,7 +2099,7 @@ Error generating stack: `+x.message+`
|
|
|
2069
2099
|
padding: 10px;
|
|
2070
2100
|
background-color: ${e=>e.theme.colors.background};
|
|
2071
2101
|
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
2072
|
-
`,
|
|
2102
|
+
`,eL=R.div`
|
|
2073
2103
|
display: flex;
|
|
2074
2104
|
align-items: center;
|
|
2075
2105
|
justify-content: center;
|
|
@@ -2083,7 +2113,7 @@ Error generating stack: `+x.message+`
|
|
|
2083
2113
|
margin: 0 5px;
|
|
2084
2114
|
|
|
2085
2115
|
[data-execution-status='executing'] & {
|
|
2086
|
-
animation: ${
|
|
2116
|
+
animation: ${XA} 1.4s infinite ease-in-out both;
|
|
2087
2117
|
}
|
|
2088
2118
|
|
|
2089
2119
|
&:nth-child(1) {
|
|
@@ -2093,7 +2123,7 @@ Error generating stack: `+x.message+`
|
|
|
2093
2123
|
&:nth-child(2) {
|
|
2094
2124
|
animation-delay: -0.16s;
|
|
2095
2125
|
}
|
|
2096
|
-
`,
|
|
2126
|
+
`,q0=R.button`
|
|
2097
2127
|
padding: 8px 16px;
|
|
2098
2128
|
background-color: ${e=>e.theme.colors.primary};
|
|
2099
2129
|
color: #ffffff;
|
|
@@ -2112,13 +2142,13 @@ Error generating stack: `+x.message+`
|
|
|
2112
2142
|
&:active {
|
|
2113
2143
|
transform: translateY(0);
|
|
2114
2144
|
}
|
|
2115
|
-
`,
|
|
2145
|
+
`,tL=R(q0)`
|
|
2116
2146
|
background-color: ${({theme:e})=>e.colors.error};
|
|
2117
2147
|
|
|
2118
2148
|
&:hover {
|
|
2119
2149
|
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
2120
2150
|
}
|
|
2121
|
-
`,
|
|
2151
|
+
`,W0={info:"#3498db",warn:"#f39c12",error:"#e74c3c",success:"#2ecc71",debug:"#9b59b6"},nL=R.div`
|
|
2122
2152
|
position: fixed;
|
|
2123
2153
|
bottom: 70px;
|
|
2124
2154
|
right: 20px;
|
|
@@ -2133,7 +2163,7 @@ Error generating stack: `+x.message+`
|
|
|
2133
2163
|
display: flex;
|
|
2134
2164
|
flex-direction: column;
|
|
2135
2165
|
font-family: 'Courier New', Courier, monospace;
|
|
2136
|
-
`,
|
|
2166
|
+
`,rL=R.div`
|
|
2137
2167
|
display: flex;
|
|
2138
2168
|
align-items: center;
|
|
2139
2169
|
margin-bottom: 10px;
|
|
@@ -2147,7 +2177,7 @@ Error generating stack: `+x.message+`
|
|
|
2147
2177
|
margin: 0;
|
|
2148
2178
|
font-size: 1.1em;
|
|
2149
2179
|
}
|
|
2150
|
-
`,
|
|
2180
|
+
`,iL=R.button`
|
|
2151
2181
|
background: none;
|
|
2152
2182
|
border: none;
|
|
2153
2183
|
color: ${({theme:e})=>e.colors.text};
|
|
@@ -2159,17 +2189,17 @@ Error generating stack: `+x.message+`
|
|
|
2159
2189
|
&:hover {
|
|
2160
2190
|
color: ${({theme:e})=>e.colors.primary};
|
|
2161
2191
|
}
|
|
2162
|
-
`,
|
|
2192
|
+
`,oL=R.div`
|
|
2163
2193
|
display: flex;
|
|
2164
2194
|
align-items: center;
|
|
2165
2195
|
flex-wrap: wrap;
|
|
2166
2196
|
gap: 8px;
|
|
2167
2197
|
flex-grow: 1;
|
|
2168
2198
|
justify-content: flex-end;
|
|
2169
|
-
`,
|
|
2199
|
+
`,lL=R.div`
|
|
2170
2200
|
display: flex;
|
|
2171
2201
|
gap: 5px;
|
|
2172
|
-
`,
|
|
2202
|
+
`,Yg=R.button`
|
|
2173
2203
|
background-color: ${({active:e,theme:t})=>e?t.colors.primary:"transparent"};
|
|
2174
2204
|
color: ${({active:e,theme:t})=>e?"white":t.colors.text};
|
|
2175
2205
|
border: 1px solid ${({active:e,theme:t})=>e?t.colors.primary:t.colors.border};
|
|
@@ -2209,7 +2239,7 @@ Error generating stack: `+x.message+`
|
|
|
2209
2239
|
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
2210
2240
|
outline-offset: 2px;
|
|
2211
2241
|
}
|
|
2212
|
-
`,
|
|
2242
|
+
`,sL=R.div`
|
|
2213
2243
|
flex-grow: 1;
|
|
2214
2244
|
overflow-y: auto;
|
|
2215
2245
|
background-color: ${({theme:e})=>e.colors.inputBackground};
|
|
@@ -2230,7 +2260,7 @@ Error generating stack: `+x.message+`
|
|
|
2230
2260
|
background-color: ${({theme:e})=>e.colors.border};
|
|
2231
2261
|
border-radius: 4px;
|
|
2232
2262
|
}
|
|
2233
|
-
`,
|
|
2263
|
+
`,aL=R.div`
|
|
2234
2264
|
display: grid;
|
|
2235
2265
|
grid-template-columns: 80px 70px 90px 1fr;
|
|
2236
2266
|
align-items: start;
|
|
@@ -2258,8 +2288,8 @@ Error generating stack: `+x.message+`
|
|
|
2258
2288
|
grid-column: 2;
|
|
2259
2289
|
}
|
|
2260
2290
|
}
|
|
2261
|
-
`,
|
|
2262
|
-
background-color: ${({level:e})=>
|
|
2291
|
+
`,uL=R.span`
|
|
2292
|
+
background-color: ${({level:e})=>W0[e]||"#7f8c8d"};
|
|
2263
2293
|
color: white;
|
|
2264
2294
|
padding: 2px 6px;
|
|
2265
2295
|
border-radius: 4px;
|
|
@@ -2268,10 +2298,10 @@ Error generating stack: `+x.message+`
|
|
|
2268
2298
|
text-transform: uppercase;
|
|
2269
2299
|
flex-shrink: 0;
|
|
2270
2300
|
justify-self: start;
|
|
2271
|
-
`,
|
|
2301
|
+
`,cL=R.div`
|
|
2272
2302
|
word-wrap: break-word;
|
|
2273
2303
|
white-space: pre-wrap;
|
|
2274
|
-
`,
|
|
2304
|
+
`,dL=R.button`
|
|
2275
2305
|
background: none;
|
|
2276
2306
|
border: none;
|
|
2277
2307
|
color: ${({theme:e})=>e.colors.primary};
|
|
@@ -2284,14 +2314,14 @@ Error generating stack: `+x.message+`
|
|
|
2284
2314
|
&:hover {
|
|
2285
2315
|
opacity: 0.8;
|
|
2286
2316
|
}
|
|
2287
|
-
`,
|
|
2317
|
+
`,fL=R.div`
|
|
2288
2318
|
grid-column: 1 / -1;
|
|
2289
2319
|
background-color: ${({theme:e})=>e.colors.background};
|
|
2290
2320
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2291
2321
|
border-radius: 6px;
|
|
2292
2322
|
margin-top: 8px;
|
|
2293
2323
|
padding: 5px;
|
|
2294
|
-
`,
|
|
2324
|
+
`,pL=R.pre`
|
|
2295
2325
|
margin: 0;
|
|
2296
2326
|
padding: 8px;
|
|
2297
2327
|
font-family: 'Courier New', Courier, monospace;
|
|
@@ -2313,9 +2343,9 @@ Error generating stack: `+x.message+`
|
|
|
2313
2343
|
background-color: ${({theme:e})=>e.colors.border};
|
|
2314
2344
|
border-radius: 4px;
|
|
2315
2345
|
}
|
|
2316
|
-
`,
|
|
2346
|
+
`,hL=R(eo)`
|
|
2317
2347
|
align-items: center;
|
|
2318
|
-
`,
|
|
2348
|
+
`,mL=R(D0).attrs({as:"button"})`
|
|
2319
2349
|
display: flex;
|
|
2320
2350
|
align-items: center;
|
|
2321
2351
|
gap: 8px;
|
|
@@ -2340,32 +2370,32 @@ Error generating stack: `+x.message+`
|
|
|
2340
2370
|
}
|
|
2341
2371
|
animation: flash 1.2s ease-in-out infinite;
|
|
2342
2372
|
`}
|
|
2343
|
-
`,
|
|
2344
|
-
background-color: ${({level:e})=>
|
|
2373
|
+
`,gL=R.span`
|
|
2374
|
+
background-color: ${({level:e})=>W0[e]||"#7f8c8d"};
|
|
2345
2375
|
color: #fff;
|
|
2346
2376
|
padding: 2px 6px;
|
|
2347
2377
|
border-radius: 6px;
|
|
2348
2378
|
font-size: 0.75em;
|
|
2349
2379
|
text-transform: uppercase;
|
|
2350
2380
|
flex-shrink: 0;
|
|
2351
|
-
`,
|
|
2381
|
+
`,yL=R.span`
|
|
2352
2382
|
flex: 1;
|
|
2353
2383
|
min-width: 0;
|
|
2354
2384
|
white-space: nowrap;
|
|
2355
2385
|
overflow: hidden;
|
|
2356
2386
|
text-overflow: ellipsis;
|
|
2357
2387
|
color: ${({theme:e})=>e.colors.text};
|
|
2358
|
-
`,
|
|
2388
|
+
`,xL=R.span`
|
|
2359
2389
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2360
2390
|
font-size: 0.75em;
|
|
2361
2391
|
flex-shrink: 0;
|
|
2362
|
-
`,
|
|
2392
|
+
`,vL=R.span`
|
|
2363
2393
|
width: 8px;
|
|
2364
2394
|
height: 8px;
|
|
2365
2395
|
border-radius: 50%;
|
|
2366
2396
|
background-color: ${({theme:e})=>e.colors.error};
|
|
2367
2397
|
flex-shrink: 0;
|
|
2368
|
-
`,
|
|
2398
|
+
`,wL=R.button`
|
|
2369
2399
|
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
2370
2400
|
color: ${({theme:e})=>e.colors.buttonText};
|
|
2371
2401
|
border: none;
|
|
@@ -2385,14 +2415,14 @@ Error generating stack: `+x.message+`
|
|
|
2385
2415
|
&:hover {
|
|
2386
2416
|
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
2387
2417
|
}
|
|
2388
|
-
`,
|
|
2418
|
+
`,kL=R(wL)`
|
|
2389
2419
|
background-color: ${({theme:e})=>e.colors.error||"#dc3545"};
|
|
2390
2420
|
color: white;
|
|
2391
2421
|
|
|
2392
2422
|
&:hover {
|
|
2393
2423
|
background-color: ${({theme:e})=>e.colors.errorHover||"#c82333"};
|
|
2394
2424
|
}
|
|
2395
|
-
`,
|
|
2425
|
+
`,SL=({iterationId:e})=>{const{terminalEvents:t,isTerminalOpen:r,toggleTerminal:o}=fl(),l=P.useRef({}),a=P.useMemo(()=>!e||!t[e]?[]:t[e],[e,t]),u=a[a.length-1];if(P.useEffect(()=>{r&&e&&u&&(l.current[e]=u.id)},[r,e,u]),!e||a.length===0)return null;const d=!r&&u&&l.current[e]!==u.id,f=()=>{o(),e&&u&&(l.current[e]=u.id)},p=async m=>{m.stopPropagation();try{await Qy()}catch(g){console.error("Failed to interrupt command:",g),alert(`Failed to interrupt command: ${g instanceof Error?g.message:"Unknown error"}`)}};return y.jsxs(hL,{"data-type":"assistant",children:[y.jsx(kL,{onClick:p,title:"Interrupt current command",children:"⏹"}),u&&y.jsxs(mL,{flashing:d,onClick:f,"aria-label":`Toggle terminal. Last log: ${u.text}`,title:`Toggle terminal. Last log: ${u.text}`,children:[y.jsx(gL,{level:u.level,children:u.level}),y.jsxs(yL,{children:["Container log: ",u.text]}),y.jsx(xL,{children:new Date(u.timestamp).toLocaleTimeString()}),d&&y.jsx(vL,{"aria-hidden":"true"})]})]})},bL=({messages:e,currentQuestion:t,codegenOptions:r,onQuestionSubmit:o,onInterrupt:l,onPauseResume:a,executionStatus:u})=>{var re;const[d,f]=P.useState(()=>new Set),[p,m]=P.useState(()=>new Set),[g,v]=P.useState(()=>new Set),[w]=P.useState(null),S=P.useRef(null),b=P.useRef(null),[j,C]=P.useState(!1),[N,A]=P.useState(!0),[F,V]=P.useState(null),L=kA(e),G=u!=="idle"?(re=L[L.length-1])==null?void 0:re.iterationId:null,K=P.useCallback(()=>{if(!b.current)return!0;const{scrollTop:H,scrollHeight:de,clientHeight:ae}=b.current;return Math.abs(de-ae-H)<5||de<=ae},[]);P.useEffect(()=>{const H=b.current;if(!H)return;const de=()=>{const ae=K();A(ae),ae&&C(!1)};return H.addEventListener("scroll",de),()=>H.removeEventListener("scroll",de)},[K]),P.useEffect(()=>{N?se():e.length>0&&C(!0)},[L,N,e.length]),P.useEffect(()=>{const H=new Set(L.slice(0,-1).map(de=>de.iterationId));v(H)},[L.length]);const ie=H=>{f(de=>{const ae=new Set(de);return ae.has(H)?ae.delete(H):ae.add(H),ae})},D=H=>{m(de=>{const ae=new Set(de);return ae.has(H)?ae.delete(H):ae.add(H),ae})},ne=H=>{var de;w&&((de=e.find(ae=>ae.id===w))==null?void 0:de.iterationId)===H||v(ae=>{const X=new Set(ae);return X.has(H)?X.delete(H):X.add(H),X})},se=()=>{requestAnimationFrame(()=>{var H;(H=b.current)==null||H.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})}),C(!1)},le=async H=>{if(F===H)try{await Wb(H),V(null)}catch(de){console.error("Failed to delete iteration:",de)}else V(H)};return y.jsxs(dA,{children:[y.jsxs(fA,{ref:b,children:[L.map((H,de)=>y.jsxs(pA,{children:[y.jsxs(hA,{children:[y.jsxs("div",{className:"title",onClick:()=>ne(H.iterationId),children:[g.has(H.iterationId)?y.jsx(vA,{}):y.jsx(xA,{}),y.jsx("span",{children:H.iterationTitle??`Iteration ${H.iterationId}`})]}),y.jsxs("span",{className:"meta",children:[H.timestampStart.toLocaleString()," - ",H.timestampEnd.toLocaleString(),y.jsx(O0,{messages:H.messages}),H.iterationId!==G&&y.jsx(mA,{onClick:()=>le(H.iterationId),title:F===H.iterationId?"Confirm deletion":"Delete iteration",children:F===H.iterationId?"🗑️ Confirm":"🗑️"})]})]}),y.jsxs(gA,{isCollapsed:g.has(H.iterationId),children:[H.conversationSummaries.length>0&&y.jsx(yA,{children:H.conversationSummaries.join(" ")}),H.messages.map((ae,X)=>y.jsxs(Pt.Fragment,{children:[ae.type===Cr.SYSTEM?y.jsx(uA,{message:ae,collapsedExecutions:p,toggleExecutionCollapse:D,visibleDataIds:d,toggleDataVisibility:ie}):y.jsx(nA,{message:ae,visibleDataIds:d,toggleDataVisibility:ie}),u!=="idle"&&t&&de===L.length-1&&X===H.messages.length-1&&y.jsx(Kg,{onSubmit:o,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u})]},ae.id)),de===L.length-1&&y.jsx(wA,{children:y.jsx(SL,{iterationId:G})})]})]},H.iterationId)),u!=="idle"&&t&&L.length>0&&L[L.length-1].messages.length===0&&y.jsx(Kg,{onSubmit:o,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u}),y.jsx("div",{ref:S})]}),j&&!N&&y.jsx(SA,{onClick:se}),y.jsx(YA,{isVisible:u!=="idle"&&!t,onInterrupt:l,onPauseResume:a,executionStatus:u})]})},CL=({onSubmit:e,onUploadClick:t,onAiServiceChange:r,onInitialActionTypeChange:o,options:l,disabled:a})=>y.jsxs(jL,{children:[y.jsx(EL,{onClick:e,disabled:a,children:"Submit"}),y.jsx(G0,{onClick:t,title:"Upload Images",children:y.jsx(dx,{})}),y.jsx(na,{value:l.aiService,onChange:r}),y.jsx(Rd,{value:l.initialActionType,onChange:u=>o(u||void 0)})]}),G0=R.button`
|
|
2396
2426
|
color: ${({theme:e})=>e.colors.buttonText};
|
|
2397
2427
|
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
2398
2428
|
border: none;
|
|
@@ -2401,7 +2431,6 @@ Error generating stack: `+x.message+`
|
|
|
2401
2431
|
font-size: 14px;
|
|
2402
2432
|
cursor: pointer;
|
|
2403
2433
|
transition: background-color 0.3s ease;
|
|
2404
|
-
margin-right: 10px;
|
|
2405
2434
|
|
|
2406
2435
|
&:hover {
|
|
2407
2436
|
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
@@ -2411,7 +2440,7 @@ Error generating stack: `+x.message+`
|
|
|
2411
2440
|
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2412
2441
|
cursor: not-allowed;
|
|
2413
2442
|
}
|
|
2414
|
-
`,
|
|
2443
|
+
`,EL=R(G0)`
|
|
2415
2444
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
2416
2445
|
color: #ffffff;
|
|
2417
2446
|
|
|
@@ -2422,11 +2451,12 @@ Error generating stack: `+x.message+`
|
|
|
2422
2451
|
&:disabled {
|
|
2423
2452
|
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2424
2453
|
}
|
|
2425
|
-
`,
|
|
2454
|
+
`,jL=R.div`
|
|
2426
2455
|
display: flex;
|
|
2427
2456
|
justify-content: flex-start;
|
|
2428
2457
|
margin-top: 10px;
|
|
2429
|
-
|
|
2458
|
+
gap: 10px;
|
|
2459
|
+
`,TL=e=>{const{onSubmit:t,isExecuting:r,codegenOptions:o,onOptionsChange:l}=e,[a,u]=P.useState(""),[d,f]=P.useState([]),[p,m]=P.useState(null),g=P.useRef(null);if(r)return null;const v=()=>{(a.trim()||d.length>0)&&(t(a.trim(),d),u(""),f([]))},w=N=>{f(N)},S=()=>{var N;(N=g.current)==null||N.click()},b=N=>{const A=[...d,N];w(A)},j=N=>{l({...o,aiService:N})},C=N=>{l({...o,initialActionType:N})};return y.jsxs(RL,{children:[y.jsx(IL,{children:y.jsx(V0,{value:a,onChange:u,placeholder:"Enter your input here",onImagePaste:b})}),y.jsx(H0,{images:d,onImagesChange:w,error:p,setError:m,fileInputRef:g}),y.jsx(CL,{onSubmit:v,onUploadClick:S,onAiServiceChange:j,onInitialActionTypeChange:C,options:o,disabled:!a.trim()&&d.length===0})]})},RL=R.div`
|
|
2430
2460
|
display: flex;
|
|
2431
2461
|
flex-direction: column;
|
|
2432
2462
|
background-color: ${e=>e.theme.colors.background};
|
|
@@ -2434,10 +2464,10 @@ Error generating stack: `+x.message+`
|
|
|
2434
2464
|
padding: 16px;
|
|
2435
2465
|
width: 100%;
|
|
2436
2466
|
box-sizing: border-box;
|
|
2437
|
-
`,
|
|
2467
|
+
`,IL=R.div`
|
|
2438
2468
|
margin-bottom: 16px;
|
|
2439
2469
|
width: 100%;
|
|
2440
|
-
`,
|
|
2470
|
+
`,NL=({theme:e,toggleTheme:t})=>y.jsx(jr,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),Xg=Zk`
|
|
2441
2471
|
body {
|
|
2442
2472
|
color: ${({theme:e})=>e.colors.text};
|
|
2443
2473
|
font-family: Arial, sans-serif;
|
|
@@ -2462,7 +2492,7 @@ Error generating stack: `+x.message+`
|
|
|
2462
2492
|
background-attachment: fixed;
|
|
2463
2493
|
z-index: -1;
|
|
2464
2494
|
}
|
|
2465
|
-
`;var Xo=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Xo||{});const
|
|
2495
|
+
`;var Xo=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Xo||{});const PL=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class AL{constructor(){Oo(this,"context");Oo(this,"bufferCache",new Map);Oo(this,"initialized",!1);Oo(this,"currentSources",[]);const t=window.AudioContext||window.webkitAudioContext;this.context=new t,this.initSounds()}async initSounds(){if(!this.initialized)try{const t=await this.loadAudioBuffer(PL.href);this.bufferCache.set("bark",t),this.initialized=!0}catch(t){console.error("Failed to initialize sounds:",t)}}async loadAudioBuffer(t){const o=await(await fetch(t)).arrayBuffer();return await this.context.decodeAudioData(o)}async play(t,r=.5){this.initialized||await this.initSounds();const o=this.bufferCache.get(t);if(!o){console.warn(`Sound "${t}" not found in cache`);return}try{this.context.state==="suspended"&&await this.context.resume();const l=this.context.createBufferSource();l.buffer=o;const a=this.context.createGain();a.gain.value=Math.max(0,Math.min(1,r)),l.connect(a),a.connect(this.context.destination),l.start(0),this.currentSources.push(l)}catch(l){console.error(`Failed to play sound "${t}":`,l)}}async playBark(t=.5){return this.play("bark",t)}stop(){this.currentSources.forEach(t=>t.stop())}dispose(){this.context.close(),this.bufferCache.clear(),this.initialized=!1}}const Wc=new AL,LL=({messages:e,muteNotifications:t=!1})=>{const r=P.useRef(e.length),o=P.useRef(document.hasFocus()),l=P.useRef(document.title),[a,u]=P.useState(0),d=window!==window.parent;P.useEffect(()=>(l.current=document.title,()=>{document.title=l.current}),[]);const f=p=>{if(d&&window.parent){const m={...p,source:"genaicode",origin:window.location.origin};window.parent.postMessage(m,"*")}};return P.useEffect(()=>{const p=()=>{const m=document.hasFocus()&&document.visibilityState==="visible";o.current=m,d?f({type:m?Xo.FOCUS:Xo.BLUR,payload:{isFocused:m,timestamp:Date.now()}}):m&&(document.title=l.current),m&&(u(0),document.title=l.current,Wc.stop())};return window.addEventListener("focus",p),window.addEventListener("blur",p),document.addEventListener("visibilitychange",p,!1),d&&p(),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",p),document.removeEventListener("visibilitychange",p,!1)}},[]),P.useEffect(()=>{if(!d)return;const p=m=>{if(m.source===window.parent)try{const{type:g,source:v}=m.data;if(v!=="genaicode")return;switch(g){case Xo.RESET_NOTIFICATIONS:u(0),Wc.stop();break}}catch(g){console.warn("Error handling notification message:",g)}};return window.addEventListener("message",p),()=>window.removeEventListener("message",p)},[]),P.useEffect(()=>{if(e.length>r.current){const p=e.length-r.current;if(d)f({type:Xo.NEW_MESSAGES,payload:{count:p,timestamp:Date.now()}});else if(!o.current){const m=a+p;u(m),document.title=`(${m}) ${l.current}`}!o.current&&!t&&Wc.playBark(.5)}r.current=e.length},[e,a,t]),null};async function $L(e){return[]}const _L=()=>{const e=fl();if(!e)return console.warn("SuggestionGenerator used outside of ChatStateProvider"),null;const{messages:t,executionStatus:r,currentQuestion:o,setSuggestions:l}=e;return P.useEffect(()=>{var f;if(!l)return;if(r!=="executing"||!o||o.confirmation){l([]);return}const a=t.length>0?(f=t[t.length-1])==null?void 0:f.iterationId:null;if(!a){l([]);return}t.filter(p=>p.iterationId===a).flatMap(p=>p.type===Cr.SYSTEM&&"parts"in p&&Array.isArray(p.parts)?p.parts:[p]).length>0?(console.log("Attempting to generate suggestions using conversation context in SuggestionGenerator..."),$L().then(p=>{p.length>0?(console.log("Suggestions generated by SuggestionGenerator:",p),l(p)):(console.log("No suggestions generated or generation failed in SuggestionGenerator."),l([]))}).catch(p=>{console.error("Error generating suggestions in SuggestionGenerator:",p),l([])})):l([])},[r,o,t,l]),null},zL=R.div`
|
|
2466
2496
|
position: fixed;
|
|
2467
2497
|
bottom: 70px; /* Adjust as needed to not overlap input area */
|
|
2468
2498
|
right: 20px;
|
|
@@ -2477,7 +2507,7 @@ Error generating stack: `+x.message+`
|
|
|
2477
2507
|
padding: 15px;
|
|
2478
2508
|
display: flex;
|
|
2479
2509
|
flex-direction: column;
|
|
2480
|
-
`,
|
|
2510
|
+
`,DL=R.div`
|
|
2481
2511
|
display: flex;
|
|
2482
2512
|
justify-content: space-between;
|
|
2483
2513
|
align-items: center;
|
|
@@ -2490,7 +2520,7 @@ Error generating stack: `+x.message+`
|
|
|
2490
2520
|
font-size: 1rem;
|
|
2491
2521
|
color: ${({theme:e})=>e.colors.text};
|
|
2492
2522
|
}
|
|
2493
|
-
`,
|
|
2523
|
+
`,OL=R.button`
|
|
2494
2524
|
background: none;
|
|
2495
2525
|
border: none;
|
|
2496
2526
|
color: ${({theme:e})=>e.colors.text};
|
|
@@ -2502,13 +2532,13 @@ Error generating stack: `+x.message+`
|
|
|
2502
2532
|
&:hover {
|
|
2503
2533
|
color: ${({theme:e})=>e.colors.primary};
|
|
2504
2534
|
}
|
|
2505
|
-
`,
|
|
2535
|
+
`,FL=R.div`
|
|
2506
2536
|
flex-grow: 1;
|
|
2507
2537
|
/* Basic layout for nodes and edges - consider using a graph library for actual rendering */
|
|
2508
2538
|
display: flex;
|
|
2509
2539
|
flex-direction: column;
|
|
2510
2540
|
gap: 10px;
|
|
2511
|
-
`,
|
|
2541
|
+
`,ML=R.div`
|
|
2512
2542
|
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
2513
2543
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2514
2544
|
border-radius: 4px;
|
|
@@ -2531,7 +2561,7 @@ Error generating stack: `+x.message+`
|
|
|
2531
2561
|
font-size: 0.8rem;
|
|
2532
2562
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2533
2563
|
}
|
|
2534
|
-
`,
|
|
2564
|
+
`,BL=R.div`
|
|
2535
2565
|
font-size: 0.8rem;
|
|
2536
2566
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2537
2567
|
padding-left: 15px;
|
|
@@ -2543,7 +2573,7 @@ Error generating stack: `+x.message+`
|
|
|
2543
2573
|
left: 0;
|
|
2544
2574
|
color: ${({theme:e})=>e.colors.primary};
|
|
2545
2575
|
}
|
|
2546
|
-
|
|
2576
|
+
`,UL=()=>{const{conversationGraphState:e,isGraphVisualiserOpen:t,toggleGraphVisualiser:r}=fl();if(!t||!(e!=null&&e.isActive))return null;const{nodes:o=[],edges:l=[],currentNodeId:a}=e;return y.jsxs(zL,{children:[y.jsxs(DL,{children:[y.jsx("h3",{children:"Conversation Flow"}),y.jsx(OL,{onClick:r,"aria-label":"Close visualiser",children:"×"})]}),y.jsxs(FL,{children:[y.jsx("h4",{children:"Nodes:"}),o.map(u=>y.jsxs(ML,{isActive:u.id===a,children:[y.jsxs("strong",{children:["ID: ",u.id]})," (",u.actionType,")",y.jsx("p",{children:u.instruction})]},u.id)),y.jsx("h4",{children:"Edges:"}),l.map((u,d)=>y.jsxs(BL,{children:[u.sourceNode," to ",u.targetNode,": ",u.instruction]},`${u.sourceNode}-${u.targetNode}-${d}`)),a&&y.jsxs("p",{children:[y.jsx("strong",{children:"Current Node:"})," ",a]})]})]})},VL=e=>{var t;for(let r=e.length-1;r>=0;r--){const o=e[r];if(o.type===Cr.SYSTEM&&((t=o.data)!=null&&t.conversationGraphState))return o.data.conversationGraphState}return null},HL=()=>{const{messages:e,setConversationGraphState:t}=P.useContext(Qi);return P.useEffect(()=>{const r=VL(e);t(o=>JSON.stringify(o)!==JSON.stringify(r)?r:o)},[e,t]),null};R.div`
|
|
2547
2577
|
position: fixed;
|
|
2548
2578
|
bottom: 70px; /* Adjust as needed to not overlap input area */
|
|
2549
2579
|
right: 20px;
|
|
@@ -2583,15 +2613,15 @@ Error generating stack: `+x.message+`
|
|
|
2583
2613
|
&:hover {
|
|
2584
2614
|
color: ${({theme:e})=>e.colors.primary};
|
|
2585
2615
|
}
|
|
2586
|
-
`;const
|
|
2616
|
+
`;const Zg=R.div`
|
|
2587
2617
|
flex-grow: 1;
|
|
2588
2618
|
display: flex;
|
|
2589
2619
|
flex-direction: column;
|
|
2590
2620
|
gap: 10px;
|
|
2591
|
-
`,
|
|
2621
|
+
`,Id={pending:e=>e.colors.textSecondary,"in-progress":e=>e.colors.info,completed:e=>e.colors.success,failed:e=>e.colors.error,skipped:e=>e.colors.warning},qL=R.div`
|
|
2592
2622
|
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
2593
2623
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2594
|
-
border-left: 4px solid ${({state:e,theme:t})=>
|
|
2624
|
+
border-left: 4px solid ${({state:e,theme:t})=>Id[e](t)};
|
|
2595
2625
|
border-radius: 4px;
|
|
2596
2626
|
padding: 8px 12px;
|
|
2597
2627
|
font-size: 0.9rem;
|
|
@@ -2601,7 +2631,7 @@ Error generating stack: `+x.message+`
|
|
|
2601
2631
|
align-items: center;
|
|
2602
2632
|
|
|
2603
2633
|
strong {
|
|
2604
|
-
color: ${({state:e,theme:t})=>
|
|
2634
|
+
color: ${({state:e,theme:t})=>Id[e](t)};
|
|
2605
2635
|
}
|
|
2606
2636
|
|
|
2607
2637
|
p {
|
|
@@ -2609,14 +2639,14 @@ Error generating stack: `+x.message+`
|
|
|
2609
2639
|
font-size: 0.8rem;
|
|
2610
2640
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2611
2641
|
}
|
|
2612
|
-
`,
|
|
2642
|
+
`,WL=R.div`
|
|
2613
2643
|
font-weight: bold;
|
|
2614
2644
|
text-transform: capitalize;
|
|
2615
|
-
color: ${({state:e,theme:t})=>
|
|
2645
|
+
color: ${({state:e,theme:t})=>Id[e](t)};
|
|
2616
2646
|
margin-right: 10px;
|
|
2617
2647
|
flex-shrink: 0;
|
|
2618
2648
|
width: 80px; /* Align states */
|
|
2619
|
-
`,
|
|
2649
|
+
`,GL=R.div`
|
|
2620
2650
|
display: flex;
|
|
2621
2651
|
flex-direction: column;
|
|
2622
2652
|
flex-grow: 1;
|
|
@@ -2632,4 +2662,4 @@ Error generating stack: `+x.message+`
|
|
|
2632
2662
|
margin-top: 5px;
|
|
2633
2663
|
padding-left: 10px;
|
|
2634
2664
|
border-left: 2px solid ${({theme:e})=>e.colors.border};
|
|
2635
|
-
`;const
|
|
2665
|
+
`;const JL=({executionPlan:e,planUpdates:t})=>{if(!e||!e.length)return y.jsx(Zg,{children:"No execution plan available."});const r=JSON.parse(JSON.stringify(e));for(const o of t){const l=r.find(a=>a.id===o.id);l&&(l.statusUpdate=o.statusUpdate,l.state=o.state)}return y.jsx(Zg,{children:r.map(o=>y.jsxs(qL,{state:o.state??"pending",children:[y.jsx(WL,{state:o.state??"pending",children:o.state??"pending"}),y.jsxs(GL,{children:[y.jsxs("strong",{children:["ID: ",o.id]}),y.jsx("p",{children:o.description}),o.statusUpdate&&y.jsxs("small",{children:["Update: ",o.statusUpdate]})]})]},o.id))})},KL=5e3,QL=16,YL=({events:e,onClear:t})=>{const r=P.useRef(null),[o,l]=P.useState(!1),[a,u]=P.useState(new Set),[d,f]=P.useState("logs"),{toggleTerminal:p}=fl(),m=P.useRef(!0),{executionPlan:g,planUpdates:v}=P.useMemo(()=>{var A;const j=[...e].reverse().find(F=>{var V;return(V=F.data)==null?void 0:V.plan}),C=(A=j==null?void 0:j.data)==null?void 0:A.plan,N=e.filter(F=>{var V,L,G;return((V=F.data)==null?void 0:V.statusUpdate)&&((L=F.data)==null?void 0:L.id)&&((G=F.data)==null?void 0:G.state)}).map(F=>F.data);return{executionPlan:C,planUpdates:N}},[e]);P.useLayoutEffect(()=>{r.current&&d==="logs"&&m.current&&setTimeout(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},100)},[e,d]);const w=async()=>{try{await Qy()}catch(j){console.error("Failed to interrupt command:",j)}},S=e.length>KL?e.slice(-5e3):e,b=()=>{r.current&&(m.current=r.current.scrollHeight-r.current.scrollTop<=r.current.clientHeight+QL)};return y.jsxs(nL,{children:[y.jsxs(rL,{children:[y.jsx("h4",{children:"Container Task"}),y.jsxs(lL,{children:[y.jsx(Yg,{active:d==="logs",onClick:()=>f("logs"),children:"Logs"}),y.jsx(Yg,{active:d==="plan",onClick:()=>f("plan"),disabled:!g,children:"Execution Plan"})]}),y.jsxs(oL,{children:[d==="logs"&&y.jsxs(y.Fragment,{children:[y.jsx(qc,{active:!1,onClick:t,"aria-label":"Clear terminal log",children:"Clear"}),y.jsx(qc,{active:o,onClick:()=>l(!o),"aria-label":o?"Hide all payloads":"Show all payloads",children:"Payloads"})]}),y.jsx(qc,{active:!1,onClick:w,"aria-label":"Interrupt current container command",children:"Interrupt"}),y.jsx(iL,{onClick:p,"aria-label":"Close terminal",children:"×"})]})]}),y.jsx(sL,{ref:r,onScroll:b,children:d==="logs"?S.map(j=>{const C=!!(j.data&&Object.keys(j.data).length>0),N=o||a.has(j.id);let A="";if(C)try{A=JSON.stringify(j.data,null,2)}catch{A=String(j.data)}return y.jsxs(Pt.Fragment,{children:[y.jsxs(aL,{children:[y.jsx("span",{className:"timestamp",children:new Date(j.timestamp).toLocaleTimeString()}),y.jsx(uL,{level:j.level,children:j.level}),y.jsxs("span",{className:"source",children:["[",j.source,"]"]}),y.jsxs(cL,{children:[j.text,C&&y.jsx(dL,{onClick:()=>{const F=new Set(a);N?F.delete(j.id):F.add(j.id),u(F)},children:N?"Hide payload":"Show payload"})]})]}),C&&N&&y.jsx(fL,{children:y.jsx(pL,{children:A})})]},j.id)}):y.jsx(JL,{executionPlan:g,planUpdates:v})})]})},XL=()=>{const{messages:e,executionStatus:t,currentQuestion:r,theme:o,usage:l,codegenOptions:a,rcConfig:u,toggleTheme:d,setCodegenOptions:f,handlePauseExecution:p,handleResumeExecution:m,isTerminalOpen:g,terminalEvents:v,clearTerminalEvents:w}=P.useContext(Qi),{handleExecute:S,handleQuestionSubmit:b,handleInterrupt:j}=BE({codegenOptions:a}),C=t!=="idle"&&e.length>0?e[e.length-1].iterationId:null,N=C&&v[C]||[],A=()=>{t==="paused"?m():p()};if(!l||!a)return y.jsxs(Cm,{theme:o==="light"?Tm:Rm,children:[y.jsx(Xg,{}),y.jsx("div",{children:"Loading..."})," "]});const F=t!=="idle";return y.jsxs(Cm,{theme:o==="light"?Tm:Rm,children:[y.jsx(Xg,{}),y.jsx(RE,{themeToggle:y.jsx(NL,{theme:o,toggleTheme:d}),toggleTheme:d,chatInterface:y.jsx(bL,{messages:e,currentQuestion:r,codegenOptions:a,onQuestionSubmit:b,onInterrupt:j,onPauseResume:A,executionStatus:t}),inputArea:!F&&y.jsx(TL,{onSubmit:S,isExecuting:F,onInterrupt:j,codegenOptions:a,onOptionsChange:f}),usage:l}),g&&C&&y.jsx(YL,{events:N,onClear:()=>w(C)}),y.jsx(Yb,{currentService:a.aiService}),y.jsx(fC,{}),y.jsx(JC,{}),y.jsx(nE,{rcConfig:u}),y.jsx(xE,{options:a,onOptionsChange:f}),y.jsx(LL,{messages:e,muteNotifications:a.muteNotifications}),y.jsx(UL,{}),y.jsx(HL,{})]})};function ZL(){return y.jsxs(SE,{children:[y.jsx(_L,{})," ",y.jsx(XL,{})," "]})}const e$=document.getElementById("root"),t$=Qw.createRoot(e$);t$.render(Pt.createElement(ZL,null));
|