genaicode 0.13.1 → 0.13.2

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.
@@ -1,4 +1,4 @@
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={};/**
1
+ var qw=Object.defineProperty;var Ww=(e,t,r)=>t in e?qw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oo=(e,t,r)=>Ww(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 hc={exports:{}},Ae={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var Uw=Object.defineProperty;var Vw=(e,t,r)=>t in e?Uw(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 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={};/**
9
+ */var om;function Gw(){if(om)return Ae;om=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 lm;function Pd(){return lm||(lm=1,hc.exports=Gw()),hc.exports}var P=Pd();const Pt=Nd(P);var Ts={},mc={exports:{}},qt={},gc={exports:{}},yc={};/**
10
10
  * @license React
11
11
  * scheduler.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var Uw=Object.defineProperty;var Vw=(e,t,r)=>t in e?Uw(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 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}/**
17
+ */var sm;function Jw(){return sm||(sm=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}}}}(yc)),yc}var am;function Kw(){return am||(am=1,gc.exports=Jw()),gc.exports}/**
18
18
  * @license React
19
19
  * react-dom.production.min.js
20
20
  *
@@ -22,14 +22,14 @@ var Uw=Object.defineProperty;var Vw=(e,t,r)=>t in e?Uw(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 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`
25
+ */var um;function Qw(){if(um)return qt;um=1;var e=Pd(),t=Kw();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
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
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&&lt!==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=`
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 xl(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 vl(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 Ia(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Na=null,li=null,si=null;function Sf(n){if(n=bo(n)){if(typeof Na!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Ul(i),Na(n.stateNode,n.type,i))}}function bf(n){li?si?si.push(n):si=[n]:li=n}function Cf(){if(li){var n=li,i=si;if(si=li=null,Sf(n),i)for(n=0;n<i.length;n++)Sf(i[n])}}function Ef(n,i){return n(i)}function jf(){}var Pa=!1;function Tf(n,i,s){if(Pa)return n(i,s);Pa=!0;try{return Ef(n,i,s)}finally{Pa=!1,(li!==null||si!==null)&&(jf(),Cf())}}function to(n,i){var s=n.stateNode;if(s===null)return null;var c=Ul(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 Aa=!1;if(d)try{var no={};Object.defineProperty(no,"passive",{get:function(){Aa=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Aa=!1}function Y0(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,wl=null,kl=!1,La=null,X0={onError:function(n){ro=!0,wl=n}};function Z0(n,i,s,c,h,x,k,I,$){ro=!1,wl=null,Y0.apply(X0,arguments)}function e1(n,i,s,c,h,x,k,I,$){if(Z0.apply(this,arguments),ro){if(ro){var B=wl;ro=!1,wl=null}else throw Error(r(198));kl||(kl=!0,La=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 Rf(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 If(n){if(Pr(n)!==n)throw Error(r(188))}function t1(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 If(h),n;if(x===c)return If(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 Nf(n){return n=t1(n),n!==null?Pf(n):null}function Pf(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Pf(n);if(i!==null)return i;n=n.sibling}return null}var Af=t.unstable_scheduleCallback,Lf=t.unstable_cancelCallback,n1=t.unstable_shouldYield,r1=t.unstable_requestPaint,ot=t.unstable_now,i1=t.unstable_getCurrentPriorityLevel,$a=t.unstable_ImmediatePriority,$f=t.unstable_UserBlockingPriority,Sl=t.unstable_NormalPriority,o1=t.unstable_LowPriority,_f=t.unstable_IdlePriority,bl=null,Ln=null;function l1(n){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(bl,n,void 0,(n.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:u1,s1=Math.log,a1=Math.LN2;function u1(n){return n>>>=0,n===0?32:31-(s1(n)/a1|0)|0}var Cl=64,El=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 jl(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 c1(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 d1(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]=c1(I,i)):$<=i&&(n.expiredLanes|=I),x&=~I}}function _a(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function zf(){var n=Cl;return Cl<<=1,(Cl&4194240)===0&&(Cl=64),n}function za(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 f1(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 Da(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 Df(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Of,Oa,Ff,Mf,Bf,Fa=!1,Tl=[],tr=null,nr=null,rr=null,lo=new Map,so=new Map,ir=[],p1="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 Uf(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&&Oa(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function h1(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 Vf(n){var i=Ar(n.target);if(i!==null){var s=Pr(i);if(s!==null){if(i=s.tag,i===13){if(i=Rf(s),i!==null){n.blockedOn=i,Bf(n.priority,function(){Ff(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 Rl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Ba(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&&Oa(i),n.blockedOn=s,!1;i.shift()}return!0}function Hf(n,i,s){Rl(n)&&s.delete(i)}function m1(){Fa=!1,tr!==null&&Rl(tr)&&(tr=null),nr!==null&&Rl(nr)&&(nr=null),rr!==null&&Rl(rr)&&(rr=null),lo.forEach(Hf),so.forEach(Hf)}function uo(n,i){n.blockedOn===i&&(n.blockedOn=null,Fa||(Fa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,m1)))}function co(n){function i(h){return uo(h,n)}if(0<Tl.length){uo(Tl[0],n);for(var s=1;s<Tl.length;s++){var c=Tl[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);)Vf(s),s.blockedOn===null&&ir.shift()}var ai=F.ReactCurrentBatchConfig,Il=!0;function g1(n,i,s,c){var h=Be,x=ai.transition;ai.transition=null;try{Be=1,Ma(n,i,s,c)}finally{Be=h,ai.transition=x}}function y1(n,i,s,c){var h=Be,x=ai.transition;ai.transition=null;try{Be=4,Ma(n,i,s,c)}finally{Be=h,ai.transition=x}}function Ma(n,i,s,c){if(Il){var h=Ba(n,i,s,c);if(h===null)iu(n,i,c,Nl,s),Uf(n,c);else if(h1(h,n,i,s,c))c.stopPropagation();else if(Uf(n,c),i&4&&-1<p1.indexOf(n)){for(;h!==null;){var x=bo(h);if(x!==null&&Of(x),x=Ba(n,i,s,c),x===null&&iu(n,i,c,Nl,s),x===h)break;h=x}h!==null&&c.stopPropagation()}else iu(n,i,c,null,s)}}var Nl=null;function Ba(n,i,s,c){if(Nl=null,n=Ia(c),n=Ar(n),n!==null)if(i=Pr(n),i===null)n=null;else if(s=i.tag,s===13){if(n=Rf(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 qf(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(i1()){case $a:return 1;case $f:return 4;case Sl:case o1:return 16;case _f:return 536870912;default:return 16}default:return 16}}var or=null,Ua=null,Pl=null;function Wf(){if(Pl)return Pl;var n,i=Ua,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 Pl=h.slice(n,1<c?1-c:void 0)}function Al(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 Ll(){return!0}function Gf(){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)?Ll:Gf,this.isPropagationStopped=Gf,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=Ll)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),i}var ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Va=Yt(ui),fo=E({},ui,{view:0,detail:0}),x1=Yt(fo),Ha,qa,po,$l=E({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ga,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"?(Ha=n.screenX-po.screenX,qa=n.screenY-po.screenY):qa=Ha=0,po=n),Ha)},movementY:function(n){return"movementY"in n?n.movementY:qa}}),Jf=Yt($l),v1=E({},$l,{dataTransfer:0}),w1=Yt(v1),k1=E({},fo,{relatedTarget:0}),Wa=Yt(k1),S1=E({},ui,{animationName:0,elapsedTime:0,pseudoElement:0}),b1=Yt(S1),C1=E({},ui,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),E1=Yt(C1),j1=E({},ui,{data:0}),Kf=Yt(j1),T1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R1={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"},I1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N1(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=I1[n])?!!i[n]:!1}function Ga(){return N1}var P1=E({},fo,{key:function(n){if(n.key){var i=T1[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Al(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?R1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ga,charCode:function(n){return n.type==="keypress"?Al(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Al(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),A1=Yt(P1),L1=E({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=Yt(L1),$1=E({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ga}),_1=Yt($1),z1=E({},ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),D1=Yt(z1),O1=E({},$l,{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}),F1=Yt(O1),M1=[9,13,27,32],Ja=d&&"CompositionEvent"in window,ho=null;d&&"documentMode"in document&&(ho=document.documentMode);var B1=d&&"TextEvent"in window&&!ho,Yf=d&&(!Ja||ho&&8<ho&&11>=ho),Xf=" ",Zf=!1;function ep(n,i){switch(n){case"keyup":return M1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ci=!1;function U1(n,i){switch(n){case"compositionend":return tp(i);case"keypress":return i.which!==32?null:(Zf=!0,Xf);case"textInput":return n=i.data,n===Xf&&Zf?null:n;default:return null}}function V1(n,i){if(ci)return n==="compositionend"||!Ja&&ep(n,i)?(n=Wf(),Pl=Ua=or=null,ci=!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 Yf&&i.locale!=="ko"?null:i.data;default:return null}}var H1={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 np(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!H1[n.type]:i==="textarea"}function rp(n,i,s,c){bf(c),i=Fl(i,"onChange"),0<i.length&&(s=new Va("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var mo=null,go=null;function q1(n){kp(n,0)}function _l(n){var i=mi(n);if(Ne(i))return n}function W1(n,i){if(n==="change")return i}var ip=!1;if(d){var Ka;if(d){var Qa="oninput"in document;if(!Qa){var op=document.createElement("div");op.setAttribute("oninput","return;"),Qa=typeof op.oninput=="function"}Ka=Qa}else Ka=!1;ip=Ka&&(!document.documentMode||9<document.documentMode)}function lp(){mo&&(mo.detachEvent("onpropertychange",sp),go=mo=null)}function sp(n){if(n.propertyName==="value"&&_l(go)){var i=[];rp(i,go,n,Ia(n)),Tf(q1,i)}}function G1(n,i,s){n==="focusin"?(lp(),mo=i,go=s,mo.attachEvent("onpropertychange",sp)):n==="focusout"&&lp()}function J1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return _l(go)}function K1(n,i){if(n==="click")return _l(i)}function Q1(n,i){if(n==="input"||n==="change")return _l(i)}function Y1(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var kn=typeof Object.is=="function"?Object.is:Y1;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 ap(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function up(n,i){var s=ap(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=ap(s)}}function cp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?cp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function dp(){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 Ya(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 X1(n){var i=dp(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&cp(s.ownerDocument.documentElement,s)){if(c!==null&&Ya(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=up(s,x);var k=up(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 Z1=d&&"documentMode"in document&&11>=document.documentMode,di=null,Xa=null,xo=null,Za=!1;function fp(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Za||di==null||di!==$t(c)||(c=di,"selectionStart"in c&&Ya(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=Fl(Xa,"onSelect"),0<c.length&&(i=new Va("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=di)))}function zl(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var fi={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},eu={},pp={};d&&(pp=document.createElement("div").style,"AnimationEvent"in window||(delete fi.animationend.animation,delete fi.animationiteration.animation,delete fi.animationstart.animation),"TransitionEvent"in window||delete fi.transitionend.transition);function Dl(n){if(eu[n])return eu[n];if(!fi[n])return n;var i=fi[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in pp)return eu[n]=i[s];return n}var hp=Dl("animationend"),mp=Dl("animationiteration"),gp=Dl("animationstart"),yp=Dl("transitionend"),xp=new Map,vp="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){xp.set(n,i),a(i,[n])}for(var tu=0;tu<vp.length;tu++){var nu=vp[tu],ew=nu.toLowerCase(),tw=nu[0].toUpperCase()+nu.slice(1);lr(ew,"on"+tw)}lr(hp,"onAnimationEnd"),lr(mp,"onAnimationIteration"),lr(gp,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(yp,"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(" "),nw=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function wp(n,i,s){var c=n.type||"unknown-event";n.currentTarget=s,e1(c,i,void 0,n),n.currentTarget=null}function kp(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;wp(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;wp(h,I,B),x=$}}}if(kl)throw n=La,kl=!1,La=null,n}function Je(n,i){var s=i[cu];s===void 0&&(s=i[cu]=new Set);var c=n+"__bubble";s.has(c)||(Sp(i,n,2,!1),s.add(c))}function ru(n,i,s){var c=0;i&&(c|=4),Sp(s,n,c,i)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function wo(n){if(!n[Ol]){n[Ol]=!0,o.forEach(function(s){s!=="selectionchange"&&(nw.has(s)||ru(s,!1,n),ru(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ol]||(i[Ol]=!0,ru("selectionchange",!1,i))}}function Sp(n,i,s,c){switch(qf(i)){case 1:var h=g1;break;case 4:h=y1;break;default:h=Ma}s=h.bind(null,i,s,n),h=void 0,!Aa||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 iu(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}Tf(function(){var B=x,Y=Ia(s),Z=[];e:{var Q=xp.get(n);if(Q!==void 0){var ce=Va,pe=n;switch(n){case"keypress":if(Al(s)===0)break e;case"keydown":case"keyup":ce=A1;break;case"focusin":pe="focus",ce=Wa;break;case"focusout":pe="blur",ce=Wa;break;case"beforeblur":case"afterblur":ce=Wa;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=Jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=w1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=_1;break;case hp:case mp:case gp:ce=b1;break;case yp:ce=D1;break;case"scroll":ce=x1;break;case"wheel":ce=F1;break;case"copy":case"cut":case"paste":ce=E1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=Qf}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=Jf,te="onMouseLeave",O="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(he=Qf,te="onPointerLeave",O="onPointerEnter",z="pointer"),lt=ce==null?Q:mi(ce),M=pe==null?Q:mi(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=pi(M))z++;for(M=0,te=O;te;te=pi(te))M++;for(;0<z-M;)he=pi(he),z--;for(;0<M-z;)O=pi(O),M--;for(;z--;){if(he===O||O!==null&&he===O.alternate)break t;he=pi(he),O=pi(O)}he=null}else he=null;ce!==null&&bp(Z,Q,ce,he,!1),pe!==null&&lt!==null&&bp(Z,lt,pe,he,!0)}}e:{if(Q=B?mi(B):window,ce=Q.nodeName&&Q.nodeName.toLowerCase(),ce==="select"||ce==="input"&&Q.type==="file")var ge=W1;else if(np(Q))if(ip)ge=Q1;else{ge=J1;var xe=G1}else(ce=Q.nodeName)&&ce.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ge=K1);if(ge&&(ge=ge(n,B))){rp(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?mi(B):window,n){case"focusin":(np(xe)||xe.contentEditable==="true")&&(di=xe,Xa=B,xo=null);break;case"focusout":xo=Xa=di=null;break;case"mousedown":Za=!0;break;case"contextmenu":case"mouseup":case"dragend":Za=!1,fp(Z,s,Y);break;case"selectionchange":if(Z1)break;case"keydown":case"keyup":fp(Z,s,Y)}var ve;if(Ja)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 ci?ep(n,s)&&(Ce="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(Yf&&s.locale!=="ko"&&(ci||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&ci&&(ve=Wf()):(or=Y,Ua="value"in or?or.value:or.textContent,ci=!0)),xe=Fl(B,Ce),0<xe.length&&(Ce=new Kf(Ce,n,null,s,Y),Z.push({event:Ce,listeners:xe}),ve?Ce.data=ve:(ve=tp(s),ve!==null&&(Ce.data=ve)))),(ve=B1?U1(n,s):V1(n,s))&&(B=Fl(B,"onBeforeInput"),0<B.length&&(Y=new Kf("onBeforeInput","beforeinput",null,s,Y),Z.push({event:Y,listeners:B}),Y.data=ve))}kp(Z,i)})}function ko(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Fl(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 pi(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function bp(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 rw=/\r\n?/g,iw=/\u0000|\uFFFD/g;function Cp(n){return(typeof n=="string"?n:""+n).replace(rw,`
30
+ `).replace(iw,"")}function Ml(n,i,s){if(i=Cp(i),Cp(n)!==i&&s)throw Error(r(425))}function Bl(){}var ou=null,lu=null;function su(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 au=typeof setTimeout=="function"?setTimeout:void 0,ow=typeof clearTimeout=="function"?clearTimeout:void 0,Ep=typeof Promise=="function"?Promise:void 0,lw=typeof queueMicrotask=="function"?queueMicrotask:typeof Ep<"u"?function(n){return Ep.resolve(null).then(n).catch(sw)}:au;function sw(n){setTimeout(function(){throw n})}function uu(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 jp(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 hi=Math.random().toString(36).slice(2),$n="__reactFiber$"+hi,So="__reactProps$"+hi,Hn="__reactContainer$"+hi,cu="__reactEvents$"+hi,aw="__reactListeners$"+hi,uw="__reactHandles$"+hi;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=jp(n);n!==null;){if(s=n[$n])return s;n=jp(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 mi(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Ul(n){return n[So]||null}var du=[],gi=-1;function ar(n){return{current:n}}function Ke(n){0>gi||(n.current=du[gi],du[gi]=null,gi--)}function qe(n,i){gi++,du[gi]=n.current,n.current=i}var ur={},jt=ar(ur),Mt=ar(!1),Lr=ur;function yi(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 Vl(){Ke(Mt),Ke(jt)}function Tp(n,i,s){if(jt.current!==ur)throw Error(r(168));qe(jt,i),qe(Mt,s)}function Rp(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 Hl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ur,Lr=jt.current,qe(jt,n),qe(Mt,Mt.current),!0}function Ip(n,i,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=Rp(n,i,Lr),c.__reactInternalMemoizedMergedChildContext=n,Ke(Mt),Ke(jt),qe(jt,n)):Ke(Mt),qe(Mt,s)}var qn=null,ql=!1,fu=!1;function Np(n){qn===null?qn=[n]:qn.push(n)}function cw(n){ql=!0,Np(n)}function cr(){if(!fu&&qn!==null){fu=!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,ql=!1}catch(h){throw qn!==null&&(qn=qn.slice(n+1)),Af($a,cr),h}finally{Be=i,fu=!1}}return null}var xi=[],vi=0,Wl=null,Gl=0,dn=[],fn=0,$r=null,Wn=1,Gn="";function _r(n,i){xi[vi++]=Gl,xi[vi++]=Wl,Wl=n,Gl=i}function Pp(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 pu(n){n.return!==null&&(_r(n,1),Pp(n,1,0))}function hu(n){for(;n===Wl;)Wl=xi[--vi],xi[vi]=null,Gl=xi[--vi],xi[vi]=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 Ap(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 Lp(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 mu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function gu(n){if(Xe){var i=Zt;if(i){var s=i;if(!Lp(n,i)){if(mu(n))throw Error(r(418));i=sr(s.nextSibling);var c=Xt;i&&Lp(n,i)?Ap(c,s):(n.flags=n.flags&-4097|2,Xe=!1,Xt=n)}}else{if(mu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,Xt=n}}}function $p(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Xt=n}function Jl(n){if(n!==Xt)return!1;if(!Xe)return $p(n),Xe=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!su(n.type,n.memoizedProps)),i&&(i=Zt)){if(mu(n))throw _p(),Error(r(418));for(;i;)Ap(n,i),i=sr(i.nextSibling)}if($p(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 wi(){Zt=Xt=null,Xe=!1}function yu(n){Sn===null?Sn=[n]:Sn.push(n)}var dw=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 Kl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function zp(n){var i=n._init;return i(n._payload)}function Dp(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=ac(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&&zp(ge)===z.type)?(te=h(z,M.props),te.ref=Co(O,z,M),te.return=O,te):(te=vs(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=uc(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=ac(""+z,O.mode,M),z.return=O,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case V:return M=vs(z.type,z.key,z.props,null,O.mode,M),M.ref=Co(O,null,z),M.return=O,M;case L:return z=uc(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;Kl(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);Kl(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);Kl(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(Hw){return i(O,Hw)}),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&&zp(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=vs(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=uc(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);Kl(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=ac(M,O.mode,te),z.return=O,O=z),k(O)):s(O,z)}return lt}var ki=Dp(!0),Op=Dp(!1),Ql=ar(null),Yl=null,Si=null,xu=null;function vu(){xu=Si=Yl=null}function wu(n){var i=Ql.current;Ke(Ql),n._currentValue=i}function ku(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 bi(n,i){Yl=n,xu=Si=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(xu!==n)if(n={context:n,memoizedValue:i,next:null},Si===null){if(Yl===null)throw Error(r(308));Si=n,Yl.dependencies={lanes:0,firstContext:n}}else Si=Si.next=n;return i}var zr=null;function Su(n){zr===null?zr=[n]:zr.push(n)}function Fp(n,i,s,c){var h=i.interleaved;return h===null?(s.next=s,Su(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 bu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mp(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,Su(c)):(i.next=h.next,h.next=i),c.interleaved=i,Jn(n,s)}function Xl(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,Da(n,s)}}function Bp(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 Zl(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 Up(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 Cu(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 Ci(){Ke(_n),Ke(jo),Ke(To)}function Vp(n){Dr(To.current);var i=Dr(_n.current),s=oe(i,n.type);i!==s&&(qe(jo,n),qe(_n,s))}function Eu(n){jo.current===n&&(Ke(_n),Ke(jo))}var et=ar(0);function es(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 ju=[];function Tu(){for(var n=0;n<ju.length;n++)ju[n]._workInProgressVersionPrimary=null;ju.length=0}var ts=F.ReactCurrentDispatcher,Ru=F.ReactCurrentBatchConfig,Or=0,tt=null,dt=null,pt=null,ns=!1,Ro=!1,Io=0,fw=0;function Tt(){throw Error(r(321))}function Iu(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 Nu(n,i,s,c,h,x){if(Or=x,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ts.current=n===null||n.memoizedState===null?gw:yw,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,ts.current=xw,n=s(c,h)}while(Ro)}if(ts.current=os,i=dt!==null&&dt.next!==null,Or=0,pt=dt=tt=null,ns=!1,i)throw Error(r(300));return n}function Pu(){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 Au(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 Lu(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 Hp(){}function qp(n,i){var s=tt,c=hn(),h=i(),x=!kn(c.memoizedState,h);if(x&&(c.memoizedState=h,Ut=!0),c=c.queue,$u(Jp.bind(null,s,c,n),[n]),c.getSnapshot!==i||x||pt!==null&&pt.memoizedState.tag&1){if(s.flags|=2048,Po(9,Gp.bind(null,s,c,h,i),void 0,null),ht===null)throw Error(r(349));(Or&30)!==0||Wp(s,i,h)}return h}function Wp(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 Gp(n,i,s,c){i.value=s,i.getSnapshot=c,Kp(i)&&Qp(n)}function Jp(n,i,s){return s(function(){Kp(i)&&Qp(n)})}function Kp(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!kn(n,s)}catch{return!0}}function Qp(n){var i=Jn(n,1);i!==null&&jn(i,n,1,-1)}function Yp(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=mw.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 Xp(){return hn().memoizedState}function rs(n,i,s,c){var h=zn();tt.flags|=n,h.memoizedState=Po(1|i,s,void 0,c===void 0?null:c)}function is(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&&Iu(c,k.deps)){h.memoizedState=Po(i,s,x,c);return}}tt.flags|=n,h.memoizedState=Po(1|i,s,x,c)}function Zp(n,i){return rs(8390656,8,n,i)}function $u(n,i){return is(2048,8,n,i)}function eh(n,i){return is(4,2,n,i)}function th(n,i){return is(4,4,n,i)}function nh(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 rh(n,i,s){return s=s!=null?s.concat([n]):null,is(4,4,nh.bind(null,i,n),s)}function _u(){}function ih(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Iu(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function oh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Iu(i,c[1])?c[0]:(n=n(),s.memoizedState=[n,i],n)}function lh(n,i,s){return(Or&21)===0?(n.baseState&&(n.baseState=!1,Ut=!0),n.memoizedState=s):(kn(s,i)||(s=zf(),tt.lanes|=s,Fr|=s,n.baseState=!0),i)}function pw(n,i){var s=Be;Be=s!==0&&4>s?s:4,n(!0);var c=Ru.transition;Ru.transition={};try{n(!1),i()}finally{Be=s,Ru.transition=c}}function sh(){return hn().memoizedState}function hw(n,i,s){var c=gr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},ah(n))uh(i,s);else if(s=Fp(n,i,s,c),s!==null){var h=Dt();jn(s,n,c,h),ch(s,i,c)}}function mw(n,i,s){var c=gr(n),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(ah(n))uh(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,Su(i)):(h.next=$.next,$.next=h),i.interleaved=h;return}}catch{}finally{}s=Fp(n,i,h,c),s!==null&&(h=Dt(),jn(s,n,c,h),ch(s,i,c))}}function ah(n){var i=n.alternate;return n===tt||i!==null&&i===tt}function uh(n,i){Ro=ns=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function ch(n,i,s){if((s&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Da(n,s)}}var os={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},gw={readContext:pn,useCallback:function(n,i){return zn().memoizedState=[n,i===void 0?null:i],n},useContext:pn,useEffect:Zp,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,rs(4194308,4,nh.bind(null,i,n),s)},useLayoutEffect:function(n,i){return rs(4194308,4,n,i)},useInsertionEffect:function(n,i){return rs(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=hw.bind(null,tt,n),[c.memoizedState,n]},useRef:function(n){var i=zn();return n={current:n},i.memoizedState=n},useState:Yp,useDebugValue:_u,useDeferredValue:function(n){return zn().memoizedState=n},useTransition:function(){var n=Yp(!1),i=n[0];return n=pw.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||Wp(c,i,s)}h.memoizedState=s;var x={value:s,getSnapshot:i};return h.queue=x,Zp(Jp.bind(null,c,x,n),[n]),c.flags|=2048,Po(9,Gp.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=fw++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},yw={readContext:pn,useCallback:ih,useContext:pn,useEffect:$u,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:oh,useReducer:Au,useRef:Xp,useState:function(){return Au(No)},useDebugValue:_u,useDeferredValue:function(n){var i=hn();return lh(i,dt.memoizedState,n)},useTransition:function(){var n=Au(No)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Hp,useSyncExternalStore:qp,useId:sh,unstable_isNewReconciler:!1},xw={readContext:pn,useCallback:ih,useContext:pn,useEffect:$u,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:oh,useReducer:Lu,useRef:Xp,useState:function(){return Lu(No)},useDebugValue:_u,useDeferredValue:function(n){var i=hn();return dt===null?i.memoizedState=n:lh(i,dt.memoizedState,n)},useTransition:function(){var n=Lu(No)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Hp,useSyncExternalStore:qp,useId:sh,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 zu(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 ls={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),Xl(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),Xl(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),Xl(i,n,c))}};function dh(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 fh(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)?yi(n,h):ur),i=new i(s,x),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ls,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=x),i}function ph(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&&ls.enqueueReplaceState(i,i.state,null)}function Du(n,i,s,c){var h=n.stateNode;h.props=s,h.state=n.memoizedState,h.refs={},bu(n);var x=i.contextType;typeof x=="object"&&x!==null?h.context=pn(x):(x=Bt(i)?Lr:jt.current,h.context=yi(n,x)),h.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(zu(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&&ls.enqueueReplaceState(h,h.state,null),Zl(n,s,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function Ei(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 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={};/**
32
+ `+x.stack}return{value:n,source:i,stack:h,digest:null}}function Ou(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function Fu(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var vw=typeof WeakMap=="function"?WeakMap:Map;function hh(n,i,s){s=Kn(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){ps||(ps=!0,ec=c),Fu(n,i)},s}function mh(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(){Fu(n,i)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(s.callback=function(){Fu(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 gh(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new vw;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=Lw.bind(null,n,i,s),i.then(n,n))}function yh(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 xh(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 ww=F.ReactCurrentOwner,Ut=!1;function zt(n,i,s,c){i.child=n===null?Op(i,null,s,c):ki(i,n.child,s,c)}function vh(n,i,s,c,h){s=s.render;var x=i.ref;return bi(i,h),c=Nu(n,i,s,c,x,h),s=Pu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&s&&pu(i),i.flags|=1,zt(n,i,c,h),i.child)}function wh(n,i,s,c,h){if(n===null){var x=s.type;return typeof x=="function"&&!sc(x)&&x.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=x,kh(n,i,x,c,h)):(n=vs(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 kh(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 Mu(n,i,s,c,h)}function Sh(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(Ti,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(Ti,en),en|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:s,qe(Ti,en),en|=c}else x!==null?(c=x.baseLanes|s,i.memoizedState=null):c=s,qe(Ti,en),en|=c;return zt(n,i,h,s),i.child}function bh(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Mu(n,i,s,c,h){var x=Bt(s)?Lr:jt.current;return x=yi(i,x),bi(i,h),s=Nu(n,i,s,c,x,h),c=Pu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&c&&pu(i),i.flags|=1,zt(n,i,s,h),i.child)}function Ch(n,i,s,c,h){if(Bt(s)){var x=!0;Hl(i)}else x=!1;if(bi(i,h),i.stateNode===null)as(n,i),fh(i,s,c),Du(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=yi(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)&&ph(i,k,c,B),dr=!1;var Q=i.memoizedState;k.state=Q,Zl(i,c,k,h),$=i.memoizedState,I!==c||Q!==$||Mt.current||dr?(typeof Y=="function"&&(zu(i,s,Y,c),$=i.memoizedState),(I=dr||dh(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,Mp(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,$=yi(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!==$)&&ph(i,k,c,$),dr=!1,Q=i.memoizedState,k.state=Q,Zl(i,c,k,h);var pe=i.memoizedState;I!==Z||Q!==pe||Mt.current||dr?(typeof ce=="function"&&(zu(i,s,ce,c),pe=i.memoizedState),(B=dr||dh(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 Bu(n,i,s,c,x,h)}function Bu(n,i,s,c,h,x){bh(n,i);var k=(i.flags&128)!==0;if(!c&&!k)return h&&Ip(i,s,!1),Qn(n,i,x);c=i.stateNode,ww.current=i;var I=k&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&k?(i.child=ki(i,n.child,null,x),i.child=ki(i,null,I,x)):zt(n,i,I,x),i.memoizedState=c.state,h&&Ip(i,s,!0),i.child}function Eh(n){var i=n.stateNode;i.pendingContext?Tp(n,i.pendingContext,i.pendingContext!==i.context):i.context&&Tp(n,i.context,!1),Cu(n,i.containerInfo)}function jh(n,i,s,c,h){return wi(),yu(h),i.flags|=256,zt(n,i,s,c),i.child}var Uu={dehydrated:null,treeContext:null,retryLane:0};function Vu(n){return{baseLanes:n,cachePool:null,transitions:null}}function Th(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 gu(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=ws(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=Vu(s),i.memoizedState=Uu,n):Hu(i,k));if(h=n.memoizedState,h!==null&&(I=h.dehydrated,I!==null))return kw(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?Vu(s):{baseLanes:k.baseLanes|s,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~s,i.memoizedState=Uu,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 Hu(n,i){return i=ws({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function ss(n,i,s,c){return c!==null&&yu(c),ki(i,n.child,null,s),n=Hu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function kw(n,i,s,c,h,x,k){if(s)return i.flags&256?(i.flags&=-257,c=Ou(Error(r(422))),ss(n,i,k,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(x=c.fallback,h=i.mode,c=ws({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&&ki(i,n.child,null,k),i.child.memoizedState=Vu(k),i.memoizedState=Uu,x);if((i.mode&1)===0)return ss(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=Ou(x,c,void 0),ss(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 lc(),c=Ou(Error(r(421))),ss(n,i,k,c)}return h.data==="$?"?(i.flags|=128,i.child=n.child,i=$w.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=Hu(i,c.children),i.flags|=4096,i)}function Rh(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),ku(n.return,i,s)}function qu(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 Ih(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&&Rh(n,s,i);else if(n.tag===19)Rh(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&&es(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=i.child,i.child=null):(h=s.sibling,s.sibling=null),qu(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&&es(n)===null){i.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}qu(i,!0,s,null,x);break;case"together":qu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function as(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 Sw(n,i,s){switch(i.tag){case 3:Eh(i),wi();break;case 5:Vp(i);break;case 1:Bt(i.type)&&Hl(i);break;case 4:Cu(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;qe(Ql,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?Th(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 Ih(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,Sh(n,i,s)}return Qn(n,i,s)}var Nh,Wu,Ph,Ah;Nh=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}},Wu=function(){},Ph=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=Bl)}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)}},Ah=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 bw(n,i,s){var c=i.pendingProps;switch(hu(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)&&Vl(),Rt(i),null;case 3:return c=i.stateNode,Ci(),Ke(Mt),Ke(jt),Tu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Jl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sn!==null&&(rc(Sn),Sn=null))),Wu(n,i),Rt(i),null;case 5:Eu(i);var h=Dr(To.current);if(s=i.type,n!==null&&i.stateNode!=null)Ph(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),Jl(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&&Ml(c.textContent,I,n),h=["children",I]):typeof I=="number"&&c.textContent!==""+I&&(x.suppressHydrationWarning!==!0&&Ml(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),vl(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=Bl)}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,Nh(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),vl(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=Bl)}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)Ah(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),Jl(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)_p(),wi(),i.flags|=98560,x=!1;else if(x=Jl(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 wi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Rt(i),x=!1}else Sn!==null&&(rc(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):lc())),i.updateQueue!==null&&(i.flags|=4),Rt(i),null);case 4:return Ci(),Wu(n,i),n===null&&wo(i.stateNode.containerInfo),Rt(i),null;case 10:return wu(i.type._context),Rt(i),null;case 17:return Bt(i.type)&&Vl(),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=es(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()>Ri&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304)}else{if(!c)if(n=es(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>Ri&&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 oc(),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 Cw(n,i){switch(hu(i),i.tag){case 1:return Bt(i.type)&&Vl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Ci(),Ke(Mt),Ke(jt),Tu(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Eu(i),null;case 13:if(Ke(et),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));wi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Ke(et),null;case 4:return Ci(),null;case 10:return wu(i.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var us=!1,It=!1,Ew=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ji(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 Gu(n,i,s){try{s()}catch(c){rt(n,i,c)}}var Lh=!1;function jw(n,i){if(ou=Il,n=dp(),Ya(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(lu={focusedElem:n,selectionRange:s},Il=!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=Lh,Lh=!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&&Gu(i,s,x)}h=h.next}while(h!==c)}}function cs(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 Ju(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 $h(n){var i=n.alternate;i!==null&&(n.alternate=null,$h(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[cu],delete i[aw],delete i[uw])),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 zh(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 Ku(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=Bl));else if(c!==4&&(n=n.child,n!==null))for(Ku(n,i,s),n=n.sibling;n!==null;)Ku(n,i,s),n=n.sibling}function Qu(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(Qu(n,i,s),n=n.sibling;n!==null;)Qu(n,i,s),n=n.sibling}var kt=null,Cn=!1;function pr(n,i,s){for(s=s.child;s!==null;)Dh(n,i,s),s=s.sibling}function Dh(n,i,s){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(bl,s)}catch{}switch(s.tag){case 5:It||ji(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?uu(n.parentNode,s):n.nodeType===1&&uu(n,s),co(n)):uu(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)&&Gu(s,i,k),h=h.next}while(h!==c)}pr(n,i,s);break;case 1:if(!It&&(ji(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 Oh(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new Ew),i.forEach(function(c){var h=_w.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));Dh(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;)Fh(i,n),i=i.sibling}function Fh(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),cs(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&&ji(s,s.return);break;case 5:if(En(i,n),Dn(n),c&512&&s!==null&&ji(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":xl(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||(Zu=ot())),c&4&&Oh(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:ji(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:ji(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Uh(Z);continue}}ce!==null?(ce.return=Q,fe=ce):Uh(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&&Oh(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=zh(n);Qu(n,x,h);break;case 3:case 4:var k=c.stateNode.containerInfo,I=zh(n);Ku(n,I,k);break;default:throw Error(r(161))}}catch($){rt(n,n.return,$)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Tw(n,i,s){fe=n,Mh(n)}function Mh(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||us;if(!k){var I=h.alternate,$=I!==null&&I.memoizedState!==null||It;I=us;var B=It;if(us=k,(It=$)&&!B)for(fe=h;fe!==null;)k=fe,$=k.child,k.tag===22&&k.memoizedState!==null?Vh(h):$!==null?($.return=k,fe=$):Vh(h);for(;x!==null;)fe=x,Mh(x),x=x.sibling;fe=h,us=I,It=B}Bh(n)}else(h.subtreeFlags&8772)!==0&&x!==null?(x.return=h,fe=x):Bh(n)}}function Bh(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||cs(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&&Up(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}Up(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&&Ju(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 Uh(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 Vh(n){for(;fe!==null;){var i=fe;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{cs(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{Ju(i)}catch($){rt(i,x,$)}break;case 5:var k=i.return;try{Ju(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 Rw=Math.ceil,ds=F.ReactCurrentDispatcher,Yu=F.ReactCurrentOwner,mn=F.ReactCurrentBatchConfig,Oe=0,ht=null,at=null,St=0,en=0,Ti=ar(0),ft=0,$o=null,Fr=0,fs=0,Xu=0,_o=null,Vt=null,Zu=0,Ri=1/0,Yn=null,ps=!1,ec=null,hr=null,hs=!1,mr=null,ms=0,zo=0,tc=null,gs=-1,ys=0;function Dt(){return(Oe&6)!==0?ot():gs!==-1?gs:gs=ot()}function gr(n){return(n.mode&1)===0?1:(Oe&2)!==0&&St!==0?St&-St:dw.transition!==null?(ys===0&&(ys=zf()),ys):(n=Be,n!==0||(n=window.event,n=n===void 0?16:qf(n.type)),n)}function jn(n,i,s,c){if(50<zo)throw zo=0,tc=null,Error(r(185));oo(n,s,c),((Oe&2)===0||n!==ht)&&(n===ht&&((Oe&2)===0&&(fs|=s),ft===4&&yr(n,St)),Ht(n,c),s===1&&Oe===0&&(i.mode&1)===0&&(Ri=ot()+500,ql&&cr()))}function Ht(n,i){var s=n.callbackNode;d1(n,i);var c=jl(n,n===ht?St:0);if(c===0)s!==null&&Lf(s),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(s!=null&&Lf(s),i===1)n.tag===0?cw(qh.bind(null,n)):Np(qh.bind(null,n)),lw(function(){(Oe&6)===0&&cr()}),s=null;else{switch(Df(c)){case 1:s=$a;break;case 4:s=$f;break;case 16:s=Sl;break;case 536870912:s=_f;break;default:s=Sl}s=Zh(s,Hh.bind(null,n))}n.callbackPriority=i,n.callbackNode=s}}function Hh(n,i){if(gs=-1,ys=0,(Oe&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Ii()&&n.callbackNode!==s)return null;var c=jl(n,n===ht?St:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=xs(n,c);else{i=c;var h=Oe;Oe|=2;var x=Gh();(ht!==n||St!==i)&&(Yn=null,Ri=ot()+500,Br(n,i));do try{Pw();break}catch(I){Wh(n,I)}while(!0);vu(),ds.current=x,Oe=h,at!==null?i=0:(ht=null,St=0,i=ft)}if(i!==0){if(i===2&&(h=_a(n),h!==0&&(c=h,i=nc(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&&!Iw(h)&&(i=xs(n,c),i===2&&(x=_a(n),x!==0&&(c=x,i=nc(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=Zu+500-ot(),10<i)){if(jl(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Dt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=au(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*Rw(c/1960))-c,10<c){n.timeoutHandle=au(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?Hh.bind(null,n):null}function nc(n,i){var s=_o;return n.current.memoizedState.isDehydrated&&(Br(n,i).flags|=256),n=xs(n,i),n!==2&&(i=Vt,Vt=s,i!==null&&rc(i)),n}function rc(n){Vt===null?Vt=n:Vt.push.apply(Vt,n)}function Iw(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&=~Xu,i&=~fs,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 qh(n){if((Oe&6)!==0)throw Error(r(327));Ii();var i=jl(n,0);if((i&1)===0)return Ht(n,ot()),null;var s=xs(n,i);if(n.tag!==0&&s===2){var c=_a(n);c!==0&&(i=c,s=nc(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 ic(n,i){var s=Oe;Oe|=1;try{return n(i)}finally{Oe=s,Oe===0&&(Ri=ot()+500,ql&&cr())}}function Mr(n){mr!==null&&mr.tag===0&&(Oe&6)===0&&Ii();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 oc(){en=Ti.current,Ke(Ti)}function Br(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,ow(s)),at!==null)for(s=at.return;s!==null;){var c=s;switch(hu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Vl();break;case 3:Ci(),Ke(Mt),Ke(jt),Tu();break;case 5:Eu(c);break;case 4:Ci();break;case 13:Ke(et);break;case 19:Ke(et);break;case 10:wu(c.type._context);break;case 22:case 23:oc()}s=s.return}if(ht=n,at=n=xr(n.current,null),St=en=i,ft=0,$o=null,Xu=fs=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 Wh(n,i){do{var s=at;try{if(vu(),ts.current=os,ns){for(var c=tt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}ns=!1}if(Or=0,pt=dt=tt=null,Ro=!1,Io=0,Yu.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=yh(k);if(ce!==null){ce.flags&=-257,xh(ce,k,I,x,i),ce.mode&1&&gh(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){gh(x,B,i),lc();break e}$=Error(r(426))}}else if(Xe&&I.mode&1){var lt=yh(k);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),xh(lt,k,I,x,i),yu(Ei($,I));break e}}x=$=Ei($,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=hh(x,$,i);Bp(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=mh(x,I,i);Bp(x,te);break e}}x=x.return}while(x!==null)}Kh(s)}catch(ge){i=ge,at===s&&s!==null&&(at=s=s.return);continue}break}while(!0)}function Gh(){var n=ds.current;return ds.current=os,n===null?os:n}function lc(){(ft===0||ft===3||ft===2)&&(ft=4),ht===null||(Fr&268435455)===0&&(fs&268435455)===0||yr(ht,St)}function xs(n,i){var s=Oe;Oe|=2;var c=Gh();(ht!==n||St!==i)&&(Yn=null,Br(n,i));do try{Nw();break}catch(h){Wh(n,h)}while(!0);if(vu(),Oe=s,ds.current=c,at!==null)throw Error(r(261));return ht=null,St=0,ft}function Nw(){for(;at!==null;)Jh(at)}function Pw(){for(;at!==null&&!n1();)Jh(at)}function Jh(n){var i=Xh(n.alternate,n,en);n.memoizedProps=n.pendingProps,i===null?Kh(n):at=i,Yu.current=null}function Kh(n){var i=n;do{var s=i.alternate;if(n=i.return,(i.flags&32768)===0){if(s=bw(s,i,en),s!==null){at=s;return}}else{if(s=Cw(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,Aw(n,i,s,c)}finally{mn.transition=h,Be=c}return null}function Aw(n,i,s,c){do Ii();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(f1(n,x),n===ht&&(at=ht=null,St=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||hs||(hs=!0,Zh(Sl,function(){return Ii(),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,Yu.current=null,jw(n,s),Fh(s,n),X1(lu),Il=!!ou,lu=ou=null,n.current=s,Tw(s),r1(),Oe=I,Be=k,mn.transition=x}else n.current=s;if(hs&&(hs=!1,mr=n,ms=h),x=n.pendingLanes,x===0&&(hr=null),l1(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(ps)throw ps=!1,n=ec,ec=null,n;return(ms&1)!==0&&n.tag!==0&&Ii(),x=n.pendingLanes,(x&1)!==0?n===tc?zo++:(zo=0,tc=n):zo=0,cr(),null}function Ii(){if(mr!==null){var n=Df(ms),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,ms=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($h(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:cs(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(bl,n)}catch{}c=!0}return c}finally{Be=s,mn.transition=i}}return!1}function Qh(n,i,s){i=Ei(s,i),i=hh(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)Qh(n,n,s);else for(;i!==null;){if(i.tag===3){Qh(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=Ei(s,n),n=mh(i,n,1),i=fr(i,n,1),n=Dt(),i!==null&&(oo(i,1,n),Ht(i,n));break}}i=i.return}}function Lw(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()-Zu?Br(n,0):Xu|=s),Ht(n,i)}function Yh(n,i){i===0&&((n.mode&1)===0?i=1:(i=El,El<<=1,(El&130023424)===0&&(El=4194304)));var s=Dt();n=Jn(n,i),n!==null&&(oo(n,i,s),Ht(n,s))}function $w(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Yh(n,s)}function _w(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),Yh(n,s)}var Xh;Xh=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,Sw(n,i,s);Ut=(n.flags&131072)!==0}else Ut=!1,Xe&&(i.flags&1048576)!==0&&Pp(i,Gl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;as(n,i),n=i.pendingProps;var h=yi(i,jt.current);bi(i,s),h=Nu(null,i,c,n,h,s);var x=Pu();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,Hl(i)):x=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,bu(i),h.updater=ls,i.stateNode=h,h._reactInternals=i,Du(i,c,n,s),i=Bu(null,i,c,!0,x,s)):(i.tag=0,Xe&&x&&pu(i),zt(null,i,h,s),i=i.child),i;case 16:c=i.elementType;e:{switch(as(n,i),n=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=Dw(c),n=bn(c,n),h){case 0:i=Mu(null,i,c,n,s);break e;case 1:i=Ch(null,i,c,n,s);break e;case 11:i=vh(null,i,c,n,s);break e;case 14:i=wh(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),Mu(n,i,c,h,s);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Ch(n,i,c,h,s);case 3:e:{if(Eh(i),n===null)throw Error(r(387));c=i.pendingProps,x=i.memoizedState,h=x.element,Mp(n,i),Zl(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=Ei(Error(r(423)),i),i=jh(n,i,c,s,h);break e}else if(c!==h){h=Ei(Error(r(424)),i),i=jh(n,i,c,s,h);break e}else for(Zt=sr(i.stateNode.containerInfo.firstChild),Xt=i,Xe=!0,Sn=null,s=Op(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(wi(),c===h){i=Qn(n,i,s);break e}zt(n,i,c,s)}i=i.child}return i;case 5:return Vp(i),n===null&&gu(i),c=i.type,h=i.pendingProps,x=n!==null?n.memoizedProps:null,k=h.children,su(c,h)?k=null:x!==null&&su(c,x)&&(i.flags|=32),bh(n,i),zt(n,i,k,s),i.child;case 6:return n===null&&gu(i),null;case 13:return Th(n,i,s);case 4:return Cu(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=ki(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),vh(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(Ql,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),ku(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),ku(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,bi(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),wh(n,i,c,h,s);case 15:return kh(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),as(n,i),i.tag=1,Bt(c)?(n=!0,Hl(i)):n=!1,bi(i,s),fh(i,c,h),Du(i,c,h,s),Bu(null,i,c,!0,n,s);case 19:return Ih(n,i,s);case 22:return Sh(n,i,s)}throw Error(r(156,i.tag))};function Zh(n,i){return Af(n,i)}function zw(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 zw(n,i,s,c)}function sc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Dw(n){if(typeof n=="function")return sc(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 vs(n,i,s,c,h,x){var k=2;if(c=n,typeof n=="function")sc(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 ws(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 ws(n,i,s,c){return n=gn(22,n,c,i),n.elementType=ae,n.lanes=s,n.stateNode={isHidden:!1},n}function ac(n,i,s){return n=gn(6,n,null,i),n.lanes=s,n}function uc(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 Ow(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=za(0),this.expirationTimes=za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function cc(n,i,s,c,h,x,k,I,$){return n=new Ow(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},bu(x),n}function Fw(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 em(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 Rp(n,s,i)}return i}function tm(n,i,s,c,h,x,k,I,$){return n=cc(s,c,!0,n,h,x,k,I,$),n.context=em(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 ks(n,i,s,c){var h=i.current,x=Dt(),k=gr(h);return s=em(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),Xl(n,h,k)),k}function Ss(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 nm(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function dc(n,i){nm(n,i),(n=n.alternate)&&nm(n,i)}function Mw(){return null}var rm=typeof reportError=="function"?reportError:function(n){console.error(n)};function fc(n){this._internalRoot=n}bs.prototype.render=fc.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));ks(n,i,null,null)},bs.prototype.unmount=fc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Mr(function(){ks(null,n,null,null)}),i[Hn]=null}};function bs(n){this._internalRoot=n}bs.prototype.unstable_scheduleHydration=function(n){if(n){var i=Mf();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&&Vf(n)}};function pc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Cs(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function im(){}function Bw(n,i,s,c,h){if(h){if(typeof c=="function"){var x=c;c=function(){var B=Ss(k);x.call(B)}}var k=tm(i,c,n,0,null,!1,!1,"",im);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=Ss($);I.call(B)}}var $=cc(n,0,!1,null,null,!1,!1,"",im);return n._reactRootContainer=$,n[Hn]=$.current,wo(n.nodeType===8?n.parentNode:n),Mr(function(){ks(i,$,s,c)}),$}function Es(n,i,s,c,h){var x=s._reactRootContainer;if(x){var k=x;if(typeof h=="function"){var I=h;h=function(){var $=Ss(k);I.call($)}}ks(i,k,n,h)}else k=Bw(s,i,n,h,c);return Ss(k)}Of=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var s=io(i.pendingLanes);s!==0&&(Da(i,s|1),Ht(i,ot()),(Oe&6)===0&&(Ri=ot()+500,cr()))}break;case 13:Mr(function(){var c=Jn(n,1);if(c!==null){var h=Dt();jn(c,n,1,h)}}),dc(n,1)}},Oa=function(n){if(n.tag===13){var i=Jn(n,134217728);if(i!==null){var s=Dt();jn(i,n,134217728,s)}dc(n,134217728)}},Ff=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)}dc(n,i)}},Mf=function(){return Be},Bf=function(n,i){var s=Be;try{return Be=n,i()}finally{Be=s}},Na=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=Ul(c);if(!h)throw Error(r(90));Ne(c),st(c,h)}}}break;case"textarea":xl(n,s);break;case"select":i=s.value,i!=null&&it(n,!!s.multiple,i,!1)}},Ef=ic,jf=Mr;var Uw={usingClientEntryPoint:!1,Events:[bo,mi,Ul,bf,Cf,ic]},Do={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Vw={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=Nf(n),n===null?null:n.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||Mw,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 js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!js.isDisabled&&js.supportsFiber)try{bl=js.inject(Vw),Ln=js}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uw,qt.createPortal=function(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pc(i))throw Error(r(200));return Fw(n,i,null,s)},qt.createRoot=function(n,i){if(!pc(n))throw Error(r(299));var s=!1,c="",h=rm;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=cc(n,1,!1,null,null,s,!1,c,h),n[Hn]=i.current,wo(n.nodeType===8?n.parentNode:n),new fc(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=Nf(i),n=n===null?null:n.stateNode,n},qt.flushSync=function(n){return Mr(n)},qt.hydrate=function(n,i,s){if(!Cs(i))throw Error(r(200));return Es(null,n,i,!0,s)},qt.hydrateRoot=function(n,i,s){if(!pc(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,x="",k=rm;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),i=tm(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 bs(i)},qt.render=function(n,i,s){if(!Cs(i))throw Error(r(200));return Es(null,n,i,!1,s)},qt.unmountComponentAtNode=function(n){if(!Cs(n))throw Error(r(40));return n._reactRootContainer?(Mr(function(){Es(null,null,n,!1,function(){n._reactRootContainer=null,n[Hn]=null})}),!0):!1},qt.unstable_batchedUpdates=ic,qt.unstable_renderSubtreeIntoContainer=function(n,i,s,c){if(!Cs(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Es(n,i,s,!1,c)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var cm;function Yw(){if(cm)return mc.exports;cm=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(),mc.exports=Qw(),mc.exports}var dm;function Xw(){if(dm)return Ts;dm=1;var e=Yw();return Ts.createRoot=e.createRoot,Ts.hydrateRoot=e.hydrateRoot,Ts}var Zw=Xw(),xc={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 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&&gt(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&&gt(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`
40
+ */var fm;function ek(){if(fm)return Fo;fm=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 pm;function tk(){return pm||(pm=1,xc.exports=ek()),xc.exports}var y=tk(),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 Fi(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-",ny="comm",da="rule",Ad="decl",nk="@import",ry="@keyframes",rk="@layer",iy=Math.abs,Ld=String.fromCharCode,Kc=Object.assign;function ik(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 oy(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 Fs(e,t,r){return e.indexOf(t,r)}function gt(e,t){return e.charCodeAt(t)|0}function Mi(e,t,r){return e.slice(t,r)}function Bn(e){return e.length}function ly(e){return e.length}function Yo(e,t){return t.push(e),e}function ok(e,t){return e.map(t).join("")}function hm(e,t){return e.filter(function(r){return!Xn(r,t)})}var fa=1,Bi=1,sy=0,xn=0,ct=0,Wi="";function pa(e,t,r,o,l,a,u,d){return{value:e,root:t,parent:r,type:o,props:l,children:a,line:fa,column:Bi,length:u,return:"",siblings:d}}function Sr(e,t){return Kc(pa("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ni(e){for(;e.root;)e=Sr(e.root,{children:[e]});Yo(e,e.siblings)}function lk(){return ct}function sk(){return ct=xn>0?gt(Wi,--xn):0,Bi--,ct===10&&(Bi=1,fa--),ct}function Tn(){return ct=xn<sy?gt(Wi,xn++):0,Bi++,ct===10&&(Bi=1,fa++),ct}function Jr(){return gt(Wi,xn)}function Ms(){return xn}function ha(e,t){return Mi(Wi,e,t)}function Qc(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 ak(e){return fa=Bi=1,sy=Bn(Wi=e),xn=0,[]}function uk(e){return Wi="",e}function vc(e){return oy(ha(xn-1,Yc(e===91?e+2:e===40?e+1:e)))}function ck(e){for(;(ct=Jr())&&ct<33;)Tn();return Qc(e)>2||Qc(ct)>3?"":" "}function dk(e,t){for(;--t&&Tn()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return ha(e,Ms()+(t<6&&Jr()==32&&Tn()==32))}function Yc(e){for(;Tn();)switch(ct){case e:return xn;case 34:case 39:e!==34&&e!==39&&Yc(ct);break;case 40:e===41&&Yc(e);break;case 92:Tn();break}return xn}function fk(e,t){for(;Tn()&&e+ct!==57;)if(e+ct===84&&Jr()===47)break;return"/*"+ha(t,xn-1)+"*"+Ld(e===47?e:Tn())}function pk(e){for(;!Qc(Jr());)Tn();return ha(e,xn)}function hk(e){return uk(Bs("",null,null,null,[""],e=ak(e),0,[0],e))}function Bs(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&&gt(G,g-1)==58){Fs(G+=Ie(vc(N),"&","&\f"),"&\f",iy(p?d[p-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:G+=vc(N);break;case 9:case 10:case 13:case 32:G+=ck(S);break;case 92:G+=dk(Ms()-1,7);continue;case 47:switch(Jr()){case 42:case 47:Yo(mk(fk(Tn(),Ms()),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?gm(G+";",o,r,g-1,f):gm(Ie(G," ","")+";",o,r,g-2,f),f);break;case 59:G+=";";default:if(Yo(L=mm(G,t,r,p,m,l,d,A,F=[],V=[],g,a),a),N===123)if(m===0)Bs(G,t,L,L,F,a,g,d,V);else switch(v===99&&gt(G,3)===110?100:v){case 100:case 108:case 109:case 115:Bs(e,L,L,o&&Yo(mm(e,L,L,0,0,l,d,A,l,F=[],g,V),V),l,V,g,d,o?F:V);break;default:Bs(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&&sk()==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+=vc(Tn())),v=Jr(),m=g=Bn(A=G+=pk(Ms())),N++;break;case 45:S===45&&Bn(G)==2&&(b=0)}}return a}function mm(e,t,r,o,l,a,u,d,f,p,m,g){for(var v=l-1,w=l===0?a:[""],S=ly(w),b=0,j=0,C=0;b<o;++b)for(var N=0,A=Mi(e,v+1,v=iy(j=u[b])),F=e;N<S;++N)(F=oy(j>0?w[N]+" "+A:Ie(A,/&\f/g,w[N])))&&(f[C++]=F);return pa(e,t,r,l===0?da:d,f,p,m,g)}function mk(e,t,r,o){return pa(e,t,r,ny,Ld(lk()),Mi(e,2,-2),0,o)}function gm(e,t,r,o,l){return pa(e,t,r,Ad,Mi(e,0,o),Mi(e,o+1,-1),o,l)}function ay(e,t,r){switch(ik(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"+Mi(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/)})?~Fs(e+(r=r[t].value),"span",0)?e:Qe+Ie(e,"-start","")+e+Qe+"grid-row-span:"+(~Fs(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~Fs(e,"stretch",0)?ay(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 gk(e,t,r,o){switch(e.type){case rk:if(e.children.length)break;case nk:case Ad:return e.return=e.return||e.value;case ny:return"";case ry:return e.return=e.value+"{"+Ks(e.children,o)+"}";case da:if(!Bn(e.value=e.props.join(",")))return""}return Bn(r=Ks(e.children,o))?e.return=e.value+"{"+r+"}":""}function yk(e){var t=ly(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 xk(e){return function(t){t.root||(t=t.return)&&e(t)}}function vk(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ad:e.return=ay(e.value,e.length,r);return;case ry:return Ks([Sr(e,{value:Ie(e.value,"@","@"+Me)})],o);case da:if(e.length)return ok(r=e.props,function(l){switch(Xn(l,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ni(Sr(e,{props:[Ie(l,/:(read-\w+)/,":"+Zo+"$1")]})),Ni(Sr(e,{props:[l]})),Kc(e,{props:hm(r,o)});break;case"::placeholder":Ni(Sr(e,{props:[Ie(l,/:(plac\w+)/,":"+Me+"input-$1")]})),Ni(Sr(e,{props:[Ie(l,/:(plac\w+)/,":"+Zo+"$1")]})),Ni(Sr(e,{props:[Ie(l,/:(plac\w+)/,Qe+"input-$1")]})),Ni(Sr(e,{props:[l]})),Kc(e,{props:hm(r,o)});break}return""})}}var wk={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={},Ui=typeof process<"u"&&nn!==void 0&&(nn.REACT_APP_SC_ATTR||nn.SC_ATTR)||"data-styled",uy="active",cy="data-styled-version",ma="6.1.13",$d=`/*!sc*/
41
+ `,Qs=typeof window<"u"&&"HTMLElement"in window,kk=!!(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),Sk={},ga=Object.freeze([]),Vi=Object.freeze({});function dy(e,t,r){return r===void 0&&(r=Vi),e.theme!==r.theme&&e.theme||t||r.theme}var fy=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"]),bk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ck=/(^-|-$)/g;function ym(e){return e.replace(bk,"-").replace(Ck,"")}var Ek=/(a)(d)/gi,Rs=52,xm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xc(e){var t,r="";for(t=Math.abs(e);t>Rs;t=t/Rs|0)r=xm(t%Rs)+r;return(xm(t%Rs)+r).replace(Ek,"$1-$2")}var wc,py=5381,_i=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},hy=function(e){return _i(py,e)};function _d(e){return Xc(hy(e)>>>0)}function jk(e){return e.displayName||e.name||"Component"}function kc(e){return typeof e=="string"&&!0}var my=typeof Symbol=="function"&&Symbol.for,gy=my?Symbol.for("react.memo"):60115,Tk=my?Symbol.for("react.forward_ref"):60112,Rk={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ik={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nk=((wc={})[Tk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wc[gy]=yy,wc);function vm(e){return("type"in(t=e)&&t.type.$$typeof)===gy?yy:"$$typeof"in e?Nk[e.$$typeof]:Rk;var t}var Pk=Object.defineProperty,Ak=Object.getOwnPropertyNames,wm=Object.getOwnPropertySymbols,Lk=Object.getOwnPropertyDescriptor,$k=Object.getPrototypeOf,km=Object.prototype;function xy(e,t,r){if(typeof t!="string"){if(km){var o=$k(t);o&&o!==km&&xy(e,o,r)}var l=Ak(t);wm&&(l=l.concat(wm(t)));for(var a=vm(e),u=vm(t),d=0;d<l.length;++d){var f=l[d];if(!(f in Ik||r&&r[f]||u&&f in u||a&&f in a)){var p=Lk(t,f);try{Pk(e,f,p)}catch{}}}}return e}function Zr(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 rl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Zc(e,t,r){if(r===void 0&&(r=!1),!r&&!rl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=Zc(e[o],t[o]);else if(rl(t))for(var o in t)e[o]=Zc(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 _k=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}(),Us=new Map,Xs=new Map,Vs=1,Is=function(e){if(Us.has(e))return Us.get(e);for(;Xs.has(Vs);)Vs++;var t=Vs++;return Us.set(e,t),Xs.set(t,e),t},zk=function(e,t){Vs=t+1,Us.set(e,t),Xs.set(t,e)},Dk="style[".concat(Ui,"][").concat(cy,'="').concat(ma,'"]'),Ok=new RegExp("^".concat(Ui,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Fk=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)},Mk=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(Ok);if(f){var p=0|parseInt(f[1],10),m=f[2];p!==0&&(zk(m,p),Fk(e,m,f[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(d)}}},Sm=function(e){for(var t=document.querySelectorAll(Dk),r=0,o=t.length;r<o;r++){var l=t[r];l&&l.getAttribute(Ui)!==uy&&(Mk(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function Bk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var vy=function(e){var t=document.head,r=e||t,o=document.createElement("style"),l=function(d){var f=Array.from(d.querySelectorAll("style[".concat(Ui,"]")));return f[f.length-1]}(r),a=l!==void 0?l.nextSibling:null;o.setAttribute(Ui,uy),o.setAttribute(cy,ma);var u=Bk();return u&&o.setAttribute("nonce",u),r.insertBefore(o,a),o},Uk=function(){function e(t){this.element=vy(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}(),Vk=function(){function e(t){this.element=vy(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}(),Hk=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}(),bm=Qs,qk={isServer:!Qs,useCSSOMInjection:!kk},Zs=function(){function e(t,r,o){t===void 0&&(t=Vi),r===void 0&&(r={});var l=this;this.options=yt(yt({},qk),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Qs&&bm&&(bm=!1,Sm(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(Ui,".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 Is(t)},e.prototype.rehydrate=function(){!this.server&&Qs&&Sm(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 Hk(l):o?new Uk(l):new Vk(l)}(this.options),new _k(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(Is(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(Is(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Is(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Wk=/&/g,Gk=/^\s*\/\/.*$/gm;function wy(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=wy(r.children,t)),r})}function Jk(e){var t,r,o,l=Vi,a=l.options,u=a===void 0?Vi:a,d=l.plugins,f=d===void 0?ga: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===da&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Wk,r).replace(o,p))}),u.prefix&&m.push(vk),m.push(gk);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(Gk,""),C=hk(S||w?"".concat(S," ").concat(w," { ").concat(j," }"):j);u.namespace&&(C=wy(C,u.namespace));var N=[];return Ks(C,yk(m.concat(xk(function(A){return N.push(A)})))),N};return g.hash=f.length?f.reduce(function(v,w){return w.name||Er(15),_i(v,w.name)},py).toString():"",g}var Kk=new Zs,ed=Jk(),ky=Pt.createContext({shouldForwardProp:void 0,styleSheet:Kk,stylis:ed});ky.Consumer;Pt.createContext(void 0);function td(){return P.useContext(ky)}var Sy=function(){function e(t,r){var o=this;this.inject=function(l,a){a===void 0&&(a=ed);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=ed),this.name+t.hash},e}(),Qk=function(e){return e>="A"&&e<="Z"};function Cm(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;Qk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var by=function(e){return e==null||e===!1||e===""},Cy=function(e){var t,r,o=[];for(var l in e){var a=e[l];e.hasOwnProperty(l)&&!by(a)&&(Array.isArray(a)&&a.isCss||Zr(a)?o.push("".concat(Cm(l),":"),a,";"):rl(a)?o.push.apply(o,Fi(Fi(["".concat(l," {")],Cy(a),!1),["}"],!1)):o.push("".concat(Cm(l),": ").concat((t=l,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in wk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function br(e,t,r,o){if(by(e))return[];if(zd(e))return[".".concat(e.styledComponentId)];if(Zr(e)){if(!Zr(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 Sy?r?(e.inject(r,o),[e.getName(o)]):[e]:rl(e)?Cy(e):Array.isArray(e)?Array.prototype.concat.apply(ga,e.map(function(u){return br(u,t,r,o)})):[e.toString()]}function Ey(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Zr(r)&&!zd(r))return!1}return!0}var Yk=hy(ma),Xk=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&Ey(t),this.componentId=r,this.baseHash=_i(Yk,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=Xc(_i(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=_i(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=_i(f,v+m),p+=v}}if(p){var w=Xc(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}(),Hi=Pt.createContext(void 0);Hi.Consumer;function Zk(){var e=P.useContext(Hi);if(!e)throw Er(18);return e}function Em(e){var t=Pt.useContext(Hi),r=P.useMemo(function(){return function(o,l){if(!o)throw Er(14);if(Zr(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(Hi.Provider,{value:r},e.children):null}var Sc={};function eS(e,t,r){var o=zd(e),l=e,a=!kc(e),u=t.attrs,d=u===void 0?ga:u,f=t.componentId,p=f===void 0?function(F,V){var L=typeof F!="string"?"sc":ym(F);Sc[L]=(Sc[L]||0)+1;var G="".concat(L,"-").concat(_d(ma+L+Sc[L]));return V?"".concat(V,"-").concat(G):G}(t.displayName,t.parentComponentId):f,m=t.displayName,g=m===void 0?function(F){return kc(F)?"styled.".concat(F):"Styled(".concat(jk(F),")")}(e):m,v=t.displayName&&t.componentId?"".concat(ym(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 Xk(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(Hi),de=td(),ae=L.shouldForwardProp||de.shouldForwardProp,X=dy(G,H,ne)||Vi,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=Zr(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=td(),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),_[kc(E)&&!fy.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++)Zc(V,ie[K],!0);return V}({},l.defaultProps,F):F}}),Dd(A,function(){return".".concat(A.styledComponentId)}),a&&xy(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function jm(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 Tm=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(Zr(e)||rl(e))return Tm(br(jm(ga,Fi([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?br(o):Tm(br(jm(o,t)))}function nd(e,t,r){if(r===void 0&&(r=Vi),!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,Fi([l],a,!1)))};return o.attrs=function(l){return nd(e,t,yt(yt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o.withConfig=function(l){return nd(e,t,yt(yt({},r),l))},o}var jy=function(e){return nd(eS,e)},R=jy;fy.forEach(function(e){R[e]=jy(e)});var tS=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=Ey(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 nS(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=bt.apply(void 0,Fi([e],t,!1)),l="sc-global-".concat(_d(JSON.stringify(o))),a=new tS(o,l),u=function(f){var p=td(),m=Pt.useContext(Hi),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,Sk,m,v);else{var w=yt(yt({},p),{theme:dy(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,Fi([e],t,!1))),l=_d(o);return new Sy(l,o)}const rS="/assets/logo-BGHkG1-J.png",iS="/assets/logo-dark-KAsU1C78.png",Rm={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:rS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Im={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:iS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},oS=({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(Nm(l.tpm)),m=Mo(Nm(l.tpd));return y.jsx(sS,{children:y.jsxs(aS,{children:[y.jsx(uS,{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)]})]})})},Nm=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},lS=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
- `,iS=R.div`
54
+ `,sS=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
- `,oS=R.div`
61
+ `,aS=R.div`
62
62
  display: flex;
63
63
  flex-wrap: wrap;
64
64
  gap: 8px;
65
65
  align-items: center;
66
- `,lS=R.select`
66
+ `,uS=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: ${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
- `+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 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`
85
+ animation: ${lS} 0.5s ease-in-out;
86
+ `;function Ty(e,t){return function(){return e.apply(t,arguments)}}const{toString:cS}=Object.prototype,{getPrototypeOf:Od}=Object,ya=(e=>t=>{const r=cS.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>ya(t)===e),xa=e=>t=>typeof t===e,{isArray:Ji}=Array,il=xa("undefined");function dS(e){return e!==null&&!il(e)&&e.constructor!==null&&!il(e.constructor)&&ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ry=In("ArrayBuffer");function fS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ry(e.buffer),t}const pS=xa("string"),ln=xa("function"),Iy=xa("number"),va=e=>e!==null&&typeof e=="object",hS=e=>e===!0||e===!1,Hs=e=>{if(ya(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)},mS=In("Date"),gS=In("File"),yS=In("Blob"),xS=In("FileList"),vS=e=>va(e)&&ln(e.pipe),wS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ln(e.append)&&((t=ya(e))==="formdata"||t==="object"&&ln(e.toString)&&e.toString()==="[object FormData]"))},kS=In("URLSearchParams"),[SS,bS,CS,ES]=["ReadableStream","Request","Response","Headers"].map(In),jS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ul(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 Ny(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,Py=e=>!il(e)&&e!==Gr;function rd(){const{caseless:e}=Py(this)&&this||{},t={},r=(o,l)=>{const a=e&&Ny(t,l)||l;Hs(t[a])&&Hs(o)?t[a]=rd(t[a],o):Hs(o)?t[a]=rd({},o):Ji(o)?t[a]=o.slice():t[a]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&ul(arguments[o],r);return t}const TS=(e,t,r,{allOwnKeys:o}={})=>(ul(t,(l,a)=>{r&&ln(l)?e[a]=Ty(l,r):e[a]=l},{allOwnKeys:o}),e),RS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IS=(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)},NS=(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},PS=(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},AS=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!Iy(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},LS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Od(Uint8Array)),$S=(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])}},_S=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},zS=In("HTMLFormElement"),DS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),Pm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),OS=In("RegExp"),Ay=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};ul(r,(l,a)=>{let u;(u=t(l,a,e))!==!1&&(o[a]=u||l)}),Object.defineProperties(e,o)},FS=e=>{Ay(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+"'")})}})},MS=(e,t)=>{const r={},o=l=>{l.forEach(a=>{r[a]=!0})};return Ji(e)?o(e):o(String(e).split(t)),r},BS=()=>{},US=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function VS(e){return!!(e&&ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const HS=e=>{const t=new Array(10),r=(o,l)=>{if(va(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[l]=o;const a=Ji(o)?[]:{};return ul(o,(u,d)=>{const f=r(u,l+1);!il(f)&&(a[d]=f)}),t[l]=void 0,a}}return o};return r(e,0)},qS=In("AsyncFunction"),WS=e=>e&&(va(e)||ln(e))&&ln(e.then)&&ln(e.catch),Ly=((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)),GS=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||Ly,q={isArray:Ji,isArrayBuffer:Ry,isBuffer:dS,isFormData:wS,isArrayBufferView:fS,isString:pS,isNumber:Iy,isBoolean:hS,isObject:va,isPlainObject:Hs,isReadableStream:SS,isRequest:bS,isResponse:CS,isHeaders:ES,isUndefined:il,isDate:mS,isFile:gS,isBlob:yS,isRegExp:OS,isFunction:ln,isStream:vS,isURLSearchParams:kS,isTypedArray:LS,isFileList:xS,forEach:ul,merge:rd,extend:TS,trim:jS,stripBOM:RS,inherits:IS,toFlatObject:NS,kindOf:ya,kindOfTest:In,endsWith:PS,toArray:AS,forEachEntry:$S,matchAll:_S,isHTMLForm:zS,hasOwnProperty:Pm,hasOwnProp:Pm,reduceDescriptors:Ay,freezeMethods:FS,toObjectSet:MS,toCamelCase:DS,noop:BS,toFiniteNumber:US,findKey:Ny,global:Gr,isContextDefined:Py,isSpecCompliantForm:VS,toJSONObject:HS,isAsyncFn:qS,isThenable:WS,setImmediate:Ly,asap:GS};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 $y=Te.prototype,_y={};["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=>{_y[e]={value:e}});Object.defineProperties(Te,_y);Object.defineProperty($y,"isAxiosError",{value:!0});Te.from=(e,t,r,o,l,a)=>{const u=Object.create($y);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 JS=null;function id(e){return q.isPlainObject(e)||q.isArray(e)}function zy(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function Am(e,t,r){return e?e.concat(t).map(function(l,a){return l=zy(l),!r&&a?"["+l+"]":l}).join(r?".":""):t}function KS(e){return q.isArray(e)&&!e.some(id)}const QS=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function wa(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)&&KS(S)||(q.isFileList(S)||q.endsWith(b,"[]"))&&(C=q.toArray(S)))return b=zy(b),C.forEach(function(A,F){!(q.isUndefined(A)||A===null)&&t.append(u===!0?Am([b],F,a):u===null?b:b+"[]",p(A))}),!1}return id(S)?!0:(t.append(Am(j,b,a),p(S)),!1)}const g=[],v=Object.assign(QS,{defaultVisitor:m,convertValue:p,isVisitable:id});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 Lm(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&&wa(e,this,t)}const Dy=Fd.prototype;Dy.append=function(t,r){this._pairs.push([t,r])};Dy.toString=function(t){const r=t?function(o){return t.call(this,o,Lm)}:Lm;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function YS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oy(e,t,r){if(!t)return e;const o=r&&r.encode||YS;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 $m{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 Fy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XS=typeof URLSearchParams<"u"?URLSearchParams:Fd,ZS=typeof FormData<"u"?FormData:null,eb=typeof Blob<"u"?Blob:null,tb={isBrowser:!0,classes:{URLSearchParams:XS,FormData:ZS,Blob:eb},protocols:["http","https","file","blob","url","data"]},Md=typeof window<"u"&&typeof document<"u",od=typeof navigator=="object"&&navigator||void 0,nb=Md&&(!od||["ReactNative","NativeScript","NS"].indexOf(od.product)<0),rb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ib=Md&&window.location.href||"http://localhost",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Md,hasStandardBrowserEnv:nb,hasStandardBrowserWebWorkerEnv:rb,navigator:od,origin:ib},Symbol.toStringTag,{value:"Module"})),Nt={...ob,...tb};function lb(e,t){return wa(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 sb(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ab(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 My(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]=ab(l[u])),!d)}if(q.isFormData(e)&&q.isFunction(e.entries)){const r={};return q.forEachEntry(e,(o,l)=>{t(sb(o),l,r,0)}),r}return null}function ub(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 cl={transitional:Fy,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(My(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 lb(t,this.formSerializer).toString();if((d=q.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return wa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||l?(r.setContentType("application/json",!1),ub(t)):t}],transformResponse:[function(t){const r=this.transitional||cl.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=>{cl.headers[e]={}});const cb=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"]),db=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]&&cb[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 qs(e){return e===!1||e==null?e:q.isArray(e)?e.map(qs):String(e)}function fb(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 pb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bc(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 hb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function mb(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]=qs(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())&&!pb(t))u(db(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 fb(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||bc(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||bc(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||bc(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]=qs(l),delete r[a];return}const d=t?hb(a):String(a).trim();d!==a&&delete r[a],r[d]=qs(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]||(mb(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 Cc(e,t){const r=this||cl,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 By(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 Uy(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 gb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yb(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 xb(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=yb(50,250);return xb(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)},zm=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Dm=e=>(...t)=>q.asap(()=>e(...t)),vb=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,wb=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 kb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vy(e,t,r){let o=!kb(t);return e&&o||r==!1?Sb(e,t):t}const Om=e=>e instanceof Gt?{...e}:e;function ei(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(Om(p),Om(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 Hy=e=>{const t=ei({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:a,headers:u,auth:d}=t;t.headers=u=Gt.from(u),t.url=Oy(Vy(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&&vb(t.url))){const p=l&&a&&wb.read(a);p&&u.set(l,p)}return t},bb=typeof XMLHttpRequest<"u",Cb=bb&&function(e){return new Promise(function(r,o){const l=Hy(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};Uy(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||Fy;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=gb(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)})},Eb=(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}},jb=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},Tb=async function*(e,t){for await(const r of Rb(e))yield*jb(r,t)},Rb=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()}},Fm=(e,t,r,o)=>{const l=Tb(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})},ka=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qy=ka&&typeof ReadableStream=="function",Ib=ka&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nb=qy&&Wy(()=>{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}),Mm=64*1024,ld=qy&&Wy(()=>q.isReadableStream(new Response("").body)),ta={stream:ld&&(e=>e.body)};ka&&(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 Pb=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 Ib(e)).byteLength},Ab=async(e,t)=>{const r=q.toFiniteNumber(e.getContentLength());return r??Pb(t)},Lb=ka&&(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}=Hy(e);p=p?(p+"").toLowerCase():"text";let w=Eb([l,a&&a.toAbortSignal()],u),S;const b=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let j;try{if(f&&Nb&&r!=="get"&&r!=="head"&&(j=await Ab(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]=zm(j,ea(Dm(f)));o=Fm(V.body,Mm,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=ld&&(p==="stream"||p==="response");if(ld&&(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&&zm(L,ea(Dm(d),!0))||[];N=new Response(Fm(N.body,Mm,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)=>{Uy(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)}}),sd={http:JS,xhr:Cb,fetch:Lb};q.forEach(sd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bm=e=>`- ${e}`,$b=e=>q.isFunction(e)||e===null||e===!1,Gy={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,!$b(r)&&(o=sd[(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
+ `+a.map(Bm).join(`
90
+ `):" "+Bm(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:sd};function Ec(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ki(null,e)}function Um(e){return Ec(e),e.headers=Gt.from(e.headers),e.data=Cc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gy.getAdapter(e.adapter||cl.adapter)(e).then(function(o){return Ec(e),o.data=Cc.call(e,e.transformResponse,o),o.headers=Gt.from(o.headers),o},function(o){return By(o)||(Ec(e),o&&o.response&&(o.response.data=Cc.call(e,e.transformResponse,o.response),o.response.headers=Gt.from(o.response.headers))),Promise.reject(o)})}const Jy="1.8.2",Sa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sa[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Vm={};Sa.transitional=function(t,r,o){function l(a,u){return"[Axios v"+Jy+"] 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&&!Vm[u]&&(Vm[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}};Sa.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function _b(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 Ws={assertOptions:_b,validators:Sa},On=Ws.validators;let Kr=class{constructor(t){this.defaults=t,this.interceptors={request:new $m,response:new $m}}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=ei(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:a}=r;o!==void 0&&Ws.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}:Ws.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),Ws.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=[Um.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=Um.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=ei(this.defaults,t);const r=Vy(t.baseURL,t.url,t.allowAbsoluteUrls);return Oy(r,t.params,t.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(t){Kr.prototype[t]=function(r,o){return this.request(ei(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(ei(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 zb=class Ky{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 Ky(function(l){t=l}),cancel:t}}};function Db(e){return function(r){return e.apply(null,r)}}function Ob(e){return q.isObject(e)&&e.isAxiosError===!0}const ad={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(ad).forEach(([e,t])=>{ad[t]=e});function Qy(e){const t=new Kr(e),r=Ty(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 Qy(ei(e,l))},r}const Ze=Qy(cl);Ze.Axios=Kr;Ze.CanceledError=Ki;Ze.CancelToken=zb;Ze.isCancel=By;Ze.VERSION=Jy;Ze.toFormData=wa;Ze.AxiosError=Te;Ze.Cancel=Ze.CanceledError;Ze.all=function(t){return Promise.all(t)};Ze.spread=Db;Ze.isAxiosError=Ob;Ze.mergeConfig=ei;Ze.AxiosHeaders=Gt;Ze.formToJSON=e=>My(q.isHTMLForm(e)?new FormData(e):e);Ze.getAdapter=Gy.getAdapter;Ze.HttpStatusCode=ad;Ze.default=Ze;const{Axios:a$,AxiosError:u$,CanceledError:c$,isCancel:d$,CancelToken:f$,VERSION:p$,all:h$,Cancel:m$,isAxiosError:g$,spread:y$,toFormData:x$,AxiosHeaders:v$,HttpStatusCode:w$,formToJSON:k$,getAdapter:S$,mergeConfig:b$}=Ze,Fb="/api",nt=Ze.create({baseURL:Fb,headers:{"Content-Type":"application/json"}}),Mb=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 Mb();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 Bb=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")}},Hm=async()=>(await nt.get("/content")).data.content,Ub=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")}},Yy=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")}},ud=async()=>(await nt.get("/execution-status")).data.status,Vb=async()=>{await nt.post("/interrupt-execution")},Xy=async()=>await nt.post("/interrupt-execution",{scope:"container-command"}),Hb=async()=>{await nt.post("/pause-execution")},qb=async()=>{await nt.post("/resume-execution")},cd=async()=>(await nt.get("/current-question")).data.question,Wb=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"}})},qm=async()=>(await nt.get("/usage")).data,Gb=async()=>(await nt.get("/default-codegen-options")).data.options,Jb=async()=>(await nt.get("/rcconfig")).data.rcConfig,Kb=async e=>{await nt.delete(`/delete-iteration/${e}`)},Bd=async()=>(await nt.get("/available-ai-services")).data.services,Qb=async()=>(await nt.get("/action-type-options")).data.options,Zy=async()=>{try{return(await nt.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Yb=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 dl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function fl(e,t){P.useEffect(()=>{const r=o=>{t(o.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function Xb(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 ex(){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 tx(){const[e,t]=P.useState({services:[],isLoading:!0,error:null});return P.useEffect(()=>{(async()=>{try{const[o,l]=await Promise.all([Bd(),Zy()]),a=o.map(u=>({service:u,config:l[u],displayName:Xb(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 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`
113
+ `;function nx(){dl("openContentGenerationModel")}function Zb(){return y.jsx(jr,{onClick:nx,"aria-label":"Content generation modal",children:"✨"})}const eC=({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]=ex(),{services:V,isLoading:L}=tx();if(fl("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 Yy(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(tC,{onClick:K=>K.target===K.currentTarget&&A(),children:y.jsxs(nC,{children:[y.jsx(rC,{onClick:A,children:"×"}),y.jsx("h2",{children:"Generate Content"}),y.jsxs(iC,{onSubmit:G,children:[y.jsxs(Ns,{children:["Prompt",y.jsx(oC,{value:t,onChange:K=>r(K.target.value),placeholder:"Enter your prompt here...",required:!0})]}),y.jsxs(Ns,{children:["AI Service",y.jsx(Wm,{value:o,onChange:K=>l(K.target.value),disabled:L,children:F.map(K=>y.jsx("option",{value:K,children:K},K))})]}),y.jsxs(Ns,{children:["Temperature (",a,")",y.jsxs(lC,{children:[y.jsx(sC,{type:"range",min:"0",max:"2",step:"0.1",value:a,onChange:K=>u(Number(K.target.value))}),y.jsx(aC,{children:a})]})]}),y.jsxs(Ns,{children:["Model Type ",p?`(${p})`:"",y.jsxs(Wm,{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(uC,{type:"submit",disabled:g||!t,children:g?"Generating...":"Generate"})]}),w&&y.jsx(dC,{children:w}),b&&y.jsx(cC,{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))})]})})},tC=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
- `,Zb=R.div`
124
+ `,nC=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
- `,eC=R.button`
134
+ `,rC=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
- `,tC=R.form`
146
+ `,iC=R.form`
147
147
  display: flex;
148
148
  flex-direction: column;
149
149
  gap: 1rem;
150
- `,Is=R.label`
150
+ `,Ns=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
- `,nC=R.textarea`
155
+ `,oC=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
- `,qm=R.select`
163
+ `,Wm=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
- `,rC=R.div`
169
+ `,lC=R.div`
170
170
  display: flex;
171
171
  align-items: center;
172
172
  gap: 1rem;
173
- `,iC=R.input`
173
+ `,sC=R.input`
174
174
  flex: 1;
175
- `,oC=R.span`
175
+ `,aC=R.span`
176
176
  min-width: 3rem;
177
177
  text-align: right;
178
- `,lC=R.button`
178
+ `,uC=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
- `,sC=R.div`
192
+ `,cC=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
- `,aC=R.div`
203
+ `,dC=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 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`
209
+ `;function rx(){dl("openHealthCheckModal")}function fC(){return y.jsx(jr,{onClick:rx,"aria-label":"Health check modal",children:"🏥"})}async function pC(){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 hC(e){var t,r;try{const[o]=await Yy("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 mC=()=>{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);fl("openHealthCheckModal",()=>t(!0));const m=()=>t(!1),g=async()=>{o(!0),a(null);try{const S=await pC();d(S),p(new Date);for(const[b,j]of Object.entries(S.services)){const C=Date.now(),N=await hC(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(gC,{onClick:S=>S.target===S.currentTarget&&m(),children:y.jsxs(yC,{children:[y.jsx(vC,{onClick:m,children:"×"}),y.jsxs(xC,{children:[y.jsx("h2",{children:"AI Services Health Check"}),y.jsx(wC,{onClick:g,disabled:r,children:r?"Checking...":"🔄 Refresh"})]}),l&&y.jsx(NC,{children:l}),y.jsx(kC,{children:u&&Object.entries(u.services).map(([S,b])=>y.jsxs(SC,{children:[y.jsxs(bC,{children:[y.jsx(CC,{children:S}),y.jsx(EC,{children:v(b.status)})]}),y.jsxs(jC,{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(TC,{children:b.error}),y.jsxs(RC,{children:["Last checked: ",new Date(b.lastChecked).toLocaleTimeString()]})]})]},S))}),f&&y.jsxs(IC,{children:["Last updated: ",f.toLocaleTimeString()]}),r&&y.jsx(PC,{children:"Checking AI Services..."})]})})},gC=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
- `,hC=R.div`
220
+ `,yC=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
- `,mC=R.div`
230
+ `,xC=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
- `,gC=R.button`
239
+ `,vC=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
- `,yC=R.button`
251
+ `,wC=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
- `,xC=R.div`
265
+ `,kC=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
- `,vC=R.div`
270
+ `,SC=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
- `,wC=R.div`
275
+ `,bC=R.div`
276
276
  display: flex;
277
277
  justify-content: space-between;
278
278
  align-items: center;
279
279
  margin-bottom: 0.5rem;
280
- `,kC=R.h3`
280
+ `,CC=R.h3`
281
281
  margin: 0;
282
282
  font-size: 1.1rem;
283
- `,SC=R.span`
283
+ `,EC=R.span`
284
284
  font-size: 1.2rem;
285
- `,bC=R.div`
285
+ `,jC=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
- `,CC=R.div`
288
+ `,TC=R.div`
289
289
  color: ${({theme:e})=>e.colors.error};
290
290
  margin-top: 0.5rem;
291
- `,EC=R.div`
291
+ `,RC=R.div`
292
292
  color: ${({theme:e})=>e.colors.textSecondary};
293
293
  font-size: 0.8rem;
294
294
  margin-top: 0.5rem;
295
- `,jC=R.div`
295
+ `,IC=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
- `,TC=R.div`
300
+ `,NC=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
- `,RC=R.div`
306
+ `,PC=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
- `,nx=R.div`
319
+ `,ix=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
- `,rx=R.div`
330
+ `,ox=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
- `,ix=R.div`
340
+ `,lx=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
- `,ox=R.button`
349
+ `,sx=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
- `,IC=R.div`
361
+ `,AC=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
- `,NC=R.div`
366
+ `,LC=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
- `,PC=R.div`
375
+ `,$C=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
- `,AC=R.div`
391
+ `,_C=R.div`
392
392
  display: flex;
393
393
  align-items: center;
394
394
  gap: 0.5rem;
395
- `,LC=R.h3`
395
+ `,zC=R.h3`
396
396
  margin: 0;
397
397
  font-size: 1.1rem;
398
- `,$C=R.span`
398
+ `,DC=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
- `,_C=R.div`
403
+ `,OC=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
- `,zC=R.form`
410
+ `,FC=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
- `,DC=R.button`
433
+ `,MC=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
- `,OC=R.div`
450
+ `,BC=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
- `,FC=R.div`
456
+ `,UC=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
- `,MC=R.div`
462
+ `,VC=R.div`
463
463
  color: ${({theme:e})=>e.colors.error};
464
- `,BC=R.div`
464
+ `,HC=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",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`
477
+ `,wr=e=>e==="vertex-ai",qC=e=>e==="openai"||e==="local-llm",WC=({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(LC,{children:[y.jsxs($C,{onClick:D,onKeyDown:ne,role:"button",tabIndex:0,"aria-expanded":!!l,"aria-controls":`config-content-${e}`,children:[y.jsxs(_C,{children:[y.jsx(zC,{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(DC,{$isCollapsed:!l,children:"▼"})]}),y.jsx(OC,{$isCollapsed:!l,id:`config-content-${e}`,"aria-hidden":!l,children:y.jsxs(FC,{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}`})]}),qC(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(VC,{role:"alert","aria-live":"polite",children:L}),y.jsx(MC,{type:"submit",disabled:o,"aria-busy":o,children:o?"Updating...":"Update Configuration"})]})})]})};function ax(){dl("openServiceConfigurationModal")}function GC(){return y.jsx(jr,{onClick:ax,"aria-label":"Open service configuration",children:"⚙️"})}const ux=e=>e==="vertex-ai",JC=e=>e==="openai"||e==="local-llm",KC=(e,t)=>{var o,l,a;const r=["Configuration updated successfully for "+e];return ux(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}`),JC(e)&&"openaiBaseUrl"in t&&r.push(`OpenAI base URL: ${t.openaiBaseUrl}`),r.join(`
478
+ `)},QC=(e,t)=>{if(ux(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},YC=()=>{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]=ex();fl("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 Zy();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=QC(C,N);if(A){a(A),o(!1);return}try{await Yb({serviceType:C,config:N}),await v(),d(KC(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(ix,{onClick:C=>C.target===C.currentTarget&&g(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:y.jsxs(ox,{children:[y.jsx(sx,{onClick:g,"aria-label":"Close configuration modal",children:"×"}),y.jsx(lx,{children:y.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),l&&y.jsx(BC,{role:"alert","aria-live":"polite",children:l}),u&&y.jsx(UC,{role:"status","aria-live":"polite",children:u.split(`
479
+ `).map((C,N)=>y.jsx("div",{children:C},N))}),y.jsx(AC,{children:f?m.map(C=>y.jsx(WC,{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(HC,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},cx=Gi`
480
480
  from {
481
481
  opacity: 0;
482
482
  }
483
483
  to {
484
484
  opacity: 1;
485
485
  }
486
- `,KC=Gi`
486
+ `,XC=Gi`
487
487
  from {
488
488
  transform: translateX(100%);
489
489
  }
490
490
  to {
491
491
  transform: translateX(0);
492
492
  }
493
- `,QC=R.button`
493
+ `,ZC=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
- `,YC=R.div`
514
+ `,eE=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: ${ax} 0.2s ease;
524
- `,XC=R.div`
523
+ animation: ${cx} 0.2s ease;
524
+ `,tE=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
- ${KC} 0.2s ease,
546
- ${ax} 0.2s ease
545
+ ${XC} 0.2s ease,
546
+ ${cx} 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
- `,ZC=R.div`
560
+ `,nE=R.div`
561
561
  padding: 12px 16px;
562
562
  cursor: pointer;
563
563
  transition: background-color 0.2s ease;
@@ -575,15 +575,15 @@ Error generating stack: `+x.message+`
575
575
  outline: 2px solid ${({theme:e})=>e.colors.primary};
576
576
  outline-offset: -2px;
577
577
  }
578
- `,eE=R.div`
578
+ `,rE=R.div`
579
579
  position: relative;
580
580
  display: inline-block;
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`
581
+ `,iE=({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(rE,{className:o,children:[y.jsx(ZC,{onClick:r,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":l,ref:p,children:"☰"}),y.jsx(eE,{isOpen:t,onClick:r}),y.jsx(tE,{isOpen:t,position:u,ref:d,role:"menu","aria-label":a,id:"menu-items",onKeyDown:m,children:e.map((v,w)=>y.jsxs(nE,{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 dx(){dl("openRcConfigModal")}const oE=({rcConfig:e})=>{const[t,r]=P.useState(!1);fl("openRcConfigModal",()=>r(!0));const o=()=>{r(!1)};return!t||!e?null:y.jsx(ix,{onClick:l=>l.target===l.currentTarget&&o(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:y.jsxs(ox,{children:[y.jsx(sx,{onClick:o,"aria-label":"Close RC configuration modal",children:"×"}),y.jsx(lx,{children:y.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),y.jsxs(lE,{children:[y.jsxs(rn,{children:[y.jsx(on,{children:"Root Directory"}),y.jsx(Pi,{children:e.rootDir})]}),e.lintCommand&&y.jsxs(rn,{children:[y.jsx(on,{children:"Lint Command"}),y.jsx(Pi,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&y.jsxs(rn,{children:[y.jsx(on,{children:"Extensions"}),y.jsx(Pi,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&y.jsxs(rn,{children:[y.jsx(on,{children:"Ignore Paths"}),y.jsx(Pi,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&y.jsxs(rn,{children:[y.jsx(on,{children:"Important Context"}),y.jsx(Pi,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&y.jsxs(rn,{children:[y.jsx(on,{children:"Model Overrides"}),y.jsx(Pi,{children:y.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},lE=R.div`
582
582
  display: flex;
583
583
  flex-direction: column;
584
584
  gap: 1rem;
585
585
  margin-top: 1rem;
586
- `,ji=R.div`
586
+ `,Pi=R.div`
587
587
  color: ${({theme:e})=>e.colors.text};
588
588
  font-family: monospace;
589
589
  background-color: ${({theme:e})=>e.colors.backgroundSecondary};
@@ -595,7 +595,7 @@ Error generating stack: `+x.message+`
595
595
  margin: 0;
596
596
  white-space: pre-wrap;
597
597
  }
598
- `,iE=()=>y.jsx(jr,{onClick:ux,children:"ℹ️"}),oE=R.div`
598
+ `,sE=()=>y.jsx(jr,{onClick:dx,children:"ℹ️"}),aE=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
- `,lE=R.div`
609
+ `,uE=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
- `,sE=R.div`
619
+ `,cE=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
- `,aE=R.button`
628
+ `,dE=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
- `,uE=R.div`
640
+ `,fE=R.div`
641
641
  display: flex;
642
642
  flex-direction: column;
643
643
  gap: 1rem;
644
644
  margin-bottom: 1rem;
645
- `,cE=R.div`
645
+ `,pE=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
- `,dE=R.div`
651
+ `,hE=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
- `,fE=R.div`
657
+ `,mE=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}=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`
670
+ `,na=({value:e,onChange:t,disabled:r})=>{const{services:o,isLoading:l,error:a}=tx(),u=d=>{t(d.target.value)};return y.jsxs(gE,{children:[y.jsxs(yE,{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(xE,{children:"Loading services..."}),a&&y.jsx(vE,{children:a})]})},gE=R.div`
671
671
  display: flex;
672
672
  flex-direction: column;
673
673
  gap: 4px;
674
- `,hE=R.select`
674
+ `,yE=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
- `,mE=R.div`
693
+ `,xE=R.div`
694
694
  color: ${({theme:e})=>e.colors.text};
695
695
  font-size: 14px;
696
696
  font-style: italic;
697
- `,gE=R.div`
697
+ `,vE=R.div`
698
698
  color: ${({theme:e})=>e.colors.error};
699
699
  font-size: 14px;
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`
700
+ `;function fx(){dl("openGenaicodeConfigModal")}function wE(){return y.jsx(jr,{onClick:fx,"aria-label":"Open Genaicode configuration",children:"🐺"})}const kE=({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);fl("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(aE,{onClick:b=>b.target===b.currentTarget&&m(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:y.jsxs(uE,{children:[y.jsx(dE,{onClick:m,"aria-label":"Close configuration modal",children:"×"}),y.jsx(cE,{children:y.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),u&&y.jsx(pE,{role:"alert","aria-live":"polite",children:u}),f&&y.jsx(hE,{role:"status","aria-live":"polite",children:f}),y.jsxs(fE,{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(Gm,{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(Gm,{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(mE,{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
- `,Wm=R.input`
706
+ `,Gm=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
- `,vE="0.13.1",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`
718
+ `,SE="0.13.2",px=()=>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"})}),bE=()=>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"})]}),CE=500,Ps=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:()=>{}}),EE=({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([ud(),cd(),Hm(),qm(),Gb(),Jb()]);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>Ps&&(xt[Ye]=xt[Ye].slice(-Ps));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([ud(),cd(),Hm(),qm()]);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>Ps?un.slice(-Ps):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,CE))},[]),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 Hb(),l("paused")}catch(Ne){console.error("Failed to pause execution:",Ne)}},[]),Ve=P.useCallback(async()=>{try{await qb(),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})},pl=()=>{const e=Pt.useContext(Qi);if(!e)throw new Error("useChatState must be used within a ChatStateProvider");return e},jE=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
- `,CE=R.div`
731
+ `,TE=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
- `,EE=R(jr)`
736
+ `,RE=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: ${bE} 2s infinite;
742
+ animation: ${jE} 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
- `,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`
756
+ `,IE=()=>{const{toggleGraphVisualiser:e,isGraphVisualiserOpen:t,conversationGraphState:r}=pl();return r!=null&&r.isActive?y.jsx(TE,{children:y.jsx(RE,{onClick:e,"aria-label":"Toggle Conversation Graph",title:"Toggle Conversation Graph",isActive:t,children:y.jsx(bE,{})})}):null},NE="https://github.com/gtanczyk/genaicode/issues",PE=({themeToggle:e,chatInterface:t,inputArea:r,usage:o,toggleTheme:l})=>{const[a,u]=P.useState(!1),d=[{content:y.jsx(GC,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:ax},{content:y.jsx(fC,{}),ariaLabel:"Health Check",key:"health-check",onClick:rx},{content:y.jsx(Zb,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:nx},{content:y.jsx(wE,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:fx},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:l},{content:y.jsx(sE,{}),ariaLabel:"Information",key:"info",onClick:dx},{content:y.jsx(jr,{children:"🐛"}),ariaLabel:"Report Bug",key:"report-bug",onClick:()=>window.open(NE,"_blank","noopener,noreferrer")}];return y.jsxs(AE,{children:[y.jsxs(LE,{children:[y.jsx($E,{children:y.jsxs(_E,{children:[y.jsx(zE,{children:"GenAIcode"}),y.jsxs(DE,{children:["v",SE]})]})}),y.jsxs(OE,{children:[y.jsx(FE,{children:y.jsx(oS,{usage:o})}),y.jsx(ME,{children:y.jsx(iE,{menuItems:d,isOpen:a,onToggle:()=>u(!a),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),y.jsxs(BE,{children:[y.jsx(UE,{children:t}),y.jsx(VE,{children:r}),y.jsx(IE,{})]})]})},AE=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
- `,NE=R.header`
763
+ `,LE=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
- `,PE=R.div`
771
+ `,$E=R.div`
772
772
  display: flex;
773
773
  align-items: center;
774
774
  gap: 10px;
775
- `,AE=R.div`
775
+ `,_E=R.div`
776
776
  position: relative;
777
- `,LE=R.h1`
777
+ `,zE=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
- `,$E=R.span`
786
+ `,DE=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
- `,_E=R.div`
797
+ `,OE=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
- `,zE=R.div`
807
+ `,FE=R.div`
808
808
  flex-shrink: 1;
809
809
  min-width: 0;
810
- `,DE=R.div`
810
+ `,ME=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
- `,OE=R.main`
817
+ `,BE=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
- `,FE=R.div`
824
+ `,UE=R.div`
825
825
  flex-grow: 1;
826
826
  overflow: hidden;
827
827
  margin-bottom: 20px;
828
- `,ME=R.div`
828
+ `,VE=R.div`
829
829
  flex-shrink: 0;
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`
830
+ `,HE=({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 ud()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await Ub(w,e,S.length>0?S:void 0),l({...e,initialActionType: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 cd();if(N)try{if(o(null),e){const A={...e,aiService:j??e.aiService};l(A),await Wb(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 Vb()}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 hx={},mx=P.createContext(hx),qE=(e,t)=>W({},e,t),WE=()=>P.useContext(mx),Vd=P.createContext(()=>{});Vd.displayName="JVR.DispatchShowTools";function GE(){return P.useReducer(qE,hx)}function gx(){return P.useContext(Vd)}var yx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(mx.Provider,{value:t,children:y.jsx(Vd.Provider,{value:r,children:o})})};yx.displayName="JVR.ShowTools";var xx={},vx=P.createContext(xx),JE=(e,t)=>W({},e,t),ba=()=>P.useContext(vx),Hd=P.createContext(()=>{});Hd.displayName="JVR.DispatchExpands";function KE(){return P.useReducer(JE,xx)}function QE(){return P.useContext(Hd)}var 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.Expands";var kx={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"}},Sx=P.createContext(kx),YE=(e,t)=>W({},e,t),Ge=()=>P.useContext(Sx),qd=P.createContext(()=>{});qd.displayName="JVR.DispatchTypes";function XE(){return P.useReducer(YE,kx)}function ZE(){return P.useContext(qd)}function bx(e){var{initial:t,dispatch:r,children:o}=e;return y.jsx(Sx.Provider,{value:t,children:y.jsx(qd.Provider,{value:r,children:o})})}bx.displayName="JVR.Types";var ej=["style"];function Cx(e){var{style:t}=e,r=$e(e,ej),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"})}))}Cx.displayName="JVR.TriangleArrow";var Ex={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:y.jsx(Cx,{})},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:"}"}},jx=P.createContext(Ex),tj=(e,t)=>W({},e,t),Jt=()=>P.useContext(jx),Wd=P.createContext(()=>{});Wd.displayName="JVR.DispatchSymbols";function nj(){return P.useReducer(tj,Ex)}function rj(){return P.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.Symbols";var Rx={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"}},Ix=P.createContext(Rx),ij=(e,t)=>W({},e,t),vn=()=>P.useContext(Ix),Gd=P.createContext(()=>{});Gd.displayName="JVR.DispatchSection";function oj(){return P.useReducer(ij,Rx)}function lj(){return P.useContext(Gd)}var Nx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(Ix.Provider,{value:t,children:y.jsx(Gd.Provider,{value:r,children:o})})};Nx.displayName="JVR.Section";var Px={objectSortKeys:!1,indentWidth:15},Jd=P.createContext(Px);Jd.displayName="JVR.Context";var Ax=P.createContext(()=>{});Ax.displayName="JVR.DispatchContext";function sj(e,t){return W({},e,t)}var ii=()=>P.useContext(Jd),Lx=e=>{var{children:t,initialState:r,initialTypes:o}=e,[l,a]=P.useReducer(sj,Object.assign({},Px,r)),[u,d]=GE(),[f,p]=KE(),[m,g]=XE(),[v,w]=nj(),[S,b]=oj();return P.useEffect(()=>a(W({},r)),[r]),y.jsx(Jd.Provider,{value:l,children:y.jsx(Ax.Provider,{value:a,children:y.jsx(yx,{initial:u,dispatch:d,children:y.jsx(wx,{initial:f,dispatch:p,children:y.jsx(bx,{initial:W({},m,o),dispatch:g,children:y.jsx(Tx,{initial:v,dispatch:w,children:y.jsx(Nx,{initial:S,dispatch:b,children:t})})})})})})})};Lx.displayName="JVR.Provider";function aj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var uj=["isNumber","value","parentValue","keyName","keys"],cj=["as","render"],dj=["as","render"],fj=["as","render"],pj=["as","style","render"],hj=["as","render"],mj=["as","render"],gj=["as","render"],yj=["as","render"],dd=e=>{var{Quote:t={}}=Jt(),{isNumber:r,value:o,parentValue:l,keyName:a,keys:u}=e,d=$e(e,uj);if(r)return null;var{as:f,render:p}=t,m=$e(t,cj),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))};dd.displayName="JVR.Quote";var ol=e=>{var{ValueQuote:t={}}=Jt(),r=W({},(aj(e),e)),{as:o,render:l}=t,a=$e(t,dj),u=o||"span",d=W({},r,a),f=l&&typeof l=="function"&&l(d,{});return f||y.jsx(u,W({},d))};ol.displayName="JVR.ValueQuote";var $x=e=>{var{value:t,parentValue:r,keyName:o,keys:l}=e,{Colon:a={}}=Jt(),{as:u,render:d}=a,f=$e(a,fj),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))};$x.displayName="JVR.Colon";var _x=e=>{var{Arrow:t={}}=Jt(),r=ba(),{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,pj),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)}))};_x.displayName="JVR.Arrow";var zx=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,hj),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,mj),C=S||"span",N=b&&typeof b=="function"&&b(j,f);return N||y.jsx(C,W({},j))};zx.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,gj),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,yj),N=b||"span",A=j&&typeof j=="function"&&j(C,d);return A||y.jsx(N,W({},C))};Kd.displayName="JVR.BracketsClose";var Dx=e=>{var t,{value:r,expandKey:o,level:l,keys:a=[]}=e,u=ba(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=ii(),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})})};Dx.displayName="JVR.NestedClose";var 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"],Rj=["as","render"],Ij=["as","render"],Nj=["as","render"],fd=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},Ox=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,xj),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))};Ox.displayName="JVR.SetComp";var Fx=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,vj),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))};Fx.displayName="JVR.MapComp";var Nn={opacity:.75,paddingRight:4},Mx=e=>{var{children:t="",keyName:r}=e,{Str:o={},displayDataTypes:l}=Ge(),{shortenTextAfterLength:a=30}=ii(),{as:u,render:d}=o,f=$e(o,wj),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(ol,{}),y.jsx(v,W({},f,{className:"w-rjv-value",children:S})),y.jsx(ol,{})]})]})};Mx.displayName="JVR.TypeString";var Bx=e=>{var{children:t,keyName:r}=e,{True: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()}))]})};Bx.displayName="JVR.TypeTrue";var Ux=e=>{var{children:t,keyName:r}=e,{False: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:t==null?void 0:t.toString()}))]})};Ux.displayName="JVR.TypeFalse";var Vx=e=>{var{children:t,keyName:r}=e,{Float: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,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()}))]})};Vx.displayName="JVR.TypeFloat";var Hx=e=>{var{children:t,keyName:r}=e,{Int: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=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()}))]})};Hx.displayName="JVR.TypeInt";var qx=e=>{var{children:t,keyName:r}=e,{Bigint: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||y.jsx(f,W({},d,{className:"w-rjv-value",children:fd(t==null?void 0:t.toString())}))]})};qx.displayName="JVR.TypeFloat";var Wx=e=>{var{children:t,keyName:r}=e,{Url: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==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(ol,{}),t==null?void 0:t.href,y.jsx(ol,{})]}))]})};Wx.displayName="JVR.TypeUrl";var Gx=e=>{var{children:t,keyName:r}=e,{Date: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=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}))]})};Gx.displayName="JVR.TypeDate";var Jx=e=>{var{children:t,keyName:r}=e,{Undefined:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Rj),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]})};Jx.displayName="JVR.TypeUndefined";var Kx=e=>{var{children:t,keyName:r}=e,{Null:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Ij),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]})};Kx.displayName="JVR.TypeNull";var Qx=e=>{var{children:t,keyName:r}=e,{Nan:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Nj),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]})};Qx.displayName="JVR.TypeNan";var Pj=e=>Number(e)===e&&e%1!==0||isNaN(e),Yx=e=>{var{value:t,keyName:r}=e,o={keyName:r};return t instanceof URL?y.jsx(Wx,W({},o,{children:t})):typeof t=="string"?y.jsx(Mx,W({},o,{children:t})):t===!0?y.jsx(Bx,W({},o,{children:t})):t===!1?y.jsx(Ux,W({},o,{children:t})):t===null?y.jsx(Kx,W({},o,{children:t})):t===void 0?y.jsx(Jx,W({},o,{children:t})):t instanceof Date?y.jsx(Gx,W({},o,{children:t})):typeof t=="number"&&isNaN(t)?y.jsx(Qx,W({},o,{children:t})):typeof t=="number"&&Pj(t)?y.jsx(Vx,W({},o,{children:t})):typeof t=="bigint"?y.jsx(qx,W({},o,{children:t})):typeof t=="number"?y.jsx(Hx,W({},o,{children:t})):null};Yx.displayName="JVR.Value";function Tr(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])}function an(e,t,r){var o=ZE(),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=lj(),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 Aj=["as","render"],Xx=e=>{var{KeyName:t={}}=vn();return Yi(t,e,"KeyName"),null};Xx.displayName="JVR.KeyName";var Zx=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,Aj);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}))};Zx.displayName="JVR.KeyNameComp";var Lj=["children","value","parentValue","keyName","keys"],$j=["as","render","children"],ev=e=>{var{Row:t={}}=vn();return Yi(t,e,"Row"),null};ev.displayName="JVR.Row";var tv=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=$e(e,Lj),{Row:d={}}=vn(),{as:f,render:p}=d,m=$e(d,$j),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}))};tv.displayName="JVR.RowComp";function _j(e){var t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current}function zj(e){var{value:t,highlightUpdates:r,highlightContainer:o}=e,l=_j(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 Dj=["keyName","value","parentValue","expandKey","keys"],Oj=["as","render"],Qd=e=>{var{keyName:t,value:r,parentValue:o,expandKey:l,keys:a}=e,u=$e(e,Dj),{onCopied:d,enableClipboard:f}=ii(),p=WE(),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=fd(r):r instanceof Date?L=r.toLocaleString():L=JSON.stringify(r,(K,ie)=>typeof ie=="bigint"?fd(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,Oj),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 nv(){var e=P.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var rv=e=>{var t,{value:r,expandKey:o="",level:l,keys:a=[]}=e,u=ba(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:m}=ii(),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(iv,{parentValue:r,keyName:N,keys:[...a,N],value:A,level:l},C)})})};rv.displayName="JVR.KeyValues";var Yd=e=>{var{keyName:t,parentValue:r,keys:o,value:l}=e,{highlightUpdates:a}=ii(),u=typeof t=="number",d=P.useRef(null);zj({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(dd,W({isNumber:u,"data-placement":"left"},f)),y.jsx(Zx,W({},f,{children:t})),y.jsx(dd,W({isNumber:u,"data-placement":"right"},f))]}),y.jsx($x,W({},f))]})};Yd.displayName="JVR.KayName";var iv=e=>{var{keyName:t,value:r,parentValue:o,level:l=0,keys:a=[]}=e,u=gx(),d=nv(),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(tv,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(Yx,{keyName:t,value:r}),y.jsx(Qd,{keyName:t,value:r,keys:a,parentValue:o,expandKey:d})]}))};iv.displayName="JVR.KeyValuesItem";var Fj=["value","keyName"],Mj=["as","render"],ov=e=>{var{CountInfoExtra:t={}}=vn();return Yi(t,e,"CountInfoExtra"),null};ov.displayName="JVR.CountInfoExtra";var lv=e=>{var{value:t={},keyName:r}=e,o=$e(e,Fj),{CountInfoExtra:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Mj);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))};lv.displayName="JVR.CountInfoExtraComps";var Bj=["value","keyName"],Uj=["as","render"],sv=e=>{var{CountInfo:t={}}=vn();return Yi(t,e,"CountInfo"),null};sv.displayName="JVR.CountInfo";var av=e=>{var{value:t={},keyName:r}=e,o=$e(e,Bj),{displayObjectSize:l}=ii(),{CountInfo:a={}}=vn();if(!l)return null;var{as:u,render:d}=a,f=$e(a,Uj),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))};av.displayName="JVR.CountInfoComp";var Vj=["as","render"],uv=e=>{var{Ellipsis:t={}}=vn();return Yi(t,e,"Ellipsis"),null};uv.displayName="JVR.Ellipsis";var cv=e=>{var{isExpanded:t,value:r,keyName:o}=e,{Ellipsis:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Vj),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)))};cv.displayName="JVR.EllipsisComp";var dv=e=>{var t,{keyName:r,expandKey:o,keys:l=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=ba(),m=QE(),{onExpand:g,collapsed:v,shouldExpandNodeInitially:w}=ii(),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(_x,W({style:L,expandKey:o},D)),(r||typeof r=="number")&&y.jsx(Yd,W({},D)),y.jsx(Ox,{value:a,keyName:r}),y.jsx(Fx,{value:a,keyName:r}),y.jsx(zx,W({isBrackets:S||b},D)),y.jsx(cv,{keyName:r,value:u,isExpanded:N}),y.jsx(Kd,W({isVisiable:N||!K,isBrackets:S||b},D)),y.jsx(av,{value:u,keyName:r}),y.jsx(lv,{value:u,keyName:r}),y.jsx(Qd,{keyName:r,value:u,expandKey:o,parentValue:d,keys:l})]}))};dv.displayName="JVR.NestedOpen";var Hj=["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,Hj),m=gx(),g=nv(),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(dv,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f,initialValue:u}),y.jsx(rv,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f}),y.jsx(Dx,{expandKey:g,value:a,level:l,keys:d})]}))});Xd.displayName="JVR.Container";var fv=e=>{var{BraceLeft:t={}}=Jt();return Tr(t,e,"BraceLeft"),null};fv.displayName="JVR.BraceLeft";var pv=e=>{var{BraceRight:t={}}=Jt();return Tr(t,e,"BraceRight"),null};pv.displayName="JVR.BraceRight";var hv=e=>{var{BracketsLeft:t={}}=Jt();return Tr(t,e,"BracketsLeft"),null};hv.displayName="JVR.BracketsLeft";var mv=e=>{var{BracketsRight:t={}}=Jt();return Tr(t,e,"BracketsRight"),null};mv.displayName="JVR.BracketsRight";var gv=e=>{var{Arrow:t={}}=Jt();return Tr(t,e,"Arrow"),null};gv.displayName="JVR.Arrow";var yv=e=>{var{Colon:t={}}=Jt();return Tr(t,e,"Colon"),null};yv.displayName="JVR.Colon";var xv=e=>{var{Quote:t={}}=Jt();return Tr(t,e,"Quote"),null};xv.displayName="JVR.Quote";var vv=e=>{var{ValueQuote:t={}}=Jt();return Tr(t,e,"ValueQuote"),null};vv.displayName="JVR.ValueQuote";var wv=e=>{var{Bigint:t={}}=Ge();return an(t,e,"Bigint"),null};wv.displayName="JVR.Bigint";var kv=e=>{var{Date:t={}}=Ge();return an(t,e,"Date"),null};kv.displayName="JVR.Date";var Sv=e=>{var{False:t={}}=Ge();return an(t,e,"False"),null};Sv.displayName="JVR.False";var bv=e=>{var{Float:t={}}=Ge();return an(t,e,"Float"),null};bv.displayName="JVR.Float";var Cv=e=>{var{Int:t={}}=Ge();return an(t,e,"Int"),null};Cv.displayName="JVR.Int";var Ev=e=>{var{Map:t={}}=Ge();return an(t,e,"Map"),null};Ev.displayName="JVR.Map";var jv=e=>{var{Nan:t={}}=Ge();return an(t,e,"Nan"),null};jv.displayName="JVR.Nan";var Tv=e=>{var{Null:t={}}=Ge();return an(t,e,"Null"),null};Tv.displayName="JVR.Null";var Rv=e=>{var{Set:t={}}=Ge();return an(t,e,"Set"),null};Rv.displayName="JVR.Set";var Iv=e=>{var{Str:t={}}=Ge();return an(t,e,"Str"),null};Iv.displayName="JVR.StringText";var Nv=e=>{var{True:t={}}=Ge();return an(t,e,"True"),null};Nv.displayName="JVR.True";var Pv=e=>{var{Undefined:t={}}=Ge();return an(t,e,"Undefined"),null};Pv.displayName="JVR.Undefined";var Av=e=>{var{Url:t={}}=Ge();return an(t,e,"Url"),null};Av.displayName="JVR.Url";var Lv=e=>{var{Copied:t={}}=vn();return Yi(t,e,"Copied"),null};Lv.displayName="JVR.Copied";var qj=["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,qj),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(Lx,{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=wv;Ue.Date=kv;Ue.False=Sv;Ue.Float=bv;Ue.Int=Cv;Ue.Map=Ev;Ue.Nan=jv;Ue.Null=Tv;Ue.Set=Rv;Ue.String=Iv;Ue.True=Nv;Ue.Undefined=Pv;Ue.Url=Av;Ue.ValueQuote=vv;Ue.Arrow=gv;Ue.Colon=yv;Ue.Quote=xv;Ue.Ellipsis=uv;Ue.BraceLeft=fv;Ue.BraceRight=pv;Ue.BracketsLeft=hv;Ue.BracketsRight=mv;Ue.Copied=Lv;Ue.CountInfo=sv;Ue.CountInfoExtra=ov;Ue.KeyName=Xx;Ue.Row=ev;Ue.displayName="JVR.JsonView";var Wj={"--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"},Gj={"--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 Jj=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
- `,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=`
843
+ `,$v=({data:e})=>{const t=Zk();return y.jsx(Jj,{children:typeof e=="object"?y.jsx(Ue,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?Wj:Gj}):JSON.stringify(e,null,2)})};function Kj(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,Yj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xj={};function Jm(e,t){return(Xj.jsx?Yj:Qj).test(e)}const Zj=/[ \t\n\f\r]/g;function e2(e){return typeof e=="object"?e.type==="text"?Km(e.value):!1:Km(e)}function Km(e){return e.replace(Zj,"")===""}class hl{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}hl.prototype.normal={};hl.prototype.property={};hl.prototype.space=void 0;function _v(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new hl(r,o,t)}function pd(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 t2=0;const Re=oi(),ut=oi(),hd=oi(),ee=oi(),We=oi(),zi=oi(),tn=oi();function oi(){return 2**++t2}const md=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:ut,commaOrSpaceSeparated:tn,commaSeparated:zi,number:ee,overloadedBoolean:hd,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),jc=Object.keys(md);class Zd extends Kt{constructor(t,r,o,l){let a=-1;if(super(t,r),Qm(this,"space",l),typeof o=="number")for(;++a<jc.length;){const u=jc[a];Qm(this,jc[a],(o&md[u])===md[u])}}}Zd.prototype.defined=!0;function Qm(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[pd(o)]=o,r[pd(a.attribute)]=o}return new hl(t,r,e.space)}const zv=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 Dv(e,t){return t in e?e[t]:t}function Ov(e,t){return Dv(e,t.toLowerCase())}const n2=Xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zi,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|zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:hd,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:hd,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:Ov}),r2=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:zi,g2:zi,glyphName:zi,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:Dv}),Fv=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()}}),Mv=Xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ov}),Bv=Xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),i2={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"},o2=/[A-Z]/g,Ym=/-[a-z]/g,l2=/^data[-\w.:]+$/i;function s2(e,t){const r=pd(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"&&l2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ym,u2);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ym.test(a)){let u=a.replace(o2,a2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Zd}return new l(o,t)}function a2(e){return"-"+e.toLowerCase()}function u2(e){return e.charAt(1).toUpperCase()}const c2=_v([zv,n2,Fv,Mv,Bv],"html"),ef=_v([zv,r2,Fv,Mv,Bv],"svg");function d2(e){return e.join(" ").trim()}var Ai={},Tc,Xm;function f2(){if(Xm)return Tc;Xm=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";Tc=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 Tc}var Zm;function p2(){if(Zm)return Ai;Zm=1;var e=Ai&&Ai.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=r;var t=e(f2());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 Ai}var Wo={},eg;function h2(){if(eg)return Wo;eg=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,tg;function m2(){if(tg)return Go;tg=1;var e=Go&&Go.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(p2()),r=h2();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 g2=m2();const y2=Nd(g2),Uv=Vv("end"),tf=Vv("start");function Vv(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 x2(e){const t=tf(e),r=Uv(e);if(t&&r)return{start:t,end:r}}function el(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ng(e.position):"start"in e||"end"in e?ng(e):"line"in e||"column"in e?gd(e):""}function gd(e){return rg(e&&e.line)+":"+rg(e&&e.column)}function ng(e){return gd(e&&e.start)+"-"+gd(e&&e.end)}function rg(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,v2=new Map,w2=/[A-Z]/g,k2=new Set(["table","tbody","thead","tfoot","tr"]),S2=new Set(["td","th"]),Hv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function b2(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=P2(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=N2(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:c2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=qv(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function qv(e,t,r){if(t.type==="element")return C2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return E2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return T2(e,t,r);if(t.type==="mdxjsEsm")return j2(e,t);if(t.type==="root")return R2(e,t,r);if(t.type==="text")return I2(e,t)}function C2(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=Gv(e,t.tagName,!1),u=A2(e,t);let d=of(e,t);return k2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!e2(f):!0})),Wv(e,u,a,t),rf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function E2(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)}ll(e,t.position)}function j2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ll(e,t.position)}function T2(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:Gv(e,t.name,!0),u=L2(e,t),d=of(e,t);return Wv(e,u,a,t),rf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function R2(e,t,r){const o={};return rf(o,of(e,t)),e.create(t,e.Fragment,o,r)}function I2(e,t){return t.value}function Wv(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 N2(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 P2(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 A2(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&nf.call(t.properties,l)){const a=$2(e,l,t.properties[l]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&S2.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 L2(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 ll(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 ll(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:v2;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=qv(e,a,u);d!==void 0&&r.push(d)}return r}function $2(e,t,r){const o=s2(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Kj(r):d2(r)),o.property==="style"){let l=typeof r=="object"?r:_2(e,String(r));return e.stylePropertyNameCase==="css"&&(l=z2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?i2[o.property]||o.property:o.attribute,r]}}function _2(e,t){try{return y2(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=Hv+"#cannot-parse-style-attribute",l}}function Gv(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=Jm(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=Jm(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);ll(e)}function ll(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=Hv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function z2(e){const t={};let r;for(r in e)nf.call(e,r)&&(t[D2(r)]=e[r]);return t}function D2(e){let t=e.replace(w2,O2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function O2(e){return"-"+e.toLowerCase()}const Rc={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"]},F2={};function lf(e,t){const r=F2,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Jv(e,o,l)}function Jv(e,t,r){if(M2(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 ig(e.children,t,r)}return Array.isArray(e)?ig(e,t,r):""}function ig(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=Jv(e[l],t,r);return o.join("")}function M2(e){return!!(e&&typeof e=="object")}const og=document.createElement("i");function sf(e){const t="&"+e+";";og.innerHTML=t;const r=og.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 lg={}.hasOwnProperty;function Kv(e){const t={};let r=-1;for(;++r<e.length;)B2(t,e[r]);return t}function B2(e,t){let r;for(r in t){const l=(lg.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){lg.call(l,u)||(l[u]=[]);const d=a[u];U2(l[u],Array.isArray(d)?d:d?[d]:[])}}}function U2(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 Qv(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]/),V2=Rr(/[#-'*+\--9=?A-Z^-~]/);function ra(e){return e!==null&&(e<32||e===127)}const yd=Rr(/\d/),H2=Rr(/[\dA-Fa-f]/),q2=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 Ca=Rr(new RegExp("\\p{P}|\\p{S}","u")),ti=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 W2={tokenize:G2};function G2(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 J2={tokenize:K2},sg={tokenize:Q2};function K2(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(sg,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(sg,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 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 qi(e){if(e===null||He(e)||ti(e))return 1;if(Ca(e))return 2}function Ea(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 xd={name:"attention",resolveAll:Y2,tokenize:X2};function Y2(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};ag(g,-f),ag(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,Ea(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 X2(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=qi(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=qi(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 ag(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Z2={name:"autolink",tokenize:eT};function eT(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):V2(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 ml={partial:!0,tokenize:tT};function tT(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 Yv={continuation:{tokenize:rT},exit:iT,name:"blockQuote",tokenize:nT};function nT(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 rT(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(Yv,t,r)(u)}}function iT(e){e.exit("blockQuote")}const Xv={name:"characterEscape",tokenize:oT};function oT(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 q2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Zv={name:"characterReference",tokenize:lT};function lT(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=H2,m):(e.enter("characterReferenceValue"),a=7,u=yd,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 ug={partial:!0,tokenize:aT},cg={concrete:!0,name:"codeFenced",tokenize:sT};function sT(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(ug,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(ug,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 aT(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 Ic={name:"codeIndented",tokenize:cT},uT={partial:!0,tokenize:dT};function cT(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(uT,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 dT(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 fT={name:"codeText",previous:hT,resolve:pT,tokenize:mT};function pT(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 hT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mT(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 gT{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 e0(e){const t={};let r=-1,o,l,a,u,d,f,p;const m=new gT(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,yT(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 yT(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 xT={resolve:wT,tokenize:kT},vT={partial:!0,tokenize:ST};function wT(e){return e0(e),e}function kT(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(vT,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 ST(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 t0(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 n0(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 r0(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 bT={name:"definition",tokenize:ET},CT={partial:!0,tokenize:jT};function ET(e,t,r){const o=this;let l;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return n0.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 t0(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(CT,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 jT(e,t,r){return o;function o(d){return He(d)?tl(e,l)(d):r(d)}function l(d){return r0(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 TT={name:"hardBreakEscape",tokenize:RT};function RT(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 IT={name:"headingAtx",resolve:NT,tokenize:PT};function NT(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 PT(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 AT=["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"],dg=["pre","script","style","textarea"],LT={concrete:!0,name:"htmlFlow",resolveTo:zT,tokenize:DT},$T={partial:!0,tokenize:FT},_T={partial:!0,tokenize:OT};function zT(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 DT(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&&dg.includes(Se)?(l=1,o.interrupt?t(T):se(T)):AT.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($T,U,le)(T)):T===null||we(T)?(e.exit("htmlFlowData"),le(T)):(e.consume(T),se)}function le(T){return e.check(_T,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 dg.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 OT(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 FT(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ml,t,r)}}const MT={name:"htmlText",tokenize:BT};function BT(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:qT,resolveTo:WT,tokenize:GT},UT={tokenize:JT},VT={tokenize:KT},HT={tokenize:QT};function qT(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 WT(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,Ea(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 GT(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(UT,m,u?m:g)(v):v===91?e.attempt(VT,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(HT,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,r(v)}}function JT(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):t0(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?r0(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 KT(e,t,r){const o=this;return l;function l(d){return n0.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 YT={name:"labelStartImage",resolveAll:af.resolveAll,tokenize:XT};function XT(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 ZT={name:"labelStartLink",resolveAll:af.resolveAll,tokenize:eR};function eR(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 Nc={name:"lineEnding",tokenize:tR};function tR(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const Gs={name:"thematicBreak",tokenize:nR};function nR(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:lR},exit:aR,name:"list",tokenize:oR},rR={partial:!0,tokenize:uR},iR={partial:!0,tokenize:sR};function oR(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:yd(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(Gs,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 yd(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(ml,o.interrupt?r:m,e.attempt(rR,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 lR(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(ml,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(iR,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 sR(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 aR(e){e.exit(this.containerState.type)}function uR(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 fg={name:"setextUnderline",resolveTo:cR,tokenize:dR};function cR(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 dR(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 fR={tokenize:pR};function pR(e){const t=this,r=e.attempt(ml,o,e.attempt(this.parser.constructs.flowInitial,l,ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(xT,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 hR={resolveAll:o0()},mR=i0("string"),gR=i0("text");function i0(e){return{resolveAll:o0(e==="text"?yR: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 o0(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 yR(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 xR={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:Yv},vR={91:bT},wR={[-2]:Ic,[-1]:Ic,32:Ic},kR={35:IT,42:Gs,45:[fg,Gs],60:LT,61:fg,95:Gs,96:cg,126:cg},SR={38:Zv,92:Xv},bR={[-5]:Nc,[-4]:Nc,[-3]:Nc,33:YT,38:Zv,42:xd,60:[Z2,MT],91:ZT,92:[TT,Xv],93:af,95:xd,96:fT},CR={null:[xd,hR]},ER={null:[42,95]},jR={null:[]},TR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ER,contentInitial:vR,disable:jR,document:xR,flow:kR,flowInitial:wR,insideSpan:CR,string:SR,text:bR},Symbol.toStringTag,{value:"Module"}));function RR(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=Ea(a,p.events,p),p.events)}function v(ne,se){return NR(w(ne),se)}function w(ne){return IR(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 IR(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 NR(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 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:`
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 PR(e){const o={constructs:Kv([TR,...(e||{}).extensions||[]]),content:l(W2),defined:[],document:l(J2),flow:l(fR),lazy:{},string:l(mR),text:l(gR)};return o;function l(a){return u;function u(d){return RR(o,a,d)}}}function AR(e){for(;!e0(e););return e}const pg=/[\0\t\n\r]/g;function LR(){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(pg.lastIndex=g,p=pg.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 $R=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _R(e){return e.replace($R,zR)}function zR(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return Qv(r.slice(a?2:1),a?16:10)}return sf(r)||e}const l0={}.hasOwnProperty;function DR(e,t,r){return typeof t!="string"&&(r=t,t=void 0),OR(r)(AR(PR(r).document().write(LR()(e,t,!0))))}function OR(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(vl)},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()}};s0(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]];l0.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]||hg).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]||hg).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=xl(),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=_R(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=Qv(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 xl(){return{type:"text",value:""}}function vl(){return{type:"thematicBreak"}}}function kr(e){return{line:e.line,column:e.column,offset:e.offset}}function s0(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?s0(e,o):FR(e,o)}}function FR(e,t){let r;for(r in t)if(l0.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 hg(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 MR(e){const t=this;t.parser=r;function r(o){return DR(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function BR(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 UR(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
847
+ `}]}function VR(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 HR(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qR(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WR(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 GR(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 JR(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function a0(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 KR(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return a0(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 QR(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 YR(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 XR(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return a0(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 ZR(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 eI(e,t,r){const o=e.all(t),l=r?tI(r):u0(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 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:`
850
+ `});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function tI(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=u0(r[o])}return t}function u0(e){const t=e.spread;return t??e.children.length>1}function nI(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 rI(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function iI(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function oI(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lI(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=Uv(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 sI(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 aI(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const mg=9,gg=32;function uI(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),l=0;const a=[];for(;o;)a.push(yg(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=r.exec(t);return a.push(yg(t.slice(l),l>0,!1)),a.join("")}function yg(e,t,r){let o=0,l=e.length;if(t){let a=e.codePointAt(o);for(;a===mg||a===gg;)o++,a=e.codePointAt(o)}if(r){let a=e.codePointAt(l-1);for(;a===mg||a===gg;)l--,a=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}function cI(e,t){const r={type:"text",value:uI(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function dI(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const fI={blockquote:BR,break:UR,code:VR,delete:HR,emphasis:qR,footnoteReference:WR,heading:GR,html:JR,imageReference:KR,image:QR,inlineCode:YR,linkReference:XR,link:ZR,listItem:eI,list:nI,paragraph:rI,root:iI,strong:oI,table:lI,tableCell:aI,tableRow:sI,text:cI,thematicBreak:dI,toml:As,yaml:As,definition:As,footnoteDefinition:As};function As(){}const c0=-1,ja=0,ia=1,oa=2,uf=3,cf=4,df=5,ff=6,d0=7,f0=8,xg=typeof self=="object"?self:globalThis,pI=(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 ja:case c0: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 d0:{const{name:d,message:f}=u;return r(new xg[d](f),l)}case f0:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l)}return r(new xg[a](u),l)};return o},vg=e=>pI(new Map,e)(0),Li="",{toString:hI}={},{keys:mI}=Object,Ko=e=>{const t=typeof e;if(t!=="object"||!e)return[ja,t];const r=hI.call(e).slice(8,-1);switch(r){case"Array":return[ia,Li];case"Object":return[oa,Li];case"Date":return[uf,Li];case"RegExp":return[cf,Li];case"Map":return[df,Li];case"Set":return[ff,Li]}return r.includes("Array")?[ia,r]:r.includes("Error")?[d0,r]:[oa,r]},Ls=([e,t])=>e===ja&&(t==="function"||t==="symbol"),gI=(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 ja:{let m=u;switch(f){case"bigint":d=f0,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return l([c0],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 mI(u))(e||!Ls(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||!(Ls(Ko(v))||Ls(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||!Ls(Ko(v)))&&m.push(a(v));return g}}const{message:p}=u;return l([d,{name:f,message:p}],u)};return a},wg=(e,{json:t,lossy:r}={})=>{const o=[];return gI(!(t||r),!!t,new Map,o)(e),o},la=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vg(wg(e,t)):structuredClone(e):(e,t)=>vg(wg(e,t));function yI(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 xI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function vI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||yI,o=e.options.footnoteBackLabel||xI,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 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:`
852
+ `}]}}const Ta=function(e){if(e==null)return bI;if(typeof e=="function")return Ra(e);if(typeof e=="object")return Array.isArray(e)?wI(e):kI(e);if(typeof e=="string")return SI(e);throw new Error("Expected function, string, or object as test")};function wI(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ta(e[r]);return Ra(o);function o(...l){let a=-1;for(;++a<t.length;)if(t[a].apply(this,l))return!0;return!1}}function kI(e){const t=e;return Ra(r);function r(o){const l=o;let a;for(a in e)if(l[a]!==t[a])return!1;return!0}}function SI(e){return Ra(t);function t(r){return r&&r.type===e}}function Ra(e){return t;function t(r,o,l){return!!(CI(r)&&e.call(this,r,typeof o=="number"?o:void 0,l||void 0))}}function bI(){return!0}function CI(e){return e!==null&&typeof e=="object"&&"type"in e}const p0=[],EI=!0,vd=!1,jI="skip";function h0(e,t,r,o){let l;typeof t=="function"&&typeof r!="function"?(o=r,r=t):l=t;const a=Ta(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=p0,S,b,j;if((!t||a(f,p,m[m.length-1]||void 0))&&(w=TI(r(f,m)),w[0]===vd))return w;if("children"in f&&f.children){const C=f;if(C.children&&w[0]!==jI)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]===vd)return S;b=typeof S[1]=="number"?S[1]:b+u}}return w}}}function TI(e){return Array.isArray(e)?e:typeof e=="number"?[EI,e]:e==null?p0:[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),h0(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 wd={}.hasOwnProperty,RI={};function II(e,t){const r=t||RI,o=new Map,l=new Map,a=new Map,u={...fI,...r.handlers},d={all:p,applyData:PI,definitionById:o,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:NI,wrap:LI};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(wd.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||AI)(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=kg(S.value)),!Array.isArray(S)&&S.type==="element")){const b=S.children[0];b&&b.type==="text"&&(b.value=kg(b.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function NI(e,t){e.position&&(t.position=x2(e))}function PI(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 AI(e,t){const r=t.data||{},o="value"in t&&!(wd.call(r,"hProperties")||wd.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 LI(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 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:`
855
+ `}),r}function kg(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Sg(e,t){const r=II(e,t),o=r.one(e,void 0),l=vI(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 $I(e,t){return e&&"run"in e?async function(r,o){const l=Sg(r,{file:o,...t});await e.run(l,o)}:function(r,o){return Sg(r,{file:o,...e||t})}}function bg(e){if(e)throw e}var Pc,Cg;function _I(){if(Cg)return Pc;Cg=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 Pc=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},Pc}var zI=_I();const Ac=Nd(zI);function kd(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 DI(){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?OI(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 OI(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:FI,dirname:MI,extname:BI,join:UI,sep:"/"};function FI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gl(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 MI(e){if(gl(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 BI(e){gl(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 UI(...e){let t=-1,r;for(;++t<e.length;)gl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":VI(r)}function VI(e){gl(e);const t=e.codePointAt(0)===47;let r=HI(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function HI(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 gl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qI={cwd:WI};function WI(){return"/"}function Sd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function GI(e){if(typeof e=="string")e=new URL(e);else if(!Sd(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 JI(e)}function JI(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 Lc=["history","path","basename","stem","extname","dirname"];class m0{constructor(t){let r;t?Sd(t)?r={path:t}:typeof t=="string"||KI(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":qI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Lc.length;){const a=Lc[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)Lc.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Mn.basename(this.path):void 0}set basename(t){_c(t,"basename"),$c(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){Eg(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($c(t,"extname"),Eg(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){Sd(t)&&(t=GI(t)),_c(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){_c(t,"stem"),$c(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 $c(e,t){if(e&&e.includes(Mn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mn.sep+"`")}function _c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Eg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function KI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const QI=function(e){const o=this.constructor.prototype,l=o[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,o),a},YI={}.hasOwnProperty;class hf extends QI{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=DI()}copy(){const t=new hf;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(Ac(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Oc("data",this.frozen),this.namespace[t]=r,this):YI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Oc("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=$s(t),o=this.parser||this.Parser;return zc("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),zc("process",this.parser||this.Parser),Dc("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const d=$s(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);eN(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(),zc("processSync",this.parser||this.Parser),Dc("processSync",this.compiler||this.Compiler),this.process(t,l),Tg("processSync","process",r),o;function l(a,u){r=!0,bg(a),o=u}}run(t,r,o){jg(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=$s(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),Tg("runSync","run",o),l;function a(u,d){bg(u),l=d,o=!0}}stringify(t,r){this.freeze();const o=$s(r),l=this.compiler||this.Compiler;return Dc("stringify",l),jg(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(Oc("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=Ac(!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];kd(b)&&kd(w)&&(w=Ac(!0,b,w)),o[v]=[p,w,...S]}}}}const XI=new hf().freeze();function zc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Dc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oc(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 jg(e){if(!kd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Tg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $s(e){return ZI(e)?e:new m0(e)}function ZI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eN(e){return typeof e=="string"||tN(e)}function tN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rg=[],Ig={allowDangerousHtml:!0},rN=/^(https?|ircs?|mailto|xmpp)$/i,iN=[{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 ni(e){const t=oN(e),r=lN(e);return sN(t.runSync(t.parse(r),r),e)}function oN(e){const t=e.rehypePlugins||Rg,r=e.remarkPlugins||Rg,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ig}:Ig;return XI().use(MR).use(r).use($I,o).use(t)}function lN(e){const t=e.children||"",r=new m0;return typeof t=="string"&&(r.value=t),r}function sN(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||aN;for(const m of iN)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+nN+m.id,void 0);return pf(e,p),b2(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 Rc)if(Object.hasOwn(Rc,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=Rc[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 aN(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||rN.test(e.slice(0,t))?e:""}function Ng(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 uN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cN(e,t,r){const l=Ta((r||{}).ignore||[]),a=dN(t);let u=-1;for(;++u<a.length;)h0(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 dN(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([fN(l[0]),pN(l[1])])}return t}function fN(e){return typeof e=="string"?new RegExp(uN(e),"g"):e}function pN(e){return typeof e=="function"?e:function(){return e}}const Fc="phrasing",Mc=["autolink","link","image","label"];function hN(){return{transforms:[kN],enter:{literalAutolink:gN,literalAutolinkEmail:Bc,literalAutolinkHttp:Bc,literalAutolinkWww:Bc},exit:{literalAutolink:wN,literalAutolinkEmail:vN,literalAutolinkHttp:yN,literalAutolinkWww:xN}}}function mN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fc,notInConstruct:Mc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fc,notInConstruct:Mc},{character:":",before:"[ps]",after:"\\/",inConstruct:Fc,notInConstruct:Mc}]}}function gN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bc(e){this.config.enter.autolinkProtocol.call(this,e)}function yN(e){this.config.exit.autolinkProtocol.call(this,e)}function xN(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 vN(e){this.config.exit.autolinkEmail.call(this,e)}function wN(e){this.exit(e)}function kN(e){cN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,SN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),bN]],{ignore:["link","linkReference"]})}function SN(e,t,r,o,l){let a="";if(!g0(l)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!CN(r)))return!1;const u=EN(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 bN(e,t,r,o){return!g0(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function CN(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 EN(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=Ng(e,"(");let a=Ng(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 g0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ti(r)||Ca(r))&&(!t||r!==47)}y0.peek=$N;function jN(){this.buffer()}function TN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function RN(){this.buffer()}function IN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function NN(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 PN(e){this.exit(e)}function AN(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 LN(e){this.exit(e)}function $N(){return"["}function y0(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 _N(){return{enter:{gfmFootnoteCallString:jN,gfmFootnoteCall:TN,gfmFootnoteDefinitionLabelString:RN,gfmFootnoteDefinition:IN},exit:{gfmFootnoteCallString:NN,gfmFootnoteCall:PN,gfmFootnoteDefinitionLabelString:AN,gfmFootnoteDefinition:LN}}}function zN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:y0},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?x0:DN))),p(),f}}function DN(e,t,r){return t===0?e:x0(e,t,r)}function x0(e,t,r){return(r?"":" ")+e}const ON=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];v0.peek=VN;function FN(){return{canContainEols:["delete"],enter:{strikethrough:BN},exit:{strikethrough:UN}}}function MN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ON}],handlers:{delete:v0}}}function BN(e){this.enter({type:"delete",children:[]},e)}function UN(e){this.exit(e)}function v0(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 VN(){return"~"}function HN(e){return e.length}function qN(e,t){const r=t||{},o=(r.align||[]).concat(),l=r.stringLength||HN,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=WN(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]=Pg(o[g]);else{const b=Pg(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 WN(e){return e==null?"":String(e)}function Pg(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 GN(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()),JN);return l(),u}function JN(e,t,r){return">"+(r?"":" ")+e}function KN(e,t){return Ag(e,t.inConstruct,!0)&&!Ag(e,t.notInConstruct,!1)}function Ag(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 Lg(e,t,r,o){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
859
+ `&&KN(r.stack,r.unsafe[l]))return/[ \t]/.test(o.before)?"":" ";return`\\
860
+ `}function QN(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 YN(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 XN(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 ZN(e,t,r,o){const l=XN(r),a=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(YN(e,r)){const g=r.enter("codeIndented"),v=r.indentLines(a,eP);return g(),v}const d=r.createTracker(o),f=l.repeat(Math.max(QN(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 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:`
863
+ `)),m+=d.move(f),p(),m}function eP(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 tP(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 nP(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 sl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sa(e,t,r){const o=qi(e),l=qi(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}}w0.peek=rP;function w0(e,t,r,o){const l=nP(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=sl(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)+sl(g));const w=u.move(l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function rP(e,t,r){return r.options.emphasis||"*"}function iP(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,vd}),!!((!e.depth||e.depth<3)&&lf(e)&&(t.options.setext||r))}function oP(e,t,r,o){const l=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(o);if(iP(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}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:`
869
+ `,...a.current()});return/^[\t ]/.test(p)&&(p=sl(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}k0.peek=lP;function k0(e){return e.value||""}function lP(){return"<"}S0.peek=sP;function S0(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 sP(){return"!"}b0.peek=aP;function b0(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 aP(){return"!"}C0.peek=uP;function C0(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 uP(){return"`"}function E0(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))}j0.peek=cP;function j0(e,t,r,o){const l=mf(r),a=l==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let d,f;if(E0(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 cP(e,t,r){return E0(e,r)?"<":"["}T0.peek=dP;function T0(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 dP(){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 fP(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 pP(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 R0(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 hP(e,t,r,o){const l=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?pP(r):gf(r);const d=e.ordered?u==="."?")":".":fP(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),R0(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 mP(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 gP(e,t,r,o){const l=mP(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 yP(e,t,r,o){const l=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,o);return a(),l(),u}const xP=Ta(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vP(e,t,r,o){return(e.children.some(function(u){return xP(u)})?r.containerPhrasing:r.containerFlow).call(r,e,o)}function wP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}I0.peek=kP;function I0(e,t,r,o){const l=wP(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=sl(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)+sl(g));const w=u.move(l+l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function kP(e,t,r){return r.options.strong||"*"}function SP(e,t,r,o){return r.safe(e.value,o)}function bP(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 CP(e,t,r){const o=(R0(r)+(r.options.ruleSpaces?" ":"")).repeat(bP(r));return r.options.ruleSpaces?o.slice(0,-1):o}const N0={blockquote:GN,break:Lg,code:ZN,definition:tP,emphasis:w0,hardBreak:Lg,heading:oP,html:k0,image:S0,imageReference:b0,inlineCode:C0,link:j0,linkReference:T0,list:hP,listItem:gP,paragraph:yP,root:vP,strong:I0,text:SP,thematicBreak:CP};function EP(){return{enter:{table:jP,tableData:$g,tableHeader:$g,tableRow:RP},exit:{codeText:IP,table:TP,tableData:Uc,tableHeader:Uc,tableRow:Uc}}}function jP(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 TP(e){this.exit(e),this.data.inTable=void 0}function RP(e){this.enter({type:"tableRow",children:[]},e)}function Uc(e){this.exit(e)}function $g(e){this.enter({type:"tableCell",children:[]},e)}function IP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,NP));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function NP(e,t){return t==="|"?t:e}function PP(e){const t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,l=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
870
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`
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 qN(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=N0.inlineCode(w,S,b);return b.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function AP(){return{exit:{taskListCheckValueChecked:_g,taskListCheckValueUnchecked:_g,paragraph:$P}}}function LP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_P}}}function _g(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $P(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 _P(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=N0.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 zP(){return[hN(),_N(),FN(),EP(),AP()]}function DP(e){return{extensions:[mN(),zN(e),MN(),PP(e),LP()]}}const OP={tokenize:HP,partial:!0},P0={tokenize:qP,partial:!0},A0={tokenize:WP,partial:!0},L0={tokenize:GP,partial:!0},FP={tokenize:JP,partial:!0},$0={name:"wwwAutolink",tokenize:UP,previous:z0},_0={name:"protocolAutolink",tokenize:VP,previous:D0},Zn={name:"emailAutolink",tokenize:BP,previous:O0},Un={};function MP(){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,_0];Un[104]=[Zn,_0];Un[87]=[Zn,$0];Un[119]=[Zn,$0];function BP(e,t,r){const o=this;let l,a;return u;function u(g){return!bd(g)||!O0.call(o,o.previous)||yf(o.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return bd(g)?(e.consume(g),d):g===64?(e.consume(g),f):r(g)}function f(g){return g===46?e.check(FP,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 UP(e,t,r){const o=this;return l;function l(u){return u!==87&&u!==119||!z0.call(o,o.previous)||yf(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(OP,e.attempt(P0,e.attempt(A0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function VP(e,t,r){const o=this;let l="",a=!1;return u;function u(g){return(g===72||g===104)&&D0.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)||ti(g)||Ca(g)?r(g):e.attempt(P0,e.attempt(A0,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function HP(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 qP(e,t,r){let o,l,a;return u;function u(p){return p===46||p===95?e.check(L0,f,d)(p):p===null||He(p)||ti(p)||p!==45&&Ca(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 WP(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(L0,t,a)(u):u===null||He(u)||ti(u)?t(u):(e.consume(u),l)}function a(u){return u===41&&o++,e.consume(u),l}}function GP(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)||ti(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||He(d)||ti(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 JP(e,t,r){return o;function o(a){return e.consume(a),l}function l(a){return At(a)?r(a):t(a)}}function z0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function D0(e){return!Ot(e)}function O0(e){return!(e===47||bd(e))}function bd(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 KP={tokenize:r4,partial:!0};function QP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:e4,continuation:{tokenize:t4},exit:n4}},text:{91:{name:"gfmFootnoteCall",tokenize:ZP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:YP,resolveTo:XP}}}}function YP(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 XP(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 ZP(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 e4(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 t4(e,t,r){return e.check(ml,t,e.attempt(KP,t,r))}function n4(e){e.exit("gfmFootnoteDefinition")}function r4(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 i4(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,Ea(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=qi(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=qi(S);return j._open=!C||C===2&&!!b,j._close=!b||b===2&&!!C,d(S)}}}class o4{constructor(){this.map=[]}add(t,r,o){l4(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 l4(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 s4(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 a4(){return{flow:{null:{name:"table",tokenize:u4,resolveAll:c4}}}}function u4(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 c4(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 o4;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(d=!1,f!==0&&(zg(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&&zg(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=s4(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({},$i(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=$i(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=$i(t.events,r[2]),m=$i(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({},$i(t.events,l)),e.add(l,0,[["exit",a,t]]),a=void 0),a}function zg(e,t,r,o,l){const a=[],u=$i(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 $i(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const d4={name:"tasklistCheck",tokenize:p4};function f4(){return{text:{91:d4}}}function p4(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:h4},t,r)(f):r(f)}}function h4(e,t,r){return ze(e,o,"whitespace");function o(l){return l===null?r(l):t(l)}}function m4(e){return Kv([MP(),QP(),i4(e),a4(),f4()])}const g4={};function ri(e){const t=this,r=e||g4,o=t.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(m4(r)),a.push(zP()),u.push(DP(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
- `,D0=R.div`
880
+ `,F0=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
- `,h4=R.div`
898
+ `,y4=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
- `,m4=R.div`
904
+ `,x4=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
- `,g4=R.textarea`
962
+ `,v4=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
- `,y4=R.div`
986
+ `,w4=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
- `,x4=R.div`
998
+ `,k4=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
- `,v4=R.span`
1005
+ `,S4=R.span`
1006
1006
  font-size: 0.8em;
1007
1007
  color: ${e=>e.theme.colors.primary};
1008
1008
  cursor: pointer;
@@ -1011,7 +1011,7 @@ Error generating stack: `+x.message+`
1011
1011
  &:hover {
1012
1012
  color: ${e=>e.theme.colors.primaryHover};
1013
1013
  }
1014
- `,w4=R.div`
1014
+ `,b4=R.div`
1015
1015
  display: flex;
1016
1016
  gap: 8px;
1017
1017
  margin-top: 8px;
@@ -1027,7 +1027,7 @@ Error generating stack: `+x.message+`
1027
1027
  opacity: 0.5;
1028
1028
  cursor: not-allowed;
1029
1029
  }
1030
- `,k4=R(xf)`
1030
+ `,C4=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
- `,S4=R(xf)`
1044
+ `,E4=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
- `,b4=R(xf)`
1051
+ `,j4=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
- `,C4=R.div`
1058
+ `,T4=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 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`
1077
+ `;const R4=e=>e>=1e3?`Context size: ${(e/1e3).toFixed(1)}K tokens`:`Context size: ${e} tokens`,I4=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},N4=e=>{const t=I4(e),r=t!==void 0?R4(t):"Context size N/A";return{contextSize:t,formattedSize:r}},P4=R.span`
1078
1078
  font-size: 12px;
1079
1079
  color: ${e=>e.theme.colors.textSecondary};
1080
1080
  white-space: nowrap;
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`
1081
+ `,M0=({messages:e,className:t})=>{if(!e||e.length===0)return null;const{formattedSize:r}=N4(e);return y.jsx(P4,{className:t,children:r})},B0=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 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`
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(A4(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 A4(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 Dg=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Og=/\S/,U0=new Ir;U0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Og.test(e)&&!Og.test(t)};U0.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]&&Dg.test(t[r])&&Dg.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 L4(e,t,r){return vf.diff(e,t,r)}var $4=new Ir;$4.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var _4=new Ir;_4.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Js(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Js=function(t){return typeof t}:Js=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}var z4=Object.prototype.toString,al=new Ir;al.useLongestToken=!0;al.tokenize=vf.tokenize;al.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(Cd(e,null,null,l),l," ")};al.equals=function(e,t){return Ir.prototype.equals.call(al,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Cd(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(z4.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]=Cd(e[a],t,r,o,l);return t.pop(),r.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Js(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]=Cd(e[f],t,r,o,f);t.pop(),r.pop()}else u=e;return u}var Ed=new Ir;Ed.tokenize=function(e){return e.slice()};Ed.join=Ed.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(V0,{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"})})]})},V0=R.button`
1183
1183
  padding: 4px;
1184
1184
  border: 1px solid ${e=>e.theme.colors.border};
1185
1185
  border-radius: 4px;
@@ -1201,19 +1201,19 @@ Error generating stack: `+x.message+`
1201
1201
  width: 16px;
1202
1202
  height: 16px;
1203
1203
  }
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`
1204
+ `,D4=({oldContent:e,newContent:t})=>{const[r,o]=P.useState("unified"),l=L4(e??"",t),a=()=>y.jsxs(M4,{children:[y.jsx(Qo,{content:t}),l.map((p,m)=>y.jsx(Vc,{added:p.added,removed:p.removed,children:p.value},m))]}),u=()=>y.jsxs(B4,{children:[y.jsxs(Fg,{children:[e&&y.jsx(Qo,{content:e}),l.filter(p=>!p.added).map((p,m)=>y.jsx(Vc,{removed:p.removed,children:p.value},m))]}),y.jsxs(Fg,{children:[y.jsx(Qo,{content:t}),l.filter(p=>!p.removed).map((p,m)=>y.jsx(Vc,{added:p.added,children:p.value},m))]})]}),d=()=>y.jsxs(Mg,{children:[e&&y.jsx(Qo,{content:e}),y.jsx(Bg,{children:e})]}),f=()=>y.jsxs(Mg,{children:[y.jsx(Qo,{content:t}),y.jsx(Bg,{children:t})]});return y.jsxs(O4,{children:[y.jsxs(F4,{children:[y.jsx(zs,{active:r==="unified",onClick:()=>o("unified"),children:"Unified"}),y.jsx(zs,{active:r==="sideBySide",onClick:()=>o("sideBySide"),children:"Side by Side"}),y.jsx(zs,{active:r==="old",onClick:()=>o("old"),children:"Old Content"}),y.jsx(zs,{active:r==="new",onClick:()=>o("new"),children:"New Content"})]}),r==="unified"&&a(),r==="sideBySide"&&u(),r==="old"&&d(),r==="new"&&f()]})},O4=R.div`
1205
1205
  margin: 16px 0;
1206
1206
  position: relative;
1207
1207
 
1208
- ${M0} {
1208
+ ${V0} {
1209
1209
  position: absolute;
1210
1210
  right: 20px;
1211
1211
  }
1212
- `,D4=R.div`
1212
+ `,F4=R.div`
1213
1213
  display: flex;
1214
1214
  gap: 8px;
1215
1215
  margin-bottom: 16px;
1216
- `,_s=R.button`
1216
+ `,zs=R.button`
1217
1217
  padding: 4px 8px;
1218
1218
  border: 1px solid ${e=>e.theme.colors.border};
1219
1219
  border-radius: 4px;
@@ -1225,7 +1225,7 @@ Error generating stack: `+x.message+`
1225
1225
  &:hover {
1226
1226
  background-color: ${e=>e.theme.colors.primaryHover};
1227
1227
  }
1228
- `,O4=R.div`
1228
+ `,M4=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
- `,F4=R.div`
1236
+ `,B4=R.div`
1237
1237
  display: grid;
1238
1238
  grid-template-columns: 1fr 1fr;
1239
1239
  gap: 16px;
1240
1240
  margin: 16px 0;
1241
- `,Og=R.div`
1241
+ `,Fg=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
- `,Fg=R.div`
1249
+ `,Mg=R.div`
1250
1250
  margin: 16px 0;
1251
1251
  padding: 8px;
1252
1252
  border: 1px solid ${e=>e.theme.colors.border};
@@ -1254,12 +1254,12 @@ Error generating stack: `+x.message+`
1254
1254
  background-color: ${e=>e.theme.colors.background};
1255
1255
  max-height: 400px;
1256
1256
  overflow-y: auto;
1257
- `,Mg=R.div`
1257
+ `,Bg=R.div`
1258
1258
  white-space: pre-wrap;
1259
1259
  font-family: monospace;
1260
1260
  font-size: 0.9em;
1261
1261
  line-height: 1.5;
1262
- `,Bc=R.div`
1262
+ `,Vc=R.div`
1263
1263
  white-space: pre-wrap;
1264
1264
  font-family: monospace;
1265
1265
  font-size: 0.9em;
@@ -1268,14 +1268,14 @@ 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
- `,B0=R.div`
1271
+ `,wf=R.div`
1272
1272
  display: flex;
1273
1273
  flex-direction: column;
1274
1274
  gap: 12px;
1275
1275
  width: 100%;
1276
1276
  margin-top: 8px;
1277
1277
  font-size: 0.95em;
1278
- `,Ai=R.div`
1278
+ `,Qr=R.div`
1279
1279
  border: 1px solid ${e=>e.theme.colors.border};
1280
1280
  border-radius: 6px;
1281
1281
  overflow: hidden;
@@ -1285,7 +1285,7 @@ Error generating stack: `+x.message+`
1285
1285
  &:hover {
1286
1286
  border-color: ${e=>e.theme.colors.primary}66;
1287
1287
  }
1288
- `,Li=R.div`
1288
+ `,Yr=R.div`
1289
1289
  padding: 10px 12px;
1290
1290
  background: ${e=>e.theme.colors.backgroundSecondary}22;
1291
1291
  cursor: pointer;
@@ -1295,7 +1295,7 @@ Error generating stack: `+x.message+`
1295
1295
  &:hover {
1296
1296
  background: ${e=>e.theme.colors.backgroundSecondary}44;
1297
1297
  }
1298
- `,$i=R.div`
1298
+ `,Xr=R.div`
1299
1299
  padding: 12px;
1300
1300
  border-top: 1px solid ${e=>e.theme.colors.border};
1301
1301
  animation: slideDown 0.2s ease;
@@ -1366,7 +1366,7 @@ Error generating stack: `+x.message+`
1366
1366
  transform: translateY(0);
1367
1367
  }
1368
1368
  }
1369
- `,_i=R.div`
1369
+ `,Di=R.div`
1370
1370
  display: flex;
1371
1371
  align-items: center;
1372
1372
  gap: 8px;
@@ -1376,7 +1376,7 @@ Error generating stack: `+x.message+`
1376
1376
  ${e=>e.expanded&&bt`
1377
1377
  margin-bottom: -1px;
1378
1378
  `}
1379
- `,zi=R.span`
1379
+ `,Oi=R.span`
1380
1380
  display: inline-block;
1381
1381
  width: 16px;
1382
1382
  height: 16px;
@@ -1384,11 +1384,11 @@ Error generating stack: `+x.message+`
1384
1384
  text-align: center;
1385
1385
  font-size: 0.8em;
1386
1386
  transition: transform 0.2s ease;
1387
- `,Cd=R.div`
1387
+ `,aa=R.div`
1388
1388
  display: flex;
1389
1389
  flex-direction: column;
1390
1390
  gap: 12px;
1391
- `,Ed=R.div`
1391
+ `,ua=R.div`
1392
1392
  padding: 10px;
1393
1393
  border-radius: 4px;
1394
1394
  background: ${e=>e.theme.colors.backgroundSecondary}22;
@@ -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
- `,M4=R.div`
1400
+ `,U4=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
- `,B4=R.div`
1414
+ `,V4=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
- `,U4=R.div`
1473
+ `,H4=R.div`
1474
1474
  font-size: 0.9em;
1475
1475
  color: ${e=>e.theme.colors.textSecondary};
1476
- `,V4=R.div`
1476
+ `,q4=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
- `,U0=R.div`
1496
+ `,H0=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 H4=(e,t)=>{switch(e){case"createFile":return bt`
1515
+ `;const W4=(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;
@@ -1541,7 +1541,7 @@ Error generating stack: `+x.message+`
1541
1541
  background: ${t.colors.secondary}22;
1542
1542
  color: ${t.colors.secondary};
1543
1543
  border-color: ${t.colors.secondary}44;
1544
- `}},Js=R.div`
1544
+ `}},nl=R.div`
1545
1545
  display: inline-block;
1546
1546
  padding: 2px 8px;
1547
1547
  border-radius: 3px;
@@ -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=>H4(e.variant,e.theme)}
1552
+ ${e=>W4(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 q4=R.div`
1557
+ `;const q0=R.div`
1558
1558
  display: flex;
1559
1559
  gap: 8px;
1560
1560
  align-items: center;
1561
1561
  flex-wrap: wrap;
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`
1562
+ `,G4=({data:{fileUpdates:e}})=>y.jsx("div",{children:e.map((t,r)=>y.jsx(kf,{data:{name:t.name,args:t.args}},r))}),kf=({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(K4,{children:[y.jsxs(Q4,{children:[y.jsx(nl,{variant:e,children:e}),y.jsx(B0,{children:t}),y.jsxs(Y4,{children:[y.jsx(Vg,{onClick:()=>u(!a),children:a?"Hide Explanation":"Explanation"}),(o||l)&&y.jsx(Vg,{onClick:()=>f(!d),children:d?"Hide Diff":"Show Diff"})]})]}),a&&r&&y.jsx(X4,{children:y.jsx(ni,{remarkPlugins:[ri],children:r})}),d&&y.jsx(Z4,{children:y.jsx(D4,{oldContent:o,newContent:l})})]})},J4=["updateFile","createFile","patchFile","createDirectory","deleteFile","moveFile","downloadFile","splitImage","resizeImage","imglyRemoveBackground"];function ca(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.name!="string"||!J4.includes(t.name)?!1:typeof t.args.filePath=="string"}function Ug(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.fileUpdates)&&t.fileUpdates.every(ca)}const K4=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
- `,K4=R.div`
1568
+ `,Q4=R.div`
1569
1569
  display: flex;
1570
1570
  gap: 8px;
1571
1571
  align-items: center;
1572
- `,Q4=R.div`
1572
+ `,Y4=R.div`
1573
1573
  display: flex;
1574
1574
  gap: 8px;
1575
1575
  margin-left: auto;
1576
- `,Ug=R.button`
1576
+ `,Vg=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
- `,Y4=R.div`
1588
+ `,X4=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
- `,X4=R.div`
1597
- margin: 16px 0;
1598
1596
  `,Z4=R.div`
1597
+ margin: 16px 0;
1598
+ `,eA=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
- `,eA=R.div`
1604
+ `,tA=R.div`
1605
1605
  position: relative;
1606
1606
  width: 100%;
1607
1607
  padding-bottom: 100%; /* Creates a square aspect ratio */
1608
- `,tA=R.img`
1608
+ `,nA=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
- `,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`
1617
+ `,rA=({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 Bb(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(F0,{"data-edit-mode":o,children:[y.jsxs(y4,{children:[y.jsx("div",{children:e.type==="user"?"You":"Assistant"}),C&&!o&&y.jsx(C4,{onClick:v,title:"Edit message",children:"✎"})]}),o?y.jsxs(y.Fragment,{children:[y.jsx(v4,{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(b4,{children:[y.jsx(E4,{onClick:b,disabled:d,children:d?y.jsx(T4,{}):"Save"}),y.jsx(j4,{onClick:w,disabled:d,children:"Cancel"})]})]}):y.jsx(x4,{children:y.jsx(ni,{remarkPlugins:[ri],children:e.content})}),e.images&&e.images.length>0&&y.jsx(eA,{children:e.images.map((A,F)=>y.jsx(tA,{children:y.jsx(nA,{src:`data:${A.mediaType};base64,${A.base64url}`,alt:A.originalName||`Image ${F+1}`,title:A.originalName||`Image ${F+1}`})},F))}),y.jsxs(w4,{children:[y.jsx("div",{children:e.data?y.jsx(S4,{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(M0,{messages:[e]}),y.jsx(k4,{children:e.timestamp.toLocaleString()})]})]}),t.has(e.id)&&e.data?y.jsx(y.Fragment,{children:ca(e.data)?y.jsx(kf,{data:e.data}):y.jsx($v,{data:e.data})}):null]})})},Hg=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`,Hg=R.div`
1634
+ `}\n`,qg=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`,rA=R.div`
1643
+ }\n`,iA=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`,iA=R.div`
1651
+ }\n`,oA=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`,oA=R.div`
1657
+ }\n`,lA=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
- `,lA=R.span`
1663
+ `,sA=R.span`
1664
1664
  font-size: 0.8em;
1665
1665
  color: ${e=>e.theme.colors.primary};
1666
1666
  cursor: pointer;
@@ -1669,14 +1669,43 @@ 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`,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`
1672
+ &:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,aA=({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(wf,{children:[y.jsxs(Qr,{children:[y.jsx(Yr,{onClick:()=>a("analysis"),children:y.jsxs(Di,{expanded:t.analysis,children:[y.jsx(Oi,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&y.jsx(Xr,{children:y.jsx(ni,{remarkPlugins:[ri],children:e.args.problemAnalysis})})]}),y.jsxs(Qr,{children:[y.jsx(Yr,{onClick:()=>a("changes"),children:y.jsxs(Di,{expanded:t.changes,children:[y.jsx(Oi,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&y.jsx(Xr,{children:y.jsx(ni,{remarkPlugins:[ri],children:e.args.codeChanges})})]}),y.jsxs(Qr,{children:[y.jsx(Yr,{onClick:()=>a("files"),children:y.jsxs(Di,{expanded:t.files,children:[y.jsx(Oi,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&y.jsx(Xr,{children:y.jsx(aa,{children:e.args.affectedFiles.map((d,f)=>y.jsxs(ua,{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(H0,{children:y.jsxs(H4,{children:["Dependencies:",d.dependencies.map((p,m)=>y.jsx(q4,{children:p},m))]})}),y.jsx(U4,{children:d.reason})]},f))})})]})]})};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.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 uA=({data:e})=>{const[t,r]=P.useState({explanation:!0,updates:!0,context:!1}),o=l=>{r(a=>({...a,[l]:!a[l]}))};return y.jsxs(wf,{children:[y.jsxs(Qr,{children:[y.jsx(Yr,{onClick:()=>o("explanation"),children:y.jsxs(Di,{expanded:t.explanation,children:[y.jsx(Oi,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&y.jsx(Xr,{children:y.jsx(ni,{remarkPlugins:[ri],children:e.args.explanation})})]}),y.jsxs(Qr,{children:[y.jsx(Yr,{onClick:()=>o("updates"),children:y.jsxs(Di,{expanded:t.updates,children:[y.jsx(Oi,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&y.jsx(Xr,{children:y.jsx(aa,{children:e.args.fileUpdates.map((l,a)=>{var u;return y.jsxs(ua,{id:"file-update-"+l.id,children:[y.jsxs(q0,{children:[y.jsx(nl,{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(nl,{variant:"temperature",title:"Temperature",children:l.temperature}),l.cheap&&y.jsx(nl,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),l.dependsOn&&t[l.id]&&y.jsxs(H0,{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(V4,{title:"Prompt",children:y.jsx(ni,{remarkPlugins:[ri],children:l.prompt})})]},a)})})})]}),y.jsxs(Qr,{children:[y.jsx(Yr,{onClick:()=>o("context"),children:y.jsxs(Di,{expanded:t.context,children:[y.jsx(Oi,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&y.jsx(Xr,{children:y.jsx(aa,{children:e.args.contextPaths.map((l,a)=>y.jsx(ua,{children:y.jsx(jd,{children:l})},a))})})]})]})};function Gg(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 cA=R(nl)``;R.div`
1673
+ margin-top: 8px;
1674
+ padding: 12px;
1675
+ border-radius: 4px;
1676
+ background: ${e=>e.theme.colors.backgroundSecondary}22;
1677
+ border: 1px solid ${e=>e.theme.colors.border};
1678
+ animation: slideDown 0.2s ease;
1679
+
1680
+ pre {
1681
+ margin: 0;
1682
+ padding: 0;
1683
+ background: transparent;
1684
+ font-family: 'Courier New', Courier, monospace;
1685
+ font-size: 0.9em;
1686
+ white-space: pre-wrap;
1687
+ word-wrap: break-word;
1688
+ color: ${e=>e.theme.colors.textSecondary};
1689
+ }
1690
+
1691
+ @keyframes slideDown {
1692
+ from {
1693
+ opacity: 0;
1694
+ transform: translateY(-10px);
1695
+ }
1696
+ to {
1697
+ opacity: 1;
1698
+ transform: translateY(0);
1699
+ }
1700
+ }
1701
+ `;function Jg(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.summary=="string"&&Array.isArray(t.actions)&&t.actions.every(r=>typeof r=="object"&&r!==null&&typeof r.name=="string"&&typeof r.filePath=="string")}const dA=({data:e})=>y.jsx(wf,{children:y.jsxs(Qr,{children:[y.jsxs(Yr,{children:["Inferred Actions (",e.actions.length,")"]}),y.jsxs(Xr,{children:[e.summary&&y.jsx(ni,{remarkPlugins:[ri],children:e.summary}),y.jsx(aa,{children:e.actions.map((t,r)=>y.jsx(ua,{children:y.jsxs(q0,{children:[y.jsx(cA,{variant:t.name,children:t.name}),y.jsx(B0,{children:t.filePath})]})},r))})]})]})}),fA=({message:e,collapsedExecutions:t,toggleExecutionCollapse:r,visibleDataIds:o,toggleDataVisibility:l})=>t.has(e.id)?y.jsx(Hg,{isExecutionEnd:e.isExecutionEnd,children:y.jsxs(qg,{onClick:()=>r(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):pA(e.parts).map((u,d)=>u.parts.length>0?y.jsxs(Hg,{isExecutionEnd:e.isExecutionEnd,children:[y.jsxs(qg,{onClick:()=>r(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),y.jsx(iA,{children:u.parts.map(f=>y.jsxs(oA,{children:[f.content,y.jsx(lA,{children:f.timestamp.toLocaleString()}),f.data?y.jsx(sA,{onClick:()=>l(f.id),children:o.has(f.id)?"Hide data":"Show data"}):null,o.has(f.id)&&f.data?y.jsx($v,{data:f.data}):null]},f.id))})]},`section-${d}`):u.codegenView?y.jsx(Pt.Fragment,{children:u.codegenView},`view-${d}`):null);function pA(e){const t=[];let r=[];return t.push({parts:r}),e.forEach(o=>{if(r.push(o),Wg(o.data)||Gg(o.data)||ca(o.data)||Ug(o.data)||Jg(o.data)){const l=Wg(o.data)?y.jsx(aA,{data:o.data},`planning-${o.id}`):Gg(o.data)?y.jsx(uA,{data:o.data},`summary-${o.id}`):ca(o.data)?y.jsx(kf,{data:o.data},`file-update-${o.id}`):Ug(o.data)?y.jsx(G4,{data:o.data}):Jg(o.data)?y.jsx(dA,{data:o.data}):null;t.push({parts:[],codegenView:l}),r=[],t.push({parts:r})}}),t}const hA=R.div`
1673
1702
  display: flex;
1674
1703
  flex-direction: column;
1675
1704
  height: 100%;
1676
1705
  background-color: ${e=>e.theme.colors.background};
1677
1706
  position: relative;
1678
1707
  overflow: hidden;
1679
- `,fA=R.div`
1708
+ `,mA=R.div`
1680
1709
  display: flex;
1681
1710
  flex-direction: column;
1682
1711
  gap: 16px;
@@ -1685,14 +1714,14 @@ Error generating stack: `+x.message+`
1685
1714
  flex-grow: 1;
1686
1715
  max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
1687
1716
  margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
1688
- `,pA=R.div`
1717
+ `,gA=R.div`
1689
1718
  display: flex;
1690
1719
  flex-direction: column;
1691
1720
  gap: 8px;
1692
1721
  border: 1px solid ${e=>e.theme.colors.border};
1693
1722
  border-radius: 8px;
1694
1723
  margin-bottom: 24px;
1695
- `,hA=R.div`
1724
+ `,yA=R.div`
1696
1725
  font-size: 16px;
1697
1726
  font-weight: bold;
1698
1727
  color: ${e=>e.theme.colors.text};
@@ -1745,7 +1774,7 @@ Error generating stack: `+x.message+`
1745
1774
  overflow: visible;
1746
1775
  text-overflow: ellipsis;
1747
1776
  }
1748
- `,mA=R.button`
1777
+ `,xA=R.button`
1749
1778
  display: flex;
1750
1779
  justify-content: center;
1751
1780
  align-items: center;
@@ -1766,12 +1795,12 @@ Error generating stack: `+x.message+`
1766
1795
  background-color: ${e=>e.theme.colors.backgroundSecondary};
1767
1796
  color: ${e=>e.theme.colors.error};
1768
1797
  }
1769
- `,gA=R.div`
1798
+ `,vA=R.div`
1770
1799
  display: ${e=>e.isCollapsed?"none":"flex"};
1771
1800
  flex-direction: column;
1772
1801
  gap: 8px;
1773
1802
  padding: 16px;
1774
- `,yA=R.p`
1803
+ `,wA=R.p`
1775
1804
  font-size: 14px;
1776
1805
  color: ${e=>e.theme.colors.textSecondary};
1777
1806
  background-color: ${e=>e.theme.colors.backgroundTertiary};
@@ -1784,12 +1813,12 @@ Error generating stack: `+x.message+`
1784
1813
  &:last-child {
1785
1814
  margin-bottom: 0;
1786
1815
  }
1787
- `;const xA=R.span`
1816
+ `;const kA=R.span`
1788
1817
  &:before {
1789
1818
  content: '▼';
1790
1819
  margin-right: 8px;
1791
1820
  }
1792
- `,vA=R.span`
1821
+ `,SA=R.span`
1793
1822
  &:before {
1794
1823
  content: '▶';
1795
1824
  margin-right: 8px;
@@ -1802,16 +1831,16 @@ Error generating stack: `+x.message+`
1802
1831
  &:hover {
1803
1832
  text-decoration: underline;
1804
1833
  }
1805
- `;const wA=R.div`
1834
+ `;const bA=R.div`
1806
1835
  // TODO
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`
1836
+ `;function CA(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 EA=({onClick:e})=>y.jsxs(TA,{onClick:e,children:[y.jsx(RA,{children:"New messages"}),y.jsx(Hc,{}),y.jsx(Hc,{}),y.jsx(Hc,{})]}),jA=Gi`
1808
1837
  0%, 80%, 100% {
1809
1838
  transform: scale(0.8);
1810
1839
  }
1811
1840
  40% {
1812
1841
  transform: scale(1.2);
1813
1842
  }
1814
- `,CA=R.div`
1843
+ `,TA=R.div`
1815
1844
  display: flex;
1816
1845
  justify-content: center;
1817
1846
  align-items: center;
@@ -1831,16 +1860,16 @@ Error generating stack: `+x.message+`
1831
1860
  &:hover {
1832
1861
  background-color: ${e=>e.theme.colors.primaryHover};
1833
1862
  }
1834
- `,EA=R.span`
1863
+ `,RA=R.span`
1835
1864
  margin-right: 10px;
1836
1865
  font-weight: bold;
1837
- `,Uc=R.div`
1866
+ `,Hc=R.div`
1838
1867
  width: 8px;
1839
1868
  height: 8px;
1840
1869
  background-color: ${e=>e.theme.colors.text};
1841
1870
  border-radius: 50%;
1842
1871
  margin: 0 2px;
1843
- animation: ${bA} 1.4s infinite ease-in-out both;
1872
+ animation: ${jA} 1.4s infinite ease-in-out both;
1844
1873
 
1845
1874
  &:nth-child(2) {
1846
1875
  animation-delay: -0.32s;
@@ -1849,10 +1878,10 @@ Error generating stack: `+x.message+`
1849
1878
  &:nth-child(3) {
1850
1879
  animation-delay: -0.16s;
1851
1880
  }
1852
- `,jA=R.div`
1881
+ `,IA=R.div`
1853
1882
  position: relative;
1854
1883
  width: 100%;
1855
- `,TA=R.textarea`
1884
+ `,NA=R.textarea`
1856
1885
  width: 100%;
1857
1886
  min-height: 60px;
1858
1887
  resize: none;
@@ -1873,17 +1902,17 @@ Error generating stack: `+x.message+`
1873
1902
  outline: none;
1874
1903
  border-color: ${e=>e.theme.colors.primary};
1875
1904
  }
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`
1905
+ `,W0=({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(IA,{children:y.jsx(NA,{ref:d,value:e,onChange:f,onKeyDown:r,onPaste:p,...u})})},PA=5*1024*1024,Kg=["image/jpeg","image/png","image/gif","image/webp"],Qg=5,G0=({images:e,onImagesChange:t,error:r,setError:o,fileInputRef:l})=>{const a=d=>{const p=Array.from(d.target.files||[]).filter(m=>Kg.includes(m.type)?m.size>PA?(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>Qg){o(`Too many images. Maximum ${Qg} images allowed.`);return}t([...e,...p]),o(null)},u=d=>{const f=e.filter((p,m)=>m!==d);t(f)};return y.jsxs(AA,{children:[r&&y.jsx(LA,{children:r}),y.jsx($A,{children:e.map((d,f)=>y.jsxs(_A,{children:[y.jsx("img",{src:URL.createObjectURL(d),alt:`Uploaded ${f+1}`}),y.jsx(zA,{onClick:()=>u(f),children:"×"})]},f))}),y.jsx("input",{type:"file",ref:l,style:{display:"none"},onChange:a,accept:Kg.join(","),multiple:!0})]})},AA=R.div`
1877
1906
  margin-bottom: 8px;
1878
- `,NA=R.div`
1907
+ `,LA=R.div`
1879
1908
  color: ${e=>e.theme.colors.error};
1880
1909
  font-size: 14px;
1881
1910
  margin-bottom: 8px;
1882
- `,PA=R.div`
1911
+ `,$A=R.div`
1883
1912
  display: flex;
1884
1913
  flex-wrap: wrap;
1885
1914
  gap: 8px;
1886
- `,AA=R.div`
1915
+ `,_A=R.div`
1887
1916
  position: relative;
1888
1917
  width: 60px;
1889
1918
  height: 60px;
@@ -1894,7 +1923,7 @@ Error generating stack: `+x.message+`
1894
1923
  object-fit: cover;
1895
1924
  border-radius: 4px;
1896
1925
  }
1897
- `,LA=R.button`
1926
+ `,zA=R.button`
1898
1927
  position: absolute;
1899
1928
  top: -8px;
1900
1929
  right: -8px;
@@ -1914,11 +1943,11 @@ Error generating stack: `+x.message+`
1914
1943
  &:hover {
1915
1944
  background-color: ${e=>e.theme.colors.errorHover};
1916
1945
  }
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`
1946
+ `,DA={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 🧩"},OA=e=>DA[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 Qb();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(FA,{children:[y.jsxs(MA,{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:OA(m)},m))]}),a&&y.jsx(BA,{children:"Loading actions..."}),d&&y.jsx(UA,{children:d})]})},FA=R.div`
1918
1947
  display: flex;
1919
1948
  flex-direction: column;
1920
1949
  gap: 4px;
1921
- `,DA=R.select`
1950
+ `,MA=R.select`
1922
1951
  padding: 8px;
1923
1952
  border: 1px solid ${({theme:e})=>e.colors.border};
1924
1953
  border-radius: 4px;
@@ -1937,14 +1966,14 @@ Error generating stack: `+x.message+`
1937
1966
  background-color: ${({theme:e})=>e.colors.inputBg};
1938
1967
  color: ${({theme:e})=>e.colors.inputText};
1939
1968
  }
1940
- `,OA=R.div`
1969
+ `,BA=R.div`
1941
1970
  color: ${({theme:e})=>e.colors.text};
1942
1971
  font-size: 14px;
1943
1972
  font-style: italic;
1944
- `,FA=R.div`
1973
+ `,UA=R.div`
1945
1974
  color: ${({theme:e})=>e.colors.error};
1946
1975
  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`
1976
+ `,Yg=({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(VA,{children:[o?y.jsxs(HA,{onSubmit:K,children:[y.jsx("p",{children:o.text}),(H=o.confirmation)!=null&&H.secret?y.jsx(qA,{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(W0,{value:u,onChange:d,placeholder:"Enter your answer here or select a suggestion",maxViewportHeight:.3,onImagePaste:G}),y.jsx(G0,{images:f,onImagesChange:p,error:m,setError:g,fileInputRef:L})]}),(ae=o.confirmation)!=null&&ae.secret?y.jsxs(Ds,{children:[y.jsx(Xg,{type:"submit",disabled:!u.trim(),children:"Submit"}),y.jsx(qc,{onClick:()=>ie(!1),"data-secondary":"true",children:"Decline"}),y.jsx(Os,{onClick:t,children:"Interrupt"})]}):re?y.jsxs(Ds,{children:[y.jsx(Xg,{type:"submit",disabled:!u.trim()&&f.length===0,children:"Submit Answer"}),y.jsx(YA,{type:"button",onClick:se,title:"Upload Images",children:y.jsx(px,{})}),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(WA,{ref:V,children:[y.jsxs(GA,{type:"button",onClick:ne,children:[v[0],v.length>1&&y.jsx(JA,{children:" ▼"})]}),A&&y.jsx(KA,{children:v.map((U,T)=>y.jsx(QA,{onClick:()=>D(U),children:U},T))})]}),y.jsx(Os,{onClick:t,children:"Interrupt"})]}):y.jsxs(Ds,{children:[y.jsx(qc,{onClick:()=>ie(!0),children:(ue=o.confirmation)==null?void 0:ue.confirmLabel}),y.jsx(qc,{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(Os,{onClick:t,children:"Interrupt"})]})]}):y.jsxs(Ds,{children:[y.jsx(XA,{onClick:r,isPaused:le,children:le?"Resume":"Pause"}),y.jsx(Os,{onClick:t,children:"Interrupt"})]}),w&&y.jsx(ZA,{children:w})]})},VA=R.div`
1948
1977
  background-color: ${({theme:e})=>e.colors.background};
1949
1978
  border: 1px solid ${({theme:e})=>e.colors.border};
1950
1979
  border-radius: 8px;
@@ -1954,14 +1983,14 @@ Error generating stack: `+x.message+`
1954
1983
  max-width: 70%;
1955
1984
  width: 100%;
1956
1985
  box-sizing: border-box;
1957
- `,BA=R.form`
1986
+ `,HA=R.form`
1958
1987
  display: flex;
1959
1988
  flex-direction: column;
1960
1989
 
1961
1990
  > p {
1962
1991
  margin-top: 0;
1963
1992
  }
1964
- `,UA=R.input`
1993
+ `,qA=R.input`
1965
1994
  width: 100%;
1966
1995
  padding: 10px;
1967
1996
  border: 1px solid ${({theme:e})=>e.colors.inputBorder};
@@ -1972,10 +2001,10 @@ Error generating stack: `+x.message+`
1972
2001
  font-size: 14px;
1973
2002
  box-sizing: border-box;
1974
2003
  margin-bottom: 10px;
1975
- `,VA=R.div`
2004
+ `,WA=R.div`
1976
2005
  position: relative;
1977
2006
  display: inline-block;
1978
- `,HA=R.button`
2007
+ `,GA=R.button`
1979
2008
  background-color: ${e=>e.theme.colors.backgroundSecondary};
1980
2009
  color: ${e=>e.theme.colors.text};
1981
2010
  border: 1px solid ${e=>e.theme.colors.border};
@@ -1994,10 +2023,10 @@ Error generating stack: `+x.message+`
1994
2023
  &:hover {
1995
2024
  background-color: ${e=>e.theme.colors.primary+"22"};
1996
2025
  }
1997
- `,qA=R.span`
2026
+ `,JA=R.span`
1998
2027
  margin-left: 5px;
1999
2028
  font-size: 0.8em;
2000
- `,WA=R.div`
2029
+ `,KA=R.div`
2001
2030
  position: absolute;
2002
2031
  bottom: 100%;
2003
2032
  left: 0;
@@ -2010,7 +2039,7 @@ Error generating stack: `+x.message+`
2010
2039
  max-height: 200px;
2011
2040
  overflow-y: auto;
2012
2041
  margin-bottom: 5px;
2013
- `,GA=R.div`
2042
+ `,QA=R.div`
2014
2043
  padding: 8px 12px;
2015
2044
  color: ${({theme:e})=>e.colors.inputText};
2016
2045
  cursor: pointer;
@@ -2021,14 +2050,14 @@ Error generating stack: `+x.message+`
2021
2050
  &:hover {
2022
2051
  background-color: ${({theme:e})=>e.colors.primary+"22"};
2023
2052
  }
2024
- `,zs=R.div`
2053
+ `,Ds=R.div`
2025
2054
  display: flex;
2026
2055
  align-items: center;
2027
2056
  justify-content: flex-start;
2028
2057
  gap: 10px;
2029
2058
  margin-top: 10px;
2030
2059
  flex-wrap: wrap;
2031
- `,gl=R.button`
2060
+ `,yl=R.button`
2032
2061
  color: #ffffff;
2033
2062
  border: none;
2034
2063
  border-radius: 4px;
@@ -2041,19 +2070,19 @@ Error generating stack: `+x.message+`
2041
2070
  background-color: ${({theme:e})=>e.colors.disabled};
2042
2071
  cursor: not-allowed;
2043
2072
  }
2044
- `,Qg=R(gl)`
2073
+ `,Xg=R(yl)`
2045
2074
  background-color: ${({theme:e})=>e.colors.primary};
2046
2075
 
2047
2076
  &:hover:not(:disabled) {
2048
2077
  background-color: ${({theme:e})=>e.colors.primary}dd;
2049
2078
  }
2050
- `,JA=R(gl)`
2079
+ `,YA=R(yl)`
2051
2080
  background-color: ${({theme:e})=>e.colors.buttonBg}; /* Or choose another appropriate color */
2052
2081
 
2053
2082
  &:hover {
2054
2083
  background-color: ${({theme:e})=>e.colors.buttonHoverBg}dd;
2055
2084
  }
2056
- `,Vc=R(gl)`
2085
+ `,qc=R(yl)`
2057
2086
  background-color: ${({theme:e})=>e.colors.primary};
2058
2087
  &:hover {
2059
2088
  background-color: ${({theme:e})=>e.colors.primary}dd;
@@ -2065,32 +2094,32 @@ Error generating stack: `+x.message+`
2065
2094
  background-color: ${({theme:e})=>e.colors.secondary}dd;
2066
2095
  }
2067
2096
  }
2068
- `,Ds=R(gl)`
2097
+ `,Os=R(yl)`
2069
2098
  background-color: ${({theme:e})=>e.colors.error};
2070
2099
  margin-left: auto;
2071
2100
 
2072
2101
  &:hover {
2073
2102
  background-color: ${({theme:e})=>e.colors.error}dd;
2074
2103
  }
2075
- `,KA=R(gl)`
2104
+ `,XA=R(yl)`
2076
2105
  background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
2077
2106
 
2078
2107
  &:hover {
2079
2108
  background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
2080
2109
  }
2081
- `,QA=R.p`
2110
+ `,ZA=R.p`
2082
2111
  color: ${({theme:e})=>e.colors.error};
2083
2112
  font-weight: bold;
2084
2113
  margin-top: 10px;
2085
2114
  margin-bottom: 0;
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`
2115
+ `,eL=({isVisible:e,onInterrupt:t,onPauseResume:r,executionStatus:o})=>e?y.jsxs(nL,{children:[y.jsx(iL,{onClick:t,children:"Interrupt"}),y.jsxs(rL,{"data-execution-status":o,children:[y.jsx(Wc,{}),y.jsx(Wc,{}),y.jsx(Wc,{})]}),y.jsx(J0,{onClick:r,children:o==="paused"?"Resume":"Pause"})]}):null,tL=Gi`
2087
2116
  0%, 80%, 100% {
2088
2117
  transform: scale(0);
2089
2118
  }
2090
2119
  40% {
2091
2120
  transform: scale(1.0);
2092
2121
  }
2093
- `,ZA=R.div`
2122
+ `,nL=R.div`
2094
2123
  display: flex;
2095
2124
  flex-direction: row;
2096
2125
  align-items: center;
@@ -2099,13 +2128,13 @@ Error generating stack: `+x.message+`
2099
2128
  padding: 10px;
2100
2129
  background-color: ${e=>e.theme.colors.background};
2101
2130
  border-top: 1px solid ${e=>e.theme.colors.border};
2102
- `,eL=R.div`
2131
+ `,rL=R.div`
2103
2132
  display: flex;
2104
2133
  align-items: center;
2105
2134
  justify-content: center;
2106
2135
  align-items: center;
2107
2136
  margin-bottom: 10px;
2108
- `,Hc=R.div`
2137
+ `,Wc=R.div`
2109
2138
  width: 10px;
2110
2139
  height: 10px;
2111
2140
  background-color: ${e=>e.theme.colors.primary};
@@ -2113,7 +2142,7 @@ Error generating stack: `+x.message+`
2113
2142
  margin: 0 5px;
2114
2143
 
2115
2144
  [data-execution-status='executing'] & {
2116
- animation: ${XA} 1.4s infinite ease-in-out both;
2145
+ animation: ${tL} 1.4s infinite ease-in-out both;
2117
2146
  }
2118
2147
 
2119
2148
  &:nth-child(1) {
@@ -2123,7 +2152,7 @@ Error generating stack: `+x.message+`
2123
2152
  &:nth-child(2) {
2124
2153
  animation-delay: -0.16s;
2125
2154
  }
2126
- `,q0=R.button`
2155
+ `,J0=R.button`
2127
2156
  padding: 8px 16px;
2128
2157
  background-color: ${e=>e.theme.colors.primary};
2129
2158
  color: #ffffff;
@@ -2142,13 +2171,13 @@ Error generating stack: `+x.message+`
2142
2171
  &:active {
2143
2172
  transform: translateY(0);
2144
2173
  }
2145
- `,tL=R(q0)`
2174
+ `,iL=R(J0)`
2146
2175
  background-color: ${({theme:e})=>e.colors.error};
2147
2176
 
2148
2177
  &:hover {
2149
2178
  background-color: ${({theme:e})=>e.colors.errorHover};
2150
2179
  }
2151
- `,W0={info:"#3498db",warn:"#f39c12",error:"#e74c3c",success:"#2ecc71",debug:"#9b59b6"},nL=R.div`
2180
+ `,K0={info:"#3498db",warn:"#f39c12",error:"#e74c3c",success:"#2ecc71",debug:"#9b59b6"},oL=R.div`
2152
2181
  position: fixed;
2153
2182
  bottom: 70px;
2154
2183
  right: 20px;
@@ -2163,7 +2192,7 @@ Error generating stack: `+x.message+`
2163
2192
  display: flex;
2164
2193
  flex-direction: column;
2165
2194
  font-family: 'Courier New', Courier, monospace;
2166
- `,rL=R.div`
2195
+ `,lL=R.div`
2167
2196
  display: flex;
2168
2197
  align-items: center;
2169
2198
  margin-bottom: 10px;
@@ -2177,7 +2206,7 @@ Error generating stack: `+x.message+`
2177
2206
  margin: 0;
2178
2207
  font-size: 1.1em;
2179
2208
  }
2180
- `,iL=R.button`
2209
+ `,sL=R.button`
2181
2210
  background: none;
2182
2211
  border: none;
2183
2212
  color: ${({theme:e})=>e.colors.text};
@@ -2189,17 +2218,17 @@ Error generating stack: `+x.message+`
2189
2218
  &:hover {
2190
2219
  color: ${({theme:e})=>e.colors.primary};
2191
2220
  }
2192
- `,oL=R.div`
2221
+ `,aL=R.div`
2193
2222
  display: flex;
2194
2223
  align-items: center;
2195
2224
  flex-wrap: wrap;
2196
2225
  gap: 8px;
2197
2226
  flex-grow: 1;
2198
2227
  justify-content: flex-end;
2199
- `,lL=R.div`
2228
+ `,uL=R.div`
2200
2229
  display: flex;
2201
2230
  gap: 5px;
2202
- `,Yg=R.button`
2231
+ `,Zg=R.button`
2203
2232
  background-color: ${({active:e,theme:t})=>e?t.colors.primary:"transparent"};
2204
2233
  color: ${({active:e,theme:t})=>e?"white":t.colors.text};
2205
2234
  border: 1px solid ${({active:e,theme:t})=>e?t.colors.primary:t.colors.border};
@@ -2216,7 +2245,7 @@ Error generating stack: `+x.message+`
2216
2245
  color: white;
2217
2246
  }
2218
2247
  margin-left: auto; /* Pushes it to the right */
2219
- `,qc=R.button`
2248
+ `,Gc=R.button`
2220
2249
  background-color: ${({active:e,theme:t})=>e?t.colors.primary:t.colors.secondary};
2221
2250
  color: ${({active:e,theme:t})=>e?"white":t.colors.buttonText};
2222
2251
  border: 1px solid ${({theme:e})=>e.colors.border};
@@ -2239,7 +2268,7 @@ Error generating stack: `+x.message+`
2239
2268
  outline: 2px solid ${({theme:e})=>e.colors.primary};
2240
2269
  outline-offset: 2px;
2241
2270
  }
2242
- `,sL=R.div`
2271
+ `,cL=R.div`
2243
2272
  flex-grow: 1;
2244
2273
  overflow-y: auto;
2245
2274
  background-color: ${({theme:e})=>e.colors.inputBackground};
@@ -2260,7 +2289,7 @@ Error generating stack: `+x.message+`
2260
2289
  background-color: ${({theme:e})=>e.colors.border};
2261
2290
  border-radius: 4px;
2262
2291
  }
2263
- `,aL=R.div`
2292
+ `,dL=R.div`
2264
2293
  display: grid;
2265
2294
  grid-template-columns: 80px 70px 90px 1fr;
2266
2295
  align-items: start;
@@ -2288,8 +2317,8 @@ Error generating stack: `+x.message+`
2288
2317
  grid-column: 2;
2289
2318
  }
2290
2319
  }
2291
- `,uL=R.span`
2292
- background-color: ${({level:e})=>W0[e]||"#7f8c8d"};
2320
+ `,fL=R.span`
2321
+ background-color: ${({level:e})=>K0[e]||"#7f8c8d"};
2293
2322
  color: white;
2294
2323
  padding: 2px 6px;
2295
2324
  border-radius: 4px;
@@ -2298,10 +2327,10 @@ Error generating stack: `+x.message+`
2298
2327
  text-transform: uppercase;
2299
2328
  flex-shrink: 0;
2300
2329
  justify-self: start;
2301
- `,cL=R.div`
2330
+ `,pL=R.div`
2302
2331
  word-wrap: break-word;
2303
2332
  white-space: pre-wrap;
2304
- `,dL=R.button`
2333
+ `,hL=R.button`
2305
2334
  background: none;
2306
2335
  border: none;
2307
2336
  color: ${({theme:e})=>e.colors.primary};
@@ -2314,14 +2343,14 @@ Error generating stack: `+x.message+`
2314
2343
  &:hover {
2315
2344
  opacity: 0.8;
2316
2345
  }
2317
- `,fL=R.div`
2346
+ `,mL=R.div`
2318
2347
  grid-column: 1 / -1;
2319
2348
  background-color: ${({theme:e})=>e.colors.background};
2320
2349
  border: 1px solid ${({theme:e})=>e.colors.border};
2321
2350
  border-radius: 6px;
2322
2351
  margin-top: 8px;
2323
2352
  padding: 5px;
2324
- `,pL=R.pre`
2353
+ `,gL=R.pre`
2325
2354
  margin: 0;
2326
2355
  padding: 8px;
2327
2356
  font-family: 'Courier New', Courier, monospace;
@@ -2343,9 +2372,9 @@ Error generating stack: `+x.message+`
2343
2372
  background-color: ${({theme:e})=>e.colors.border};
2344
2373
  border-radius: 4px;
2345
2374
  }
2346
- `,hL=R(eo)`
2375
+ `,yL=R(eo)`
2347
2376
  align-items: center;
2348
- `,mL=R(D0).attrs({as:"button"})`
2377
+ `,xL=R(F0).attrs({as:"button"})`
2349
2378
  display: flex;
2350
2379
  align-items: center;
2351
2380
  gap: 8px;
@@ -2370,32 +2399,32 @@ Error generating stack: `+x.message+`
2370
2399
  }
2371
2400
  animation: flash 1.2s ease-in-out infinite;
2372
2401
  `}
2373
- `,gL=R.span`
2374
- background-color: ${({level:e})=>W0[e]||"#7f8c8d"};
2402
+ `,vL=R.span`
2403
+ background-color: ${({level:e})=>K0[e]||"#7f8c8d"};
2375
2404
  color: #fff;
2376
2405
  padding: 2px 6px;
2377
2406
  border-radius: 6px;
2378
2407
  font-size: 0.75em;
2379
2408
  text-transform: uppercase;
2380
2409
  flex-shrink: 0;
2381
- `,yL=R.span`
2410
+ `,wL=R.span`
2382
2411
  flex: 1;
2383
2412
  min-width: 0;
2384
2413
  white-space: nowrap;
2385
2414
  overflow: hidden;
2386
2415
  text-overflow: ellipsis;
2387
2416
  color: ${({theme:e})=>e.colors.text};
2388
- `,xL=R.span`
2417
+ `,kL=R.span`
2389
2418
  color: ${({theme:e})=>e.colors.textSecondary};
2390
2419
  font-size: 0.75em;
2391
2420
  flex-shrink: 0;
2392
- `,vL=R.span`
2421
+ `,SL=R.span`
2393
2422
  width: 8px;
2394
2423
  height: 8px;
2395
2424
  border-radius: 50%;
2396
2425
  background-color: ${({theme:e})=>e.colors.error};
2397
2426
  flex-shrink: 0;
2398
- `,wL=R.button`
2427
+ `,bL=R.button`
2399
2428
  background-color: ${({theme:e})=>e.colors.buttonBg};
2400
2429
  color: ${({theme:e})=>e.colors.buttonText};
2401
2430
  border: none;
@@ -2415,14 +2444,14 @@ Error generating stack: `+x.message+`
2415
2444
  &:hover {
2416
2445
  background-color: ${({theme:e})=>e.colors.buttonHoverBg};
2417
2446
  }
2418
- `,kL=R(wL)`
2447
+ `,CL=R(bL)`
2419
2448
  background-color: ${({theme:e})=>e.colors.error||"#dc3545"};
2420
2449
  color: white;
2421
2450
 
2422
2451
  &:hover {
2423
2452
  background-color: ${({theme:e})=>e.colors.errorHover||"#c82333"};
2424
2453
  }
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`
2454
+ `,EL=({iterationId:e})=>{const{terminalEvents:t,isTerminalOpen:r,toggleTerminal:o}=pl(),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 Xy()}catch(g){console.error("Failed to interrupt command:",g),alert(`Failed to interrupt command: ${g instanceof Error?g.message:"Unknown error"}`)}};return y.jsxs(yL,{"data-type":"assistant",children:[y.jsx(CL,{onClick:p,title:"Interrupt current command",children:"⏹"}),u&&y.jsxs(xL,{flashing:d,onClick:f,"aria-label":`Toggle terminal. Last log: ${u.text}`,title:`Toggle terminal. Last log: ${u.text}`,children:[y.jsx(vL,{level:u.level,children:u.level}),y.jsxs(wL,{children:["Container log: ",u.text]}),y.jsx(kL,{children:new Date(u.timestamp).toLocaleTimeString()}),d&&y.jsx(SL,{"aria-hidden":"true"})]})]})},jL=({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=CA(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 Kb(H),V(null)}catch(de){console.error("Failed to delete iteration:",de)}else V(H)};return y.jsxs(hA,{children:[y.jsxs(mA,{ref:b,children:[L.map((H,de)=>y.jsxs(gA,{children:[y.jsxs(yA,{children:[y.jsxs("div",{className:"title",onClick:()=>ne(H.iterationId),children:[g.has(H.iterationId)?y.jsx(SA,{}):y.jsx(kA,{}),y.jsx("span",{children:H.iterationTitle??`Iteration ${H.iterationId}`})]}),y.jsxs("span",{className:"meta",children:[H.timestampStart.toLocaleString()," - ",H.timestampEnd.toLocaleString(),y.jsx(M0,{messages:H.messages}),H.iterationId!==G&&y.jsx(xA,{onClick:()=>le(H.iterationId),title:F===H.iterationId?"Confirm deletion":"Delete iteration",children:F===H.iterationId?"🗑️ Confirm":"🗑️"})]})]}),y.jsxs(vA,{isCollapsed:g.has(H.iterationId),children:[H.conversationSummaries.length>0&&y.jsx(wA,{children:H.conversationSummaries.join(" ")}),H.messages.map((ae,X)=>y.jsxs(Pt.Fragment,{children:[ae.type===Cr.SYSTEM?y.jsx(fA,{message:ae,collapsedExecutions:p,toggleExecutionCollapse:D,visibleDataIds:d,toggleDataVisibility:ie}):y.jsx(rA,{message:ae,visibleDataIds:d,toggleDataVisibility:ie}),u!=="idle"&&t&&de===L.length-1&&X===H.messages.length-1&&y.jsx(Yg,{onSubmit:o,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u})]},ae.id)),de===L.length-1&&y.jsx(bA,{children:y.jsx(EL,{iterationId:G})})]})]},H.iterationId)),u!=="idle"&&t&&L.length>0&&L[L.length-1].messages.length===0&&y.jsx(Yg,{onSubmit:o,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u}),y.jsx("div",{ref:S})]}),j&&!N&&y.jsx(EA,{onClick:se}),y.jsx(eL,{isVisible:u!=="idle"&&!t,onInterrupt:l,onPauseResume:a,executionStatus:u})]})},TL=({onSubmit:e,onUploadClick:t,onAiServiceChange:r,onInitialActionTypeChange:o,options:l,disabled:a})=>y.jsxs(IL,{children:[y.jsx(RL,{onClick:e,disabled:a,children:"Submit"}),y.jsx(Q0,{onClick:t,title:"Upload Images",children:y.jsx(px,{})}),y.jsx(na,{value:l.aiService,onChange:r}),y.jsx(Rd,{value:l.initialActionType,onChange:u=>o(u||void 0)})]}),Q0=R.button`
2426
2455
  color: ${({theme:e})=>e.colors.buttonText};
2427
2456
  background-color: ${({theme:e})=>e.colors.buttonBg};
2428
2457
  border: none;
@@ -2440,7 +2469,7 @@ Error generating stack: `+x.message+`
2440
2469
  background-color: ${({theme:e})=>e.colors.disabled};
2441
2470
  cursor: not-allowed;
2442
2471
  }
2443
- `,EL=R(G0)`
2472
+ `,RL=R(Q0)`
2444
2473
  background-color: ${({theme:e})=>e.colors.primary};
2445
2474
  color: #ffffff;
2446
2475
 
@@ -2451,12 +2480,12 @@ Error generating stack: `+x.message+`
2451
2480
  &:disabled {
2452
2481
  background-color: ${({theme:e})=>e.colors.disabled};
2453
2482
  }
2454
- `,jL=R.div`
2483
+ `,IL=R.div`
2455
2484
  display: flex;
2456
2485
  justify-content: flex-start;
2457
2486
  margin-top: 10px;
2458
2487
  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`
2488
+ `,NL=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(PL,{children:[y.jsx(AL,{children:y.jsx(W0,{value:a,onChange:u,placeholder:"Enter your input here",onImagePaste:b})}),y.jsx(G0,{images:d,onImagesChange:w,error:p,setError:m,fileInputRef:g}),y.jsx(TL,{onSubmit:v,onUploadClick:S,onAiServiceChange:j,onInitialActionTypeChange:C,options:o,disabled:!a.trim()&&d.length===0})]})},PL=R.div`
2460
2489
  display: flex;
2461
2490
  flex-direction: column;
2462
2491
  background-color: ${e=>e.theme.colors.background};
@@ -2464,10 +2493,10 @@ Error generating stack: `+x.message+`
2464
2493
  padding: 16px;
2465
2494
  width: 100%;
2466
2495
  box-sizing: border-box;
2467
- `,IL=R.div`
2496
+ `,AL=R.div`
2468
2497
  margin-bottom: 16px;
2469
2498
  width: 100%;
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`
2499
+ `,LL=({theme:e,toggleTheme:t})=>y.jsx(jr,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),ey=nS`
2471
2500
  body {
2472
2501
  color: ${({theme:e})=>e.colors.text};
2473
2502
  font-family: Arial, sans-serif;
@@ -2492,7 +2521,7 @@ Error generating stack: `+x.message+`
2492
2521
  background-attachment: fixed;
2493
2522
  z-index: -1;
2494
2523
  }
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`
2524
+ `;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 $L=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class _L{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($L.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 Jc=new _L,zL=({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,Jc.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),Jc.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&&Jc.playBark(.5)}r.current=e.length},[e,a,t]),null};async function DL(e){return[]}const OL=()=>{const e=pl();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..."),DL().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},FL=R.div`
2496
2525
  position: fixed;
2497
2526
  bottom: 70px; /* Adjust as needed to not overlap input area */
2498
2527
  right: 20px;
@@ -2507,7 +2536,7 @@ Error generating stack: `+x.message+`
2507
2536
  padding: 15px;
2508
2537
  display: flex;
2509
2538
  flex-direction: column;
2510
- `,DL=R.div`
2539
+ `,ML=R.div`
2511
2540
  display: flex;
2512
2541
  justify-content: space-between;
2513
2542
  align-items: center;
@@ -2520,7 +2549,7 @@ Error generating stack: `+x.message+`
2520
2549
  font-size: 1rem;
2521
2550
  color: ${({theme:e})=>e.colors.text};
2522
2551
  }
2523
- `,OL=R.button`
2552
+ `,BL=R.button`
2524
2553
  background: none;
2525
2554
  border: none;
2526
2555
  color: ${({theme:e})=>e.colors.text};
@@ -2532,13 +2561,13 @@ Error generating stack: `+x.message+`
2532
2561
  &:hover {
2533
2562
  color: ${({theme:e})=>e.colors.primary};
2534
2563
  }
2535
- `,FL=R.div`
2564
+ `,UL=R.div`
2536
2565
  flex-grow: 1;
2537
2566
  /* Basic layout for nodes and edges - consider using a graph library for actual rendering */
2538
2567
  display: flex;
2539
2568
  flex-direction: column;
2540
2569
  gap: 10px;
2541
- `,ML=R.div`
2570
+ `,VL=R.div`
2542
2571
  background-color: ${({theme:e})=>e.colors.inputBg};
2543
2572
  border: 1px solid ${({theme:e})=>e.colors.border};
2544
2573
  border-radius: 4px;
@@ -2561,7 +2590,7 @@ Error generating stack: `+x.message+`
2561
2590
  font-size: 0.8rem;
2562
2591
  color: ${({theme:e})=>e.colors.textSecondary};
2563
2592
  }
2564
- `,BL=R.div`
2593
+ `,HL=R.div`
2565
2594
  font-size: 0.8rem;
2566
2595
  color: ${({theme:e})=>e.colors.textSecondary};
2567
2596
  padding-left: 15px;
@@ -2573,7 +2602,7 @@ Error generating stack: `+x.message+`
2573
2602
  left: 0;
2574
2603
  color: ${({theme:e})=>e.colors.primary};
2575
2604
  }
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`
2605
+ `,qL=()=>{const{conversationGraphState:e,isGraphVisualiserOpen:t,toggleGraphVisualiser:r}=pl();if(!t||!(e!=null&&e.isActive))return null;const{nodes:o=[],edges:l=[],currentNodeId:a}=e;return y.jsxs(FL,{children:[y.jsxs(ML,{children:[y.jsx("h3",{children:"Conversation Flow"}),y.jsx(BL,{onClick:r,"aria-label":"Close visualiser",children:"×"})]}),y.jsxs(UL,{children:[y.jsx("h4",{children:"Nodes:"}),o.map(u=>y.jsxs(VL,{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(HL,{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]})]})]})},WL=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},GL=()=>{const{messages:e,setConversationGraphState:t}=P.useContext(Qi);return P.useEffect(()=>{const r=WL(e);t(o=>JSON.stringify(o)!==JSON.stringify(r)?r:o)},[e,t]),null};R.div`
2577
2606
  position: fixed;
2578
2607
  bottom: 70px; /* Adjust as needed to not overlap input area */
2579
2608
  right: 20px;
@@ -2613,12 +2642,12 @@ Error generating stack: `+x.message+`
2613
2642
  &:hover {
2614
2643
  color: ${({theme:e})=>e.colors.primary};
2615
2644
  }
2616
- `;const Zg=R.div`
2645
+ `;const ty=R.div`
2617
2646
  flex-grow: 1;
2618
2647
  display: flex;
2619
2648
  flex-direction: column;
2620
2649
  gap: 10px;
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`
2650
+ `,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},JL=R.div`
2622
2651
  background-color: ${({theme:e})=>e.colors.inputBg};
2623
2652
  border: 1px solid ${({theme:e})=>e.colors.border};
2624
2653
  border-left: 4px solid ${({state:e,theme:t})=>Id[e](t)};
@@ -2639,14 +2668,14 @@ Error generating stack: `+x.message+`
2639
2668
  font-size: 0.8rem;
2640
2669
  color: ${({theme:e})=>e.colors.textSecondary};
2641
2670
  }
2642
- `,WL=R.div`
2671
+ `,KL=R.div`
2643
2672
  font-weight: bold;
2644
2673
  text-transform: capitalize;
2645
2674
  color: ${({state:e,theme:t})=>Id[e](t)};
2646
2675
  margin-right: 10px;
2647
2676
  flex-shrink: 0;
2648
2677
  width: 80px; /* Align states */
2649
- `,GL=R.div`
2678
+ `,QL=R.div`
2650
2679
  display: flex;
2651
2680
  flex-direction: column;
2652
2681
  flex-grow: 1;
@@ -2662,4 +2691,4 @@ Error generating stack: `+x.message+`
2662
2691
  margin-top: 5px;
2663
2692
  padding-left: 10px;
2664
2693
  border-left: 2px solid ${({theme:e})=>e.colors.border};
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));
2694
+ `;const YL=({executionPlan:e,planUpdates:t})=>{if(!e||!e.length)return y.jsx(ty,{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(ty,{children:r.map(o=>y.jsxs(JL,{state:o.state??"pending",children:[y.jsx(KL,{state:o.state??"pending",children:o.state??"pending"}),y.jsxs(QL,{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))})},XL=5e3,ZL=16,e$=({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}=pl(),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 Xy()}catch(j){console.error("Failed to interrupt command:",j)}},S=e.length>XL?e.slice(-5e3):e,b=()=>{r.current&&(m.current=r.current.scrollHeight-r.current.scrollTop<=r.current.clientHeight+ZL)};return y.jsxs(oL,{children:[y.jsxs(lL,{children:[y.jsx("h4",{children:"Container Task"}),y.jsxs(uL,{children:[y.jsx(Zg,{active:d==="logs",onClick:()=>f("logs"),children:"Logs"}),y.jsx(Zg,{active:d==="plan",onClick:()=>f("plan"),disabled:!g,children:"Execution Plan"})]}),y.jsxs(aL,{children:[d==="logs"&&y.jsxs(y.Fragment,{children:[y.jsx(Gc,{active:!1,onClick:t,"aria-label":"Clear terminal log",children:"Clear"}),y.jsx(Gc,{active:o,onClick:()=>l(!o),"aria-label":o?"Hide all payloads":"Show all payloads",children:"Payloads"})]}),y.jsx(Gc,{active:!1,onClick:w,"aria-label":"Interrupt current container command",children:"Interrupt"}),y.jsx(sL,{onClick:p,"aria-label":"Close terminal",children:"×"})]})]}),y.jsx(cL,{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(dL,{children:[y.jsx("span",{className:"timestamp",children:new Date(j.timestamp).toLocaleTimeString()}),y.jsx(fL,{level:j.level,children:j.level}),y.jsxs("span",{className:"source",children:["[",j.source,"]"]}),y.jsxs(pL,{children:[j.text,C&&y.jsx(hL,{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(mL,{children:y.jsx(gL,{children:A})})]},j.id)}):y.jsx(YL,{executionPlan:g,planUpdates:v})})]})},t$=()=>{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}=HE({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(Em,{theme:o==="light"?Rm:Im,children:[y.jsx(ey,{}),y.jsx("div",{children:"Loading..."})," "]});const F=t!=="idle";return y.jsxs(Em,{theme:o==="light"?Rm:Im,children:[y.jsx(ey,{}),y.jsx(PE,{themeToggle:y.jsx(LL,{theme:o,toggleTheme:d}),toggleTheme:d,chatInterface:y.jsx(jL,{messages:e,currentQuestion:r,codegenOptions:a,onQuestionSubmit:b,onInterrupt:j,onPauseResume:A,executionStatus:t}),inputArea:!F&&y.jsx(NL,{onSubmit:S,isExecuting:F,onInterrupt:j,codegenOptions:a,onOptionsChange:f}),usage:l}),g&&C&&y.jsx(e$,{events:N,onClear:()=>w(C)}),y.jsx(eC,{currentService:a.aiService}),y.jsx(mC,{}),y.jsx(YC,{}),y.jsx(oE,{rcConfig:u}),y.jsx(kE,{options:a,onOptionsChange:f}),y.jsx(zL,{messages:e,muteNotifications:a.muteNotifications}),y.jsx(qL,{}),y.jsx(GL,{})]})};function n$(){return y.jsxs(EE,{children:[y.jsx(OL,{})," ",y.jsx(t$,{})," "]})}const r$=document.getElementById("root"),i$=Zw.createRoot(r$);i$.render(Pt.createElement(n$,null));