vibe-coding-master 0.3.2 → 0.3.3

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 M0=Object.defineProperty;var L0=(n,r,s)=>r in n?M0(n,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[r]=s;var $p=(n,r,s)=>L0(n,typeof r!="symbol"?r+"":r,s);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))o(p);new MutationObserver(p=>{for(const y of p)if(y.type==="childList")for(const f of y.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function s(p){const y={};return p.integrity&&(y.integrity=p.integrity),p.referrerPolicy&&(y.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?y.credentials="include":p.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function o(p){if(p.ep)return;p.ep=!0;const y=s(p);fetch(p.href,y)}})();function ig(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ku={exports:{}},Vs={};/**
1
+ var L0=Object.defineProperty;var O0=(n,r,s)=>r in n?L0(n,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[r]=s;var $p=(n,r,s)=>O0(n,typeof r!="symbol"?r+"":r,s);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))o(p);new MutationObserver(p=>{for(const y of p)if(y.type==="childList")for(const f of y.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function s(p){const y={};return p.integrity&&(y.integrity=p.integrity),p.referrerPolicy&&(y.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?y.credentials="include":p.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function o(p){if(p.ep)return;p.ep=!0;const y=s(p);fetch(p.href,y)}})();function ig(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ku={exports:{}},Vs={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var M0=Object.defineProperty;var L0=(n,r,s)=>r in n?M0(n,r,{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 Yp;function O0(){if(Yp)return Vs;Yp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(o,p,y){var f=null;if(y!==void 0&&(f=""+y),p.key!==void 0&&(f=""+p.key),"key"in p){y={};for(var a in p)a!=="key"&&(y[a]=p[a])}else y=p;return p=y.ref,{$$typeof:n,type:o,key:f,ref:p!==void 0?p:null,props:y}}return Vs.Fragment=r,Vs.jsx=s,Vs.jsxs=s,Vs}var Kp;function B0(){return Kp||(Kp=1,Ku.exports=O0()),Ku.exports}var N=B0(),Wu={exports:{}},Be={};/**
9
+ */var Yp;function B0(){if(Yp)return Vs;Yp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(o,p,y){var f=null;if(y!==void 0&&(f=""+y),p.key!==void 0&&(f=""+p.key),"key"in p){y={};for(var a in p)a!=="key"&&(y[a]=p[a])}else y=p;return p=y.ref,{$$typeof:n,type:o,key:f,ref:p!==void 0?p:null,props:y}}return Vs.Fragment=r,Vs.jsx=s,Vs.jsxs=s,Vs}var Kp;function N0(){return Kp||(Kp=1,Ku.exports=B0()),Ku.exports}var N=N0(),Wu={exports:{}},Be={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var M0=Object.defineProperty;var L0=(n,r,s)=>r in n?M0(n,r,{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 Wp;function N0(){if(Wp)return Be;Wp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),f=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),c=Symbol.for("react.activity"),S=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function _(j,V,U){this.props=j,this.context=V,this.refs=b,this.updater=U||A}_.prototype.isReactComponent={},_.prototype.setState=function(j,V){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,V,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function g(){}g.prototype=_.prototype;function v(j,V,U){this.props=j,this.context=V,this.refs=b,this.updater=U||A}var k=v.prototype=new g;k.constructor=v,x(k,_.prototype),k.isPureReactComponent=!0;var M=Array.isArray;function D(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function R(j,V,U){var ne=U.ref;return{$$typeof:n,type:j,key:V,ref:ne!==void 0?ne:null,props:U}}function B(j,V){return R(j.type,V,j.props)}function z(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function q(j){var V={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(U){return V[U]})}var F=/\/+/g;function Y(j,V){return typeof j=="object"&&j!==null&&j.key!=null?q(""+j.key):V.toString(36)}function K(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(D,D):(j.status="pending",j.then(function(V){j.status==="pending"&&(j.status="fulfilled",j.value=V)},function(V){j.status==="pending"&&(j.status="rejected",j.reason=V)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function G(j,V,U,ne,_e){var me=typeof j;(me==="undefined"||me==="boolean")&&(j=null);var $=!1;if(j===null)$=!0;else switch(me){case"bigint":case"string":case"number":$=!0;break;case"object":switch(j.$$typeof){case n:case r:$=!0;break;case d:return $=j._init,G($(j._payload),V,U,ne,_e)}}if($)return _e=_e(j),$=ne===""?"."+Y(j,0):ne,M(_e)?(U="",$!=null&&(U=$.replace(F,"$&/")+"/"),G(_e,V,U,"",function(Z){return Z})):_e!=null&&(z(_e)&&(_e=B(_e,U+(_e.key==null||j&&j.key===_e.key?"":(""+_e.key).replace(F,"$&/")+"/")+$)),V.push(_e)),1;$=0;var H=ne===""?".":ne+":";if(M(j))for(var te=0;te<j.length;te++)ne=j[te],me=H+Y(ne,te),$+=G(ne,V,U,me,_e);else if(te=w(j),typeof te=="function")for(j=te.call(j),te=0;!(ne=j.next()).done;)ne=ne.value,me=H+Y(ne,te++),$+=G(ne,V,U,me,_e);else if(me==="object"){if(typeof j.then=="function")return G(K(j),V,U,ne,_e);throw V=String(j),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return $}function X(j,V,U){if(j==null)return j;var ne=[],_e=0;return G(j,ne,"","",function(me){return V.call(U,me,_e++)}),ne}function J(j){if(j._status===-1){var V=j._result;V=V(),V.then(function(U){(j._status===0||j._status===-1)&&(j._status=1,j._result=U)},function(U){(j._status===0||j._status===-1)&&(j._status=2,j._result=U)}),j._status===-1&&(j._status=0,j._result=V)}if(j._status===1)return j._result.default;throw j._result}var I=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},O={map:X,forEach:function(j,V,U){X(j,function(){V.apply(this,arguments)},U)},count:function(j){var V=0;return X(j,function(){V++}),V},toArray:function(j){return X(j,function(V){return V})||[]},only:function(j){if(!z(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Be.Activity=c,Be.Children=O,Be.Component=_,Be.Fragment=s,Be.Profiler=p,Be.PureComponent=v,Be.StrictMode=o,Be.Suspense=u,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Be.__COMPILER_RUNTIME={__proto__:null,c:function(j){return T.H.useMemoCache(j)}},Be.cache=function(j){return function(){return j.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(j,V,U){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ne=x({},j.props),_e=j.key;if(V!=null)for(me in V.key!==void 0&&(_e=""+V.key),V)!E.call(V,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&V.ref===void 0||(ne[me]=V[me]);var me=arguments.length-2;if(me===1)ne.children=U;else if(1<me){for(var $=Array(me),H=0;H<me;H++)$[H]=arguments[H+2];ne.children=$}return R(j.type,_e,ne)},Be.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:y,_context:j},j},Be.createElement=function(j,V,U){var ne,_e={},me=null;if(V!=null)for(ne in V.key!==void 0&&(me=""+V.key),V)E.call(V,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(_e[ne]=V[ne]);var $=arguments.length-2;if($===1)_e.children=U;else if(1<$){for(var H=Array($),te=0;te<$;te++)H[te]=arguments[te+2];_e.children=H}if(j&&j.defaultProps)for(ne in $=j.defaultProps,$)_e[ne]===void 0&&(_e[ne]=$[ne]);return R(j,me,_e)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(j){return{$$typeof:a,render:j}},Be.isValidElement=z,Be.lazy=function(j){return{$$typeof:d,_payload:{_status:-1,_result:j},_init:J}},Be.memo=function(j,V){return{$$typeof:h,type:j,compare:V===void 0?null:V}},Be.startTransition=function(j){var V=T.T,U={};T.T=U;try{var ne=j(),_e=T.S;_e!==null&&_e(U,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(D,I)}catch(me){I(me)}finally{V!==null&&U.types!==null&&(V.types=U.types),T.T=V}},Be.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Be.use=function(j){return T.H.use(j)},Be.useActionState=function(j,V,U){return T.H.useActionState(j,V,U)},Be.useCallback=function(j,V){return T.H.useCallback(j,V)},Be.useContext=function(j){return T.H.useContext(j)},Be.useDebugValue=function(){},Be.useDeferredValue=function(j,V){return T.H.useDeferredValue(j,V)},Be.useEffect=function(j,V){return T.H.useEffect(j,V)},Be.useEffectEvent=function(j){return T.H.useEffectEvent(j)},Be.useId=function(){return T.H.useId()},Be.useImperativeHandle=function(j,V,U){return T.H.useImperativeHandle(j,V,U)},Be.useInsertionEffect=function(j,V){return T.H.useInsertionEffect(j,V)},Be.useLayoutEffect=function(j,V){return T.H.useLayoutEffect(j,V)},Be.useMemo=function(j,V){return T.H.useMemo(j,V)},Be.useOptimistic=function(j,V){return T.H.useOptimistic(j,V)},Be.useReducer=function(j,V,U){return T.H.useReducer(j,V,U)},Be.useRef=function(j){return T.H.useRef(j)},Be.useState=function(j){return T.H.useState(j)},Be.useSyncExternalStore=function(j,V,U){return T.H.useSyncExternalStore(j,V,U)},Be.useTransition=function(){return T.H.useTransition()},Be.version="19.2.6",Be}var Xp;function Oc(){return Xp||(Xp=1,Wu.exports=N0()),Wu.exports}var ue=Oc(),Xu={exports:{}},Gs={},Qu={exports:{}},Zu={};/**
17
+ */var Wp;function j0(){if(Wp)return Be;Wp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),f=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),c=Symbol.for("react.activity"),S=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function _(j,V,U){this.props=j,this.context=V,this.refs=b,this.updater=U||A}_.prototype.isReactComponent={},_.prototype.setState=function(j,V){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,V,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function g(){}g.prototype=_.prototype;function v(j,V,U){this.props=j,this.context=V,this.refs=b,this.updater=U||A}var k=v.prototype=new g;k.constructor=v,x(k,_.prototype),k.isPureReactComponent=!0;var M=Array.isArray;function D(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function R(j,V,U){var ne=U.ref;return{$$typeof:n,type:j,key:V,ref:ne!==void 0?ne:null,props:U}}function B(j,V){return R(j.type,V,j.props)}function z(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function q(j){var V={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(U){return V[U]})}var F=/\/+/g;function Y(j,V){return typeof j=="object"&&j!==null&&j.key!=null?q(""+j.key):V.toString(36)}function K(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(D,D):(j.status="pending",j.then(function(V){j.status==="pending"&&(j.status="fulfilled",j.value=V)},function(V){j.status==="pending"&&(j.status="rejected",j.reason=V)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function G(j,V,U,ne,_e){var me=typeof j;(me==="undefined"||me==="boolean")&&(j=null);var $=!1;if(j===null)$=!0;else switch(me){case"bigint":case"string":case"number":$=!0;break;case"object":switch(j.$$typeof){case n:case r:$=!0;break;case d:return $=j._init,G($(j._payload),V,U,ne,_e)}}if($)return _e=_e(j),$=ne===""?"."+Y(j,0):ne,M(_e)?(U="",$!=null&&(U=$.replace(F,"$&/")+"/"),G(_e,V,U,"",function(Z){return Z})):_e!=null&&(z(_e)&&(_e=B(_e,U+(_e.key==null||j&&j.key===_e.key?"":(""+_e.key).replace(F,"$&/")+"/")+$)),V.push(_e)),1;$=0;var H=ne===""?".":ne+":";if(M(j))for(var te=0;te<j.length;te++)ne=j[te],me=H+Y(ne,te),$+=G(ne,V,U,me,_e);else if(te=w(j),typeof te=="function")for(j=te.call(j),te=0;!(ne=j.next()).done;)ne=ne.value,me=H+Y(ne,te++),$+=G(ne,V,U,me,_e);else if(me==="object"){if(typeof j.then=="function")return G(K(j),V,U,ne,_e);throw V=String(j),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return $}function X(j,V,U){if(j==null)return j;var ne=[],_e=0;return G(j,ne,"","",function(me){return V.call(U,me,_e++)}),ne}function J(j){if(j._status===-1){var V=j._result;V=V(),V.then(function(U){(j._status===0||j._status===-1)&&(j._status=1,j._result=U)},function(U){(j._status===0||j._status===-1)&&(j._status=2,j._result=U)}),j._status===-1&&(j._status=0,j._result=V)}if(j._status===1)return j._result.default;throw j._result}var I=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},O={map:X,forEach:function(j,V,U){X(j,function(){V.apply(this,arguments)},U)},count:function(j){var V=0;return X(j,function(){V++}),V},toArray:function(j){return X(j,function(V){return V})||[]},only:function(j){if(!z(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Be.Activity=c,Be.Children=O,Be.Component=_,Be.Fragment=s,Be.Profiler=p,Be.PureComponent=v,Be.StrictMode=o,Be.Suspense=u,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Be.__COMPILER_RUNTIME={__proto__:null,c:function(j){return T.H.useMemoCache(j)}},Be.cache=function(j){return function(){return j.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(j,V,U){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ne=x({},j.props),_e=j.key;if(V!=null)for(me in V.key!==void 0&&(_e=""+V.key),V)!E.call(V,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&V.ref===void 0||(ne[me]=V[me]);var me=arguments.length-2;if(me===1)ne.children=U;else if(1<me){for(var $=Array(me),H=0;H<me;H++)$[H]=arguments[H+2];ne.children=$}return R(j.type,_e,ne)},Be.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:y,_context:j},j},Be.createElement=function(j,V,U){var ne,_e={},me=null;if(V!=null)for(ne in V.key!==void 0&&(me=""+V.key),V)E.call(V,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(_e[ne]=V[ne]);var $=arguments.length-2;if($===1)_e.children=U;else if(1<$){for(var H=Array($),te=0;te<$;te++)H[te]=arguments[te+2];_e.children=H}if(j&&j.defaultProps)for(ne in $=j.defaultProps,$)_e[ne]===void 0&&(_e[ne]=$[ne]);return R(j,me,_e)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(j){return{$$typeof:a,render:j}},Be.isValidElement=z,Be.lazy=function(j){return{$$typeof:d,_payload:{_status:-1,_result:j},_init:J}},Be.memo=function(j,V){return{$$typeof:h,type:j,compare:V===void 0?null:V}},Be.startTransition=function(j){var V=T.T,U={};T.T=U;try{var ne=j(),_e=T.S;_e!==null&&_e(U,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(D,I)}catch(me){I(me)}finally{V!==null&&U.types!==null&&(V.types=U.types),T.T=V}},Be.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Be.use=function(j){return T.H.use(j)},Be.useActionState=function(j,V,U){return T.H.useActionState(j,V,U)},Be.useCallback=function(j,V){return T.H.useCallback(j,V)},Be.useContext=function(j){return T.H.useContext(j)},Be.useDebugValue=function(){},Be.useDeferredValue=function(j,V){return T.H.useDeferredValue(j,V)},Be.useEffect=function(j,V){return T.H.useEffect(j,V)},Be.useEffectEvent=function(j){return T.H.useEffectEvent(j)},Be.useId=function(){return T.H.useId()},Be.useImperativeHandle=function(j,V,U){return T.H.useImperativeHandle(j,V,U)},Be.useInsertionEffect=function(j,V){return T.H.useInsertionEffect(j,V)},Be.useLayoutEffect=function(j,V){return T.H.useLayoutEffect(j,V)},Be.useMemo=function(j,V){return T.H.useMemo(j,V)},Be.useOptimistic=function(j,V){return T.H.useOptimistic(j,V)},Be.useReducer=function(j,V,U){return T.H.useReducer(j,V,U)},Be.useRef=function(j){return T.H.useRef(j)},Be.useState=function(j){return T.H.useState(j)},Be.useSyncExternalStore=function(j,V,U){return T.H.useSyncExternalStore(j,V,U)},Be.useTransition=function(){return T.H.useTransition()},Be.version="19.2.6",Be}var Xp;function Oc(){return Xp||(Xp=1,Wu.exports=j0()),Wu.exports}var ue=Oc(),Xu={exports:{}},Gs={},Qu={exports:{}},Zu={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var M0=Object.defineProperty;var L0=(n,r,s)=>r in n?M0(n,r,{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 Qp;function j0(){return Qp||(Qp=1,(function(n){function r(G,X){var J=G.length;G.push(X);e:for(;0<J;){var I=J-1>>>1,O=G[I];if(0<p(O,X))G[I]=X,G[J]=O,J=I;else break e}}function s(G){return G.length===0?null:G[0]}function o(G){if(G.length===0)return null;var X=G[0],J=G.pop();if(J!==X){G[0]=J;e:for(var I=0,O=G.length,j=O>>>1;I<j;){var V=2*(I+1)-1,U=G[V],ne=V+1,_e=G[ne];if(0>p(U,J))ne<O&&0>p(_e,U)?(G[I]=_e,G[ne]=J,I=ne):(G[I]=U,G[V]=J,I=V);else if(ne<O&&0>p(_e,J))G[I]=_e,G[ne]=J,I=ne;else break e}}return X}function p(G,X){var J=G.sortIndex-X.sortIndex;return J!==0?J:G.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;n.unstable_now=function(){return y.now()}}else{var f=Date,a=f.now();n.unstable_now=function(){return f.now()-a}}var u=[],h=[],d=1,c=null,S=3,w=!1,A=!1,x=!1,b=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function k(G){for(var X=s(h);X!==null;){if(X.callback===null)o(h);else if(X.startTime<=G)o(h),X.sortIndex=X.expirationTime,r(u,X);else break;X=s(h)}}function M(G){if(x=!1,k(G),!A)if(s(u)!==null)A=!0,D||(D=!0,q());else{var X=s(h);X!==null&&K(M,X.startTime-G)}}var D=!1,T=-1,E=5,R=-1;function B(){return b?!0:!(n.unstable_now()-R<E)}function z(){if(b=!1,D){var G=n.unstable_now();R=G;var X=!0;try{e:{A=!1,x&&(x=!1,g(T),T=-1),w=!0;var J=S;try{t:{for(k(G),c=s(u);c!==null&&!(c.expirationTime>G&&B());){var I=c.callback;if(typeof I=="function"){c.callback=null,S=c.priorityLevel;var O=I(c.expirationTime<=G);if(G=n.unstable_now(),typeof O=="function"){c.callback=O,k(G),X=!0;break t}c===s(u)&&o(u),k(G)}else o(u);c=s(u)}if(c!==null)X=!0;else{var j=s(h);j!==null&&K(M,j.startTime-G),X=!1}}break e}finally{c=null,S=J,w=!1}X=void 0}}finally{X?q():D=!1}}}var q;if(typeof v=="function")q=function(){v(z)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Y=F.port2;F.port1.onmessage=z,q=function(){Y.postMessage(null)}}else q=function(){_(z,0)};function K(G,X){T=_(function(){G(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(G){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var J=S;S=X;try{return G()}finally{S=J}},n.unstable_requestPaint=function(){b=!0},n.unstable_runWithPriority=function(G,X){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var J=S;S=G;try{return X()}finally{S=J}},n.unstable_scheduleCallback=function(G,X,J){var I=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?I+J:I):J=I,G){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=J+O,G={id:d++,callback:X,priorityLevel:G,startTime:J,expirationTime:O,sortIndex:-1},J>I?(G.sortIndex=J,r(h,G),s(u)===null&&G===s(h)&&(x?(g(T),T=-1):x=!0,K(M,J-I))):(G.sortIndex=O,r(u,G),A||w||(A=!0,D||(D=!0,q()))),G},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(G){var X=S;return function(){var J=S;S=X;try{return G.apply(this,arguments)}finally{S=J}}}})(Zu)),Zu}var Zp;function z0(){return Zp||(Zp=1,Qu.exports=j0()),Qu.exports}var Ju={exports:{}},Ut={};/**
25
+ */var Qp;function z0(){return Qp||(Qp=1,(function(n){function r(G,X){var J=G.length;G.push(X);e:for(;0<J;){var I=J-1>>>1,O=G[I];if(0<p(O,X))G[I]=X,G[J]=O,J=I;else break e}}function s(G){return G.length===0?null:G[0]}function o(G){if(G.length===0)return null;var X=G[0],J=G.pop();if(J!==X){G[0]=J;e:for(var I=0,O=G.length,j=O>>>1;I<j;){var V=2*(I+1)-1,U=G[V],ne=V+1,_e=G[ne];if(0>p(U,J))ne<O&&0>p(_e,U)?(G[I]=_e,G[ne]=J,I=ne):(G[I]=U,G[V]=J,I=V);else if(ne<O&&0>p(_e,J))G[I]=_e,G[ne]=J,I=ne;else break e}}return X}function p(G,X){var J=G.sortIndex-X.sortIndex;return J!==0?J:G.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;n.unstable_now=function(){return y.now()}}else{var f=Date,a=f.now();n.unstable_now=function(){return f.now()-a}}var u=[],h=[],d=1,c=null,S=3,w=!1,A=!1,x=!1,b=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function k(G){for(var X=s(h);X!==null;){if(X.callback===null)o(h);else if(X.startTime<=G)o(h),X.sortIndex=X.expirationTime,r(u,X);else break;X=s(h)}}function M(G){if(x=!1,k(G),!A)if(s(u)!==null)A=!0,D||(D=!0,q());else{var X=s(h);X!==null&&K(M,X.startTime-G)}}var D=!1,T=-1,E=5,R=-1;function B(){return b?!0:!(n.unstable_now()-R<E)}function z(){if(b=!1,D){var G=n.unstable_now();R=G;var X=!0;try{e:{A=!1,x&&(x=!1,g(T),T=-1),w=!0;var J=S;try{t:{for(k(G),c=s(u);c!==null&&!(c.expirationTime>G&&B());){var I=c.callback;if(typeof I=="function"){c.callback=null,S=c.priorityLevel;var O=I(c.expirationTime<=G);if(G=n.unstable_now(),typeof O=="function"){c.callback=O,k(G),X=!0;break t}c===s(u)&&o(u),k(G)}else o(u);c=s(u)}if(c!==null)X=!0;else{var j=s(h);j!==null&&K(M,j.startTime-G),X=!1}}break e}finally{c=null,S=J,w=!1}X=void 0}}finally{X?q():D=!1}}}var q;if(typeof v=="function")q=function(){v(z)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Y=F.port2;F.port1.onmessage=z,q=function(){Y.postMessage(null)}}else q=function(){_(z,0)};function K(G,X){T=_(function(){G(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(G){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var J=S;S=X;try{return G()}finally{S=J}},n.unstable_requestPaint=function(){b=!0},n.unstable_runWithPriority=function(G,X){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var J=S;S=G;try{return X()}finally{S=J}},n.unstable_scheduleCallback=function(G,X,J){var I=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?I+J:I):J=I,G){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=J+O,G={id:d++,callback:X,priorityLevel:G,startTime:J,expirationTime:O,sortIndex:-1},J>I?(G.sortIndex=J,r(h,G),s(u)===null&&G===s(h)&&(x?(g(T),T=-1):x=!0,K(M,J-I))):(G.sortIndex=O,r(u,G),A||w||(A=!0,D||(D=!0,q()))),G},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(G){var X=S;return function(){var J=S;S=X;try{return G.apply(this,arguments)}finally{S=J}}}})(Zu)),Zu}var Zp;function H0(){return Zp||(Zp=1,Qu.exports=z0()),Qu.exports}var Ju={exports:{}},Ut={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var M0=Object.defineProperty;var L0=(n,r,s)=>r in n?M0(n,r,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Jp;function H0(){if(Jp)return Ut;Jp=1;var n=Oc();function r(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},p=Symbol.for("react.portal");function y(u,h,d){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:c==null?null:""+c,children:u,containerInfo:h,implementation:d}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(u,h){if(u==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ut.createPortal=function(u,h){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return y(u,h,null,d)},Ut.flushSync=function(u){var h=f.T,d=o.p;try{if(f.T=null,o.p=2,u)return u()}finally{f.T=h,o.p=d,o.d.f()}},Ut.preconnect=function(u,h){typeof u=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(u,h))},Ut.prefetchDNS=function(u){typeof u=="string"&&o.d.D(u)},Ut.preinit=function(u,h){if(typeof u=="string"&&h&&typeof h.as=="string"){var d=h.as,c=a(d,h.crossOrigin),S=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?o.d.S(u,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:c,integrity:S,fetchPriority:w}):d==="script"&&o.d.X(u,{crossOrigin:c,integrity:S,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ut.preinitModule=function(u,h){if(typeof u=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=a(h.as,h.crossOrigin);o.d.M(u,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(u)},Ut.preload=function(u,h){if(typeof u=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,c=a(d,h.crossOrigin);o.d.L(u,d,{crossOrigin:c,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ut.preloadModule=function(u,h){if(typeof u=="string")if(h){var d=a(h.as,h.crossOrigin);o.d.m(u,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(u)},Ut.requestFormReset=function(u){o.d.r(u)},Ut.unstable_batchedUpdates=function(u,h){return u(h)},Ut.useFormState=function(u,h,d){return f.H.useFormState(u,h,d)},Ut.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ut.version="19.2.6",Ut}var em;function I0(){if(em)return Ju.exports;em=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ju.exports=H0(),Ju.exports}/**
33
+ */var Jp;function I0(){if(Jp)return Ut;Jp=1;var n=Oc();function r(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},p=Symbol.for("react.portal");function y(u,h,d){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:c==null?null:""+c,children:u,containerInfo:h,implementation:d}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(u,h){if(u==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ut.createPortal=function(u,h){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return y(u,h,null,d)},Ut.flushSync=function(u){var h=f.T,d=o.p;try{if(f.T=null,o.p=2,u)return u()}finally{f.T=h,o.p=d,o.d.f()}},Ut.preconnect=function(u,h){typeof u=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(u,h))},Ut.prefetchDNS=function(u){typeof u=="string"&&o.d.D(u)},Ut.preinit=function(u,h){if(typeof u=="string"&&h&&typeof h.as=="string"){var d=h.as,c=a(d,h.crossOrigin),S=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?o.d.S(u,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:c,integrity:S,fetchPriority:w}):d==="script"&&o.d.X(u,{crossOrigin:c,integrity:S,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ut.preinitModule=function(u,h){if(typeof u=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=a(h.as,h.crossOrigin);o.d.M(u,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(u)},Ut.preload=function(u,h){if(typeof u=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,c=a(d,h.crossOrigin);o.d.L(u,d,{crossOrigin:c,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ut.preloadModule=function(u,h){if(typeof u=="string")if(h){var d=a(h.as,h.crossOrigin);o.d.m(u,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(u)},Ut.requestFormReset=function(u){o.d.r(u)},Ut.unstable_batchedUpdates=function(u,h){return u(h)},Ut.useFormState=function(u,h,d){return f.H.useFormState(u,h,d)},Ut.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ut.version="19.2.6",Ut}var em;function U0(){if(em)return Ju.exports;em=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ju.exports=I0(),Ju.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,17 +38,17 @@ var M0=Object.defineProperty;var L0=(n,r,s)=>r in n?M0(n,r,{enumerable:!0,config
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var tm;function U0(){if(tm)return Gs;tm=1;var n=z0(),r=Oc(),s=I0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function a(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(y(e)!==e)throw Error(o(188))}function h(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,l=t;;){var m=i.return;if(m===null)break;var C=m.alternate;if(C===null){if(l=m.return,l!==null){i=l;continue}break}if(m.child===C.child){for(C=m.child;C;){if(C===i)return u(m),e;if(C===l)return u(m),t;C=C.sibling}throw Error(o(188))}if(i.return!==l.return)i=m,l=C;else{for(var L=!1,P=m.child;P;){if(P===i){L=!0,i=m,l=C;break}if(P===l){L=!0,l=m,i=C;break}P=P.sibling}if(!L){for(P=C.child;P;){if(P===i){L=!0,i=C,l=m;break}if(P===l){L=!0,l=C,i=m;break}P=P.sibling}if(!L)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var c=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function Y(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case _:return"Profiler";case b:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case R:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case v:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return Y(e(t))}catch{}}return null}var K=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},I=[],O=-1;function j(e){return{current:e}}function V(e){0>O||(e.current=I[O],I[O]=null,O--)}function U(e,t){O++,I[O]=e.current,e.current=t}var ne=j(null),_e=j(null),me=j(null),$=j(null);function H(e,t){switch(U(me,t),U(_e,e),U(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ne),U(ne,e)}function te(){V(ne),V(_e),V(me)}function Z(e){e.memoizedState!==null&&U($,e);var t=ne.current,i=gp(t,e.type);t!==i&&(U(_e,e),U(ne,i))}function fe(e){_e.current===e&&(V(ne),V(_e)),$.current===e&&(V($),Us._currentValue=J)}var Se,Me;function Ie(e){if(Se===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",Me=-1<i.stack.indexOf(`
41
+ */var tm;function P0(){if(tm)return Gs;tm=1;var n=H0(),r=Oc(),s=U0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function a(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(y(e)!==e)throw Error(o(188))}function h(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,l=t;;){var m=i.return;if(m===null)break;var C=m.alternate;if(C===null){if(l=m.return,l!==null){i=l;continue}break}if(m.child===C.child){for(C=m.child;C;){if(C===i)return u(m),e;if(C===l)return u(m),t;C=C.sibling}throw Error(o(188))}if(i.return!==l.return)i=m,l=C;else{for(var L=!1,P=m.child;P;){if(P===i){L=!0,i=m,l=C;break}if(P===l){L=!0,l=m,i=C;break}P=P.sibling}if(!L){for(P=C.child;P;){if(P===i){L=!0,i=C,l=m;break}if(P===l){L=!0,l=C,i=m;break}P=P.sibling}if(!L)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var c=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function Y(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case _:return"Profiler";case b:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case R:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case v:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return Y(e(t))}catch{}}return null}var K=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},I=[],O=-1;function j(e){return{current:e}}function V(e){0>O||(e.current=I[O],I[O]=null,O--)}function U(e,t){O++,I[O]=e.current,e.current=t}var ne=j(null),_e=j(null),me=j(null),$=j(null);function H(e,t){switch(U(me,t),U(_e,e),U(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ne),U(ne,e)}function te(){V(ne),V(_e),V(me)}function Z(e){e.memoizedState!==null&&U($,e);var t=ne.current,i=gp(t,e.type);t!==i&&(U(_e,e),U(ne,i))}function fe(e){_e.current===e&&(V(ne),V(_e)),$.current===e&&(V($),Us._currentValue=J)}var Se,Me;function Ie(e){if(Se===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",Me=-1<i.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+Se+e+Me}var Ge=!1;function Ue(e,t){if(!e||Ge)return"";Ge=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(oe){var se=oe}Reflect.construct(e,[],pe)}else{try{pe.call()}catch(oe){se=oe}e.call(pe.prototype)}}else{try{throw Error()}catch(oe){se=oe}(pe=e())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(oe){if(oe&&se&&typeof oe.stack=="string")return[oe.stack,se.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=l.DetermineComponentFrameRoot(),L=C[0],P=C[1];if(L&&P){var W=L.split(`
44
44
  `),re=P.split(`
45
45
  `);for(m=l=0;l<W.length&&!W[l].includes("DetermineComponentFrameRoot");)l++;for(;m<re.length&&!re[m].includes("DetermineComponentFrameRoot");)m++;if(l===W.length||m===re.length)for(l=W.length-1,m=re.length-1;1<=l&&0<=m&&W[l]!==re[m];)m--;for(;1<=l&&0<=m;l--,m--)if(W[l]!==re[m]){if(l!==1||m!==1)do if(l--,m--,0>m||W[l]!==re[m]){var he=`
46
46
  `+W[l].replace(" at new "," at ");return e.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",e.displayName)),he}while(1<=l&&0<=m);break}}}finally{Ge=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Ie(i):""}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Ue(e.type,!1);case 11:return Ue(e.type.render,!1);case 1:return Ue(e.type,!0);case 31:return Ie("Activity");default:return""}}function $e(e){try{var t="",i=null;do t+=ge(e,i),i=e,e=e.return;while(e);return t}catch(l){return`
47
47
  Error generating stack: `+l.message+`
48
- `+l.stack}}var Oe=Object.prototype.hasOwnProperty,dt=n.unstable_scheduleCallback,Le=n.unstable_cancelCallback,wt=n.unstable_shouldYield,ae=n.unstable_requestPaint,ct=n.unstable_now,et=n.unstable_getCurrentPriorityLevel,ce=n.unstable_ImmediatePriority,ye=n.unstable_UserBlockingPriority,Ce=n.unstable_NormalPriority,Ae=n.unstable_LowPriority,Ne=n.unstable_IdlePriority,_t=n.log,Pe=n.unstable_setDisableYieldValue,Dt=null,pt=null;function It(e){if(typeof _t=="function"&&Pe(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Dt,e)}catch{}}var tt=Math.clz32?Math.clz32:ja,Tn=Math.log,tn=Math.LN2;function ja(e){return e>>>=0,e===0?32:31-(Tn(e)/tn|0)|0}var Dn=256,jn=262144,zn=4194304;function wn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ir(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var m=0,C=e.suspendedLanes,L=e.pingedLanes;e=e.warmLanes;var P=l&134217727;return P!==0?(l=P&~C,l!==0?m=wn(l):(L&=P,L!==0?m=wn(L):i||(i=P&~e,i!==0&&(m=wn(i))))):(P=l&~C,P!==0?m=wn(P):L!==0?m=wn(L):i||(i=l&~e,i!==0&&(m=wn(i)))),m===0?0:t!==0&&t!==m&&(t&C)===0&&(C=m&-m,i=t&-t,C>=i||C===32&&(i&4194048)!==0)?t:m}function Hn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zr(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mt(){var e=zn;return zn<<=1,(zn&62914560)===0&&(zn=4194304),e}function Jr(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Ni(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function za(e,t,i,l,m,C){var L=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var P=e.entanglements,W=e.expirationTimes,re=e.hiddenUpdates;for(i=L&~i;0<i;){var he=31-tt(i),pe=1<<he;P[he]=0,W[he]=-1;var se=re[he];if(se!==null)for(re[he]=null,he=0;he<se.length;he++){var oe=se[he];oe!==null&&(oe.lane&=-536870913)}i&=~pe}l!==0&&ll(e,l,0),C!==0&&m===0&&e.tag!==0&&(e.suspendedLanes|=C&~(L&~t))}function ll(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function rr(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-tt(i),m=1<<l;m&t|e[l]&t&&(e[l]|=t),i&=~m}}function es(e,t){var i=t&-t;return i=(i&42)!==0?1:le(i),(i&(e.suspendedLanes|t))!==0?0:i}function le(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function be(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function St(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Ip(e.type))}function Ot(e,t){var i=X.p;try{return X.p=e,t()}finally{X.p=i}}var ri=Math.random().toString(36).slice(2),Bt="__reactFiber$"+ri,$t="__reactProps$"+ri,sr="__reactContainer$"+ri,Ha="__reactEvents$"+ri,S_="__reactListeners$"+ri,b_="__reactHandles$"+ri,th="__reactResources$"+ri,ts="__reactMarker$"+ri;function Ia(e){delete e[Bt],delete e[$t],delete e[Ha],delete e[S_],delete e[b_]}function lr(e){var t=e[Bt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[sr]||i[Bt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=wp(e);e!==null;){if(i=e[Bt])return i;e=wp(e)}return t}e=i,i=e.parentNode}return null}function ar(e){if(e=e[Bt]||e[sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ns(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function or(e){var t=e[th];return t||(t=e[th]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Mt(e){e[ts]=!0}var nh=new Set,ih={};function ji(e,t){ur(e,t),ur(e+"Capture",t)}function ur(e,t){for(ih[e]=t,e=0;e<t.length;e++)nh.add(t[e])}var C_=RegExp("^[: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]*$"),rh={},sh={};function w_(e){return Oe.call(sh,e)?!0:Oe.call(rh,e)?!1:C_.test(e)?sh[e]=!0:(rh[e]=!0,!1)}function al(e,t,i){if(w_(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function ol(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function In(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x_(e,t,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var m=l.get,C=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return m.call(this)},set:function(L){i=""+L,C.call(this,L)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(L){i=""+L},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ua(e){if(!e._valueTracker){var t=lh(e)?"checked":"value";e._valueTracker=x_(e,t,""+e[t])}}function ah(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=lh(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var E_=/[\n"\\]/g;function dn(e){return e.replace(E_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pa(e,t,i,l,m,C,L,P){e.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?e.type=L:e.removeAttribute("type"),t!=null?L==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):L!=="submit"&&L!=="reset"||e.removeAttribute("value"),t!=null?Fa(e,L,fn(t)):i!=null?Fa(e,L,fn(i)):l!=null&&e.removeAttribute("value"),m==null&&C!=null&&(e.defaultChecked=!!C),m!=null&&(e.checked=m&&typeof m!="function"&&typeof m!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?e.name=""+fn(P):e.removeAttribute("name")}function oh(e,t,i,l,m,C,L,P){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(e.type=C),t!=null||i!=null){if(!(C!=="submit"&&C!=="reset"||t!=null)){Ua(e);return}i=i!=null?""+fn(i):"",t=t!=null?""+fn(t):i,P||t===e.value||(e.value=t),e.defaultValue=t}l=l??m,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=P?e.checked:!!l,e.defaultChecked=!!l,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(e.name=L),Ua(e)}function Fa(e,t,i){t==="number"&&ul(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function cr(e,t,i,l){if(e=e.options,t){t={};for(var m=0;m<i.length;m++)t["$"+i[m]]=!0;for(i=0;i<e.length;i++)m=t.hasOwnProperty("$"+e[i].value),e[i].selected!==m&&(e[i].selected=m),m&&l&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),t=null,m=0;m<e.length;m++){if(e[m].value===i){e[m].selected=!0,l&&(e[m].defaultSelected=!0);return}t!==null||e[m].disabled||(t=e[m])}t!==null&&(t.selected=!0)}}function uh(e,t,i){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+fn(i):""}function ch(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(o(92));if(K(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=fn(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),Ua(e)}function hr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var k_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hh(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||k_.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function fh(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var m in t)l=t[m],t.hasOwnProperty(m)&&i[m]!==l&&hh(e,m,l)}else for(var C in t)t.hasOwnProperty(C)&&hh(e,C,t[C])}function qa(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var A_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),T_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cl(e){return T_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Un(){}var Va=null;function Ga(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fr=null,dr=null;function dh(e){var t=ar(e);if(t&&(e=t.stateNode)){var i=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pa(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var m=l[$t]||null;if(!m)throw Error(o(90));Pa(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&ah(l)}break e;case"textarea":uh(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&cr(e,!!i.multiple,t,!1)}}}var $a=!1;function ph(e,t,i){if($a)return e(t,i);$a=!0;try{var l=e(t);return l}finally{if($a=!1,(fr!==null||dr!==null)&&(Ql(),fr&&(t=fr,e=dr,dr=fr=null,dh(t),e)))for(t=0;t<e.length;t++)dh(e[t])}}function is(e,t){var i=e.stateNode;if(i===null)return null;var l=i[$t]||null;if(l===null)return null;i=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ya=!1;if(Pn)try{var rs={};Object.defineProperty(rs,"passive",{get:function(){Ya=!0}}),window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{Ya=!1}var si=null,Ka=null,hl=null;function mh(){if(hl)return hl;var e,t=Ka,i=t.length,l,m="value"in si?si.value:si.textContent,C=m.length;for(e=0;e<i&&t[e]===m[e];e++);var L=i-e;for(l=1;l<=L&&t[i-l]===m[C-l];l++);return hl=m.slice(e,1<l?1-l:void 0)}function fl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dl(){return!0}function gh(){return!1}function Yt(e){function t(i,l,m,C,L){this._reactName=i,this._targetInst=m,this.type=l,this.nativeEvent=C,this.target=L,this.currentTarget=null;for(var P in e)e.hasOwnProperty(P)&&(i=e[P],this[P]=i?i(C):C[P]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?dl:gh,this.isPropagationStopped=gh,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),t}var zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Yt(zi),ss=c({},zi,{view:0,detail:0}),D_=Yt(ss),Wa,Xa,ls,ml=c({},ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Za,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ls&&(ls&&e.type==="mousemove"?(Wa=e.screenX-ls.screenX,Xa=e.screenY-ls.screenY):Xa=Wa=0,ls=e),Wa)},movementY:function(e){return"movementY"in e?e.movementY:Xa}}),_h=Yt(ml),R_=c({},ml,{dataTransfer:0}),M_=Yt(R_),L_=c({},ss,{relatedTarget:0}),Qa=Yt(L_),O_=c({},zi,{animationName:0,elapsedTime:0,pseudoElement:0}),B_=Yt(O_),N_=c({},zi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j_=Yt(N_),z_=c({},zi,{data:0}),vh=Yt(z_),H_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I_={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"},U_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=U_[e])?!!t[e]:!1}function Za(){return P_}var F_=c({},ss,{key:function(e){if(e.key){var t=H_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?I_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Za,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q_=Yt(F_),V_=c({},ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yh=Yt(V_),G_=c({},ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Za}),$_=Yt(G_),Y_=c({},zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),K_=Yt(Y_),W_=c({},ml,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),X_=Yt(W_),Q_=c({},zi,{newState:0,oldState:0}),Z_=Yt(Q_),J_=[9,13,27,32],Ja=Pn&&"CompositionEvent"in window,as=null;Pn&&"documentMode"in document&&(as=document.documentMode);var ev=Pn&&"TextEvent"in window&&!as,Sh=Pn&&(!Ja||as&&8<as&&11>=as),bh=" ",Ch=!1;function wh(e,t){switch(e){case"keyup":return J_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function tv(e,t){switch(e){case"compositionend":return xh(t);case"keypress":return t.which!==32?null:(Ch=!0,bh);case"textInput":return e=t.data,e===bh&&Ch?null:e;default:return null}}function nv(e,t){if(pr)return e==="compositionend"||!Ja&&wh(e,t)?(e=mh(),hl=Ka=si=null,pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sh&&t.locale!=="ko"?null:t.data;default:return null}}var iv={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 Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iv[e.type]:t==="textarea"}function kh(e,t,i,l){fr?dr?dr.push(l):dr=[l]:fr=l,t=ra(t,"onChange"),0<t.length&&(i=new pl("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var os=null,us=null;function rv(e){up(e,0)}function gl(e){var t=ns(e);if(ah(t))return e}function Ah(e,t){if(e==="change")return t}var Th=!1;if(Pn){var eo;if(Pn){var to="oninput"in document;if(!to){var Dh=document.createElement("div");Dh.setAttribute("oninput","return;"),to=typeof Dh.oninput=="function"}eo=to}else eo=!1;Th=eo&&(!document.documentMode||9<document.documentMode)}function Rh(){os&&(os.detachEvent("onpropertychange",Mh),us=os=null)}function Mh(e){if(e.propertyName==="value"&&gl(us)){var t=[];kh(t,us,e,Ga(e)),ph(rv,t)}}function sv(e,t,i){e==="focusin"?(Rh(),os=t,us=i,os.attachEvent("onpropertychange",Mh)):e==="focusout"&&Rh()}function lv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(us)}function av(e,t){if(e==="click")return gl(t)}function ov(e,t){if(e==="input"||e==="change")return gl(t)}function uv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:uv;function cs(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var m=i[l];if(!Oe.call(t,m)||!nn(e[m],t[m]))return!1}return!0}function Lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oh(e,t){var i=Lh(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Lh(i)}}function Bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ul(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=ul(e.document)}return t}function no(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cv=Pn&&"documentMode"in document&&11>=document.documentMode,mr=null,io=null,hs=null,ro=!1;function jh(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ro||mr==null||mr!==ul(l)||(l=mr,"selectionStart"in l&&no(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hs&&cs(hs,l)||(hs=l,l=ra(io,"onSelect"),0<l.length&&(t=new pl("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=mr)))}function Hi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var gr={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionrun:Hi("Transition","TransitionRun"),transitionstart:Hi("Transition","TransitionStart"),transitioncancel:Hi("Transition","TransitionCancel"),transitionend:Hi("Transition","TransitionEnd")},so={},zh={};Pn&&(zh=document.createElement("div").style,"AnimationEvent"in window||(delete gr.animationend.animation,delete gr.animationiteration.animation,delete gr.animationstart.animation),"TransitionEvent"in window||delete gr.transitionend.transition);function Ii(e){if(so[e])return so[e];if(!gr[e])return e;var t=gr[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in zh)return so[e]=t[i];return e}var Hh=Ii("animationend"),Ih=Ii("animationiteration"),Uh=Ii("animationstart"),hv=Ii("transitionrun"),fv=Ii("transitionstart"),dv=Ii("transitioncancel"),Ph=Ii("transitionend"),Fh=new Map,lo="abort auxClick beforeToggle 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(" ");lo.push("scrollEnd");function xn(e,t){Fh.set(e,t),ji(t,[e])}var _l=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pn=[],_r=0,ao=0;function vl(){for(var e=_r,t=ao=_r=0;t<e;){var i=pn[t];pn[t++]=null;var l=pn[t];pn[t++]=null;var m=pn[t];pn[t++]=null;var C=pn[t];if(pn[t++]=null,l!==null&&m!==null){var L=l.pending;L===null?m.next=m:(m.next=L.next,L.next=m),l.pending=m}C!==0&&qh(i,m,C)}}function yl(e,t,i,l){pn[_r++]=e,pn[_r++]=t,pn[_r++]=i,pn[_r++]=l,ao|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function oo(e,t,i,l){return yl(e,t,i,l),Sl(e)}function Ui(e,t){return yl(e,null,null,t),Sl(e)}function qh(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var m=!1,C=e.return;C!==null;)C.childLanes|=i,l=C.alternate,l!==null&&(l.childLanes|=i),C.tag===22&&(e=C.stateNode,e===null||e._visibility&1||(m=!0)),e=C,C=C.return;return e.tag===3?(C=e.stateNode,m&&t!==null&&(m=31-tt(i),e=C.hiddenUpdates,l=e[m],l===null?e[m]=[t]:l.push(t),t.lane=i|536870912),C):null}function Sl(e){if(50<Os)throw Os=0,vu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vr={};function pv(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,i,l){return new pv(e,t,i,l)}function uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fn(e,t){var i=e.alternate;return i===null?(i=rn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Vh(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bl(e,t,i,l,m,C){var L=0;if(l=e,typeof e=="function")uo(e)&&(L=1);else if(typeof e=="string")L=y0(e,i,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case R:return e=rn(31,i,t,m),e.elementType=R,e.lanes=C,e;case x:return Pi(i.children,m,C,t);case b:L=8,m|=24;break;case _:return e=rn(12,i,t,m|2),e.elementType=_,e.lanes=C,e;case M:return e=rn(13,i,t,m),e.elementType=M,e.lanes=C,e;case D:return e=rn(19,i,t,m),e.elementType=D,e.lanes=C,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v:L=10;break e;case g:L=9;break e;case k:L=11;break e;case T:L=14;break e;case E:L=16,l=null;break e}L=29,i=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=rn(L,i,t,m),t.elementType=e,t.type=l,t.lanes=C,t}function Pi(e,t,i,l){return e=rn(7,e,l,t),e.lanes=i,e}function co(e,t,i){return e=rn(6,e,null,t),e.lanes=i,e}function Gh(e){var t=rn(18,null,null,0);return t.stateNode=e,t}function ho(e,t,i){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $h=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var i=$h.get(e);return i!==void 0?i:(t={value:e,source:t,stack:$e(t)},$h.set(e,t),t)}return{value:e,source:t,stack:$e(t)}}var yr=[],Sr=0,Cl=null,fs=0,gn=[],_n=0,li=null,Rn=1,Mn="";function qn(e,t){yr[Sr++]=fs,yr[Sr++]=Cl,Cl=e,fs=t}function Yh(e,t,i){gn[_n++]=Rn,gn[_n++]=Mn,gn[_n++]=li,li=e;var l=Rn;e=Mn;var m=32-tt(l)-1;l&=~(1<<m),i+=1;var C=32-tt(t)+m;if(30<C){var L=m-m%5;C=(l&(1<<L)-1).toString(32),l>>=L,m-=L,Rn=1<<32-tt(t)+m|i<<m|l,Mn=C+e}else Rn=1<<C|i<<m|l,Mn=e}function fo(e){e.return!==null&&(qn(e,1),Yh(e,1,0))}function po(e){for(;e===Cl;)Cl=yr[--Sr],yr[Sr]=null,fs=yr[--Sr],yr[Sr]=null;for(;e===li;)li=gn[--_n],gn[_n]=null,Mn=gn[--_n],gn[_n]=null,Rn=gn[--_n],gn[_n]=null}function Kh(e,t){gn[_n++]=Rn,gn[_n++]=Mn,gn[_n++]=li,Rn=t.id,Mn=t.overflow,li=e}var Nt=null,ht=null,We=!1,ai=null,vn=!1,mo=Error(o(519));function oi(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ds(mn(t,e)),mo}function Wh(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[Bt]=e,t[$t]=l,i){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(i=0;i<Ns.length;i++)qe(Ns[i],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),oh(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),ch(t,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||dp(t.textContent,i)?(l.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),l.onScroll!=null&&qe("scroll",t),l.onScrollEnd!=null&&qe("scrollend",t),l.onClick!=null&&(t.onclick=Un),t=!0):t=!1,t||oi(e,!0)}function Xh(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:Nt=Nt.return}}function br(e){if(e!==Nt)return!1;if(!We)return Xh(e),We=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Ou(e.type,e.memoizedProps)),i=!i),i&&ht&&oi(e),Xh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Cp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Cp(e)}else t===27?(t=ht,Ci(e.type)?(e=Hu,Hu=null,ht=e):ht=t):ht=Nt?Sn(e.stateNode.nextSibling):null;return!0}function Fi(){ht=Nt=null,We=!1}function go(){var e=ai;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),ai=null),e}function ds(e){ai===null?ai=[e]:ai.push(e)}var _o=j(null),qi=null,Vn=null;function ui(e,t,i){U(_o,t._currentValue),t._currentValue=i}function Gn(e){e._currentValue=_o.current,V(_o)}function vo(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function yo(e,t,i,l){var m=e.child;for(m!==null&&(m.return=e);m!==null;){var C=m.dependencies;if(C!==null){var L=m.child;C=C.firstContext;e:for(;C!==null;){var P=C;C=m;for(var W=0;W<t.length;W++)if(P.context===t[W]){C.lanes|=i,P=C.alternate,P!==null&&(P.lanes|=i),vo(C.return,i,e),l||(L=null);break e}C=P.next}}else if(m.tag===18){if(L=m.return,L===null)throw Error(o(341));L.lanes|=i,C=L.alternate,C!==null&&(C.lanes|=i),vo(L,i,e),L=null}else L=m.child;if(L!==null)L.return=m;else for(L=m;L!==null;){if(L===e){L=null;break}if(m=L.sibling,m!==null){m.return=L.return,L=m;break}L=L.return}m=L}}function Cr(e,t,i,l){e=null;for(var m=t,C=!1;m!==null;){if(!C){if((m.flags&524288)!==0)C=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var L=m.alternate;if(L===null)throw Error(o(387));if(L=L.memoizedProps,L!==null){var P=m.type;nn(m.pendingProps.value,L.value)||(e!==null?e.push(P):e=[P])}}else if(m===$.current){if(L=m.alternate,L===null)throw Error(o(387));L.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(e!==null?e.push(Us):e=[Us])}m=m.return}e!==null&&yo(t,e,i,l),t.flags|=262144}function wl(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vi(e){qi=e,Vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Qh(qi,e)}function xl(e,t){return qi===null&&Vi(e),Qh(e,t)}function Qh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Vn===null){if(e===null)throw Error(o(308));Vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vn=Vn.next=t;return i}var mv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},gv=n.unstable_scheduleCallback,_v=n.unstable_NormalPriority,xt={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function So(){return{controller:new mv,data:new Map,refCount:0}}function ps(e){e.refCount--,e.refCount===0&&gv(_v,function(){e.controller.abort()})}var ms=null,bo=0,wr=0,xr=null;function vv(e,t){if(ms===null){var i=ms=[];bo=0,wr=xu(),xr={status:"pending",value:void 0,then:function(l){i.push(l)}}}return bo++,t.then(Zh,Zh),t}function Zh(){if(--bo===0&&ms!==null){xr!==null&&(xr.status="fulfilled");var e=ms;ms=null,wr=0,xr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yv(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(m){i.push(m)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var m=0;m<i.length;m++)(0,i[m])(t)},function(m){for(l.status="rejected",l.reason=m,m=0;m<i.length;m++)(0,i[m])(void 0)}),l}var Jh=G.S;G.S=function(e,t){zd=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vv(e,t),Jh!==null&&Jh(e,t)};var Gi=j(null);function Co(){var e=Gi.current;return e!==null?e:at.pooledCache}function El(e,t){t===null?U(Gi,Gi.current):U(Gi,t.pool)}function ef(){var e=Co();return e===null?null:{parent:xt._currentValue,pool:e}}var Er=Error(o(460)),wo=Error(o(474)),kl=Error(o(542)),Al={then:function(){}};function tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nf(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Un,Un),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(Un,Un);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var m=t;m.status="fulfilled",m.value=l}},function(l){if(t.status==="pending"){var m=t;m.status="rejected",m.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw Yi=t,Er}}function $i(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Yi=i,Er):i}}var Yi=null;function rf(){if(Yi===null)throw Error(o(459));var e=Yi;return Yi=null,e}function sf(e){if(e===Er||e===kl)throw Error(o(483))}var kr=null,gs=0;function Tl(e){var t=gs;return gs+=1,kr===null&&(kr=[]),nf(kr,e,t)}function _s(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Dl(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lf(e){function t(ee,Q){if(e){var ie=ee.deletions;ie===null?(ee.deletions=[Q],ee.flags|=16):ie.push(Q)}}function i(ee,Q){if(!e)return null;for(;Q!==null;)t(ee,Q),Q=Q.sibling;return null}function l(ee){for(var Q=new Map;ee!==null;)ee.key!==null?Q.set(ee.key,ee):Q.set(ee.index,ee),ee=ee.sibling;return Q}function m(ee,Q){return ee=Fn(ee,Q),ee.index=0,ee.sibling=null,ee}function C(ee,Q,ie){return ee.index=ie,e?(ie=ee.alternate,ie!==null?(ie=ie.index,ie<Q?(ee.flags|=67108866,Q):ie):(ee.flags|=67108866,Q)):(ee.flags|=1048576,Q)}function L(ee){return e&&ee.alternate===null&&(ee.flags|=67108866),ee}function P(ee,Q,ie,de){return Q===null||Q.tag!==6?(Q=co(ie,ee.mode,de),Q.return=ee,Q):(Q=m(Q,ie),Q.return=ee,Q)}function W(ee,Q,ie,de){var ke=ie.type;return ke===x?he(ee,Q,ie.props.children,de,ie.key):Q!==null&&(Q.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===E&&$i(ke)===Q.type)?(Q=m(Q,ie.props),_s(Q,ie),Q.return=ee,Q):(Q=bl(ie.type,ie.key,ie.props,null,ee.mode,de),_s(Q,ie),Q.return=ee,Q)}function re(ee,Q,ie,de){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ie.containerInfo||Q.stateNode.implementation!==ie.implementation?(Q=ho(ie,ee.mode,de),Q.return=ee,Q):(Q=m(Q,ie.children||[]),Q.return=ee,Q)}function he(ee,Q,ie,de,ke){return Q===null||Q.tag!==7?(Q=Pi(ie,ee.mode,de,ke),Q.return=ee,Q):(Q=m(Q,ie),Q.return=ee,Q)}function pe(ee,Q,ie){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=co(""+Q,ee.mode,ie),Q.return=ee,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return ie=bl(Q.type,Q.key,Q.props,null,ee.mode,ie),_s(ie,Q),ie.return=ee,ie;case A:return Q=ho(Q,ee.mode,ie),Q.return=ee,Q;case E:return Q=$i(Q),pe(ee,Q,ie)}if(K(Q)||q(Q))return Q=Pi(Q,ee.mode,ie,null),Q.return=ee,Q;if(typeof Q.then=="function")return pe(ee,Tl(Q),ie);if(Q.$$typeof===v)return pe(ee,xl(ee,Q),ie);Dl(ee,Q)}return null}function se(ee,Q,ie,de){var ke=Q!==null?Q.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ke!==null?null:P(ee,Q,""+ie,de);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return ie.key===ke?W(ee,Q,ie,de):null;case A:return ie.key===ke?re(ee,Q,ie,de):null;case E:return ie=$i(ie),se(ee,Q,ie,de)}if(K(ie)||q(ie))return ke!==null?null:he(ee,Q,ie,de,null);if(typeof ie.then=="function")return se(ee,Q,Tl(ie),de);if(ie.$$typeof===v)return se(ee,Q,xl(ee,ie),de);Dl(ee,ie)}return null}function oe(ee,Q,ie,de,ke){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return ee=ee.get(ie)||null,P(Q,ee,""+de,ke);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case w:return ee=ee.get(de.key===null?ie:de.key)||null,W(Q,ee,de,ke);case A:return ee=ee.get(de.key===null?ie:de.key)||null,re(Q,ee,de,ke);case E:return de=$i(de),oe(ee,Q,ie,de,ke)}if(K(de)||q(de))return ee=ee.get(ie)||null,he(Q,ee,de,ke,null);if(typeof de.then=="function")return oe(ee,Q,ie,Tl(de),ke);if(de.$$typeof===v)return oe(ee,Q,ie,xl(Q,de),ke);Dl(Q,de)}return null}function we(ee,Q,ie,de){for(var ke=null,Qe=null,Ee=Q,ze=Q=0,Ke=null;Ee!==null&&ze<ie.length;ze++){Ee.index>ze?(Ke=Ee,Ee=null):Ke=Ee.sibling;var Ze=se(ee,Ee,ie[ze],de);if(Ze===null){Ee===null&&(Ee=Ke);break}e&&Ee&&Ze.alternate===null&&t(ee,Ee),Q=C(Ze,Q,ze),Qe===null?ke=Ze:Qe.sibling=Ze,Qe=Ze,Ee=Ke}if(ze===ie.length)return i(ee,Ee),We&&qn(ee,ze),ke;if(Ee===null){for(;ze<ie.length;ze++)Ee=pe(ee,ie[ze],de),Ee!==null&&(Q=C(Ee,Q,ze),Qe===null?ke=Ee:Qe.sibling=Ee,Qe=Ee);return We&&qn(ee,ze),ke}for(Ee=l(Ee);ze<ie.length;ze++)Ke=oe(Ee,ee,ze,ie[ze],de),Ke!==null&&(e&&Ke.alternate!==null&&Ee.delete(Ke.key===null?ze:Ke.key),Q=C(Ke,Q,ze),Qe===null?ke=Ke:Qe.sibling=Ke,Qe=Ke);return e&&Ee.forEach(function(Ai){return t(ee,Ai)}),We&&qn(ee,ze),ke}function De(ee,Q,ie,de){if(ie==null)throw Error(o(151));for(var ke=null,Qe=null,Ee=Q,ze=Q=0,Ke=null,Ze=ie.next();Ee!==null&&!Ze.done;ze++,Ze=ie.next()){Ee.index>ze?(Ke=Ee,Ee=null):Ke=Ee.sibling;var Ai=se(ee,Ee,Ze.value,de);if(Ai===null){Ee===null&&(Ee=Ke);break}e&&Ee&&Ai.alternate===null&&t(ee,Ee),Q=C(Ai,Q,ze),Qe===null?ke=Ai:Qe.sibling=Ai,Qe=Ai,Ee=Ke}if(Ze.done)return i(ee,Ee),We&&qn(ee,ze),ke;if(Ee===null){for(;!Ze.done;ze++,Ze=ie.next())Ze=pe(ee,Ze.value,de),Ze!==null&&(Q=C(Ze,Q,ze),Qe===null?ke=Ze:Qe.sibling=Ze,Qe=Ze);return We&&qn(ee,ze),ke}for(Ee=l(Ee);!Ze.done;ze++,Ze=ie.next())Ze=oe(Ee,ee,ze,Ze.value,de),Ze!==null&&(e&&Ze.alternate!==null&&Ee.delete(Ze.key===null?ze:Ze.key),Q=C(Ze,Q,ze),Qe===null?ke=Ze:Qe.sibling=Ze,Qe=Ze);return e&&Ee.forEach(function(R0){return t(ee,R0)}),We&&qn(ee,ze),ke}function lt(ee,Q,ie,de){if(typeof ie=="object"&&ie!==null&&ie.type===x&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:e:{for(var ke=ie.key;Q!==null;){if(Q.key===ke){if(ke=ie.type,ke===x){if(Q.tag===7){i(ee,Q.sibling),de=m(Q,ie.props.children),de.return=ee,ee=de;break e}}else if(Q.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===E&&$i(ke)===Q.type){i(ee,Q.sibling),de=m(Q,ie.props),_s(de,ie),de.return=ee,ee=de;break e}i(ee,Q);break}else t(ee,Q);Q=Q.sibling}ie.type===x?(de=Pi(ie.props.children,ee.mode,de,ie.key),de.return=ee,ee=de):(de=bl(ie.type,ie.key,ie.props,null,ee.mode,de),_s(de,ie),de.return=ee,ee=de)}return L(ee);case A:e:{for(ke=ie.key;Q!==null;){if(Q.key===ke)if(Q.tag===4&&Q.stateNode.containerInfo===ie.containerInfo&&Q.stateNode.implementation===ie.implementation){i(ee,Q.sibling),de=m(Q,ie.children||[]),de.return=ee,ee=de;break e}else{i(ee,Q);break}else t(ee,Q);Q=Q.sibling}de=ho(ie,ee.mode,de),de.return=ee,ee=de}return L(ee);case E:return ie=$i(ie),lt(ee,Q,ie,de)}if(K(ie))return we(ee,Q,ie,de);if(q(ie)){if(ke=q(ie),typeof ke!="function")throw Error(o(150));return ie=ke.call(ie),De(ee,Q,ie,de)}if(typeof ie.then=="function")return lt(ee,Q,Tl(ie),de);if(ie.$$typeof===v)return lt(ee,Q,xl(ee,ie),de);Dl(ee,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,Q!==null&&Q.tag===6?(i(ee,Q.sibling),de=m(Q,ie),de.return=ee,ee=de):(i(ee,Q),de=co(ie,ee.mode,de),de.return=ee,ee=de),L(ee)):i(ee,Q)}return function(ee,Q,ie,de){try{gs=0;var ke=lt(ee,Q,ie,de);return kr=null,ke}catch(Ee){if(Ee===Er||Ee===kl)throw Ee;var Qe=rn(29,Ee,null,ee.mode);return Qe.lanes=de,Qe.return=ee,Qe}finally{}}}var Ki=lf(!0),af=lf(!1),ci=!1;function xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fi(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Je&2)!==0){var m=l.pending;return m===null?t.next=t:(t.next=m.next,m.next=t),l.pending=t,t=Sl(e),qh(e,null,i),t}return yl(e,l,t,i),Sl(e)}function vs(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,rr(e,i)}}function ko(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var m=null,C=null;if(i=i.firstBaseUpdate,i!==null){do{var L={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};C===null?m=C=L:C=C.next=L,i=i.next}while(i!==null);C===null?m=C=t:C=C.next=t}else m=C=t;i={baseState:l.baseState,firstBaseUpdate:m,lastBaseUpdate:C,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Ao=!1;function ys(){if(Ao){var e=xr;if(e!==null)throw e}}function Ss(e,t,i,l){Ao=!1;var m=e.updateQueue;ci=!1;var C=m.firstBaseUpdate,L=m.lastBaseUpdate,P=m.shared.pending;if(P!==null){m.shared.pending=null;var W=P,re=W.next;W.next=null,L===null?C=re:L.next=re,L=W;var he=e.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==L&&(P===null?he.firstBaseUpdate=re:P.next=re,he.lastBaseUpdate=W))}if(C!==null){var pe=m.baseState;L=0,he=re=W=null,P=C;do{var se=P.lane&-536870913,oe=se!==P.lane;if(oe?(Ye&se)===se:(l&se)===se){se!==0&&se===wr&&(Ao=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var we=e,De=P;se=t;var lt=i;switch(De.tag){case 1:if(we=De.payload,typeof we=="function"){pe=we.call(lt,pe,se);break e}pe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=De.payload,se=typeof we=="function"?we.call(lt,pe,se):we,se==null)break e;pe=c({},pe,se);break e;case 2:ci=!0}}se=P.callback,se!==null&&(e.flags|=64,oe&&(e.flags|=8192),oe=m.callbacks,oe===null?m.callbacks=[se]:oe.push(se))}else oe={lane:se,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(re=he=oe,W=pe):he=he.next=oe,L|=se;if(P=P.next,P===null){if(P=m.shared.pending,P===null)break;oe=P,P=oe.next,oe.next=null,m.lastBaseUpdate=oe,m.shared.pending=null}}while(!0);he===null&&(W=pe),m.baseState=W,m.firstBaseUpdate=re,m.lastBaseUpdate=he,C===null&&(m.shared.lanes=0),_i|=L,e.lanes=L,e.memoizedState=pe}}function of(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function uf(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)of(i[e],t)}var Ar=j(null),Rl=j(0);function cf(e,t){e=ei,U(Rl,e),U(Ar,t),ei=e|t.baseLanes}function To(){U(Rl,ei),U(Ar,Ar.current)}function Do(){ei=Rl.current,V(Ar),V(Rl)}var sn=j(null),yn=null;function di(e){var t=e.alternate;U(bt,bt.current&1),U(sn,e),yn===null&&(t===null||Ar.current!==null||t.memoizedState!==null)&&(yn=e)}function Ro(e){U(bt,bt.current),U(sn,e),yn===null&&(yn=e)}function hf(e){e.tag===22?(U(bt,bt.current),U(sn,e),yn===null&&(yn=e)):pi()}function pi(){U(bt,bt.current),U(sn,sn.current)}function ln(e){V(sn),yn===e&&(yn=null),V(bt)}var bt=j(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||ju(i)||zu(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $n=0,je=null,rt=null,Et=null,Ll=!1,Tr=!1,Wi=!1,Ol=0,bs=0,Dr=null,Sv=0;function vt(){throw Error(o(321))}function Mo(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!nn(e[i],t[i]))return!1;return!0}function Lo(e,t,i,l,m,C){return $n=C,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?Kf:Yo,Wi=!1,C=i(l,m),Wi=!1,Tr&&(C=df(t,i,l,m)),ff(e),C}function ff(e){G.H=xs;var t=rt!==null&&rt.next!==null;if($n=0,Et=rt=je=null,Ll=!1,bs=0,Dr=null,t)throw Error(o(300));e===null||kt||(e=e.dependencies,e!==null&&wl(e)&&(kt=!0))}function df(e,t,i,l){je=e;var m=0;do{if(Tr&&(Dr=null),bs=0,Tr=!1,25<=m)throw Error(o(301));if(m+=1,Et=rt=null,e.updateQueue!=null){var C=e.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}G.H=Wf,C=t(i,l)}while(Tr);return C}function bv(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Cs(t):t,e=e.useState()[0],(rt!==null?rt.memoizedState:null)!==e&&(je.flags|=1024),t}function Oo(){var e=Ol!==0;return Ol=0,e}function Bo(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function No(e){if(Ll){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ll=!1}$n=0,Et=rt=je=null,Tr=!1,bs=Ol=0,Dr=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?je.memoizedState=Et=e:Et=Et.next=e,Et}function Ct(){if(rt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=Et===null?je.memoizedState:Et.next;if(t!==null)Et=t,rt=e;else{if(e===null)throw je.alternate===null?Error(o(467)):Error(o(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Et===null?je.memoizedState=Et=e:Et=Et.next=e}return Et}function Bl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cs(e){var t=bs;return bs+=1,Dr===null&&(Dr=[]),e=nf(Dr,e,t),t=je,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?Kf:Yo),e}function Nl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cs(e);if(e.$$typeof===v)return jt(e)}throw Error(o(438,String(e)))}function jo(e){var t=null,i=je.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(m){return m.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Bl(),je.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=B;return t.index++,i}function Yn(e,t){return typeof t=="function"?t(e):t}function jl(e){var t=Ct();return zo(t,rt,e)}function zo(e,t,i){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var m=e.baseQueue,C=l.pending;if(C!==null){if(m!==null){var L=m.next;m.next=C.next,C.next=L}t.baseQueue=m=C,l.pending=null}if(C=e.baseState,m===null)e.memoizedState=C;else{t=m.next;var P=L=null,W=null,re=t,he=!1;do{var pe=re.lane&-536870913;if(pe!==re.lane?(Ye&pe)===pe:($n&pe)===pe){var se=re.revertLane;if(se===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),pe===wr&&(he=!0);else if(($n&se)===se){re=re.next,se===wr&&(he=!0);continue}else pe={lane:0,revertLane:re.revertLane,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(P=W=pe,L=C):W=W.next=pe,je.lanes|=se,_i|=se;pe=re.action,Wi&&i(C,pe),C=re.hasEagerState?re.eagerState:i(C,pe)}else se={lane:pe,revertLane:re.revertLane,gesture:re.gesture,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(P=W=se,L=C):W=W.next=se,je.lanes|=pe,_i|=pe;re=re.next}while(re!==null&&re!==t);if(W===null?L=C:W.next=P,!nn(C,e.memoizedState)&&(kt=!0,he&&(i=xr,i!==null)))throw i;e.memoizedState=C,e.baseState=L,e.baseQueue=W,l.lastRenderedState=C}return m===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ho(e){var t=Ct(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=i.dispatch,m=i.pending,C=t.memoizedState;if(m!==null){i.pending=null;var L=m=m.next;do C=e(C,L.action),L=L.next;while(L!==m);nn(C,t.memoizedState)||(kt=!0),t.memoizedState=C,t.baseQueue===null&&(t.baseState=C),i.lastRenderedState=C}return[C,l]}function pf(e,t,i){var l=je,m=Ct(),C=We;if(C){if(i===void 0)throw Error(o(407));i=i()}else i=t();var L=!nn((rt||m).memoizedState,i);if(L&&(m.memoizedState=i,kt=!0),m=m.queue,Po(_f.bind(null,l,m,e),[e]),m.getSnapshot!==t||L||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,Rr(9,{destroy:void 0},gf.bind(null,l,m,i,t),null),at===null)throw Error(o(349));C||($n&127)!==0||mf(l,t,i)}return i}function mf(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=je.updateQueue,t===null?(t=Bl(),je.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function gf(e,t,i,l){t.value=i,t.getSnapshot=l,vf(t)&&yf(e)}function _f(e,t,i){return i(function(){vf(t)&&yf(e)})}function vf(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!nn(e,i)}catch{return!0}}function yf(e){var t=Ui(e,2);t!==null&&Zt(t,e,2)}function Io(e){var t=Vt();if(typeof e=="function"){var i=e;if(e=i(),Wi){It(!0);try{i()}finally{It(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},t}function Sf(e,t,i,l){return e.baseState=i,zo(e,rt,typeof l=="function"?l:Yn)}function Cv(e,t,i,l,m){if(Il(e))throw Error(o(485));if(e=t.action,e!==null){var C={payload:m,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){C.listeners.push(L)}};G.T!==null?i(!0):C.isTransition=!1,l(C),i=t.pending,i===null?(C.next=t.pending=C,bf(t,C)):(C.next=i.next,t.pending=i.next=C)}}function bf(e,t){var i=t.action,l=t.payload,m=e.state;if(t.isTransition){var C=G.T,L={};G.T=L;try{var P=i(m,l),W=G.S;W!==null&&W(L,P),Cf(e,t,P)}catch(re){Uo(e,t,re)}finally{C!==null&&L.types!==null&&(C.types=L.types),G.T=C}}else try{C=i(m,l),Cf(e,t,C)}catch(re){Uo(e,t,re)}}function Cf(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){wf(e,t,l)},function(l){return Uo(e,t,l)}):wf(e,t,i)}function wf(e,t,i){t.status="fulfilled",t.value=i,xf(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,bf(e,i)))}function Uo(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,xf(t),t=t.next;while(t!==l)}e.action=null}function xf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ef(e,t){return t}function kf(e,t){if(We){var i=at.formState;if(i!==null){e:{var l=je;if(We){if(ht){t:{for(var m=ht,C=vn;m.nodeType!==8;){if(!C){m=null;break t}if(m=Sn(m.nextSibling),m===null){m=null;break t}}C=m.data,m=C==="F!"||C==="F"?m:null}if(m){ht=Sn(m.nextSibling),l=m.data==="F!";break e}}oi(l)}l=!1}l&&(t=i[0])}}return i=Vt(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ef,lastRenderedState:t},i.queue=l,i=Gf.bind(null,je,l),l.dispatch=i,l=Io(!1),C=$o.bind(null,je,!1,l.queue),l=Vt(),m={state:t,dispatch:null,action:e,pending:null},l.queue=m,i=Cv.bind(null,je,m,C,i),m.dispatch=i,l.memoizedState=e,[t,i,!1]}function Af(e){var t=Ct();return Tf(t,rt,e)}function Tf(e,t,i){if(t=zo(e,t,Ef)[0],e=jl(Yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Cs(t)}catch(L){throw L===Er?kl:L}else l=t;t=Ct();var m=t.queue,C=m.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Rr(9,{destroy:void 0},wv.bind(null,m,i),null)),[l,C,e]}function wv(e,t){e.action=t}function Df(e){var t=Ct(),i=rt;if(i!==null)return Tf(t,i,e);Ct(),t=t.memoizedState,i=Ct();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function Rr(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=je.updateQueue,t===null&&(t=Bl(),je.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function Rf(){return Ct().memoizedState}function zl(e,t,i,l){var m=Vt();je.flags|=e,m.memoizedState=Rr(1|t,{destroy:void 0},i,l===void 0?null:l)}function Hl(e,t,i,l){var m=Ct();l=l===void 0?null:l;var C=m.memoizedState.inst;rt!==null&&l!==null&&Mo(l,rt.memoizedState.deps)?m.memoizedState=Rr(t,C,i,l):(je.flags|=e,m.memoizedState=Rr(1|t,C,i,l))}function Mf(e,t){zl(8390656,8,e,t)}function Po(e,t){Hl(2048,8,e,t)}function xv(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Bl(),je.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Lf(e){var t=Ct().memoizedState;return xv({ref:t,nextImpl:e}),function(){if((Je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Of(e,t){return Hl(4,2,e,t)}function Bf(e,t){return Hl(4,4,e,t)}function Nf(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jf(e,t,i){i=i!=null?i.concat([e]):null,Hl(4,4,Nf.bind(null,t,e),i)}function Fo(){}function zf(e,t){var i=Ct();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&Mo(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function Hf(e,t){var i=Ct();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&Mo(t,l[1]))return l[0];if(l=e(),Wi){It(!0);try{e()}finally{It(!1)}}return i.memoizedState=[l,t],l}function qo(e,t,i){return i===void 0||($n&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Id(),je.lanes|=e,_i|=e,i)}function If(e,t,i,l){return nn(i,t)?i:Ar.current!==null?(e=qo(e,i,l),nn(e,t)||(kt=!0),e):($n&42)===0||($n&1073741824)!==0&&(Ye&261930)===0?(kt=!0,e.memoizedState=i):(e=Id(),je.lanes|=e,_i|=e,t)}function Uf(e,t,i,l,m){var C=X.p;X.p=C!==0&&8>C?C:8;var L=G.T,P={};G.T=P,$o(e,!1,t,i);try{var W=m(),re=G.S;if(re!==null&&re(P,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var he=yv(W,l);ws(e,t,he,un(e))}else ws(e,t,l,un(e))}catch(pe){ws(e,t,{then:function(){},status:"rejected",reason:pe},un())}finally{X.p=C,L!==null&&P.types!==null&&(L.types=P.types),G.T=L}}function Ev(){}function Vo(e,t,i,l){if(e.tag!==5)throw Error(o(476));var m=Pf(e).queue;Uf(e,m,t,J,i===null?Ev:function(){return Ff(e),i(l)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:J},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ff(e){var t=Pf(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},un())}function Go(){return jt(Us)}function qf(){return Ct().memoizedState}function Vf(){return Ct().memoizedState}function kv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=un();e=hi(i);var l=fi(t,e,i);l!==null&&(Zt(l,t,i),vs(l,t,i)),t={cache:So()},e.payload=t;return}t=t.return}}function Av(e,t,i){var l=un();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Il(e)?$f(t,i):(i=oo(e,t,i,l),i!==null&&(Zt(i,e,l),Yf(i,t,l)))}function Gf(e,t,i){var l=un();ws(e,t,i,l)}function ws(e,t,i,l){var m={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Il(e))$f(t,m);else{var C=e.alternate;if(e.lanes===0&&(C===null||C.lanes===0)&&(C=t.lastRenderedReducer,C!==null))try{var L=t.lastRenderedState,P=C(L,i);if(m.hasEagerState=!0,m.eagerState=P,nn(P,L))return yl(e,t,m,0),at===null&&vl(),!1}catch{}finally{}if(i=oo(e,t,m,l),i!==null)return Zt(i,e,l),Yf(i,t,l),!0}return!1}function $o(e,t,i,l){if(l={lane:2,revertLane:xu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Il(e)){if(t)throw Error(o(479))}else t=oo(e,i,l,2),t!==null&&Zt(t,e,2)}function Il(e){var t=e.alternate;return e===je||t!==null&&t===je}function $f(e,t){Tr=Ll=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Yf(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,rr(e,i)}}var xs={readContext:jt,use:Nl,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};xs.useEffectEvent=vt;var Kf={readContext:jt,use:Nl,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Mf,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,zl(4194308,4,Nf.bind(null,t,e),i)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){zl(4,2,e,t)},useMemo:function(e,t){var i=Vt();t=t===void 0?null:t;var l=e();if(Wi){It(!0);try{e()}finally{It(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=Vt();if(i!==void 0){var m=i(t);if(Wi){It(!0);try{i(t)}finally{It(!1)}}}else m=t;return l.memoizedState=l.baseState=m,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:m},l.queue=e,e=e.dispatch=Av.bind(null,je,e),[l.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Io(e);var t=e.queue,i=Gf.bind(null,je,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Fo,useDeferredValue:function(e,t){var i=Vt();return qo(i,e,t)},useTransition:function(){var e=Io(!1);return e=Uf.bind(null,je,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=je,m=Vt();if(We){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),at===null)throw Error(o(349));(Ye&127)!==0||mf(l,t,i)}m.memoizedState=i;var C={value:i,getSnapshot:t};return m.queue=C,Mf(_f.bind(null,l,C,e),[e]),l.flags|=2048,Rr(9,{destroy:void 0},gf.bind(null,l,C,i,t),null),i},useId:function(){var e=Vt(),t=at.identifierPrefix;if(We){var i=Mn,l=Rn;i=(l&~(1<<32-tt(l)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Ol++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Sv++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Go,useFormState:kf,useActionState:kf,useOptimistic:function(e){var t=Vt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=$o.bind(null,je,!0,i),i.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Vt().memoizedState=kv.bind(null,je)},useEffectEvent:function(e){var t=Vt(),i={impl:e};return t.memoizedState=i,function(){if((Je&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Yo={readContext:jt,use:Nl,useCallback:zf,useContext:jt,useEffect:Po,useImperativeHandle:jf,useInsertionEffect:Of,useLayoutEffect:Bf,useMemo:Hf,useReducer:jl,useRef:Rf,useState:function(){return jl(Yn)},useDebugValue:Fo,useDeferredValue:function(e,t){var i=Ct();return If(i,rt.memoizedState,e,t)},useTransition:function(){var e=jl(Yn)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Cs(e),t]},useSyncExternalStore:pf,useId:qf,useHostTransitionStatus:Go,useFormState:Af,useActionState:Af,useOptimistic:function(e,t){var i=Ct();return Sf(i,rt,e,t)},useMemoCache:jo,useCacheRefresh:Vf};Yo.useEffectEvent=Lf;var Wf={readContext:jt,use:Nl,useCallback:zf,useContext:jt,useEffect:Po,useImperativeHandle:jf,useInsertionEffect:Of,useLayoutEffect:Bf,useMemo:Hf,useReducer:Ho,useRef:Rf,useState:function(){return Ho(Yn)},useDebugValue:Fo,useDeferredValue:function(e,t){var i=Ct();return rt===null?qo(i,e,t):If(i,rt.memoizedState,e,t)},useTransition:function(){var e=Ho(Yn)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Cs(e),t]},useSyncExternalStore:pf,useId:qf,useHostTransitionStatus:Go,useFormState:Df,useActionState:Df,useOptimistic:function(e,t){var i=Ct();return rt!==null?Sf(i,rt,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:jo,useCacheRefresh:Vf};Wf.useEffectEvent=Lf;function Ko(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:c({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Wo={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=un(),m=hi(l);m.payload=t,i!=null&&(m.callback=i),t=fi(e,m,l),t!==null&&(Zt(t,e,l),vs(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=un(),m=hi(l);m.tag=1,m.payload=t,i!=null&&(m.callback=i),t=fi(e,m,l),t!==null&&(Zt(t,e,l),vs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=un(),l=hi(i);l.tag=2,t!=null&&(l.callback=t),t=fi(e,l,i),t!==null&&(Zt(t,e,i),vs(t,e,i))}};function Xf(e,t,i,l,m,C,L){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,C,L):t.prototype&&t.prototype.isPureReactComponent?!cs(i,l)||!cs(m,C):!0}function Qf(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&Wo.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=c({},i));for(var m in e)i[m]===void 0&&(i[m]=e[m])}return i}function Zf(e){_l(e)}function Jf(e){console.error(e)}function ed(e){_l(e)}function Ul(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function td(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Xo(e,t,i){return i=hi(i),i.tag=3,i.payload={element:null},i.callback=function(){Ul(e,t)},i}function nd(e){return e=hi(e),e.tag=3,e}function id(e,t,i,l){var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var C=l.value;e.payload=function(){return m(C)},e.callback=function(){td(t,i,l)}}var L=i.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(e.callback=function(){td(t,i,l),typeof m!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var P=l.stack;this.componentDidCatch(l.value,{componentStack:P!==null?P:""})})}function Tv(e,t,i,l,m){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&Cr(t,i,m,!0),i=sn.current,i!==null){switch(i.tag){case 31:case 13:return yn===null?Zl():i.alternate===null&&yt===0&&(yt=3),i.flags&=-257,i.flags|=65536,i.lanes=m,l===Al?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),bu(e,l,m)),!1;case 22:return i.flags|=65536,l===Al?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),bu(e,l,m)),!1}throw Error(o(435,i.tag))}return bu(e,l,m),Zl(),!1}if(We)return t=sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=m,l!==mo&&(e=Error(o(422),{cause:l}),ds(mn(e,i)))):(l!==mo&&(t=Error(o(423),{cause:l}),ds(mn(t,i))),e=e.current.alternate,e.flags|=65536,m&=-m,e.lanes|=m,l=mn(l,i),m=Xo(e.stateNode,l,m),ko(e,m),yt!==4&&(yt=2)),!1;var C=Error(o(520),{cause:l});if(C=mn(C,i),Ls===null?Ls=[C]:Ls.push(C),yt!==4&&(yt=2),t===null)return!0;l=mn(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=m&-m,i.lanes|=e,e=Xo(i.stateNode,l,e),ko(i,e),!1;case 1:if(t=i.type,C=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(vi===null||!vi.has(C))))return i.flags|=65536,m&=-m,i.lanes|=m,m=nd(m),id(m,e,i,l),ko(i,m),!1}i=i.return}while(i!==null);return!1}var Qo=Error(o(461)),kt=!1;function zt(e,t,i,l){t.child=e===null?af(t,null,i,l):Ki(t,e.child,i,l)}function rd(e,t,i,l,m){i=i.render;var C=t.ref;if("ref"in l){var L={};for(var P in l)P!=="ref"&&(L[P]=l[P])}else L=l;return Vi(t),l=Lo(e,t,i,L,C,m),P=Oo(),e!==null&&!kt?(Bo(e,t,m),Kn(e,t,m)):(We&&P&&fo(t),t.flags|=1,zt(e,t,l,m),t.child)}function sd(e,t,i,l,m){if(e===null){var C=i.type;return typeof C=="function"&&!uo(C)&&C.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=C,ld(e,t,C,l,m)):(e=bl(i.type,null,l,t,t.mode,m),e.ref=t.ref,e.return=t,t.child=e)}if(C=e.child,!su(e,m)){var L=C.memoizedProps;if(i=i.compare,i=i!==null?i:cs,i(L,l)&&e.ref===t.ref)return Kn(e,t,m)}return t.flags|=1,e=Fn(C,l),e.ref=t.ref,e.return=t,t.child=e}function ld(e,t,i,l,m){if(e!==null){var C=e.memoizedProps;if(cs(C,l)&&e.ref===t.ref)if(kt=!1,t.pendingProps=l=C,su(e,m))(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,Kn(e,t,m)}return Zo(e,t,i,l,m)}function ad(e,t,i,l){var m=l.children,C=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(C=C!==null?C.baseLanes|i:i,e!==null){for(l=t.child=e.child,m=0;l!==null;)m=m|l.lanes|l.childLanes,l=l.sibling;l=m&~C}else l=0,t.child=null;return od(e,t,C,i,l)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,C!==null?C.cachePool:null),C!==null?cf(t,C):To(),hf(t);else return l=t.lanes=536870912,od(e,t,C!==null?C.baseLanes|i:i,i,l)}else C!==null?(El(t,C.cachePool),cf(t,C),pi(),t.memoizedState=null):(e!==null&&El(t,null),To(),pi());return zt(e,t,m,i),t.child}function Es(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function od(e,t,i,l,m){var C=Co();return C=C===null?null:{parent:xt._currentValue,pool:C},t.memoizedState={baseLanes:i,cachePool:C},e!==null&&El(t,null),To(),hf(t),e!==null&&Cr(e,t,l,!0),t.childLanes=m,null}function Pl(e,t){return t=ql({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ud(e,t,i){return Ki(t,e.child,null,i),e=Pl(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function Dv(e,t,i){var l=t.pendingProps,m=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(We){if(l.mode==="hidden")return e=Pl(t,l),t.lanes=536870912,Es(null,e);if(Ro(t),(e=ht)?(e=bp(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:li!==null?{id:Rn,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},i=Gh(e),i.return=t,t.child=i,Nt=t,ht=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return Pl(t,l)}var C=e.memoizedState;if(C!==null){var L=C.dehydrated;if(Ro(t),m)if(t.flags&256)t.flags&=-257,t=ud(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(kt||Cr(e,t,i,!1),m=(i&e.childLanes)!==0,kt||m){if(l=at,l!==null&&(L=es(l,i),L!==0&&L!==C.retryLane))throw C.retryLane=L,Ui(e,L),Zt(l,e,L),Qo;Zl(),t=ud(e,t,i)}else e=C.treeContext,ht=Sn(L.nextSibling),Nt=t,We=!0,ai=null,vn=!1,e!==null&&Kh(t,e),t=Pl(t,l),t.flags|=4096;return t}return e=Fn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Zo(e,t,i,l,m){return Vi(t),i=Lo(e,t,i,l,void 0,m),l=Oo(),e!==null&&!kt?(Bo(e,t,m),Kn(e,t,m)):(We&&l&&fo(t),t.flags|=1,zt(e,t,i,m),t.child)}function cd(e,t,i,l,m,C){return Vi(t),t.updateQueue=null,i=df(t,l,i,m),ff(e),l=Oo(),e!==null&&!kt?(Bo(e,t,C),Kn(e,t,C)):(We&&l&&fo(t),t.flags|=1,zt(e,t,i,C),t.child)}function hd(e,t,i,l,m){if(Vi(t),t.stateNode===null){var C=vr,L=i.contextType;typeof L=="object"&&L!==null&&(C=jt(L)),C=new i(l,C),t.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=Wo,t.stateNode=C,C._reactInternals=t,C=t.stateNode,C.props=l,C.state=t.memoizedState,C.refs={},xo(t),L=i.contextType,C.context=typeof L=="object"&&L!==null?jt(L):vr,C.state=t.memoizedState,L=i.getDerivedStateFromProps,typeof L=="function"&&(Ko(t,i,L,l),C.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(L=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),L!==C.state&&Wo.enqueueReplaceState(C,C.state,null),Ss(t,l,C,m),ys(),C.state=t.memoizedState),typeof C.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){C=t.stateNode;var P=t.memoizedProps,W=Xi(i,P);C.props=W;var re=C.context,he=i.contextType;L=vr,typeof he=="object"&&he!==null&&(L=jt(he));var pe=i.getDerivedStateFromProps;he=typeof pe=="function"||typeof C.getSnapshotBeforeUpdate=="function",P=t.pendingProps!==P,he||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(P||re!==L)&&Qf(t,C,l,L),ci=!1;var se=t.memoizedState;C.state=se,Ss(t,l,C,m),ys(),re=t.memoizedState,P||se!==re||ci?(typeof pe=="function"&&(Ko(t,i,pe,l),re=t.memoizedState),(W=ci||Xf(t,i,W,l,se,re,L))?(he||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(t.flags|=4194308)):(typeof C.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=re),C.props=l,C.state=re,C.context=L,l=W):(typeof C.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{C=t.stateNode,Eo(e,t),L=t.memoizedProps,he=Xi(i,L),C.props=he,pe=t.pendingProps,se=C.context,re=i.contextType,W=vr,typeof re=="object"&&re!==null&&(W=jt(re)),P=i.getDerivedStateFromProps,(re=typeof P=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(L!==pe||se!==W)&&Qf(t,C,l,W),ci=!1,se=t.memoizedState,C.state=se,Ss(t,l,C,m),ys();var oe=t.memoizedState;L!==pe||se!==oe||ci||e!==null&&e.dependencies!==null&&wl(e.dependencies)?(typeof P=="function"&&(Ko(t,i,P,l),oe=t.memoizedState),(he=ci||Xf(t,i,he,l,se,oe,W)||e!==null&&e.dependencies!==null&&wl(e.dependencies))?(re||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(l,oe,W),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(l,oe,W)),typeof C.componentDidUpdate=="function"&&(t.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof C.componentDidUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=oe),C.props=l,C.state=oe,C.context=W,l=he):(typeof C.componentDidUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=1024),l=!1)}return C=l,Fl(e,t),l=(t.flags&128)!==0,C||l?(C=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:C.render(),t.flags|=1,e!==null&&l?(t.child=Ki(t,e.child,null,m),t.child=Ki(t,null,i,m)):zt(e,t,i,m),t.memoizedState=C.state,e=t.child):e=Kn(e,t,m),e}function fd(e,t,i,l){return Fi(),t.flags|=256,zt(e,t,i,l),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eu(e){return{baseLanes:e,cachePool:ef()}}function tu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=on),e}function dd(e,t,i){var l=t.pendingProps,m=!1,C=(t.flags&128)!==0,L;if((L=C)||(L=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),L&&(m=!0,t.flags&=-129),L=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(m?di(t):pi(),(e=ht)?(e=bp(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:li!==null?{id:Rn,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},i=Gh(e),i.return=t,t.child=i,Nt=t,ht=null)):e=null,e===null)throw oi(t);return zu(e)?t.lanes=32:t.lanes=536870912,null}var P=l.children;return l=l.fallback,m?(pi(),m=t.mode,P=ql({mode:"hidden",children:P},m),l=Pi(l,m,i,null),P.return=t,l.return=t,P.sibling=l,t.child=P,l=t.child,l.memoizedState=eu(i),l.childLanes=tu(e,L,i),t.memoizedState=Jo,Es(null,l)):(di(t),nu(t,P))}var W=e.memoizedState;if(W!==null&&(P=W.dehydrated,P!==null)){if(C)t.flags&256?(di(t),t.flags&=-257,t=iu(e,t,i)):t.memoizedState!==null?(pi(),t.child=e.child,t.flags|=128,t=null):(pi(),P=l.fallback,m=t.mode,l=ql({mode:"visible",children:l.children},m),P=Pi(P,m,i,null),P.flags|=2,l.return=t,P.return=t,l.sibling=P,t.child=l,Ki(t,e.child,null,i),l=t.child,l.memoizedState=eu(i),l.childLanes=tu(e,L,i),t.memoizedState=Jo,t=Es(null,l));else if(di(t),zu(P)){if(L=P.nextSibling&&P.nextSibling.dataset,L)var re=L.dgst;L=re,l=Error(o(419)),l.stack="",l.digest=L,ds({value:l,source:null,stack:null}),t=iu(e,t,i)}else if(kt||Cr(e,t,i,!1),L=(i&e.childLanes)!==0,kt||L){if(L=at,L!==null&&(l=es(L,i),l!==0&&l!==W.retryLane))throw W.retryLane=l,Ui(e,l),Zt(L,e,l),Qo;ju(P)||Zl(),t=iu(e,t,i)}else ju(P)?(t.flags|=192,t.child=e.child,t=null):(e=W.treeContext,ht=Sn(P.nextSibling),Nt=t,We=!0,ai=null,vn=!1,e!==null&&Kh(t,e),t=nu(t,l.children),t.flags|=4096);return t}return m?(pi(),P=l.fallback,m=t.mode,W=e.child,re=W.sibling,l=Fn(W,{mode:"hidden",children:l.children}),l.subtreeFlags=W.subtreeFlags&65011712,re!==null?P=Fn(re,P):(P=Pi(P,m,i,null),P.flags|=2),P.return=t,l.return=t,l.sibling=P,t.child=l,Es(null,l),l=t.child,P=e.child.memoizedState,P===null?P=eu(i):(m=P.cachePool,m!==null?(W=xt._currentValue,m=m.parent!==W?{parent:W,pool:W}:m):m=ef(),P={baseLanes:P.baseLanes|i,cachePool:m}),l.memoizedState=P,l.childLanes=tu(e,L,i),t.memoizedState=Jo,Es(e.child,l)):(di(t),i=e.child,e=i.sibling,i=Fn(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(L=t.deletions,L===null?(t.deletions=[e],t.flags|=16):L.push(e)),t.child=i,t.memoizedState=null,i)}function nu(e,t){return t=ql({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ql(e,t){return e=rn(22,e,null,t),e.lanes=0,e}function iu(e,t,i){return Ki(t,e.child,null,i),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),vo(e.return,t,i)}function ru(e,t,i,l,m,C){var L=e.memoizedState;L===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:m,treeForkCount:C}:(L.isBackwards=t,L.rendering=null,L.renderingStartTime=0,L.last=l,L.tail=i,L.tailMode=m,L.treeForkCount=C)}function md(e,t,i){var l=t.pendingProps,m=l.revealOrder,C=l.tail;l=l.children;var L=bt.current,P=(L&2)!==0;if(P?(L=L&1|2,t.flags|=128):L&=1,U(bt,L),zt(e,t,l,i),l=We?fs:0,!P&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,i,t);else if(e.tag===19)pd(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(m){case"forwards":for(i=t.child,m=null;i!==null;)e=i.alternate,e!==null&&Ml(e)===null&&(m=i),i=i.sibling;i=m,i===null?(m=t.child,t.child=null):(m=i.sibling,i.sibling=null),ru(t,!1,m,i,C,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,m=t.child,t.child=null;m!==null;){if(e=m.alternate,e!==null&&Ml(e)===null){t.child=m;break}e=m.sibling,m.sibling=i,i=m,m=e}ru(t,!0,i,null,C,l);break;case"together":ru(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Kn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Cr(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=Fn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Fn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function su(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wl(e)))}function Rv(e,t,i){switch(t.tag){case 3:H(t,t.stateNode.containerInfo),ui(t,xt,e.memoizedState.cache),Fi();break;case 27:case 5:Z(t);break;case 4:H(t,t.stateNode.containerInfo);break;case 10:ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(di(t),t.flags|=128,null):(i&t.child.childLanes)!==0?dd(e,t,i):(di(t),e=Kn(e,t,i),e!==null?e.sibling:null);di(t);break;case 19:var m=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(Cr(e,t,i,!1),l=(i&t.childLanes)!==0),m){if(l)return md(e,t,i);t.flags|=128}if(m=t.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),U(bt,bt.current),l)break;return null;case 22:return t.lanes=0,ad(e,t,i,t.pendingProps);case 24:ui(t,xt,e.memoizedState.cache)}return Kn(e,t,i)}function gd(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)kt=!0;else{if(!su(e,i)&&(t.flags&128)===0)return kt=!1,Rv(e,t,i);kt=(e.flags&131072)!==0}else kt=!1,We&&(t.flags&1048576)!==0&&Yh(t,fs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")uo(e)?(l=Xi(e,l),t.tag=1,t=hd(null,t,e,l,i)):(t.tag=0,t=Zo(null,t,e,l,i));else{if(e!=null){var m=e.$$typeof;if(m===k){t.tag=11,t=rd(null,t,e,l,i);break e}else if(m===T){t.tag=14,t=sd(null,t,e,l,i);break e}}throw t=Y(e)||e,Error(o(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,m=Xi(l,t.pendingProps),hd(e,t,l,m,i);case 3:e:{if(H(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var C=t.memoizedState;m=C.element,Eo(e,t),Ss(t,l,null,i);var L=t.memoizedState;if(l=L.cache,ui(t,xt,l),l!==C.cache&&yo(t,[xt],i,!0),ys(),l=L.element,C.isDehydrated)if(C={element:l,isDehydrated:!1,cache:L.cache},t.updateQueue.baseState=C,t.memoizedState=C,t.flags&256){t=fd(e,t,l,i);break e}else if(l!==m){m=mn(Error(o(424)),t),ds(m),t=fd(e,t,l,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=Sn(e.firstChild),Nt=t,We=!0,ai=null,vn=!0,i=af(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Fi(),l===m){t=Kn(e,t,i);break e}zt(e,t,l,i)}t=t.child}return t;case 26:return Fl(e,t),e===null?(i=Ap(t.type,null,t.pendingProps,null))?t.memoizedState=i:We||(i=t.type,e=t.pendingProps,l=sa(me.current).createElement(i),l[Bt]=t,l[$t]=e,Ht(l,i,e),Mt(l),t.stateNode=l):t.memoizedState=Ap(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),e===null&&We&&(l=t.stateNode=xp(t.type,t.pendingProps,me.current),Nt=t,vn=!0,m=ht,Ci(t.type)?(Hu=m,ht=Sn(l.firstChild)):ht=m),zt(e,t,t.pendingProps.children,i),Fl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&((m=l=ht)&&(l=l0(l,t.type,t.pendingProps,vn),l!==null?(t.stateNode=l,Nt=t,ht=Sn(l.firstChild),vn=!1,m=!0):m=!1),m||oi(t)),Z(t),m=t.type,C=t.pendingProps,L=e!==null?e.memoizedProps:null,l=C.children,Ou(m,C)?l=null:L!==null&&Ou(m,L)&&(t.flags|=32),t.memoizedState!==null&&(m=Lo(e,t,bv,null,null,i),Us._currentValue=m),Fl(e,t),zt(e,t,l,i),t.child;case 6:return e===null&&We&&((e=i=ht)&&(i=a0(i,t.pendingProps,vn),i!==null?(t.stateNode=i,Nt=t,ht=null,e=!0):e=!1),e||oi(t)),null;case 13:return dd(e,t,i);case 4:return H(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ki(t,null,l,i):zt(e,t,l,i),t.child;case 11:return rd(e,t,t.type,t.pendingProps,i);case 7:return zt(e,t,t.pendingProps,i),t.child;case 8:return zt(e,t,t.pendingProps.children,i),t.child;case 12:return zt(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,ui(t,t.type,l.value),zt(e,t,l.children,i),t.child;case 9:return m=t.type._context,l=t.pendingProps.children,Vi(t),m=jt(m),l=l(m),t.flags|=1,zt(e,t,l,i),t.child;case 14:return sd(e,t,t.type,t.pendingProps,i);case 15:return ld(e,t,t.type,t.pendingProps,i);case 19:return md(e,t,i);case 31:return Dv(e,t,i);case 22:return ad(e,t,i,t.pendingProps);case 24:return Vi(t),l=jt(xt),e===null?(m=Co(),m===null&&(m=at,C=So(),m.pooledCache=C,C.refCount++,C!==null&&(m.pooledCacheLanes|=i),m=C),t.memoizedState={parent:l,cache:m},xo(t),ui(t,xt,m)):((e.lanes&i)!==0&&(Eo(e,t),Ss(t,null,null,i),ys()),m=e.memoizedState,C=t.memoizedState,m.parent!==l?(m={parent:l,cache:l},t.memoizedState=m,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=m),ui(t,xt,l)):(l=C.cache,ui(t,xt,l),l!==m.cache&&yo(t,[xt],i,!0))),zt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Wn(e){e.flags|=4}function lu(e,t,i,l,m){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(m&335544128)===m)if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw Yi=Al,wo}else e.flags&=-16777217}function _d(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lp(t))if(qd())e.flags|=8192;else throw Yi=Al,wo}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mt():536870912,e.lanes|=t,Br|=t)}function ks(e,t){if(!We)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var m=e.child;m!==null;)i|=m.lanes|m.childLanes,l|=m.subtreeFlags&65011712,l|=m.flags&65011712,m.return=e,m=m.sibling;else for(m=e.child;m!==null;)i|=m.lanes|m.childLanes,l|=m.subtreeFlags,l|=m.flags,m.return=e,m=m.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function Mv(e,t,i){var l=t.pendingProps;switch(po(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Gn(xt),te(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(br(t)?Wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,go())),ft(t),null;case 26:var m=t.type,C=t.memoizedState;return e===null?(Wn(t),C!==null?(ft(t),_d(t,C)):(ft(t),lu(t,m,null,l,i))):C?C!==e.memoizedState?(Wn(t),ft(t),_d(t,C)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Wn(t),ft(t),lu(t,m,e,l,i)),null;case 27:if(fe(t),i=me.current,m=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ft(t),null}e=ne.current,br(t)?Wh(t):(e=xp(m,l,i),t.stateNode=e,Wn(t))}return ft(t),null;case 5:if(fe(t),m=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ft(t),null}if(C=ne.current,br(t))Wh(t);else{var L=sa(me.current);switch(C){case 1:C=L.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:C=L.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":C=L.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":C=L.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":C=L.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof l.is=="string"?L.createElement("select",{is:l.is}):L.createElement("select"),l.multiple?C.multiple=!0:l.size&&(C.size=l.size);break;default:C=typeof l.is=="string"?L.createElement(m,{is:l.is}):L.createElement(m)}}C[Bt]=t,C[$t]=l;e:for(L=t.child;L!==null;){if(L.tag===5||L.tag===6)C.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===t)break e;for(;L.sibling===null;){if(L.return===null||L.return===t)break e;L=L.return}L.sibling.return=L.return,L=L.sibling}t.stateNode=C;e:switch(Ht(C,m,l),m){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Wn(t)}}return ft(t),lu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,br(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,m=Nt,m!==null)switch(m.tag){case 27:case 5:l=m.memoizedProps}e[Bt]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||dp(e.nodeValue,i)),e||oi(t,!0)}else e=sa(e).createTextNode(l),e[Bt]=t,t.stateNode=e}return ft(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(l=br(t),i!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Bt]=t}else Fi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else i=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ft(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(m=br(t),l!==null&&l.dehydrated!==null){if(e===null){if(!m)throw Error(o(318));if(m=t.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(o(317));m[Bt]=t}else Fi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),m=!1}else m=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=m),m=!0;if(!m)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(t),(t.flags&128)!==0?(t.lanes=i,t):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=t.child,m=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(m=l.alternate.memoizedState.cachePool.pool),C=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(C=l.memoizedState.cachePool.pool),C!==m&&(l.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Vl(t,t.updateQueue),ft(t),null);case 4:return te(),e===null&&Tu(t.stateNode.containerInfo),ft(t),null;case 10:return Gn(t.type),ft(t),null;case 19:if(V(bt),l=t.memoizedState,l===null)return ft(t),null;if(m=(t.flags&128)!==0,C=l.rendering,C===null)if(m)ks(l,!1);else{if(yt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(C=Ml(e),C!==null){for(t.flags|=128,ks(l,!1),e=C.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Vh(i,e),i=i.sibling;return U(bt,bt.current&1|2),We&&qn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ct()>Wl&&(t.flags|=128,m=!0,ks(l,!1),t.lanes=4194304)}else{if(!m)if(e=Ml(C),e!==null){if(t.flags|=128,m=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),ks(l,!0),l.tail===null&&l.tailMode==="hidden"&&!C.alternate&&!We)return ft(t),null}else 2*ct()-l.renderingStartTime>Wl&&i!==536870912&&(t.flags|=128,m=!0,ks(l,!1),t.lanes=4194304);l.isBackwards?(C.sibling=t.child,t.child=C):(e=l.last,e!==null?e.sibling=C:t.child=C,l.last=C)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ct(),e.sibling=null,i=bt.current,U(bt,m?i&1|2:i&1),We&&qn(t,l.treeForkCount),e):(ft(t),null);case 22:case 23:return ln(t),Do(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),i=t.updateQueue,i!==null&&Vl(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&V(Gi),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Gn(xt),ft(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Lv(e,t){switch(po(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(xt),te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(o(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(bt),null;case 4:return te(),null;case 10:return Gn(t.type),null;case 22:case 23:return ln(t),Do(),e!==null&&V(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gn(xt),null;case 25:return null;default:return null}}function vd(e,t){switch(po(t),t.tag){case 3:Gn(xt),te();break;case 26:case 27:case 5:fe(t);break;case 4:te();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:V(bt);break;case 10:Gn(t.type);break;case 22:case 23:ln(t),Do(),e!==null&&V(Gi);break;case 24:Gn(xt)}}function As(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var m=l.next;i=m;do{if((i.tag&e)===e){l=void 0;var C=i.create,L=i.inst;l=C(),L.destroy=l}i=i.next}while(i!==m)}}catch(P){it(t,t.return,P)}}function mi(e,t,i){try{var l=t.updateQueue,m=l!==null?l.lastEffect:null;if(m!==null){var C=m.next;l=C;do{if((l.tag&e)===e){var L=l.inst,P=L.destroy;if(P!==void 0){L.destroy=void 0,m=t;var W=i,re=P;try{re()}catch(he){it(m,W,he)}}}l=l.next}while(l!==C)}}catch(he){it(t,t.return,he)}}function yd(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{uf(t,i)}catch(l){it(e,e.return,l)}}}function Sd(e,t,i){i.props=Xi(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){it(e,t,l)}}function Ts(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(m){it(e,t,m)}}function Ln(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(m){it(e,t,m)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(m){it(e,t,m)}else i.current=null}function bd(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(m){it(e,e.return,m)}}function au(e,t,i){try{var l=e.stateNode;e0(l,e.type,i,t),l[$t]=t}catch(m){it(e,e.return,m)}}function Cd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ci(e.type)||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ci(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uu(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Un));else if(l!==4&&(l===27&&Ci(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,i),e=e.sibling;e!==null;)uu(e,t,i),e=e.sibling}function Gl(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&Ci(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Gl(e,t,i),e=e.sibling;e!==null;)Gl(e,t,i),e=e.sibling}function wd(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,m=t.attributes;m.length;)t.removeAttributeNode(m[0]);Ht(t,l,i),t[Bt]=e,t[$t]=i}catch(C){it(e,e.return,C)}}var Xn=!1,At=!1,cu=!1,xd=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function Ov(e,t){if(e=e.containerInfo,Mu=fa,e=Nh(e),no(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var m=l.anchorOffset,C=l.focusNode;l=l.focusOffset;try{i.nodeType,C.nodeType}catch{i=null;break e}var L=0,P=-1,W=-1,re=0,he=0,pe=e,se=null;t:for(;;){for(var oe;pe!==i||m!==0&&pe.nodeType!==3||(P=L+m),pe!==C||l!==0&&pe.nodeType!==3||(W=L+l),pe.nodeType===3&&(L+=pe.nodeValue.length),(oe=pe.firstChild)!==null;)se=pe,pe=oe;for(;;){if(pe===e)break t;if(se===i&&++re===m&&(P=L),se===C&&++he===l&&(W=L),(oe=pe.nextSibling)!==null)break;pe=se,se=pe.parentNode}pe=oe}i=P===-1||W===-1?null:{start:P,end:W}}else i=null}i=i||{start:0,end:0}}else i=null;for(Lu={focusedElem:e,selectionRange:i},fa=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){switch(t=Lt,C=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)m=e[i],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&C!==null){e=void 0,i=t,m=C.memoizedProps,C=C.memoizedState,l=i.stateNode;try{var we=Xi(i.type,m);e=l.getSnapshotBeforeUpdate(we,C),l.__reactInternalSnapshotBeforeUpdate=e}catch(De){it(i,i.return,De)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Nu(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}}function Ed(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Zn(e,i),l&4&&As(5,i);break;case 1:if(Zn(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(L){it(i,i.return,L)}else{var m=Xi(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(m,t,e.__reactInternalSnapshotBeforeUpdate)}catch(L){it(i,i.return,L)}}l&64&&yd(i),l&512&&Ts(i,i.return);break;case 3:if(Zn(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{uf(e,t)}catch(L){it(i,i.return,L)}}break;case 27:t===null&&l&4&&wd(i);case 26:case 5:Zn(e,i),t===null&&l&4&&bd(i),l&512&&Ts(i,i.return);break;case 12:Zn(e,i);break;case 31:Zn(e,i),l&4&&Td(e,i);break;case 13:Zn(e,i),l&4&&Dd(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=Fv.bind(null,i),o0(e,i))));break;case 22:if(l=i.memoizedState!==null||Xn,!l){t=t!==null&&t.memoizedState!==null||At,m=Xn;var C=At;Xn=l,(At=t)&&!C?Jn(e,i,(i.subtreeFlags&8772)!==0):Zn(e,i),Xn=m,At=C}break;case 30:break;default:Zn(e,i)}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ia(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gt=null,Kt=!1;function Qn(e,t,i){for(i=i.child;i!==null;)Ad(e,t,i),i=i.sibling}function Ad(e,t,i){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Dt,i)}catch{}switch(i.tag){case 26:At||Ln(i,t),Qn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:At||Ln(i,t);var l=gt,m=Kt;Ci(i.type)&&(gt=i.stateNode,Kt=!1),Qn(e,t,i),zs(i.stateNode),gt=l,Kt=m;break;case 5:At||Ln(i,t);case 6:if(l=gt,m=Kt,gt=null,Qn(e,t,i),gt=l,Kt=m,gt!==null)if(Kt)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(i.stateNode)}catch(C){it(i,t,C)}else try{gt.removeChild(i.stateNode)}catch(C){it(i,t,C)}break;case 18:gt!==null&&(Kt?(e=gt,yp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Fr(e)):yp(gt,i.stateNode));break;case 4:l=gt,m=Kt,gt=i.stateNode.containerInfo,Kt=!0,Qn(e,t,i),gt=l,Kt=m;break;case 0:case 11:case 14:case 15:mi(2,i,t),At||mi(4,i,t),Qn(e,t,i);break;case 1:At||(Ln(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Sd(i,t,l)),Qn(e,t,i);break;case 21:Qn(e,t,i);break;case 22:At=(l=At)||i.memoizedState!==null,Qn(e,t,i),At=l;break;default:Qn(e,t,i)}}function Td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fr(e)}catch(i){it(t,t.return,i)}}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fr(e)}catch(i){it(t,t.return,i)}}function Bv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xd),t;default:throw Error(o(435,e.tag))}}function $l(e,t){var i=Bv(e);t.forEach(function(l){if(!i.has(l)){i.add(l);var m=qv.bind(null,e,l);l.then(m,m)}})}function Wt(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var m=i[l],C=e,L=t,P=L;e:for(;P!==null;){switch(P.tag){case 27:if(Ci(P.type)){gt=P.stateNode,Kt=!1;break e}break;case 5:gt=P.stateNode,Kt=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,Kt=!0;break e}P=P.return}if(gt===null)throw Error(o(160));Ad(C,L,m),gt=null,Kt=!1,C=m.alternate,C!==null&&(C.return=null),m.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rd(t,e),t=t.sibling}var En=null;function Rd(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wt(t,e),Xt(e),l&4&&(mi(3,e,e.return),As(3,e),mi(5,e,e.return));break;case 1:Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),l&64&&Xn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var m=En;if(Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),l&4){var C=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,m=m.ownerDocument||m;t:switch(l){case"title":C=m.getElementsByTagName("title")[0],(!C||C[ts]||C[Bt]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=m.createElement(l),m.head.insertBefore(C,m.querySelector("head > title"))),Ht(C,l,i),C[Bt]=e,Mt(C),l=C;break e;case"link":var L=Rp("link","href",m).get(l+(i.href||""));if(L){for(var P=0;P<L.length;P++)if(C=L[P],C.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&C.getAttribute("rel")===(i.rel==null?null:i.rel)&&C.getAttribute("title")===(i.title==null?null:i.title)&&C.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){L.splice(P,1);break t}}C=m.createElement(l),Ht(C,l,i),m.head.appendChild(C);break;case"meta":if(L=Rp("meta","content",m).get(l+(i.content||""))){for(P=0;P<L.length;P++)if(C=L[P],C.getAttribute("content")===(i.content==null?null:""+i.content)&&C.getAttribute("name")===(i.name==null?null:i.name)&&C.getAttribute("property")===(i.property==null?null:i.property)&&C.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&C.getAttribute("charset")===(i.charSet==null?null:i.charSet)){L.splice(P,1);break t}}C=m.createElement(l),Ht(C,l,i),m.head.appendChild(C);break;default:throw Error(o(468,l))}C[Bt]=e,Mt(C),l=C}e.stateNode=l}else Mp(m,e.type,e.stateNode);else e.stateNode=Dp(m,l,e.memoizedProps);else C!==l?(C===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):C.count--,l===null?Mp(m,e.type,e.stateNode):Dp(m,l,e.memoizedProps)):l===null&&e.stateNode!==null&&au(e,e.memoizedProps,i.memoizedProps)}break;case 27:Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),i!==null&&l&4&&au(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),e.flags&32){m=e.stateNode;try{hr(m,"")}catch(we){it(e,e.return,we)}}l&4&&e.stateNode!=null&&(m=e.memoizedProps,au(e,m,i!==null?i.memoizedProps:m)),l&1024&&(cu=!0);break;case 6:if(Wt(t,e),Xt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(we){it(e,e.return,we)}}break;case 3:if(oa=null,m=En,En=la(t.containerInfo),Wt(t,e),En=m,Xt(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Fr(t.containerInfo)}catch(we){it(e,e.return,we)}cu&&(cu=!1,Md(e));break;case 4:l=En,En=la(e.stateNode.containerInfo),Wt(t,e),Xt(e),En=l;break;case 12:Wt(t,e),Xt(e);break;case 31:Wt(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$l(e,l)));break;case 13:Wt(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Kl=ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$l(e,l)));break;case 22:m=e.memoizedState!==null;var W=i!==null&&i.memoizedState!==null,re=Xn,he=At;if(Xn=re||m,At=he||W,Wt(t,e),At=he,Xn=re,Xt(e),l&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&-2:t._visibility|1,m&&(i===null||W||Xn||At||Qi(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){W=i=t;try{if(C=W.stateNode,m)L=C.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{P=W.stateNode;var pe=W.memoizedProps.style,se=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;P.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(we){it(W,W.return,we)}}}else if(t.tag===6){if(i===null){W=t;try{W.stateNode.nodeValue=m?"":W.memoizedProps}catch(we){it(W,W.return,we)}}}else if(t.tag===18){if(i===null){W=t;try{var oe=W.stateNode;m?Sp(oe,!0):Sp(W.stateNode,!1)}catch(we){it(W,W.return,we)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,$l(e,i))));break;case 19:Wt(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$l(e,l)));break;case 30:break;case 21:break;default:Wt(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(Cd(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var m=i.stateNode,C=ou(e);Gl(e,C,m);break;case 5:var L=i.stateNode;i.flags&32&&(hr(L,""),i.flags&=-33);var P=ou(e);Gl(e,P,L);break;case 3:case 4:var W=i.stateNode.containerInfo,re=ou(e);uu(e,re,W);break;default:throw Error(o(161))}}catch(he){it(e,e.return,he)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ed(e,t.alternate,t),t=t.sibling}function Qi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:mi(4,t,t.return),Qi(t);break;case 1:Ln(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Sd(t,t.return,i),Qi(t);break;case 27:zs(t.stateNode);case 26:case 5:Ln(t,t.return),Qi(t);break;case 22:t.memoizedState===null&&Qi(t);break;case 30:Qi(t);break;default:Qi(t)}e=e.sibling}}function Jn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,m=e,C=t,L=C.flags;switch(C.tag){case 0:case 11:case 15:Jn(m,C,i),As(4,C);break;case 1:if(Jn(m,C,i),l=C,m=l.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(re){it(l,l.return,re)}if(l=C,m=l.updateQueue,m!==null){var P=l.stateNode;try{var W=m.shared.hiddenCallbacks;if(W!==null)for(m.shared.hiddenCallbacks=null,m=0;m<W.length;m++)of(W[m],P)}catch(re){it(l,l.return,re)}}i&&L&64&&yd(C),Ts(C,C.return);break;case 27:wd(C);case 26:case 5:Jn(m,C,i),i&&l===null&&L&4&&bd(C),Ts(C,C.return);break;case 12:Jn(m,C,i);break;case 31:Jn(m,C,i),i&&L&4&&Td(m,C);break;case 13:Jn(m,C,i),i&&L&4&&Dd(m,C);break;case 22:C.memoizedState===null&&Jn(m,C,i),Ts(C,C.return);break;case 30:break;default:Jn(m,C,i)}t=t.sibling}}function hu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ps(i))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ps(e))}function kn(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ld(e,t,i,l),t=t.sibling}function Ld(e,t,i,l){var m=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,i,l),m&2048&&As(9,t);break;case 1:kn(e,t,i,l);break;case 3:kn(e,t,i,l),m&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ps(e)));break;case 12:if(m&2048){kn(e,t,i,l),e=t.stateNode;try{var C=t.memoizedProps,L=C.id,P=C.onPostCommit;typeof P=="function"&&P(L,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(W){it(t,t.return,W)}}else kn(e,t,i,l);break;case 31:kn(e,t,i,l);break;case 13:kn(e,t,i,l);break;case 23:break;case 22:C=t.stateNode,L=t.alternate,t.memoizedState!==null?C._visibility&2?kn(e,t,i,l):Ds(e,t):C._visibility&2?kn(e,t,i,l):(C._visibility|=2,Mr(e,t,i,l,(t.subtreeFlags&10256)!==0||!1)),m&2048&&hu(L,t);break;case 24:kn(e,t,i,l),m&2048&&fu(t.alternate,t);break;default:kn(e,t,i,l)}}function Mr(e,t,i,l,m){for(m=m&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var C=e,L=t,P=i,W=l,re=L.flags;switch(L.tag){case 0:case 11:case 15:Mr(C,L,P,W,m),As(8,L);break;case 23:break;case 22:var he=L.stateNode;L.memoizedState!==null?he._visibility&2?Mr(C,L,P,W,m):Ds(C,L):(he._visibility|=2,Mr(C,L,P,W,m)),m&&re&2048&&hu(L.alternate,L);break;case 24:Mr(C,L,P,W,m),m&&re&2048&&fu(L.alternate,L);break;default:Mr(C,L,P,W,m)}t=t.sibling}}function Ds(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,m=l.flags;switch(l.tag){case 22:Ds(i,l),m&2048&&hu(l.alternate,l);break;case 24:Ds(i,l),m&2048&&fu(l.alternate,l);break;default:Ds(i,l)}t=t.sibling}}var Rs=8192;function Lr(e,t,i){if(e.subtreeFlags&Rs)for(e=e.child;e!==null;)Od(e,t,i),e=e.sibling}function Od(e,t,i){switch(e.tag){case 26:Lr(e,t,i),e.flags&Rs&&e.memoizedState!==null&&S0(i,En,e.memoizedState,e.memoizedProps);break;case 5:Lr(e,t,i);break;case 3:case 4:var l=En;En=la(e.stateNode.containerInfo),Lr(e,t,i),En=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Rs,Rs=16777216,Lr(e,t,i),Rs=l):Lr(e,t,i));break;default:Lr(e,t,i)}}function Bd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Lt=l,jd(l,e)}Bd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nd(e),e=e.sibling}function Nd(e){switch(e.tag){case 0:case 11:case 15:Ms(e),e.flags&2048&&mi(9,e,e.return);break;case 3:Ms(e);break;case 12:Ms(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yl(e)):Ms(e);break;default:Ms(e)}}function Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Lt=l,jd(l,e)}Bd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:mi(8,t,t.return),Yl(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,Yl(t));break;default:Yl(t)}e=e.sibling}}function jd(e,t){for(;Lt!==null;){var i=Lt;switch(i.tag){case 0:case 11:case 15:mi(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ps(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Lt=l;else e:for(i=e;Lt!==null;){l=Lt;var m=l.sibling,C=l.return;if(kd(l),l===i){Lt=null;break e}if(m!==null){m.return=C,Lt=m;break e}Lt=C}}}var Nv={getCacheForType:function(e){var t=jt(xt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return jt(xt).controller.signal}},jv=typeof WeakMap=="function"?WeakMap:Map,Je=0,at=null,Fe=null,Ye=0,nt=0,an=null,gi=!1,Or=!1,du=!1,ei=0,yt=0,_i=0,Zi=0,pu=0,on=0,Br=0,Ls=null,Qt=null,mu=!1,Kl=0,zd=0,Wl=1/0,Xl=null,vi=null,Rt=0,yi=null,Nr=null,ti=0,gu=0,_u=null,Hd=null,Os=0,vu=null;function un(){return(Je&2)!==0&&Ye!==0?Ye&-Ye:G.T!==null?xu():St()}function Id(){if(on===0)if((Ye&536870912)===0||We){var e=jn;jn<<=1,(jn&3932160)===0&&(jn=262144),on=e}else on=536870912;return e=sn.current,e!==null&&(e.flags|=32),on}function Zt(e,t,i){(e===at&&(nt===2||nt===9)||e.cancelPendingCommit!==null)&&(jr(e,0),Si(e,Ye,on,!1)),Ni(e,i),((Je&2)===0||e!==at)&&(e===at&&((Je&2)===0&&(Zi|=i),yt===4&&Si(e,Ye,on,!1)),On(e))}function Ud(e,t,i){if((Je&6)!==0)throw Error(o(327));var l=!i&&(t&127)===0&&(t&e.expiredLanes)===0||Hn(e,t),m=l?Iv(e,t):Su(e,t,!0),C=l;do{if(m===0){Or&&!l&&Si(e,t,0,!1);break}else{if(i=e.current.alternate,C&&!zv(i)){m=Su(e,t,!1),C=!1;continue}if(m===2){if(C=t,e.errorRecoveryDisabledLanes&C)var L=0;else L=e.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){t=L;e:{var P=e;m=Ls;var W=P.current.memoizedState.isDehydrated;if(W&&(jr(P,L).flags|=256),L=Su(P,L,!1),L!==2){if(du&&!W){P.errorRecoveryDisabledLanes|=C,Zi|=C,m=4;break e}C=Qt,Qt=m,C!==null&&(Qt===null?Qt=C:Qt.push.apply(Qt,C))}m=L}if(C=!1,m!==2)continue}}if(m===1){jr(e,0),Si(e,t,0,!0);break}e:{switch(l=e,C=m,C){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Si(l,t,on,!gi);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(m=Kl+300-ct(),10<m)){if(Si(l,t,on,!gi),ir(l,0,!0)!==0)break e;ti=t,l.timeoutHandle=_p(Pd.bind(null,l,i,Qt,Xl,mu,t,on,Zi,Br,gi,C,"Throttled",-0,0),m);break e}Pd(l,i,Qt,Xl,mu,t,on,Zi,Br,gi,C,null,-0,0)}}break}while(!0);On(e)}function Pd(e,t,i,l,m,C,L,P,W,re,he,pe,se,oe){if(e.timeoutHandle=-1,pe=t.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},Od(t,C,pe);var we=(C&62914560)===C?Kl-ct():(C&4194048)===C?zd-ct():0;if(we=b0(pe,we),we!==null){ti=C,e.cancelPendingCommit=we(Wd.bind(null,e,t,C,i,l,m,L,P,W,he,pe,null,se,oe)),Si(e,C,L,!re);return}}Wd(e,t,C,i,l,m,L,P,W)}function zv(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var m=i[l],C=m.getSnapshot;m=m.value;try{if(!nn(C(),m))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Si(e,t,i,l){t&=~pu,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var m=t;0<m;){var C=31-tt(m),L=1<<C;l[C]=-1,m&=~L}i!==0&&ll(e,i,t)}function Ql(){return(Je&6)===0?(Bs(0),!1):!0}function yu(){if(Fe!==null){if(nt===0)var e=Fe.return;else e=Fe,Vn=qi=null,No(e),kr=null,gs=0,e=Fe;for(;e!==null;)vd(e.alternate,e),e=e.return;Fe=null}}function jr(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,i0(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ti=0,yu(),at=e,Fe=i=Fn(e.current,null),Ye=t,nt=0,an=null,gi=!1,Or=Hn(e,t),du=!1,Br=on=pu=Zi=_i=yt=0,Qt=Ls=null,mu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var m=31-tt(l),C=1<<m;t|=e[m],l&=~C}return ei=t,vl(),i}function Fd(e,t){je=null,G.H=xs,t===Er||t===kl?(t=rf(),nt=3):t===wo?(t=rf(),nt=4):nt=t===Qo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Fe===null&&(yt=1,Ul(e,mn(t,e.current)))}function qd(){var e=sn.current;return e===null?!0:(Ye&4194048)===Ye?yn===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===yn:!1}function Vd(){var e=G.H;return G.H=xs,e===null?xs:e}function Gd(){var e=G.A;return G.A=Nv,e}function Zl(){yt=4,gi||(Ye&4194048)!==Ye&&sn.current!==null||(Or=!0),(_i&134217727)===0&&(Zi&134217727)===0||at===null||Si(at,Ye,on,!1)}function Su(e,t,i){var l=Je;Je|=2;var m=Vd(),C=Gd();(at!==e||Ye!==t)&&(Xl=null,jr(e,t)),t=!1;var L=yt;e:do try{if(nt!==0&&Fe!==null){var P=Fe,W=an;switch(nt){case 8:yu(),L=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(t=!0);var re=nt;if(nt=0,an=null,zr(e,P,W,re),i&&Or){L=0;break e}break;default:re=nt,nt=0,an=null,zr(e,P,W,re)}}Hv(),L=yt;break}catch(he){Fd(e,he)}while(!0);return t&&e.shellSuspendCounter++,Vn=qi=null,Je=l,G.H=m,G.A=C,Fe===null&&(at=null,Ye=0,vl()),L}function Hv(){for(;Fe!==null;)$d(Fe)}function Iv(e,t){var i=Je;Je|=2;var l=Vd(),m=Gd();at!==e||Ye!==t?(Xl=null,Wl=ct()+500,jr(e,t)):Or=Hn(e,t);e:do try{if(nt!==0&&Fe!==null){t=Fe;var C=an;t:switch(nt){case 1:nt=0,an=null,zr(e,t,C,1);break;case 2:case 9:if(tf(C)){nt=0,an=null,Yd(t);break}t=function(){nt!==2&&nt!==9||at!==e||(nt=7),On(e)},C.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:tf(C)?(nt=0,an=null,Yd(t)):(nt=0,an=null,zr(e,t,C,7));break;case 5:var L=null;switch(Fe.tag){case 26:L=Fe.memoizedState;case 5:case 27:var P=Fe;if(L?Lp(L):P.stateNode.complete){nt=0,an=null;var W=P.sibling;if(W!==null)Fe=W;else{var re=P.return;re!==null?(Fe=re,Jl(re)):Fe=null}break t}}nt=0,an=null,zr(e,t,C,5);break;case 6:nt=0,an=null,zr(e,t,C,6);break;case 8:yu(),yt=6;break e;default:throw Error(o(462))}}Uv();break}catch(he){Fd(e,he)}while(!0);return Vn=qi=null,G.H=l,G.A=m,Je=i,Fe!==null?0:(at=null,Ye=0,vl(),yt)}function Uv(){for(;Fe!==null&&!wt();)$d(Fe)}function $d(e){var t=gd(e.alternate,e,ei);e.memoizedProps=e.pendingProps,t===null?Jl(e):Fe=t}function Yd(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=cd(i,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=cd(i,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:No(t);default:vd(i,t),t=Fe=Vh(t,ei),t=gd(i,t,ei)}e.memoizedProps=e.pendingProps,t===null?Jl(e):Fe=t}function zr(e,t,i,l){Vn=qi=null,No(t),kr=null,gs=0;var m=t.return;try{if(Tv(e,m,t,i,Ye)){yt=1,Ul(e,mn(i,e.current)),Fe=null;return}}catch(C){if(m!==null)throw Fe=m,C;yt=1,Ul(e,mn(i,e.current)),Fe=null;return}t.flags&32768?(We||l===1?e=!0:Or||(Ye&536870912)!==0?e=!1:(gi=e=!0,(l===2||l===9||l===3||l===6)&&(l=sn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kd(t,e)):Jl(t)}function Jl(e){var t=e;do{if((t.flags&32768)!==0){Kd(t,gi);return}e=t.return;var i=Mv(t.alternate,t,ei);if(i!==null){Fe=i;return}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);yt===0&&(yt=5)}function Kd(e,t){do{var i=Lv(e.alternate,e);if(i!==null){i.flags&=32767,Fe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Fe=e;return}Fe=e=i}while(e!==null);yt=6,Fe=null}function Wd(e,t,i,l,m,C,L,P,W){e.cancelPendingCommit=null;do ea();while(Rt!==0);if((Je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(C=t.lanes|t.childLanes,C|=ao,za(e,i,C,L,P,W),e===at&&(Fe=at=null,Ye=0),Nr=t,yi=e,ti=i,gu=C,_u=m,Hd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vv(Ce,function(){return ep(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,m=X.p,X.p=2,L=Je,Je|=4;try{Ov(e,t,i)}finally{Je=L,X.p=m,G.T=l}}Rt=1,Xd(),Qd(),Zd()}}function Xd(){if(Rt===1){Rt=0;var e=yi,t=Nr,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var l=X.p;X.p=2;var m=Je;Je|=4;try{Rd(t,e);var C=Lu,L=Nh(e.containerInfo),P=C.focusedElem,W=C.selectionRange;if(L!==P&&P&&P.ownerDocument&&Bh(P.ownerDocument.documentElement,P)){if(W!==null&&no(P)){var re=W.start,he=W.end;if(he===void 0&&(he=re),"selectionStart"in P)P.selectionStart=re,P.selectionEnd=Math.min(he,P.value.length);else{var pe=P.ownerDocument||document,se=pe&&pe.defaultView||window;if(se.getSelection){var oe=se.getSelection(),we=P.textContent.length,De=Math.min(W.start,we),lt=W.end===void 0?De:Math.min(W.end,we);!oe.extend&&De>lt&&(L=lt,lt=De,De=L);var ee=Oh(P,De),Q=Oh(P,lt);if(ee&&Q&&(oe.rangeCount!==1||oe.anchorNode!==ee.node||oe.anchorOffset!==ee.offset||oe.focusNode!==Q.node||oe.focusOffset!==Q.offset)){var ie=pe.createRange();ie.setStart(ee.node,ee.offset),oe.removeAllRanges(),De>lt?(oe.addRange(ie),oe.extend(Q.node,Q.offset)):(ie.setEnd(Q.node,Q.offset),oe.addRange(ie))}}}}for(pe=[],oe=P;oe=oe.parentNode;)oe.nodeType===1&&pe.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<pe.length;P++){var de=pe[P];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}fa=!!Mu,Lu=Mu=null}finally{Je=m,X.p=l,G.T=i}}e.current=t,Rt=2}}function Qd(){if(Rt===2){Rt=0;var e=yi,t=Nr,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var l=X.p;X.p=2;var m=Je;Je|=4;try{Ed(e,t.alternate,t)}finally{Je=m,X.p=l,G.T=i}}Rt=3}}function Zd(){if(Rt===4||Rt===3){Rt=0,ae();var e=yi,t=Nr,i=ti,l=Hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Rt=5:(Rt=0,Nr=yi=null,Jd(e,e.pendingLanes));var m=e.pendingLanes;if(m===0&&(vi=null),be(i),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Dt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,m=X.p,X.p=2,G.T=null;try{for(var C=e.onRecoverableError,L=0;L<l.length;L++){var P=l[L];C(P.value,{componentStack:P.stack})}}finally{G.T=t,X.p=m}}(ti&3)!==0&&ea(),On(e),m=e.pendingLanes,(i&261930)!==0&&(m&42)!==0?e===vu?Os++:(Os=0,vu=e):Os=0,Bs(0)}}function Jd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ps(t)))}function ea(){return Xd(),Qd(),Zd(),ep()}function ep(){if(Rt!==5)return!1;var e=yi,t=gu;gu=0;var i=be(ti),l=G.T,m=X.p;try{X.p=32>i?32:i,G.T=null,i=_u,_u=null;var C=yi,L=ti;if(Rt=0,Nr=yi=null,ti=0,(Je&6)!==0)throw Error(o(331));var P=Je;if(Je|=4,Nd(C.current),Ld(C,C.current,L,i),Je=P,Bs(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Dt,C)}catch{}return!0}finally{X.p=m,G.T=l,Jd(e,t)}}function tp(e,t,i){t=mn(i,t),t=Xo(e.stateNode,t,2),e=fi(e,t,2),e!==null&&(Ni(e,2),On(e))}function it(e,t,i){if(e.tag===3)tp(e,e,i);else for(;t!==null;){if(t.tag===3){tp(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(vi===null||!vi.has(l))){e=mn(i,e),i=nd(2),l=fi(t,i,2),l!==null&&(id(i,l,t,e),Ni(l,2),On(l));break}}t=t.return}}function bu(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new jv;var m=new Set;l.set(t,m)}else m=l.get(t),m===void 0&&(m=new Set,l.set(t,m));m.has(i)||(du=!0,m.add(i),e=Pv.bind(null,e,t,i),t.then(e,e))}function Pv(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,at===e&&(Ye&i)===i&&(yt===4||yt===3&&(Ye&62914560)===Ye&&300>ct()-Kl?(Je&2)===0&&jr(e,0):pu|=i,Br===Ye&&(Br=0)),On(e)}function np(e,t){t===0&&(t=mt()),e=Ui(e,t),e!==null&&(Ni(e,t),On(e))}function Fv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),np(e,i)}function qv(e,t){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,m=e.memoizedState;m!==null&&(i=m.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),np(e,i)}function Vv(e,t){return dt(e,t)}var ta=null,Hr=null,Cu=!1,na=!1,wu=!1,bi=0;function On(e){e!==Hr&&e.next===null&&(Hr===null?ta=Hr=e:Hr=Hr.next=e),na=!0,Cu||(Cu=!0,$v())}function Bs(e,t){if(!wu&&na){wu=!0;do for(var i=!1,l=ta;l!==null;){if(e!==0){var m=l.pendingLanes;if(m===0)var C=0;else{var L=l.suspendedLanes,P=l.pingedLanes;C=(1<<31-tt(42|e)+1)-1,C&=m&~(L&~P),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(i=!0,lp(l,C))}else C=Ye,C=ir(l,l===at?C:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(C&3)===0||Hn(l,C)||(i=!0,lp(l,C));l=l.next}while(i);wu=!1}}function Gv(){ip()}function ip(){na=Cu=!1;var e=0;bi!==0&&n0()&&(e=bi);for(var t=ct(),i=null,l=ta;l!==null;){var m=l.next,C=rp(l,t);C===0?(l.next=null,i===null?ta=m:i.next=m,m===null&&(Hr=i)):(i=l,(e!==0||(C&3)!==0)&&(na=!0)),l=m}Rt!==0&&Rt!==5||Bs(e),bi!==0&&(bi=0)}function rp(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,m=e.expirationTimes,C=e.pendingLanes&-62914561;0<C;){var L=31-tt(C),P=1<<L,W=m[L];W===-1?((P&i)===0||(P&l)!==0)&&(m[L]=Zr(P,t)):W<=t&&(e.expiredLanes|=P),C&=~P}if(t=at,i=Ye,i=ir(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(nt===2||nt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Le(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Hn(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&Le(l),be(i)){case 2:case 8:i=ye;break;case 32:i=Ce;break;case 268435456:i=Ne;break;default:i=Ce}return l=sp.bind(null,e),i=dt(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&Le(l),e.callbackPriority=2,e.callbackNode=null,2}function sp(e,t){if(Rt!==0&&Rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(ea()&&e.callbackNode!==i)return null;var l=Ye;return l=ir(e,e===at?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ud(e,l,t),rp(e,ct()),e.callbackNode!=null&&e.callbackNode===i?sp.bind(null,e):null)}function lp(e,t){if(ea())return null;Ud(e,t,!0)}function $v(){r0(function(){(Je&6)!==0?dt(ce,Gv):ip()})}function xu(){if(bi===0){var e=wr;e===0&&(e=Dn,Dn<<=1,(Dn&261888)===0&&(Dn=256)),bi=e}return bi}function ap(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cl(""+e)}function op(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function Yv(e,t,i,l,m){if(t==="submit"&&i&&i.stateNode===m){var C=ap((m[$t]||null).action),L=l.submitter;L&&(t=(t=L[$t]||null)?ap(t.formAction):L.getAttribute("formAction"),t!==null&&(C=t,L=null));var P=new pl("action","action",null,l,m);e.push({event:P,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(bi!==0){var W=L?op(m,L):new FormData(m);Vo(i,{pending:!0,data:W,method:m.method,action:C},null,W)}}else typeof C=="function"&&(P.preventDefault(),W=L?op(m,L):new FormData(m),Vo(i,{pending:!0,data:W,method:m.method,action:C},C,W))},currentTarget:m}]})}}for(var Eu=0;Eu<lo.length;Eu++){var ku=lo[Eu],Kv=ku.toLowerCase(),Wv=ku[0].toUpperCase()+ku.slice(1);xn(Kv,"on"+Wv)}xn(Hh,"onAnimationEnd"),xn(Ih,"onAnimationIteration"),xn(Uh,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(hv,"onTransitionRun"),xn(fv,"onTransitionStart"),xn(dv,"onTransitionCancel"),xn(Ph,"onTransitionEnd"),ur("onMouseEnter",["mouseout","mouseover"]),ur("onMouseLeave",["mouseout","mouseover"]),ur("onPointerEnter",["pointerout","pointerover"]),ur("onPointerLeave",["pointerout","pointerover"]),ji("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ji("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ji("onBeforeInput",["compositionend","keypress","textInput","paste"]),ji("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ji("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ji("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),Xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ns));function up(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],m=l.event;l=l.listeners;e:{var C=void 0;if(t)for(var L=l.length-1;0<=L;L--){var P=l[L],W=P.instance,re=P.currentTarget;if(P=P.listener,W!==C&&m.isPropagationStopped())break e;C=P,m.currentTarget=re;try{C(m)}catch(he){_l(he)}m.currentTarget=null,C=W}else for(L=0;L<l.length;L++){if(P=l[L],W=P.instance,re=P.currentTarget,P=P.listener,W!==C&&m.isPropagationStopped())break e;C=P,m.currentTarget=re;try{C(m)}catch(he){_l(he)}m.currentTarget=null,C=W}}}}function qe(e,t){var i=t[Ha];i===void 0&&(i=t[Ha]=new Set);var l=e+"__bubble";i.has(l)||(cp(t,e,2,!1),i.add(l))}function Au(e,t,i){var l=0;t&&(l|=4),cp(i,e,l,t)}var ia="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[ia]){e[ia]=!0,nh.forEach(function(i){i!=="selectionchange"&&(Xv.has(i)||Au(i,!1,e),Au(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ia]||(t[ia]=!0,Au("selectionchange",!1,t))}}function cp(e,t,i,l){switch(Ip(t)){case 2:var m=x0;break;case 8:m=E0;break;default:m=qu}i=m.bind(null,t,i,e),m=void 0,!Ya||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(m=!0),l?m!==void 0?e.addEventListener(t,i,{capture:!0,passive:m}):e.addEventListener(t,i,!0):m!==void 0?e.addEventListener(t,i,{passive:m}):e.addEventListener(t,i,!1)}function Du(e,t,i,l,m){var C=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var L=l.tag;if(L===3||L===4){var P=l.stateNode.containerInfo;if(P===m)break;if(L===4)for(L=l.return;L!==null;){var W=L.tag;if((W===3||W===4)&&L.stateNode.containerInfo===m)return;L=L.return}for(;P!==null;){if(L=lr(P),L===null)return;if(W=L.tag,W===5||W===6||W===26||W===27){l=C=L;continue e}P=P.parentNode}}l=l.return}ph(function(){var re=C,he=Ga(i),pe=[];e:{var se=Fh.get(e);if(se!==void 0){var oe=pl,we=e;switch(e){case"keypress":if(fl(i)===0)break e;case"keydown":case"keyup":oe=q_;break;case"focusin":we="focus",oe=Qa;break;case"focusout":we="blur",oe=Qa;break;case"beforeblur":case"afterblur":oe=Qa;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=M_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=$_;break;case Hh:case Ih:case Uh:oe=B_;break;case Ph:oe=K_;break;case"scroll":case"scrollend":oe=D_;break;case"wheel":oe=X_;break;case"copy":case"cut":case"paste":oe=j_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=yh;break;case"toggle":case"beforetoggle":oe=Z_}var De=(t&4)!==0,lt=!De&&(e==="scroll"||e==="scrollend"),ee=De?se!==null?se+"Capture":null:se;De=[];for(var Q=re,ie;Q!==null;){var de=Q;if(ie=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ie===null||ee===null||(de=is(Q,ee),de!=null&&De.push(js(Q,de,ie))),lt)break;Q=Q.return}0<De.length&&(se=new oe(se,we,null,i,he),pe.push({event:se,listeners:De}))}}if((t&7)===0){e:{if(se=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",se&&i!==Va&&(we=i.relatedTarget||i.fromElement)&&(lr(we)||we[sr]))break e;if((oe||se)&&(se=he.window===he?he:(se=he.ownerDocument)?se.defaultView||se.parentWindow:window,oe?(we=i.relatedTarget||i.toElement,oe=re,we=we?lr(we):null,we!==null&&(lt=y(we),De=we.tag,we!==lt||De!==5&&De!==27&&De!==6)&&(we=null)):(oe=null,we=re),oe!==we)){if(De=_h,de="onMouseLeave",ee="onMouseEnter",Q="mouse",(e==="pointerout"||e==="pointerover")&&(De=yh,de="onPointerLeave",ee="onPointerEnter",Q="pointer"),lt=oe==null?se:ns(oe),ie=we==null?se:ns(we),se=new De(de,Q+"leave",oe,i,he),se.target=lt,se.relatedTarget=ie,de=null,lr(he)===re&&(De=new De(ee,Q+"enter",we,i,he),De.target=ie,De.relatedTarget=lt,de=De),lt=de,oe&&we)t:{for(De=Qv,ee=oe,Q=we,ie=0,de=ee;de;de=De(de))ie++;de=0;for(var ke=Q;ke;ke=De(ke))de++;for(;0<ie-de;)ee=De(ee),ie--;for(;0<de-ie;)Q=De(Q),de--;for(;ie--;){if(ee===Q||Q!==null&&ee===Q.alternate){De=ee;break t}ee=De(ee),Q=De(Q)}De=null}else De=null;oe!==null&&hp(pe,se,oe,De,!1),we!==null&&lt!==null&&hp(pe,lt,we,De,!0)}}e:{if(se=re?ns(re):window,oe=se.nodeName&&se.nodeName.toLowerCase(),oe==="select"||oe==="input"&&se.type==="file")var Qe=Ah;else if(Eh(se))if(Th)Qe=ov;else{Qe=lv;var Ee=sv}else oe=se.nodeName,!oe||oe.toLowerCase()!=="input"||se.type!=="checkbox"&&se.type!=="radio"?re&&qa(re.elementType)&&(Qe=Ah):Qe=av;if(Qe&&(Qe=Qe(e,re))){kh(pe,Qe,i,he);break e}Ee&&Ee(e,se,re),e==="focusout"&&re&&se.type==="number"&&re.memoizedProps.value!=null&&Fa(se,"number",se.value)}switch(Ee=re?ns(re):window,e){case"focusin":(Eh(Ee)||Ee.contentEditable==="true")&&(mr=Ee,io=re,hs=null);break;case"focusout":hs=io=mr=null;break;case"mousedown":ro=!0;break;case"contextmenu":case"mouseup":case"dragend":ro=!1,jh(pe,i,he);break;case"selectionchange":if(cv)break;case"keydown":case"keyup":jh(pe,i,he)}var ze;if(Ja)e:{switch(e){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else pr?wh(e,i)&&(Ke="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ke="onCompositionStart");Ke&&(Sh&&i.locale!=="ko"&&(pr||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&pr&&(ze=mh()):(si=he,Ka="value"in si?si.value:si.textContent,pr=!0)),Ee=ra(re,Ke),0<Ee.length&&(Ke=new vh(Ke,e,null,i,he),pe.push({event:Ke,listeners:Ee}),ze?Ke.data=ze:(ze=xh(i),ze!==null&&(Ke.data=ze)))),(ze=ev?tv(e,i):nv(e,i))&&(Ke=ra(re,"onBeforeInput"),0<Ke.length&&(Ee=new vh("onBeforeInput","beforeinput",null,i,he),pe.push({event:Ee,listeners:Ke}),Ee.data=ze)),Yv(pe,e,re,i,he)}up(pe,t)})}function js(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ra(e,t){for(var i=t+"Capture",l=[];e!==null;){var m=e,C=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||C===null||(m=is(e,i),m!=null&&l.unshift(js(e,m,C)),m=is(e,t),m!=null&&l.push(js(e,m,C))),e.tag===3)return l;e=e.return}return[]}function Qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hp(e,t,i,l,m){for(var C=t._reactName,L=[];i!==null&&i!==l;){var P=i,W=P.alternate,re=P.stateNode;if(P=P.tag,W!==null&&W===l)break;P!==5&&P!==26&&P!==27||re===null||(W=re,m?(re=is(i,C),re!=null&&L.unshift(js(i,re,W))):m||(re=is(i,C),re!=null&&L.push(js(i,re,W)))),i=i.return}L.length!==0&&e.push({event:t,listeners:L})}var Zv=/\r\n?/g,Jv=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(Zv,`
49
- `).replace(Jv,"")}function dp(e,t){return t=fp(t),fp(e)===t}function st(e,t,i,l,m,C){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||hr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&hr(e,""+l);break;case"className":ol(e,"class",l);break;case"tabIndex":ol(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ol(e,i,l);break;case"style":fh(e,l,C);break;case"data":if(t!=="object"){ol(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=cl(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(i==="formAction"?(t!=="input"&&st(e,t,"name",m.name,m,null),st(e,t,"formEncType",m.formEncType,m,null),st(e,t,"formMethod",m.formMethod,m,null),st(e,t,"formTarget",m.formTarget,m,null)):(st(e,t,"encType",m.encType,m,null),st(e,t,"method",m.method,m,null),st(e,t,"target",m.target,m,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=cl(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=Un);break;case"onScroll":l!=null&&qe("scroll",e);break;case"onScrollEnd":l!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(m.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=cl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":qe("beforetoggle",e),qe("toggle",e),al(e,"popover",l);break;case"xlinkActuate":In(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":In(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":In(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":In(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":In(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":In(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":In(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":In(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":In(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":al(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=A_.get(i)||i,al(e,i,l))}}function Ru(e,t,i,l,m,C){switch(i){case"style":fh(e,l,C);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(m.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof l=="string"?hr(e,l):(typeof l=="number"||typeof l=="bigint")&&hr(e,""+l);break;case"onScroll":l!=null&&qe("scroll",e);break;case"onScrollEnd":l!=null&&qe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ih.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(m=i.endsWith("Capture"),t=i.slice(2,m?i.length-7:void 0),C=e[$t]||null,C=C!=null?C[i]:null,typeof C=="function"&&e.removeEventListener(t,C,m),typeof l=="function")){typeof C!="function"&&C!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,m);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):al(e,i,l)}}}function Ht(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var l=!1,m=!1,C;for(C in i)if(i.hasOwnProperty(C)){var L=i[C];if(L!=null)switch(C){case"src":l=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:st(e,t,C,L,i,null)}}m&&st(e,t,"srcSet",i.srcSet,i,null),l&&st(e,t,"src",i.src,i,null);return;case"input":qe("invalid",e);var P=C=L=m=null,W=null,re=null;for(l in i)if(i.hasOwnProperty(l)){var he=i[l];if(he!=null)switch(l){case"name":m=he;break;case"type":L=he;break;case"checked":W=he;break;case"defaultChecked":re=he;break;case"value":C=he;break;case"defaultValue":P=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(o(137,t));break;default:st(e,t,l,he,i,null)}}oh(e,C,P,W,re,L,m,!1);return;case"select":qe("invalid",e),l=L=C=null;for(m in i)if(i.hasOwnProperty(m)&&(P=i[m],P!=null))switch(m){case"value":C=P;break;case"defaultValue":L=P;break;case"multiple":l=P;default:st(e,t,m,P,i,null)}t=C,i=L,e.multiple=!!l,t!=null?cr(e,!!l,t,!1):i!=null&&cr(e,!!l,i,!0);return;case"textarea":qe("invalid",e),C=m=l=null;for(L in i)if(i.hasOwnProperty(L)&&(P=i[L],P!=null))switch(L){case"value":l=P;break;case"defaultValue":m=P;break;case"children":C=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(91));break;default:st(e,t,L,P,i,null)}ch(e,l,m,C);return;case"option":for(W in i)if(i.hasOwnProperty(W)&&(l=i[W],l!=null))switch(W){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:st(e,t,W,l,i,null)}return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(l=0;l<Ns.length;l++)qe(Ns[l],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in i)if(i.hasOwnProperty(re)&&(l=i[re],l!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:st(e,t,re,l,i,null)}return;default:if(qa(t)){for(he in i)i.hasOwnProperty(he)&&(l=i[he],l!==void 0&&Ru(e,t,he,l,i,void 0));return}}for(P in i)i.hasOwnProperty(P)&&(l=i[P],l!=null&&st(e,t,P,l,i,null))}function e0(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,C=null,L=null,P=null,W=null,re=null,he=null;for(oe in i){var pe=i[oe];if(i.hasOwnProperty(oe)&&pe!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":W=pe;default:l.hasOwnProperty(oe)||st(e,t,oe,null,l,pe)}}for(var se in l){var oe=l[se];if(pe=i[se],l.hasOwnProperty(se)&&(oe!=null||pe!=null))switch(se){case"type":C=oe;break;case"name":m=oe;break;case"checked":re=oe;break;case"defaultChecked":he=oe;break;case"value":L=oe;break;case"defaultValue":P=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(o(137,t));break;default:oe!==pe&&st(e,t,se,oe,l,pe)}}Pa(e,L,P,W,re,he,C,m);return;case"select":oe=L=P=se=null;for(C in i)if(W=i[C],i.hasOwnProperty(C)&&W!=null)switch(C){case"value":break;case"multiple":oe=W;default:l.hasOwnProperty(C)||st(e,t,C,null,l,W)}for(m in l)if(C=l[m],W=i[m],l.hasOwnProperty(m)&&(C!=null||W!=null))switch(m){case"value":se=C;break;case"defaultValue":P=C;break;case"multiple":L=C;default:C!==W&&st(e,t,m,C,l,W)}t=P,i=L,l=oe,se!=null?cr(e,!!i,se,!1):!!l!=!!i&&(t!=null?cr(e,!!i,t,!0):cr(e,!!i,i?[]:"",!1));return;case"textarea":oe=se=null;for(P in i)if(m=i[P],i.hasOwnProperty(P)&&m!=null&&!l.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:st(e,t,P,null,l,m)}for(L in l)if(m=l[L],C=i[L],l.hasOwnProperty(L)&&(m!=null||C!=null))switch(L){case"value":se=m;break;case"defaultValue":oe=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:m!==C&&st(e,t,L,m,l,C)}uh(e,se,oe);return;case"option":for(var we in i)if(se=i[we],i.hasOwnProperty(we)&&se!=null&&!l.hasOwnProperty(we))switch(we){case"selected":e.selected=!1;break;default:st(e,t,we,null,l,se)}for(W in l)if(se=l[W],oe=i[W],l.hasOwnProperty(W)&&se!==oe&&(se!=null||oe!=null))switch(W){case"selected":e.selected=se&&typeof se!="function"&&typeof se!="symbol";break;default:st(e,t,W,se,l,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in i)se=i[De],i.hasOwnProperty(De)&&se!=null&&!l.hasOwnProperty(De)&&st(e,t,De,null,l,se);for(re in l)if(se=l[re],oe=i[re],l.hasOwnProperty(re)&&se!==oe&&(se!=null||oe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(o(137,t));break;default:st(e,t,re,se,l,oe)}return;default:if(qa(t)){for(var lt in i)se=i[lt],i.hasOwnProperty(lt)&&se!==void 0&&!l.hasOwnProperty(lt)&&Ru(e,t,lt,void 0,l,se);for(he in l)se=l[he],oe=i[he],!l.hasOwnProperty(he)||se===oe||se===void 0&&oe===void 0||Ru(e,t,he,se,l,oe);return}}for(var ee in i)se=i[ee],i.hasOwnProperty(ee)&&se!=null&&!l.hasOwnProperty(ee)&&st(e,t,ee,null,l,se);for(pe in l)se=l[pe],oe=i[pe],!l.hasOwnProperty(pe)||se===oe||se==null&&oe==null||st(e,t,pe,se,l,oe)}function pp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var m=i[l],C=m.transferSize,L=m.initiatorType,P=m.duration;if(C&&P&&pp(L)){for(L=0,P=m.responseEnd,l+=1;l<i.length;l++){var W=i[l],re=W.startTime;if(re>P)break;var he=W.transferSize,pe=W.initiatorType;he&&pp(pe)&&(W=W.responseEnd,L+=he*(W<P?1:(P-re)/(W-re)))}if(--l,t+=8*(C+L)/(m.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mu=null,Lu=null;function sa(e){return e.nodeType===9?e:e.ownerDocument}function mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ou(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bu=null;function n0(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var _p=typeof setTimeout=="function"?setTimeout:void 0,i0=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,r0=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(s0)}:_p;function s0(e){setTimeout(function(){throw e})}function Ci(e){return e==="head"}function yp(e,t){var i=t,l=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"||i==="/&"){if(l===0){e.removeChild(m),Fr(t);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")zs(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,zs(i);for(var C=i.firstChild;C;){var L=C.nextSibling,P=C.nodeName;C[ts]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&C.rel.toLowerCase()==="stylesheet"||i.removeChild(C),C=L}}else i==="body"&&zs(e.ownerDocument.body);i=m}while(i);Fr(t)}function Sp(e,t){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=l}while(i)}function Nu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Nu(i),Ia(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function l0(e,t,i,l){for(;e.nodeType===1;){var m=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ts])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(C=e.getAttribute("rel"),C==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(C!==m.rel||e.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||e.getAttribute("title")!==(m.title==null?null:m.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(C=e.getAttribute("src"),(C!==(m.src==null?null:m.src)||e.getAttribute("type")!==(m.type==null?null:m.type)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&C&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var C=m.name==null?null:""+m.name;if(m.type==="hidden"&&e.getAttribute("name")===C)return e}else return e;if(e=Sn(e.nextSibling),e===null)break}return null}function a0(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Sn(e.nextSibling),e===null))return null;return e}function bp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Sn(e.nextSibling),e===null))return null;return e}function ju(e){return e.data==="$?"||e.data==="$~"}function zu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function o0(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hu=null;function Cp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return Sn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function wp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function xp(e,t,i){switch(t=sa(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function zs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ia(e)}var bn=new Map,Ep=new Set;function la(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=X.d;X.d={f:u0,r:c0,D:h0,C:f0,L:d0,m:p0,X:g0,S:m0,M:_0};function u0(){var e=ni.f(),t=Ql();return e||t}function c0(e){var t=ar(e);t!==null&&t.tag===5&&t.type==="form"?Ff(t):ni.r(e)}var Ir=typeof document>"u"?null:document;function kp(e,t,i){var l=Ir;if(l&&typeof t=="string"&&t){var m=dn(t);m='link[rel="'+e+'"][href="'+m+'"]',typeof i=="string"&&(m+='[crossorigin="'+i+'"]'),Ep.has(m)||(Ep.add(m),e={rel:e,crossOrigin:i,href:t},l.querySelector(m)===null&&(t=l.createElement("link"),Ht(t,"link",e),Mt(t),l.head.appendChild(t)))}}function h0(e){ni.D(e),kp("dns-prefetch",e,null)}function f0(e,t){ni.C(e,t),kp("preconnect",e,t)}function d0(e,t,i){ni.L(e,t,i);var l=Ir;if(l&&e&&t){var m='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(m+='[imagesrcset="'+dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(m+='[imagesizes="'+dn(i.imageSizes)+'"]')):m+='[href="'+dn(e)+'"]';var C=m;switch(t){case"style":C=Ur(e);break;case"script":C=Pr(e)}bn.has(C)||(e=c({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),bn.set(C,e),l.querySelector(m)!==null||t==="style"&&l.querySelector(Hs(C))||t==="script"&&l.querySelector(Is(C))||(t=l.createElement("link"),Ht(t,"link",e),Mt(t),l.head.appendChild(t)))}}function p0(e,t){ni.m(e,t);var i=Ir;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",m='link[rel="modulepreload"][as="'+dn(l)+'"][href="'+dn(e)+'"]',C=m;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=Pr(e)}if(!bn.has(C)&&(e=c({rel:"modulepreload",href:e},t),bn.set(C,e),i.querySelector(m)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Is(C)))return}l=i.createElement("link"),Ht(l,"link",e),Mt(l),i.head.appendChild(l)}}}function m0(e,t,i){ni.S(e,t,i);var l=Ir;if(l&&e){var m=or(l).hoistableStyles,C=Ur(e);t=t||"default";var L=m.get(C);if(!L){var P={loading:0,preload:null};if(L=l.querySelector(Hs(C)))P.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},i),(i=bn.get(C))&&Iu(e,i);var W=L=l.createElement("link");Mt(W),Ht(W,"link",e),W._p=new Promise(function(re,he){W.onload=re,W.onerror=he}),W.addEventListener("load",function(){P.loading|=1}),W.addEventListener("error",function(){P.loading|=2}),P.loading|=4,aa(L,t,l)}L={type:"stylesheet",instance:L,count:1,state:P},m.set(C,L)}}}function g0(e,t){ni.X(e,t);var i=Ir;if(i&&e){var l=or(i).hoistableScripts,m=Pr(e),C=l.get(m);C||(C=i.querySelector(Is(m)),C||(e=c({src:e,async:!0},t),(t=bn.get(m))&&Uu(e,t),C=i.createElement("script"),Mt(C),Ht(C,"link",e),i.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},l.set(m,C))}}function _0(e,t){ni.M(e,t);var i=Ir;if(i&&e){var l=or(i).hoistableScripts,m=Pr(e),C=l.get(m);C||(C=i.querySelector(Is(m)),C||(e=c({src:e,async:!0,type:"module"},t),(t=bn.get(m))&&Uu(e,t),C=i.createElement("script"),Mt(C),Ht(C,"link",e),i.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},l.set(m,C))}}function Ap(e,t,i,l){var m=(m=me.current)?la(m):null;if(!m)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Ur(i.href),i=or(m).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Ur(i.href);var C=or(m).hoistableStyles,L=C.get(e);if(L||(m=m.ownerDocument||m,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(e,L),(C=m.querySelector(Hs(e)))&&!C._p&&(L.instance=C,L.state.loading=5),bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},bn.set(e,i),C||v0(m,e,i,L.state))),t&&l===null)throw Error(o(528,""));return L}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pr(i),i=or(m).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ur(e){return'href="'+dn(e)+'"'}function Hs(e){return'link[rel="stylesheet"]['+e+"]"}function Tp(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function v0(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Ht(t,"link",i),Mt(t),e.head.appendChild(t))}function Pr(e){return'[src="'+dn(e)+'"]'}function Is(e){return"script[async]"+e}function Dp(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+dn(i.href)+'"]');if(l)return t.instance=l,Mt(l),l;var m=c({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Mt(l),Ht(l,"style",m),aa(l,i.precedence,e),t.instance=l;case"stylesheet":m=Ur(i.href);var C=e.querySelector(Hs(m));if(C)return t.state.loading|=4,t.instance=C,Mt(C),C;l=Tp(i),(m=bn.get(m))&&Iu(l,m),C=(e.ownerDocument||e).createElement("link"),Mt(C);var L=C;return L._p=new Promise(function(P,W){L.onload=P,L.onerror=W}),Ht(C,"link",l),t.state.loading|=4,aa(C,i.precedence,e),t.instance=C;case"script":return C=Pr(i.src),(m=e.querySelector(Is(C)))?(t.instance=m,Mt(m),m):(l=i,(m=bn.get(C))&&(l=c({},i),Uu(l,m)),e=e.ownerDocument||e,m=e.createElement("script"),Mt(m),Ht(m,"link",l),e.head.appendChild(m),t.instance=m);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,aa(l,i.precedence,e));return t.instance}function aa(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=l.length?l[l.length-1]:null,C=m,L=0;L<l.length;L++){var P=l[L];if(P.dataset.precedence===t)C=P;else if(C!==m)break}C?C.parentNode.insertBefore(e,C.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Iu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var oa=null;function Rp(e,t,i){if(oa===null){var l=new Map,m=oa=new Map;m.set(i,l)}else m=oa,l=m.get(i),l||(l=new Map,m.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),m=0;m<i.length;m++){var C=i[m];if(!(C[ts]||C[Bt]||e==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var L=C.getAttribute(t)||"";L=e+L;var P=l.get(L);P?P.push(C):l.set(L,[C])}}return l}function Mp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function y0(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function S0(e,t,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var m=Ur(l.href),C=t.querySelector(Hs(m));if(C){t=C._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ua.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=C,Mt(C);return}C=t.ownerDocument||t,l=Tp(l),(m=bn.get(m))&&Iu(l,m),C=C.createElement("link"),Mt(C);var L=C;L._p=new Promise(function(P,W){L.onload=P,L.onerror=W}),Ht(C,"link",l),i.instance=C}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=ua.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Pu=0;function b0(e,t){return e.stylesheets&&e.count===0&&ha(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&ha(e,e.stylesheets),e.unsuspend){var C=e.unsuspend;e.unsuspend=null,C()}},6e4+t);0<e.imgBytes&&Pu===0&&(Pu=62500*t0());var m=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ha(e,e.stylesheets),e.unsuspend)){var C=e.unsuspend;e.unsuspend=null,C()}},(e.imgBytes>Pu?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(m)}}:null}function ua(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ha(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ca=null;function ha(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ca=new Map,t.forEach(C0,e),ca=null,ua.call(e))}function C0(e,t){if(!(t.state.loading&4)){var i=ca.get(e);if(i)var l=i.get(null);else{i=new Map,ca.set(e,i);for(var m=e.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<m.length;C++){var L=m[C];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(i.set(L.dataset.precedence,L),l=L)}l&&i.set(null,l)}m=t.instance,L=m.getAttribute("data-precedence"),C=i.get(L)||l,C===l&&i.set(null,m),i.set(L,m),this.count++,l=ua.bind(this),m.addEventListener("load",l),m.addEventListener("error",l),C?C.parentNode.insertBefore(m,C.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(m,e.firstChild)),t.state.loading|=4}}var Us={$$typeof:v,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function w0(e,t,i,l,m,C,L,P,W){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jr(0),this.hiddenUpdates=Jr(null),this.identifierPrefix=l,this.onUncaughtError=m,this.onCaughtError=C,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function Op(e,t,i,l,m,C,L,P,W,re,he,pe){return e=new w0(e,t,i,L,W,re,he,pe,P),t=1,C===!0&&(t|=24),C=rn(3,null,null,t),e.current=C,C.stateNode=e,t=So(),t.refCount++,e.pooledCache=t,t.refCount++,C.memoizedState={element:l,isDehydrated:i,cache:t},xo(C),e}function Bp(e){return e?(e=vr,e):vr}function Np(e,t,i,l,m,C){m=Bp(m),l.context===null?l.context=m:l.pendingContext=m,l=hi(t),l.payload={element:i},C=C===void 0?null:C,C!==null&&(l.callback=C),i=fi(e,l,t),i!==null&&(Zt(i,e,t),vs(i,e,t))}function jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Fu(e,t){jp(e,t),(e=e.alternate)&&jp(e,t)}function zp(e){if(e.tag===13||e.tag===31){var t=Ui(e,67108864);t!==null&&Zt(t,e,67108864),Fu(e,67108864)}}function Hp(e){if(e.tag===13||e.tag===31){var t=un();t=le(t);var i=Ui(e,t);i!==null&&Zt(i,e,t),Fu(e,t)}}var fa=!0;function x0(e,t,i,l){var m=G.T;G.T=null;var C=X.p;try{X.p=2,qu(e,t,i,l)}finally{X.p=C,G.T=m}}function E0(e,t,i,l){var m=G.T;G.T=null;var C=X.p;try{X.p=8,qu(e,t,i,l)}finally{X.p=C,G.T=m}}function qu(e,t,i,l){if(fa){var m=Vu(l);if(m===null)Du(e,t,l,da,i),Up(e,l);else if(A0(m,e,t,i,l))l.stopPropagation();else if(Up(e,l),t&4&&-1<k0.indexOf(e)){for(;m!==null;){var C=ar(m);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var L=wn(C.pendingLanes);if(L!==0){var P=C;for(P.pendingLanes|=2,P.entangledLanes|=2;L;){var W=1<<31-tt(L);P.entanglements[1]|=W,L&=~W}On(C),(Je&6)===0&&(Wl=ct()+500,Bs(0))}}break;case 31:case 13:P=Ui(C,2),P!==null&&Zt(P,C,2),Ql(),Fu(C,2)}if(C=Vu(l),C===null&&Du(e,t,l,da,i),C===m)break;m=C}m!==null&&l.stopPropagation()}else Du(e,t,l,null,i)}}function Vu(e){return e=Ga(e),Gu(e)}var da=null;function Gu(e){if(da=null,e=lr(e),e!==null){var t=y(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=a(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return da=e,null}function Ip(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(et()){case ce:return 2;case ye:return 8;case Ce:case Ae:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var $u=!1,wi=null,xi=null,Ei=null,Ps=new Map,Fs=new Map,ki=[],k0="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".split(" ");function Up(e,t){switch(e){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":xi=null;break;case"mouseover":case"mouseout":Ei=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fs.delete(t.pointerId)}}function qs(e,t,i,l,m,C){return e===null||e.nativeEvent!==C?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:C,targetContainers:[m]},t!==null&&(t=ar(t),t!==null&&zp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,m!==null&&t.indexOf(m)===-1&&t.push(m),e)}function A0(e,t,i,l,m){switch(t){case"focusin":return wi=qs(wi,e,t,i,l,m),!0;case"dragenter":return xi=qs(xi,e,t,i,l,m),!0;case"mouseover":return Ei=qs(Ei,e,t,i,l,m),!0;case"pointerover":var C=m.pointerId;return Ps.set(C,qs(Ps.get(C)||null,e,t,i,l,m)),!0;case"gotpointercapture":return C=m.pointerId,Fs.set(C,qs(Fs.get(C)||null,e,t,i,l,m)),!0}return!1}function Pp(e){var t=lr(e.target);if(t!==null){var i=y(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,Ot(e.priority,function(){Hp(i)});return}}else if(t===31){if(t=a(i),t!==null){e.blockedOn=t,Ot(e.priority,function(){Hp(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Vu(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);Va=l,i.target.dispatchEvent(l),Va=null}else return t=ar(i),t!==null&&zp(t),e.blockedOn=i,!1;t.shift()}return!0}function Fp(e,t,i){pa(e)&&i.delete(t)}function T0(){$u=!1,wi!==null&&pa(wi)&&(wi=null),xi!==null&&pa(xi)&&(xi=null),Ei!==null&&pa(Ei)&&(Ei=null),Ps.forEach(Fp),Fs.forEach(Fp)}function ma(e,t){e.blockedOn===t&&(e.blockedOn=null,$u||($u=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,T0)))}var ga=null;function qp(e){ga!==e&&(ga=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ga===e&&(ga=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],m=e[t+2];if(typeof l!="function"){if(Gu(l||i)===null)continue;break}var C=ar(i);C!==null&&(e.splice(t,3),t-=3,Vo(C,{pending:!0,data:m,method:i.method,action:l},l,m))}}))}function Fr(e){function t(W){return ma(W,e)}wi!==null&&ma(wi,e),xi!==null&&ma(xi,e),Ei!==null&&ma(Ei,e),Ps.forEach(t),Fs.forEach(t);for(var i=0;i<ki.length;i++){var l=ki[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ki.length&&(i=ki[0],i.blockedOn===null);)Pp(i),i.blockedOn===null&&ki.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var m=i[l],C=i[l+1],L=m[$t]||null;if(typeof C=="function")L||qp(i);else if(L){var P=null;if(C&&C.hasAttribute("formAction")){if(m=C,L=C[$t]||null)P=L.formAction;else if(Gu(m)!==null)continue}else P=L.action;typeof P=="function"?i[l+1]=P:(i.splice(l,3),l-=3),qp(i)}}}function Vp(){function e(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(L){return m=L})},focusReset:"manual",scroll:"manual"})}function t(){m!==null&&(m(),m=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,m=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),m!==null&&(m(),m=null)}}}function Yu(e){this._internalRoot=e}_a.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,l=un();Np(i,l,e,t,null,null)},_a.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Np(e.current,2,null,e,null,null),Ql(),t[sr]=null}};function _a(e){this._internalRoot=e}_a.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ki.length&&t!==0&&t<ki[i].priority;i++);ki.splice(i,0,e),i===0&&Pp(e)}};var Gp=r.version;if(Gp!=="19.2.6")throw Error(o(527,Gp,"19.2.6"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var D0={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var va=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!va.isDisabled&&va.supportsFiber)try{Dt=va.inject(D0),pt=va}catch{}}return Gs.createRoot=function(e,t){if(!p(e))throw Error(o(299));var i=!1,l="",m=Zf,C=Jf,L=ed;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(m=t.onUncaughtError),t.onCaughtError!==void 0&&(C=t.onCaughtError),t.onRecoverableError!==void 0&&(L=t.onRecoverableError)),t=Op(e,1,!1,null,null,i,l,null,m,C,L,Vp),e[sr]=t.current,Tu(e),new Yu(t)},Gs.hydrateRoot=function(e,t,i){if(!p(e))throw Error(o(299));var l=!1,m="",C=Zf,L=Jf,P=ed,W=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onUncaughtError!==void 0&&(C=i.onUncaughtError),i.onCaughtError!==void 0&&(L=i.onCaughtError),i.onRecoverableError!==void 0&&(P=i.onRecoverableError),i.formState!==void 0&&(W=i.formState)),t=Op(e,1,!0,t,i??null,l,m,W,C,L,P,Vp),t.context=Bp(null),i=t.current,l=un(),l=le(l),m=hi(l),m.callback=null,fi(i,m,l),i=l,t.current.lanes=i,Ni(t,i),On(t),e[sr]=t.current,Tu(e),new _a(t)},Gs.version="19.2.6",Gs}var nm;function P0(){if(nm)return Xu.exports;nm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Xu.exports=U0(),Xu.exports}var F0=P0();const Wr=function(n,r){let p=n;const y=Xs[r];let f=null,a=0,u=null;const h=[],d={},c=function(T,E){a=p*4+17,f=(function(R){const B=new Array(R);for(let z=0;z<R;z+=1){B[z]=new Array(R);for(let q=0;q<R;q+=1)B[z][q]=null}return B})(a),S(0,0),S(a-7,0),S(0,a-7),x(),A(),_(T,E),p>=7&&b(T),u==null&&(u=k(p,y,h)),g(u,E)},S=function(T,E){for(let R=-1;R<=7;R+=1)if(!(T+R<=-1||a<=T+R))for(let B=-1;B<=7;B+=1)E+B<=-1||a<=E+B||(0<=R&&R<=6&&(B==0||B==6)||0<=B&&B<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=B&&B<=4?f[T+R][E+B]=!0:f[T+R][E+B]=!1)},w=function(){let T=0,E=0;for(let R=0;R<8;R+=1){c(!0,R);const B=Di.getLostPoint(d);(R==0||T>B)&&(T=B,E=R)}return E},A=function(){for(let T=8;T<a-8;T+=1)f[T][6]==null&&(f[T][6]=T%2==0);for(let T=8;T<a-8;T+=1)f[6][T]==null&&(f[6][T]=T%2==0)},x=function(){const T=Di.getPatternPosition(p);for(let E=0;E<T.length;E+=1)for(let R=0;R<T.length;R+=1){const B=T[E],z=T[R];if(f[B][z]==null)for(let q=-2;q<=2;q+=1)for(let F=-2;F<=2;F+=1)q==-2||q==2||F==-2||F==2||q==0&&F==0?f[B+q][z+F]=!0:f[B+q][z+F]=!1}},b=function(T){const E=Di.getBCHTypeNumber(p);for(let R=0;R<18;R+=1){const B=!T&&(E>>R&1)==1;f[Math.floor(R/3)][R%3+a-8-3]=B}for(let R=0;R<18;R+=1){const B=!T&&(E>>R&1)==1;f[R%3+a-8-3][Math.floor(R/3)]=B}},_=function(T,E){const R=y<<3|E,B=Di.getBCHTypeInfo(R);for(let z=0;z<15;z+=1){const q=!T&&(B>>z&1)==1;z<6?f[z][8]=q:z<8?f[z+1][8]=q:f[a-15+z][8]=q}for(let z=0;z<15;z+=1){const q=!T&&(B>>z&1)==1;z<8?f[8][a-z-1]=q:z<9?f[8][15-z-1+1]=q:f[8][15-z-1]=q}f[a-8][8]=!T},g=function(T,E){let R=-1,B=a-1,z=7,q=0;const F=Di.getMaskFunction(E);for(let Y=a-1;Y>0;Y-=2)for(Y==6&&(Y-=1);;){for(let K=0;K<2;K+=1)if(f[B][Y-K]==null){let G=!1;q<T.length&&(G=(T[q]>>>z&1)==1),F(B,Y-K)&&(G=!G),f[B][Y-K]=G,z-=1,z==-1&&(q+=1,z=7)}if(B+=R,B<0||a<=B){B-=R,R=-R;break}}},v=function(T,E){let R=0,B=0,z=0;const q=new Array(E.length),F=new Array(E.length);for(let X=0;X<E.length;X+=1){const J=E[X].dataCount,I=E[X].totalCount-J;B=Math.max(B,J),z=Math.max(z,I),q[X]=new Array(J);for(let U=0;U<q[X].length;U+=1)q[X][U]=255&T.getBuffer()[U+R];R+=J;const O=Di.getErrorCorrectPolynomial(I),V=el(q[X],O.getLength()-1).mod(O);F[X]=new Array(O.getLength()-1);for(let U=0;U<F[X].length;U+=1){const ne=U+V.getLength()-F[X].length;F[X][U]=ne>=0?V.getAt(ne):0}}let Y=0;for(let X=0;X<E.length;X+=1)Y+=E[X].totalCount;const K=new Array(Y);let G=0;for(let X=0;X<B;X+=1)for(let J=0;J<E.length;J+=1)X<q[J].length&&(K[G]=q[J][X],G+=1);for(let X=0;X<z;X+=1)for(let J=0;J<E.length;J+=1)X<F[J].length&&(K[G]=F[J][X],G+=1);return K},k=function(T,E,R){const B=im.getRSBlocks(T,E),z=rm();for(let F=0;F<R.length;F+=1){const Y=R[F];z.put(Y.getMode(),4),z.put(Y.getLength(),Di.getLengthInBits(Y.getMode(),T)),Y.write(z)}let q=0;for(let F=0;F<B.length;F+=1)q+=B[F].dataCount;if(z.getLengthInBits()>q*8)throw"code length overflow. ("+z.getLengthInBits()+">"+q*8+")";for(z.getLengthInBits()+4<=q*8&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=q*8||(z.put(236,8),z.getLengthInBits()>=q*8));)z.put(17,8);return v(z,B)};d.addData=function(T,E){E=E||"Byte";let R=null;switch(E){case"Numeric":R=q0(T);break;case"Alphanumeric":R=V0(T);break;case"Byte":R=G0(T);break;case"Kanji":R=$0(T);break;default:throw"mode:"+E}h.push(R),u=null},d.isDark=function(T,E){if(T<0||a<=T||E<0||a<=E)throw T+","+E;return f[T][E]},d.getModuleCount=function(){return a},d.make=function(){if(p<1){let T=1;for(;T<40;T++){const E=im.getRSBlocks(T,y),R=rm();for(let z=0;z<h.length;z++){const q=h[z];R.put(q.getMode(),4),R.put(q.getLength(),Di.getLengthInBits(q.getMode(),T)),q.write(R)}let B=0;for(let z=0;z<E.length;z++)B+=E[z].dataCount;if(R.getLengthInBits()<=B*8)break}p=T}c(!1,w())},d.createTableTag=function(T,E){T=T||2,E=typeof E>"u"?T*4:E;let R="";R+='<table style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: "+E+"px;",R+='">',R+="<tbody>";for(let B=0;B<d.getModuleCount();B+=1){R+="<tr>";for(let z=0;z<d.getModuleCount();z+=1)R+='<td style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: 0px;",R+=" width: "+T+"px;",R+=" height: "+T+"px;",R+=" background-color: ",R+=d.isDark(B,z)?"#000000":"#ffffff",R+=";",R+='"/>';R+="</tr>"}return R+="</tbody>",R+="</table>",R},d.createSvgTag=function(T,E,R,B){let z={};typeof arguments[0]=="object"&&(z=arguments[0],T=z.cellSize,E=z.margin,R=z.alt,B=z.title),T=T||2,E=typeof E>"u"?T*4:E,R=typeof R=="string"?{text:R}:R||{},R.text=R.text||null,R.id=R.text?R.id||"qrcode-description":null,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-title":null;const q=d.getModuleCount()*T+E*2;let F,Y,K,G,X="",J;for(J="l"+T+",0 0,"+T+" -"+T+",0 0,-"+T+"z ",X+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',X+=z.scalable?"":' width="'+q+'px" height="'+q+'px"',X+=' viewBox="0 0 '+q+" "+q+'" ',X+=' preserveAspectRatio="xMinYMin meet"',X+=B.text||R.text?' role="img" aria-labelledby="'+M([B.id,R.id].join(" ").trim())+'"':"",X+=">",X+=B.text?'<title id="'+M(B.id)+'">'+M(B.text)+"</title>":"",X+=R.text?'<description id="'+M(R.id)+'">'+M(R.text)+"</description>":"",X+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',X+='<path d="',K=0;K<d.getModuleCount();K+=1)for(G=K*T+E,F=0;F<d.getModuleCount();F+=1)d.isDark(K,F)&&(Y=F*T+E,X+="M"+Y+","+G+J);return X+='" stroke="transparent" fill="black"/>',X+="</svg>",X},d.createDataURL=function(T,E){T=T||2,E=typeof E>"u"?T*4:E;const R=d.getModuleCount()*T+E*2,B=E,z=R-E;return X0(R,R,function(q,F){if(B<=q&&q<z&&B<=F&&F<z){const Y=Math.floor((q-B)/T),K=Math.floor((F-B)/T);return d.isDark(K,Y)?0:1}else return 1})},d.createImgTag=function(T,E,R){T=T||2,E=typeof E>"u"?T*4:E;const B=d.getModuleCount()*T+E*2;let z="";return z+="<img",z+=' src="',z+=d.createDataURL(T,E),z+='"',z+=' width="',z+=B,z+='"',z+=' height="',z+=B,z+='"',R&&(z+=' alt="',z+=M(R),z+='"'),z+="/>",z};const M=function(T){let E="";for(let R=0;R<T.length;R+=1){const B=T.charAt(R);switch(B){case"<":E+="&lt;";break;case">":E+="&gt;";break;case"&":E+="&amp;";break;case'"':E+="&quot;";break;default:E+=B;break}}return E},D=function(T){T=typeof T>"u"?2:T;const R=d.getModuleCount()*1+T*2,B=T,z=R-T;let q,F,Y,K,G;const X={"██":"█","█ ":"▀"," █":"▄"," ":" "},J={"██":"▀","█ ":"▀"," █":" "," ":" "};let I="";for(q=0;q<R;q+=2){for(Y=Math.floor((q-B)/1),K=Math.floor((q+1-B)/1),F=0;F<R;F+=1)G="█",B<=F&&F<z&&B<=q&&q<z&&d.isDark(Y,Math.floor((F-B)/1))&&(G=" "),B<=F&&F<z&&B<=q+1&&q+1<z&&d.isDark(K,Math.floor((F-B)/1))?G+=" ":G+="█",I+=T<1&&q+1>=z?J[G]:X[G];I+=`
48
+ `+l.stack}}var Oe=Object.prototype.hasOwnProperty,dt=n.unstable_scheduleCallback,Le=n.unstable_cancelCallback,wt=n.unstable_shouldYield,ae=n.unstable_requestPaint,ct=n.unstable_now,et=n.unstable_getCurrentPriorityLevel,ce=n.unstable_ImmediatePriority,ye=n.unstable_UserBlockingPriority,Ce=n.unstable_NormalPriority,Ae=n.unstable_LowPriority,Ne=n.unstable_IdlePriority,_t=n.log,Pe=n.unstable_setDisableYieldValue,Dt=null,pt=null;function It(e){if(typeof _t=="function"&&Pe(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Dt,e)}catch{}}var tt=Math.clz32?Math.clz32:ja,Tn=Math.log,tn=Math.LN2;function ja(e){return e>>>=0,e===0?32:31-(Tn(e)/tn|0)|0}var Dn=256,jn=262144,zn=4194304;function wn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ir(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var m=0,C=e.suspendedLanes,L=e.pingedLanes;e=e.warmLanes;var P=l&134217727;return P!==0?(l=P&~C,l!==0?m=wn(l):(L&=P,L!==0?m=wn(L):i||(i=P&~e,i!==0&&(m=wn(i))))):(P=l&~C,P!==0?m=wn(P):L!==0?m=wn(L):i||(i=l&~e,i!==0&&(m=wn(i)))),m===0?0:t!==0&&t!==m&&(t&C)===0&&(C=m&-m,i=t&-t,C>=i||C===32&&(i&4194048)!==0)?t:m}function Hn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zr(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mt(){var e=zn;return zn<<=1,(zn&62914560)===0&&(zn=4194304),e}function Jr(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Ni(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function za(e,t,i,l,m,C){var L=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var P=e.entanglements,W=e.expirationTimes,re=e.hiddenUpdates;for(i=L&~i;0<i;){var he=31-tt(i),pe=1<<he;P[he]=0,W[he]=-1;var se=re[he];if(se!==null)for(re[he]=null,he=0;he<se.length;he++){var oe=se[he];oe!==null&&(oe.lane&=-536870913)}i&=~pe}l!==0&&ll(e,l,0),C!==0&&m===0&&e.tag!==0&&(e.suspendedLanes|=C&~(L&~t))}function ll(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function rr(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-tt(i),m=1<<l;m&t|e[l]&t&&(e[l]|=t),i&=~m}}function es(e,t){var i=t&-t;return i=(i&42)!==0?1:le(i),(i&(e.suspendedLanes|t))!==0?0:i}function le(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function be(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function St(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Ip(e.type))}function Ot(e,t){var i=X.p;try{return X.p=e,t()}finally{X.p=i}}var ri=Math.random().toString(36).slice(2),Bt="__reactFiber$"+ri,$t="__reactProps$"+ri,sr="__reactContainer$"+ri,Ha="__reactEvents$"+ri,b_="__reactListeners$"+ri,C_="__reactHandles$"+ri,th="__reactResources$"+ri,ts="__reactMarker$"+ri;function Ia(e){delete e[Bt],delete e[$t],delete e[Ha],delete e[b_],delete e[C_]}function lr(e){var t=e[Bt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[sr]||i[Bt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=wp(e);e!==null;){if(i=e[Bt])return i;e=wp(e)}return t}e=i,i=e.parentNode}return null}function ar(e){if(e=e[Bt]||e[sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ns(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function or(e){var t=e[th];return t||(t=e[th]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Mt(e){e[ts]=!0}var nh=new Set,ih={};function ji(e,t){ur(e,t),ur(e+"Capture",t)}function ur(e,t){for(ih[e]=t,e=0;e<t.length;e++)nh.add(t[e])}var w_=RegExp("^[: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]*$"),rh={},sh={};function x_(e){return Oe.call(sh,e)?!0:Oe.call(rh,e)?!1:w_.test(e)?sh[e]=!0:(rh[e]=!0,!1)}function al(e,t,i){if(x_(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function ol(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function In(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E_(e,t,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var m=l.get,C=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return m.call(this)},set:function(L){i=""+L,C.call(this,L)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(L){i=""+L},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ua(e){if(!e._valueTracker){var t=lh(e)?"checked":"value";e._valueTracker=E_(e,t,""+e[t])}}function ah(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=lh(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var k_=/[\n"\\]/g;function dn(e){return e.replace(k_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pa(e,t,i,l,m,C,L,P){e.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?e.type=L:e.removeAttribute("type"),t!=null?L==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):L!=="submit"&&L!=="reset"||e.removeAttribute("value"),t!=null?Fa(e,L,fn(t)):i!=null?Fa(e,L,fn(i)):l!=null&&e.removeAttribute("value"),m==null&&C!=null&&(e.defaultChecked=!!C),m!=null&&(e.checked=m&&typeof m!="function"&&typeof m!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?e.name=""+fn(P):e.removeAttribute("name")}function oh(e,t,i,l,m,C,L,P){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(e.type=C),t!=null||i!=null){if(!(C!=="submit"&&C!=="reset"||t!=null)){Ua(e);return}i=i!=null?""+fn(i):"",t=t!=null?""+fn(t):i,P||t===e.value||(e.value=t),e.defaultValue=t}l=l??m,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=P?e.checked:!!l,e.defaultChecked=!!l,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(e.name=L),Ua(e)}function Fa(e,t,i){t==="number"&&ul(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function cr(e,t,i,l){if(e=e.options,t){t={};for(var m=0;m<i.length;m++)t["$"+i[m]]=!0;for(i=0;i<e.length;i++)m=t.hasOwnProperty("$"+e[i].value),e[i].selected!==m&&(e[i].selected=m),m&&l&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),t=null,m=0;m<e.length;m++){if(e[m].value===i){e[m].selected=!0,l&&(e[m].defaultSelected=!0);return}t!==null||e[m].disabled||(t=e[m])}t!==null&&(t.selected=!0)}}function uh(e,t,i){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+fn(i):""}function ch(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(o(92));if(K(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=fn(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),Ua(e)}function hr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var A_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hh(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||A_.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function fh(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var m in t)l=t[m],t.hasOwnProperty(m)&&i[m]!==l&&hh(e,m,l)}else for(var C in t)t.hasOwnProperty(C)&&hh(e,C,t[C])}function qa(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var T_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),D_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cl(e){return D_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Un(){}var Va=null;function Ga(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fr=null,dr=null;function dh(e){var t=ar(e);if(t&&(e=t.stateNode)){var i=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pa(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var m=l[$t]||null;if(!m)throw Error(o(90));Pa(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&ah(l)}break e;case"textarea":uh(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&cr(e,!!i.multiple,t,!1)}}}var $a=!1;function ph(e,t,i){if($a)return e(t,i);$a=!0;try{var l=e(t);return l}finally{if($a=!1,(fr!==null||dr!==null)&&(Ql(),fr&&(t=fr,e=dr,dr=fr=null,dh(t),e)))for(t=0;t<e.length;t++)dh(e[t])}}function is(e,t){var i=e.stateNode;if(i===null)return null;var l=i[$t]||null;if(l===null)return null;i=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ya=!1;if(Pn)try{var rs={};Object.defineProperty(rs,"passive",{get:function(){Ya=!0}}),window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{Ya=!1}var si=null,Ka=null,hl=null;function mh(){if(hl)return hl;var e,t=Ka,i=t.length,l,m="value"in si?si.value:si.textContent,C=m.length;for(e=0;e<i&&t[e]===m[e];e++);var L=i-e;for(l=1;l<=L&&t[i-l]===m[C-l];l++);return hl=m.slice(e,1<l?1-l:void 0)}function fl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dl(){return!0}function gh(){return!1}function Yt(e){function t(i,l,m,C,L){this._reactName=i,this._targetInst=m,this.type=l,this.nativeEvent=C,this.target=L,this.currentTarget=null;for(var P in e)e.hasOwnProperty(P)&&(i=e[P],this[P]=i?i(C):C[P]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?dl:gh,this.isPropagationStopped=gh,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),t}var zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Yt(zi),ss=c({},zi,{view:0,detail:0}),R_=Yt(ss),Wa,Xa,ls,ml=c({},ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Za,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ls&&(ls&&e.type==="mousemove"?(Wa=e.screenX-ls.screenX,Xa=e.screenY-ls.screenY):Xa=Wa=0,ls=e),Wa)},movementY:function(e){return"movementY"in e?e.movementY:Xa}}),_h=Yt(ml),M_=c({},ml,{dataTransfer:0}),L_=Yt(M_),O_=c({},ss,{relatedTarget:0}),Qa=Yt(O_),B_=c({},zi,{animationName:0,elapsedTime:0,pseudoElement:0}),N_=Yt(B_),j_=c({},zi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),z_=Yt(j_),H_=c({},zi,{data:0}),vh=Yt(H_),I_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U_={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"},P_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P_[e])?!!t[e]:!1}function Za(){return F_}var q_=c({},ss,{key:function(e){if(e.key){var t=I_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?U_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Za,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),V_=Yt(q_),G_=c({},ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yh=Yt(G_),$_=c({},ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Za}),Y_=Yt($_),K_=c({},zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),W_=Yt(K_),X_=c({},ml,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Q_=Yt(X_),Z_=c({},zi,{newState:0,oldState:0}),J_=Yt(Z_),ev=[9,13,27,32],Ja=Pn&&"CompositionEvent"in window,as=null;Pn&&"documentMode"in document&&(as=document.documentMode);var tv=Pn&&"TextEvent"in window&&!as,Sh=Pn&&(!Ja||as&&8<as&&11>=as),bh=" ",Ch=!1;function wh(e,t){switch(e){case"keyup":return ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function nv(e,t){switch(e){case"compositionend":return xh(t);case"keypress":return t.which!==32?null:(Ch=!0,bh);case"textInput":return e=t.data,e===bh&&Ch?null:e;default:return null}}function iv(e,t){if(pr)return e==="compositionend"||!Ja&&wh(e,t)?(e=mh(),hl=Ka=si=null,pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sh&&t.locale!=="ko"?null:t.data;default:return null}}var rv={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 Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rv[e.type]:t==="textarea"}function kh(e,t,i,l){fr?dr?dr.push(l):dr=[l]:fr=l,t=ra(t,"onChange"),0<t.length&&(i=new pl("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var os=null,us=null;function sv(e){up(e,0)}function gl(e){var t=ns(e);if(ah(t))return e}function Ah(e,t){if(e==="change")return t}var Th=!1;if(Pn){var eo;if(Pn){var to="oninput"in document;if(!to){var Dh=document.createElement("div");Dh.setAttribute("oninput","return;"),to=typeof Dh.oninput=="function"}eo=to}else eo=!1;Th=eo&&(!document.documentMode||9<document.documentMode)}function Rh(){os&&(os.detachEvent("onpropertychange",Mh),us=os=null)}function Mh(e){if(e.propertyName==="value"&&gl(us)){var t=[];kh(t,us,e,Ga(e)),ph(sv,t)}}function lv(e,t,i){e==="focusin"?(Rh(),os=t,us=i,os.attachEvent("onpropertychange",Mh)):e==="focusout"&&Rh()}function av(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(us)}function ov(e,t){if(e==="click")return gl(t)}function uv(e,t){if(e==="input"||e==="change")return gl(t)}function cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:cv;function cs(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var m=i[l];if(!Oe.call(t,m)||!nn(e[m],t[m]))return!1}return!0}function Lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oh(e,t){var i=Lh(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Lh(i)}}function Bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ul(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=ul(e.document)}return t}function no(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var hv=Pn&&"documentMode"in document&&11>=document.documentMode,mr=null,io=null,hs=null,ro=!1;function jh(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ro||mr==null||mr!==ul(l)||(l=mr,"selectionStart"in l&&no(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hs&&cs(hs,l)||(hs=l,l=ra(io,"onSelect"),0<l.length&&(t=new pl("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=mr)))}function Hi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var gr={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionrun:Hi("Transition","TransitionRun"),transitionstart:Hi("Transition","TransitionStart"),transitioncancel:Hi("Transition","TransitionCancel"),transitionend:Hi("Transition","TransitionEnd")},so={},zh={};Pn&&(zh=document.createElement("div").style,"AnimationEvent"in window||(delete gr.animationend.animation,delete gr.animationiteration.animation,delete gr.animationstart.animation),"TransitionEvent"in window||delete gr.transitionend.transition);function Ii(e){if(so[e])return so[e];if(!gr[e])return e;var t=gr[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in zh)return so[e]=t[i];return e}var Hh=Ii("animationend"),Ih=Ii("animationiteration"),Uh=Ii("animationstart"),fv=Ii("transitionrun"),dv=Ii("transitionstart"),pv=Ii("transitioncancel"),Ph=Ii("transitionend"),Fh=new Map,lo="abort auxClick beforeToggle 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(" ");lo.push("scrollEnd");function xn(e,t){Fh.set(e,t),ji(t,[e])}var _l=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pn=[],_r=0,ao=0;function vl(){for(var e=_r,t=ao=_r=0;t<e;){var i=pn[t];pn[t++]=null;var l=pn[t];pn[t++]=null;var m=pn[t];pn[t++]=null;var C=pn[t];if(pn[t++]=null,l!==null&&m!==null){var L=l.pending;L===null?m.next=m:(m.next=L.next,L.next=m),l.pending=m}C!==0&&qh(i,m,C)}}function yl(e,t,i,l){pn[_r++]=e,pn[_r++]=t,pn[_r++]=i,pn[_r++]=l,ao|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function oo(e,t,i,l){return yl(e,t,i,l),Sl(e)}function Ui(e,t){return yl(e,null,null,t),Sl(e)}function qh(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var m=!1,C=e.return;C!==null;)C.childLanes|=i,l=C.alternate,l!==null&&(l.childLanes|=i),C.tag===22&&(e=C.stateNode,e===null||e._visibility&1||(m=!0)),e=C,C=C.return;return e.tag===3?(C=e.stateNode,m&&t!==null&&(m=31-tt(i),e=C.hiddenUpdates,l=e[m],l===null?e[m]=[t]:l.push(t),t.lane=i|536870912),C):null}function Sl(e){if(50<Os)throw Os=0,vu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vr={};function mv(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,i,l){return new mv(e,t,i,l)}function uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fn(e,t){var i=e.alternate;return i===null?(i=rn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Vh(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bl(e,t,i,l,m,C){var L=0;if(l=e,typeof e=="function")uo(e)&&(L=1);else if(typeof e=="string")L=S0(e,i,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case R:return e=rn(31,i,t,m),e.elementType=R,e.lanes=C,e;case x:return Pi(i.children,m,C,t);case b:L=8,m|=24;break;case _:return e=rn(12,i,t,m|2),e.elementType=_,e.lanes=C,e;case M:return e=rn(13,i,t,m),e.elementType=M,e.lanes=C,e;case D:return e=rn(19,i,t,m),e.elementType=D,e.lanes=C,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v:L=10;break e;case g:L=9;break e;case k:L=11;break e;case T:L=14;break e;case E:L=16,l=null;break e}L=29,i=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=rn(L,i,t,m),t.elementType=e,t.type=l,t.lanes=C,t}function Pi(e,t,i,l){return e=rn(7,e,l,t),e.lanes=i,e}function co(e,t,i){return e=rn(6,e,null,t),e.lanes=i,e}function Gh(e){var t=rn(18,null,null,0);return t.stateNode=e,t}function ho(e,t,i){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $h=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var i=$h.get(e);return i!==void 0?i:(t={value:e,source:t,stack:$e(t)},$h.set(e,t),t)}return{value:e,source:t,stack:$e(t)}}var yr=[],Sr=0,Cl=null,fs=0,gn=[],_n=0,li=null,Rn=1,Mn="";function qn(e,t){yr[Sr++]=fs,yr[Sr++]=Cl,Cl=e,fs=t}function Yh(e,t,i){gn[_n++]=Rn,gn[_n++]=Mn,gn[_n++]=li,li=e;var l=Rn;e=Mn;var m=32-tt(l)-1;l&=~(1<<m),i+=1;var C=32-tt(t)+m;if(30<C){var L=m-m%5;C=(l&(1<<L)-1).toString(32),l>>=L,m-=L,Rn=1<<32-tt(t)+m|i<<m|l,Mn=C+e}else Rn=1<<C|i<<m|l,Mn=e}function fo(e){e.return!==null&&(qn(e,1),Yh(e,1,0))}function po(e){for(;e===Cl;)Cl=yr[--Sr],yr[Sr]=null,fs=yr[--Sr],yr[Sr]=null;for(;e===li;)li=gn[--_n],gn[_n]=null,Mn=gn[--_n],gn[_n]=null,Rn=gn[--_n],gn[_n]=null}function Kh(e,t){gn[_n++]=Rn,gn[_n++]=Mn,gn[_n++]=li,Rn=t.id,Mn=t.overflow,li=e}var Nt=null,ht=null,We=!1,ai=null,vn=!1,mo=Error(o(519));function oi(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ds(mn(t,e)),mo}function Wh(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[Bt]=e,t[$t]=l,i){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(i=0;i<Ns.length;i++)qe(Ns[i],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),oh(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),ch(t,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||dp(t.textContent,i)?(l.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),l.onScroll!=null&&qe("scroll",t),l.onScrollEnd!=null&&qe("scrollend",t),l.onClick!=null&&(t.onclick=Un),t=!0):t=!1,t||oi(e,!0)}function Xh(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:Nt=Nt.return}}function br(e){if(e!==Nt)return!1;if(!We)return Xh(e),We=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Ou(e.type,e.memoizedProps)),i=!i),i&&ht&&oi(e),Xh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Cp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Cp(e)}else t===27?(t=ht,Ci(e.type)?(e=Hu,Hu=null,ht=e):ht=t):ht=Nt?Sn(e.stateNode.nextSibling):null;return!0}function Fi(){ht=Nt=null,We=!1}function go(){var e=ai;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),ai=null),e}function ds(e){ai===null?ai=[e]:ai.push(e)}var _o=j(null),qi=null,Vn=null;function ui(e,t,i){U(_o,t._currentValue),t._currentValue=i}function Gn(e){e._currentValue=_o.current,V(_o)}function vo(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function yo(e,t,i,l){var m=e.child;for(m!==null&&(m.return=e);m!==null;){var C=m.dependencies;if(C!==null){var L=m.child;C=C.firstContext;e:for(;C!==null;){var P=C;C=m;for(var W=0;W<t.length;W++)if(P.context===t[W]){C.lanes|=i,P=C.alternate,P!==null&&(P.lanes|=i),vo(C.return,i,e),l||(L=null);break e}C=P.next}}else if(m.tag===18){if(L=m.return,L===null)throw Error(o(341));L.lanes|=i,C=L.alternate,C!==null&&(C.lanes|=i),vo(L,i,e),L=null}else L=m.child;if(L!==null)L.return=m;else for(L=m;L!==null;){if(L===e){L=null;break}if(m=L.sibling,m!==null){m.return=L.return,L=m;break}L=L.return}m=L}}function Cr(e,t,i,l){e=null;for(var m=t,C=!1;m!==null;){if(!C){if((m.flags&524288)!==0)C=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var L=m.alternate;if(L===null)throw Error(o(387));if(L=L.memoizedProps,L!==null){var P=m.type;nn(m.pendingProps.value,L.value)||(e!==null?e.push(P):e=[P])}}else if(m===$.current){if(L=m.alternate,L===null)throw Error(o(387));L.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(e!==null?e.push(Us):e=[Us])}m=m.return}e!==null&&yo(t,e,i,l),t.flags|=262144}function wl(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vi(e){qi=e,Vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Qh(qi,e)}function xl(e,t){return qi===null&&Vi(e),Qh(e,t)}function Qh(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Vn===null){if(e===null)throw Error(o(308));Vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vn=Vn.next=t;return i}var gv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},_v=n.unstable_scheduleCallback,vv=n.unstable_NormalPriority,xt={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function So(){return{controller:new gv,data:new Map,refCount:0}}function ps(e){e.refCount--,e.refCount===0&&_v(vv,function(){e.controller.abort()})}var ms=null,bo=0,wr=0,xr=null;function yv(e,t){if(ms===null){var i=ms=[];bo=0,wr=xu(),xr={status:"pending",value:void 0,then:function(l){i.push(l)}}}return bo++,t.then(Zh,Zh),t}function Zh(){if(--bo===0&&ms!==null){xr!==null&&(xr.status="fulfilled");var e=ms;ms=null,wr=0,xr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sv(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(m){i.push(m)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var m=0;m<i.length;m++)(0,i[m])(t)},function(m){for(l.status="rejected",l.reason=m,m=0;m<i.length;m++)(0,i[m])(void 0)}),l}var Jh=G.S;G.S=function(e,t){zd=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yv(e,t),Jh!==null&&Jh(e,t)};var Gi=j(null);function Co(){var e=Gi.current;return e!==null?e:at.pooledCache}function El(e,t){t===null?U(Gi,Gi.current):U(Gi,t.pool)}function ef(){var e=Co();return e===null?null:{parent:xt._currentValue,pool:e}}var Er=Error(o(460)),wo=Error(o(474)),kl=Error(o(542)),Al={then:function(){}};function tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nf(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Un,Un),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(Un,Un);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var m=t;m.status="fulfilled",m.value=l}},function(l){if(t.status==="pending"){var m=t;m.status="rejected",m.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw Yi=t,Er}}function $i(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Yi=i,Er):i}}var Yi=null;function rf(){if(Yi===null)throw Error(o(459));var e=Yi;return Yi=null,e}function sf(e){if(e===Er||e===kl)throw Error(o(483))}var kr=null,gs=0;function Tl(e){var t=gs;return gs+=1,kr===null&&(kr=[]),nf(kr,e,t)}function _s(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Dl(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lf(e){function t(ee,Q){if(e){var ie=ee.deletions;ie===null?(ee.deletions=[Q],ee.flags|=16):ie.push(Q)}}function i(ee,Q){if(!e)return null;for(;Q!==null;)t(ee,Q),Q=Q.sibling;return null}function l(ee){for(var Q=new Map;ee!==null;)ee.key!==null?Q.set(ee.key,ee):Q.set(ee.index,ee),ee=ee.sibling;return Q}function m(ee,Q){return ee=Fn(ee,Q),ee.index=0,ee.sibling=null,ee}function C(ee,Q,ie){return ee.index=ie,e?(ie=ee.alternate,ie!==null?(ie=ie.index,ie<Q?(ee.flags|=67108866,Q):ie):(ee.flags|=67108866,Q)):(ee.flags|=1048576,Q)}function L(ee){return e&&ee.alternate===null&&(ee.flags|=67108866),ee}function P(ee,Q,ie,de){return Q===null||Q.tag!==6?(Q=co(ie,ee.mode,de),Q.return=ee,Q):(Q=m(Q,ie),Q.return=ee,Q)}function W(ee,Q,ie,de){var ke=ie.type;return ke===x?he(ee,Q,ie.props.children,de,ie.key):Q!==null&&(Q.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===E&&$i(ke)===Q.type)?(Q=m(Q,ie.props),_s(Q,ie),Q.return=ee,Q):(Q=bl(ie.type,ie.key,ie.props,null,ee.mode,de),_s(Q,ie),Q.return=ee,Q)}function re(ee,Q,ie,de){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ie.containerInfo||Q.stateNode.implementation!==ie.implementation?(Q=ho(ie,ee.mode,de),Q.return=ee,Q):(Q=m(Q,ie.children||[]),Q.return=ee,Q)}function he(ee,Q,ie,de,ke){return Q===null||Q.tag!==7?(Q=Pi(ie,ee.mode,de,ke),Q.return=ee,Q):(Q=m(Q,ie),Q.return=ee,Q)}function pe(ee,Q,ie){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=co(""+Q,ee.mode,ie),Q.return=ee,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return ie=bl(Q.type,Q.key,Q.props,null,ee.mode,ie),_s(ie,Q),ie.return=ee,ie;case A:return Q=ho(Q,ee.mode,ie),Q.return=ee,Q;case E:return Q=$i(Q),pe(ee,Q,ie)}if(K(Q)||q(Q))return Q=Pi(Q,ee.mode,ie,null),Q.return=ee,Q;if(typeof Q.then=="function")return pe(ee,Tl(Q),ie);if(Q.$$typeof===v)return pe(ee,xl(ee,Q),ie);Dl(ee,Q)}return null}function se(ee,Q,ie,de){var ke=Q!==null?Q.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ke!==null?null:P(ee,Q,""+ie,de);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return ie.key===ke?W(ee,Q,ie,de):null;case A:return ie.key===ke?re(ee,Q,ie,de):null;case E:return ie=$i(ie),se(ee,Q,ie,de)}if(K(ie)||q(ie))return ke!==null?null:he(ee,Q,ie,de,null);if(typeof ie.then=="function")return se(ee,Q,Tl(ie),de);if(ie.$$typeof===v)return se(ee,Q,xl(ee,ie),de);Dl(ee,ie)}return null}function oe(ee,Q,ie,de,ke){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return ee=ee.get(ie)||null,P(Q,ee,""+de,ke);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case w:return ee=ee.get(de.key===null?ie:de.key)||null,W(Q,ee,de,ke);case A:return ee=ee.get(de.key===null?ie:de.key)||null,re(Q,ee,de,ke);case E:return de=$i(de),oe(ee,Q,ie,de,ke)}if(K(de)||q(de))return ee=ee.get(ie)||null,he(Q,ee,de,ke,null);if(typeof de.then=="function")return oe(ee,Q,ie,Tl(de),ke);if(de.$$typeof===v)return oe(ee,Q,ie,xl(Q,de),ke);Dl(Q,de)}return null}function we(ee,Q,ie,de){for(var ke=null,Qe=null,Ee=Q,ze=Q=0,Ke=null;Ee!==null&&ze<ie.length;ze++){Ee.index>ze?(Ke=Ee,Ee=null):Ke=Ee.sibling;var Ze=se(ee,Ee,ie[ze],de);if(Ze===null){Ee===null&&(Ee=Ke);break}e&&Ee&&Ze.alternate===null&&t(ee,Ee),Q=C(Ze,Q,ze),Qe===null?ke=Ze:Qe.sibling=Ze,Qe=Ze,Ee=Ke}if(ze===ie.length)return i(ee,Ee),We&&qn(ee,ze),ke;if(Ee===null){for(;ze<ie.length;ze++)Ee=pe(ee,ie[ze],de),Ee!==null&&(Q=C(Ee,Q,ze),Qe===null?ke=Ee:Qe.sibling=Ee,Qe=Ee);return We&&qn(ee,ze),ke}for(Ee=l(Ee);ze<ie.length;ze++)Ke=oe(Ee,ee,ze,ie[ze],de),Ke!==null&&(e&&Ke.alternate!==null&&Ee.delete(Ke.key===null?ze:Ke.key),Q=C(Ke,Q,ze),Qe===null?ke=Ke:Qe.sibling=Ke,Qe=Ke);return e&&Ee.forEach(function(Ai){return t(ee,Ai)}),We&&qn(ee,ze),ke}function De(ee,Q,ie,de){if(ie==null)throw Error(o(151));for(var ke=null,Qe=null,Ee=Q,ze=Q=0,Ke=null,Ze=ie.next();Ee!==null&&!Ze.done;ze++,Ze=ie.next()){Ee.index>ze?(Ke=Ee,Ee=null):Ke=Ee.sibling;var Ai=se(ee,Ee,Ze.value,de);if(Ai===null){Ee===null&&(Ee=Ke);break}e&&Ee&&Ai.alternate===null&&t(ee,Ee),Q=C(Ai,Q,ze),Qe===null?ke=Ai:Qe.sibling=Ai,Qe=Ai,Ee=Ke}if(Ze.done)return i(ee,Ee),We&&qn(ee,ze),ke;if(Ee===null){for(;!Ze.done;ze++,Ze=ie.next())Ze=pe(ee,Ze.value,de),Ze!==null&&(Q=C(Ze,Q,ze),Qe===null?ke=Ze:Qe.sibling=Ze,Qe=Ze);return We&&qn(ee,ze),ke}for(Ee=l(Ee);!Ze.done;ze++,Ze=ie.next())Ze=oe(Ee,ee,ze,Ze.value,de),Ze!==null&&(e&&Ze.alternate!==null&&Ee.delete(Ze.key===null?ze:Ze.key),Q=C(Ze,Q,ze),Qe===null?ke=Ze:Qe.sibling=Ze,Qe=Ze);return e&&Ee.forEach(function(M0){return t(ee,M0)}),We&&qn(ee,ze),ke}function lt(ee,Q,ie,de){if(typeof ie=="object"&&ie!==null&&ie.type===x&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:e:{for(var ke=ie.key;Q!==null;){if(Q.key===ke){if(ke=ie.type,ke===x){if(Q.tag===7){i(ee,Q.sibling),de=m(Q,ie.props.children),de.return=ee,ee=de;break e}}else if(Q.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===E&&$i(ke)===Q.type){i(ee,Q.sibling),de=m(Q,ie.props),_s(de,ie),de.return=ee,ee=de;break e}i(ee,Q);break}else t(ee,Q);Q=Q.sibling}ie.type===x?(de=Pi(ie.props.children,ee.mode,de,ie.key),de.return=ee,ee=de):(de=bl(ie.type,ie.key,ie.props,null,ee.mode,de),_s(de,ie),de.return=ee,ee=de)}return L(ee);case A:e:{for(ke=ie.key;Q!==null;){if(Q.key===ke)if(Q.tag===4&&Q.stateNode.containerInfo===ie.containerInfo&&Q.stateNode.implementation===ie.implementation){i(ee,Q.sibling),de=m(Q,ie.children||[]),de.return=ee,ee=de;break e}else{i(ee,Q);break}else t(ee,Q);Q=Q.sibling}de=ho(ie,ee.mode,de),de.return=ee,ee=de}return L(ee);case E:return ie=$i(ie),lt(ee,Q,ie,de)}if(K(ie))return we(ee,Q,ie,de);if(q(ie)){if(ke=q(ie),typeof ke!="function")throw Error(o(150));return ie=ke.call(ie),De(ee,Q,ie,de)}if(typeof ie.then=="function")return lt(ee,Q,Tl(ie),de);if(ie.$$typeof===v)return lt(ee,Q,xl(ee,ie),de);Dl(ee,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,Q!==null&&Q.tag===6?(i(ee,Q.sibling),de=m(Q,ie),de.return=ee,ee=de):(i(ee,Q),de=co(ie,ee.mode,de),de.return=ee,ee=de),L(ee)):i(ee,Q)}return function(ee,Q,ie,de){try{gs=0;var ke=lt(ee,Q,ie,de);return kr=null,ke}catch(Ee){if(Ee===Er||Ee===kl)throw Ee;var Qe=rn(29,Ee,null,ee.mode);return Qe.lanes=de,Qe.return=ee,Qe}finally{}}}var Ki=lf(!0),af=lf(!1),ci=!1;function xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fi(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Je&2)!==0){var m=l.pending;return m===null?t.next=t:(t.next=m.next,m.next=t),l.pending=t,t=Sl(e),qh(e,null,i),t}return yl(e,l,t,i),Sl(e)}function vs(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,rr(e,i)}}function ko(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var m=null,C=null;if(i=i.firstBaseUpdate,i!==null){do{var L={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};C===null?m=C=L:C=C.next=L,i=i.next}while(i!==null);C===null?m=C=t:C=C.next=t}else m=C=t;i={baseState:l.baseState,firstBaseUpdate:m,lastBaseUpdate:C,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Ao=!1;function ys(){if(Ao){var e=xr;if(e!==null)throw e}}function Ss(e,t,i,l){Ao=!1;var m=e.updateQueue;ci=!1;var C=m.firstBaseUpdate,L=m.lastBaseUpdate,P=m.shared.pending;if(P!==null){m.shared.pending=null;var W=P,re=W.next;W.next=null,L===null?C=re:L.next=re,L=W;var he=e.alternate;he!==null&&(he=he.updateQueue,P=he.lastBaseUpdate,P!==L&&(P===null?he.firstBaseUpdate=re:P.next=re,he.lastBaseUpdate=W))}if(C!==null){var pe=m.baseState;L=0,he=re=W=null,P=C;do{var se=P.lane&-536870913,oe=se!==P.lane;if(oe?(Ye&se)===se:(l&se)===se){se!==0&&se===wr&&(Ao=!0),he!==null&&(he=he.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var we=e,De=P;se=t;var lt=i;switch(De.tag){case 1:if(we=De.payload,typeof we=="function"){pe=we.call(lt,pe,se);break e}pe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=De.payload,se=typeof we=="function"?we.call(lt,pe,se):we,se==null)break e;pe=c({},pe,se);break e;case 2:ci=!0}}se=P.callback,se!==null&&(e.flags|=64,oe&&(e.flags|=8192),oe=m.callbacks,oe===null?m.callbacks=[se]:oe.push(se))}else oe={lane:se,tag:P.tag,payload:P.payload,callback:P.callback,next:null},he===null?(re=he=oe,W=pe):he=he.next=oe,L|=se;if(P=P.next,P===null){if(P=m.shared.pending,P===null)break;oe=P,P=oe.next,oe.next=null,m.lastBaseUpdate=oe,m.shared.pending=null}}while(!0);he===null&&(W=pe),m.baseState=W,m.firstBaseUpdate=re,m.lastBaseUpdate=he,C===null&&(m.shared.lanes=0),_i|=L,e.lanes=L,e.memoizedState=pe}}function of(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function uf(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)of(i[e],t)}var Ar=j(null),Rl=j(0);function cf(e,t){e=ei,U(Rl,e),U(Ar,t),ei=e|t.baseLanes}function To(){U(Rl,ei),U(Ar,Ar.current)}function Do(){ei=Rl.current,V(Ar),V(Rl)}var sn=j(null),yn=null;function di(e){var t=e.alternate;U(bt,bt.current&1),U(sn,e),yn===null&&(t===null||Ar.current!==null||t.memoizedState!==null)&&(yn=e)}function Ro(e){U(bt,bt.current),U(sn,e),yn===null&&(yn=e)}function hf(e){e.tag===22?(U(bt,bt.current),U(sn,e),yn===null&&(yn=e)):pi()}function pi(){U(bt,bt.current),U(sn,sn.current)}function ln(e){V(sn),yn===e&&(yn=null),V(bt)}var bt=j(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||ju(i)||zu(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $n=0,je=null,rt=null,Et=null,Ll=!1,Tr=!1,Wi=!1,Ol=0,bs=0,Dr=null,bv=0;function vt(){throw Error(o(321))}function Mo(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!nn(e[i],t[i]))return!1;return!0}function Lo(e,t,i,l,m,C){return $n=C,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?Kf:Yo,Wi=!1,C=i(l,m),Wi=!1,Tr&&(C=df(t,i,l,m)),ff(e),C}function ff(e){G.H=xs;var t=rt!==null&&rt.next!==null;if($n=0,Et=rt=je=null,Ll=!1,bs=0,Dr=null,t)throw Error(o(300));e===null||kt||(e=e.dependencies,e!==null&&wl(e)&&(kt=!0))}function df(e,t,i,l){je=e;var m=0;do{if(Tr&&(Dr=null),bs=0,Tr=!1,25<=m)throw Error(o(301));if(m+=1,Et=rt=null,e.updateQueue!=null){var C=e.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}G.H=Wf,C=t(i,l)}while(Tr);return C}function Cv(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Cs(t):t,e=e.useState()[0],(rt!==null?rt.memoizedState:null)!==e&&(je.flags|=1024),t}function Oo(){var e=Ol!==0;return Ol=0,e}function Bo(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function No(e){if(Ll){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ll=!1}$n=0,Et=rt=je=null,Tr=!1,bs=Ol=0,Dr=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?je.memoizedState=Et=e:Et=Et.next=e,Et}function Ct(){if(rt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=Et===null?je.memoizedState:Et.next;if(t!==null)Et=t,rt=e;else{if(e===null)throw je.alternate===null?Error(o(467)):Error(o(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Et===null?je.memoizedState=Et=e:Et=Et.next=e}return Et}function Bl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cs(e){var t=bs;return bs+=1,Dr===null&&(Dr=[]),e=nf(Dr,e,t),t=je,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?Kf:Yo),e}function Nl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cs(e);if(e.$$typeof===v)return jt(e)}throw Error(o(438,String(e)))}function jo(e){var t=null,i=je.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(m){return m.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Bl(),je.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=B;return t.index++,i}function Yn(e,t){return typeof t=="function"?t(e):t}function jl(e){var t=Ct();return zo(t,rt,e)}function zo(e,t,i){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var m=e.baseQueue,C=l.pending;if(C!==null){if(m!==null){var L=m.next;m.next=C.next,C.next=L}t.baseQueue=m=C,l.pending=null}if(C=e.baseState,m===null)e.memoizedState=C;else{t=m.next;var P=L=null,W=null,re=t,he=!1;do{var pe=re.lane&-536870913;if(pe!==re.lane?(Ye&pe)===pe:($n&pe)===pe){var se=re.revertLane;if(se===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),pe===wr&&(he=!0);else if(($n&se)===se){re=re.next,se===wr&&(he=!0);continue}else pe={lane:0,revertLane:re.revertLane,gesture:null,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(P=W=pe,L=C):W=W.next=pe,je.lanes|=se,_i|=se;pe=re.action,Wi&&i(C,pe),C=re.hasEagerState?re.eagerState:i(C,pe)}else se={lane:pe,revertLane:re.revertLane,gesture:re.gesture,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null},W===null?(P=W=se,L=C):W=W.next=se,je.lanes|=pe,_i|=pe;re=re.next}while(re!==null&&re!==t);if(W===null?L=C:W.next=P,!nn(C,e.memoizedState)&&(kt=!0,he&&(i=xr,i!==null)))throw i;e.memoizedState=C,e.baseState=L,e.baseQueue=W,l.lastRenderedState=C}return m===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ho(e){var t=Ct(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=i.dispatch,m=i.pending,C=t.memoizedState;if(m!==null){i.pending=null;var L=m=m.next;do C=e(C,L.action),L=L.next;while(L!==m);nn(C,t.memoizedState)||(kt=!0),t.memoizedState=C,t.baseQueue===null&&(t.baseState=C),i.lastRenderedState=C}return[C,l]}function pf(e,t,i){var l=je,m=Ct(),C=We;if(C){if(i===void 0)throw Error(o(407));i=i()}else i=t();var L=!nn((rt||m).memoizedState,i);if(L&&(m.memoizedState=i,kt=!0),m=m.queue,Po(_f.bind(null,l,m,e),[e]),m.getSnapshot!==t||L||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,Rr(9,{destroy:void 0},gf.bind(null,l,m,i,t),null),at===null)throw Error(o(349));C||($n&127)!==0||mf(l,t,i)}return i}function mf(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=je.updateQueue,t===null?(t=Bl(),je.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function gf(e,t,i,l){t.value=i,t.getSnapshot=l,vf(t)&&yf(e)}function _f(e,t,i){return i(function(){vf(t)&&yf(e)})}function vf(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!nn(e,i)}catch{return!0}}function yf(e){var t=Ui(e,2);t!==null&&Zt(t,e,2)}function Io(e){var t=Vt();if(typeof e=="function"){var i=e;if(e=i(),Wi){It(!0);try{i()}finally{It(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},t}function Sf(e,t,i,l){return e.baseState=i,zo(e,rt,typeof l=="function"?l:Yn)}function wv(e,t,i,l,m){if(Il(e))throw Error(o(485));if(e=t.action,e!==null){var C={payload:m,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){C.listeners.push(L)}};G.T!==null?i(!0):C.isTransition=!1,l(C),i=t.pending,i===null?(C.next=t.pending=C,bf(t,C)):(C.next=i.next,t.pending=i.next=C)}}function bf(e,t){var i=t.action,l=t.payload,m=e.state;if(t.isTransition){var C=G.T,L={};G.T=L;try{var P=i(m,l),W=G.S;W!==null&&W(L,P),Cf(e,t,P)}catch(re){Uo(e,t,re)}finally{C!==null&&L.types!==null&&(C.types=L.types),G.T=C}}else try{C=i(m,l),Cf(e,t,C)}catch(re){Uo(e,t,re)}}function Cf(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){wf(e,t,l)},function(l){return Uo(e,t,l)}):wf(e,t,i)}function wf(e,t,i){t.status="fulfilled",t.value=i,xf(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,bf(e,i)))}function Uo(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,xf(t),t=t.next;while(t!==l)}e.action=null}function xf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ef(e,t){return t}function kf(e,t){if(We){var i=at.formState;if(i!==null){e:{var l=je;if(We){if(ht){t:{for(var m=ht,C=vn;m.nodeType!==8;){if(!C){m=null;break t}if(m=Sn(m.nextSibling),m===null){m=null;break t}}C=m.data,m=C==="F!"||C==="F"?m:null}if(m){ht=Sn(m.nextSibling),l=m.data==="F!";break e}}oi(l)}l=!1}l&&(t=i[0])}}return i=Vt(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ef,lastRenderedState:t},i.queue=l,i=Gf.bind(null,je,l),l.dispatch=i,l=Io(!1),C=$o.bind(null,je,!1,l.queue),l=Vt(),m={state:t,dispatch:null,action:e,pending:null},l.queue=m,i=wv.bind(null,je,m,C,i),m.dispatch=i,l.memoizedState=e,[t,i,!1]}function Af(e){var t=Ct();return Tf(t,rt,e)}function Tf(e,t,i){if(t=zo(e,t,Ef)[0],e=jl(Yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Cs(t)}catch(L){throw L===Er?kl:L}else l=t;t=Ct();var m=t.queue,C=m.dispatch;return i!==t.memoizedState&&(je.flags|=2048,Rr(9,{destroy:void 0},xv.bind(null,m,i),null)),[l,C,e]}function xv(e,t){e.action=t}function Df(e){var t=Ct(),i=rt;if(i!==null)return Tf(t,i,e);Ct(),t=t.memoizedState,i=Ct();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function Rr(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=je.updateQueue,t===null&&(t=Bl(),je.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function Rf(){return Ct().memoizedState}function zl(e,t,i,l){var m=Vt();je.flags|=e,m.memoizedState=Rr(1|t,{destroy:void 0},i,l===void 0?null:l)}function Hl(e,t,i,l){var m=Ct();l=l===void 0?null:l;var C=m.memoizedState.inst;rt!==null&&l!==null&&Mo(l,rt.memoizedState.deps)?m.memoizedState=Rr(t,C,i,l):(je.flags|=e,m.memoizedState=Rr(1|t,C,i,l))}function Mf(e,t){zl(8390656,8,e,t)}function Po(e,t){Hl(2048,8,e,t)}function Ev(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Bl(),je.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Lf(e){var t=Ct().memoizedState;return Ev({ref:t,nextImpl:e}),function(){if((Je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Of(e,t){return Hl(4,2,e,t)}function Bf(e,t){return Hl(4,4,e,t)}function Nf(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jf(e,t,i){i=i!=null?i.concat([e]):null,Hl(4,4,Nf.bind(null,t,e),i)}function Fo(){}function zf(e,t){var i=Ct();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&Mo(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function Hf(e,t){var i=Ct();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&Mo(t,l[1]))return l[0];if(l=e(),Wi){It(!0);try{e()}finally{It(!1)}}return i.memoizedState=[l,t],l}function qo(e,t,i){return i===void 0||($n&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Id(),je.lanes|=e,_i|=e,i)}function If(e,t,i,l){return nn(i,t)?i:Ar.current!==null?(e=qo(e,i,l),nn(e,t)||(kt=!0),e):($n&42)===0||($n&1073741824)!==0&&(Ye&261930)===0?(kt=!0,e.memoizedState=i):(e=Id(),je.lanes|=e,_i|=e,t)}function Uf(e,t,i,l,m){var C=X.p;X.p=C!==0&&8>C?C:8;var L=G.T,P={};G.T=P,$o(e,!1,t,i);try{var W=m(),re=G.S;if(re!==null&&re(P,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var he=Sv(W,l);ws(e,t,he,un(e))}else ws(e,t,l,un(e))}catch(pe){ws(e,t,{then:function(){},status:"rejected",reason:pe},un())}finally{X.p=C,L!==null&&P.types!==null&&(L.types=P.types),G.T=L}}function kv(){}function Vo(e,t,i,l){if(e.tag!==5)throw Error(o(476));var m=Pf(e).queue;Uf(e,m,t,J,i===null?kv:function(){return Ff(e),i(l)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:J},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ff(e){var t=Pf(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},un())}function Go(){return jt(Us)}function qf(){return Ct().memoizedState}function Vf(){return Ct().memoizedState}function Av(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=un();e=hi(i);var l=fi(t,e,i);l!==null&&(Zt(l,t,i),vs(l,t,i)),t={cache:So()},e.payload=t;return}t=t.return}}function Tv(e,t,i){var l=un();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Il(e)?$f(t,i):(i=oo(e,t,i,l),i!==null&&(Zt(i,e,l),Yf(i,t,l)))}function Gf(e,t,i){var l=un();ws(e,t,i,l)}function ws(e,t,i,l){var m={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Il(e))$f(t,m);else{var C=e.alternate;if(e.lanes===0&&(C===null||C.lanes===0)&&(C=t.lastRenderedReducer,C!==null))try{var L=t.lastRenderedState,P=C(L,i);if(m.hasEagerState=!0,m.eagerState=P,nn(P,L))return yl(e,t,m,0),at===null&&vl(),!1}catch{}finally{}if(i=oo(e,t,m,l),i!==null)return Zt(i,e,l),Yf(i,t,l),!0}return!1}function $o(e,t,i,l){if(l={lane:2,revertLane:xu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Il(e)){if(t)throw Error(o(479))}else t=oo(e,i,l,2),t!==null&&Zt(t,e,2)}function Il(e){var t=e.alternate;return e===je||t!==null&&t===je}function $f(e,t){Tr=Ll=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Yf(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,rr(e,i)}}var xs={readContext:jt,use:Nl,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};xs.useEffectEvent=vt;var Kf={readContext:jt,use:Nl,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Mf,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,zl(4194308,4,Nf.bind(null,t,e),i)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){zl(4,2,e,t)},useMemo:function(e,t){var i=Vt();t=t===void 0?null:t;var l=e();if(Wi){It(!0);try{e()}finally{It(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=Vt();if(i!==void 0){var m=i(t);if(Wi){It(!0);try{i(t)}finally{It(!1)}}}else m=t;return l.memoizedState=l.baseState=m,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:m},l.queue=e,e=e.dispatch=Tv.bind(null,je,e),[l.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Io(e);var t=e.queue,i=Gf.bind(null,je,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Fo,useDeferredValue:function(e,t){var i=Vt();return qo(i,e,t)},useTransition:function(){var e=Io(!1);return e=Uf.bind(null,je,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=je,m=Vt();if(We){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),at===null)throw Error(o(349));(Ye&127)!==0||mf(l,t,i)}m.memoizedState=i;var C={value:i,getSnapshot:t};return m.queue=C,Mf(_f.bind(null,l,C,e),[e]),l.flags|=2048,Rr(9,{destroy:void 0},gf.bind(null,l,C,i,t),null),i},useId:function(){var e=Vt(),t=at.identifierPrefix;if(We){var i=Mn,l=Rn;i=(l&~(1<<32-tt(l)-1)).toString(32)+i,t="_"+t+"R_"+i,i=Ol++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=bv++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Go,useFormState:kf,useActionState:kf,useOptimistic:function(e){var t=Vt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=$o.bind(null,je,!0,i),i.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Vt().memoizedState=Av.bind(null,je)},useEffectEvent:function(e){var t=Vt(),i={impl:e};return t.memoizedState=i,function(){if((Je&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Yo={readContext:jt,use:Nl,useCallback:zf,useContext:jt,useEffect:Po,useImperativeHandle:jf,useInsertionEffect:Of,useLayoutEffect:Bf,useMemo:Hf,useReducer:jl,useRef:Rf,useState:function(){return jl(Yn)},useDebugValue:Fo,useDeferredValue:function(e,t){var i=Ct();return If(i,rt.memoizedState,e,t)},useTransition:function(){var e=jl(Yn)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Cs(e),t]},useSyncExternalStore:pf,useId:qf,useHostTransitionStatus:Go,useFormState:Af,useActionState:Af,useOptimistic:function(e,t){var i=Ct();return Sf(i,rt,e,t)},useMemoCache:jo,useCacheRefresh:Vf};Yo.useEffectEvent=Lf;var Wf={readContext:jt,use:Nl,useCallback:zf,useContext:jt,useEffect:Po,useImperativeHandle:jf,useInsertionEffect:Of,useLayoutEffect:Bf,useMemo:Hf,useReducer:Ho,useRef:Rf,useState:function(){return Ho(Yn)},useDebugValue:Fo,useDeferredValue:function(e,t){var i=Ct();return rt===null?qo(i,e,t):If(i,rt.memoizedState,e,t)},useTransition:function(){var e=Ho(Yn)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Cs(e),t]},useSyncExternalStore:pf,useId:qf,useHostTransitionStatus:Go,useFormState:Df,useActionState:Df,useOptimistic:function(e,t){var i=Ct();return rt!==null?Sf(i,rt,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:jo,useCacheRefresh:Vf};Wf.useEffectEvent=Lf;function Ko(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:c({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Wo={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=un(),m=hi(l);m.payload=t,i!=null&&(m.callback=i),t=fi(e,m,l),t!==null&&(Zt(t,e,l),vs(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=un(),m=hi(l);m.tag=1,m.payload=t,i!=null&&(m.callback=i),t=fi(e,m,l),t!==null&&(Zt(t,e,l),vs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=un(),l=hi(i);l.tag=2,t!=null&&(l.callback=t),t=fi(e,l,i),t!==null&&(Zt(t,e,i),vs(t,e,i))}};function Xf(e,t,i,l,m,C,L){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,C,L):t.prototype&&t.prototype.isPureReactComponent?!cs(i,l)||!cs(m,C):!0}function Qf(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&Wo.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=c({},i));for(var m in e)i[m]===void 0&&(i[m]=e[m])}return i}function Zf(e){_l(e)}function Jf(e){console.error(e)}function ed(e){_l(e)}function Ul(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function td(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Xo(e,t,i){return i=hi(i),i.tag=3,i.payload={element:null},i.callback=function(){Ul(e,t)},i}function nd(e){return e=hi(e),e.tag=3,e}function id(e,t,i,l){var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var C=l.value;e.payload=function(){return m(C)},e.callback=function(){td(t,i,l)}}var L=i.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(e.callback=function(){td(t,i,l),typeof m!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var P=l.stack;this.componentDidCatch(l.value,{componentStack:P!==null?P:""})})}function Dv(e,t,i,l,m){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&Cr(t,i,m,!0),i=sn.current,i!==null){switch(i.tag){case 31:case 13:return yn===null?Zl():i.alternate===null&&yt===0&&(yt=3),i.flags&=-257,i.flags|=65536,i.lanes=m,l===Al?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),bu(e,l,m)),!1;case 22:return i.flags|=65536,l===Al?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),bu(e,l,m)),!1}throw Error(o(435,i.tag))}return bu(e,l,m),Zl(),!1}if(We)return t=sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=m,l!==mo&&(e=Error(o(422),{cause:l}),ds(mn(e,i)))):(l!==mo&&(t=Error(o(423),{cause:l}),ds(mn(t,i))),e=e.current.alternate,e.flags|=65536,m&=-m,e.lanes|=m,l=mn(l,i),m=Xo(e.stateNode,l,m),ko(e,m),yt!==4&&(yt=2)),!1;var C=Error(o(520),{cause:l});if(C=mn(C,i),Ls===null?Ls=[C]:Ls.push(C),yt!==4&&(yt=2),t===null)return!0;l=mn(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=m&-m,i.lanes|=e,e=Xo(i.stateNode,l,e),ko(i,e),!1;case 1:if(t=i.type,C=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(vi===null||!vi.has(C))))return i.flags|=65536,m&=-m,i.lanes|=m,m=nd(m),id(m,e,i,l),ko(i,m),!1}i=i.return}while(i!==null);return!1}var Qo=Error(o(461)),kt=!1;function zt(e,t,i,l){t.child=e===null?af(t,null,i,l):Ki(t,e.child,i,l)}function rd(e,t,i,l,m){i=i.render;var C=t.ref;if("ref"in l){var L={};for(var P in l)P!=="ref"&&(L[P]=l[P])}else L=l;return Vi(t),l=Lo(e,t,i,L,C,m),P=Oo(),e!==null&&!kt?(Bo(e,t,m),Kn(e,t,m)):(We&&P&&fo(t),t.flags|=1,zt(e,t,l,m),t.child)}function sd(e,t,i,l,m){if(e===null){var C=i.type;return typeof C=="function"&&!uo(C)&&C.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=C,ld(e,t,C,l,m)):(e=bl(i.type,null,l,t,t.mode,m),e.ref=t.ref,e.return=t,t.child=e)}if(C=e.child,!su(e,m)){var L=C.memoizedProps;if(i=i.compare,i=i!==null?i:cs,i(L,l)&&e.ref===t.ref)return Kn(e,t,m)}return t.flags|=1,e=Fn(C,l),e.ref=t.ref,e.return=t,t.child=e}function ld(e,t,i,l,m){if(e!==null){var C=e.memoizedProps;if(cs(C,l)&&e.ref===t.ref)if(kt=!1,t.pendingProps=l=C,su(e,m))(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,Kn(e,t,m)}return Zo(e,t,i,l,m)}function ad(e,t,i,l){var m=l.children,C=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(C=C!==null?C.baseLanes|i:i,e!==null){for(l=t.child=e.child,m=0;l!==null;)m=m|l.lanes|l.childLanes,l=l.sibling;l=m&~C}else l=0,t.child=null;return od(e,t,C,i,l)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,C!==null?C.cachePool:null),C!==null?cf(t,C):To(),hf(t);else return l=t.lanes=536870912,od(e,t,C!==null?C.baseLanes|i:i,i,l)}else C!==null?(El(t,C.cachePool),cf(t,C),pi(),t.memoizedState=null):(e!==null&&El(t,null),To(),pi());return zt(e,t,m,i),t.child}function Es(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function od(e,t,i,l,m){var C=Co();return C=C===null?null:{parent:xt._currentValue,pool:C},t.memoizedState={baseLanes:i,cachePool:C},e!==null&&El(t,null),To(),hf(t),e!==null&&Cr(e,t,l,!0),t.childLanes=m,null}function Pl(e,t){return t=ql({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ud(e,t,i){return Ki(t,e.child,null,i),e=Pl(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function Rv(e,t,i){var l=t.pendingProps,m=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(We){if(l.mode==="hidden")return e=Pl(t,l),t.lanes=536870912,Es(null,e);if(Ro(t),(e=ht)?(e=bp(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:li!==null?{id:Rn,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},i=Gh(e),i.return=t,t.child=i,Nt=t,ht=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return Pl(t,l)}var C=e.memoizedState;if(C!==null){var L=C.dehydrated;if(Ro(t),m)if(t.flags&256)t.flags&=-257,t=ud(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(kt||Cr(e,t,i,!1),m=(i&e.childLanes)!==0,kt||m){if(l=at,l!==null&&(L=es(l,i),L!==0&&L!==C.retryLane))throw C.retryLane=L,Ui(e,L),Zt(l,e,L),Qo;Zl(),t=ud(e,t,i)}else e=C.treeContext,ht=Sn(L.nextSibling),Nt=t,We=!0,ai=null,vn=!1,e!==null&&Kh(t,e),t=Pl(t,l),t.flags|=4096;return t}return e=Fn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Zo(e,t,i,l,m){return Vi(t),i=Lo(e,t,i,l,void 0,m),l=Oo(),e!==null&&!kt?(Bo(e,t,m),Kn(e,t,m)):(We&&l&&fo(t),t.flags|=1,zt(e,t,i,m),t.child)}function cd(e,t,i,l,m,C){return Vi(t),t.updateQueue=null,i=df(t,l,i,m),ff(e),l=Oo(),e!==null&&!kt?(Bo(e,t,C),Kn(e,t,C)):(We&&l&&fo(t),t.flags|=1,zt(e,t,i,C),t.child)}function hd(e,t,i,l,m){if(Vi(t),t.stateNode===null){var C=vr,L=i.contextType;typeof L=="object"&&L!==null&&(C=jt(L)),C=new i(l,C),t.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=Wo,t.stateNode=C,C._reactInternals=t,C=t.stateNode,C.props=l,C.state=t.memoizedState,C.refs={},xo(t),L=i.contextType,C.context=typeof L=="object"&&L!==null?jt(L):vr,C.state=t.memoizedState,L=i.getDerivedStateFromProps,typeof L=="function"&&(Ko(t,i,L,l),C.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(L=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),L!==C.state&&Wo.enqueueReplaceState(C,C.state,null),Ss(t,l,C,m),ys(),C.state=t.memoizedState),typeof C.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){C=t.stateNode;var P=t.memoizedProps,W=Xi(i,P);C.props=W;var re=C.context,he=i.contextType;L=vr,typeof he=="object"&&he!==null&&(L=jt(he));var pe=i.getDerivedStateFromProps;he=typeof pe=="function"||typeof C.getSnapshotBeforeUpdate=="function",P=t.pendingProps!==P,he||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(P||re!==L)&&Qf(t,C,l,L),ci=!1;var se=t.memoizedState;C.state=se,Ss(t,l,C,m),ys(),re=t.memoizedState,P||se!==re||ci?(typeof pe=="function"&&(Ko(t,i,pe,l),re=t.memoizedState),(W=ci||Xf(t,i,W,l,se,re,L))?(he||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(t.flags|=4194308)):(typeof C.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=re),C.props=l,C.state=re,C.context=L,l=W):(typeof C.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{C=t.stateNode,Eo(e,t),L=t.memoizedProps,he=Xi(i,L),C.props=he,pe=t.pendingProps,se=C.context,re=i.contextType,W=vr,typeof re=="object"&&re!==null&&(W=jt(re)),P=i.getDerivedStateFromProps,(re=typeof P=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(L!==pe||se!==W)&&Qf(t,C,l,W),ci=!1,se=t.memoizedState,C.state=se,Ss(t,l,C,m),ys();var oe=t.memoizedState;L!==pe||se!==oe||ci||e!==null&&e.dependencies!==null&&wl(e.dependencies)?(typeof P=="function"&&(Ko(t,i,P,l),oe=t.memoizedState),(he=ci||Xf(t,i,he,l,se,oe,W)||e!==null&&e.dependencies!==null&&wl(e.dependencies))?(re||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(l,oe,W),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(l,oe,W)),typeof C.componentDidUpdate=="function"&&(t.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof C.componentDidUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=oe),C.props=l,C.state=oe,C.context=W,l=he):(typeof C.componentDidUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===e.memoizedProps&&se===e.memoizedState||(t.flags|=1024),l=!1)}return C=l,Fl(e,t),l=(t.flags&128)!==0,C||l?(C=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:C.render(),t.flags|=1,e!==null&&l?(t.child=Ki(t,e.child,null,m),t.child=Ki(t,null,i,m)):zt(e,t,i,m),t.memoizedState=C.state,e=t.child):e=Kn(e,t,m),e}function fd(e,t,i,l){return Fi(),t.flags|=256,zt(e,t,i,l),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eu(e){return{baseLanes:e,cachePool:ef()}}function tu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=on),e}function dd(e,t,i){var l=t.pendingProps,m=!1,C=(t.flags&128)!==0,L;if((L=C)||(L=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),L&&(m=!0,t.flags&=-129),L=(t.flags&32)!==0,t.flags&=-33,e===null){if(We){if(m?di(t):pi(),(e=ht)?(e=bp(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:li!==null?{id:Rn,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},i=Gh(e),i.return=t,t.child=i,Nt=t,ht=null)):e=null,e===null)throw oi(t);return zu(e)?t.lanes=32:t.lanes=536870912,null}var P=l.children;return l=l.fallback,m?(pi(),m=t.mode,P=ql({mode:"hidden",children:P},m),l=Pi(l,m,i,null),P.return=t,l.return=t,P.sibling=l,t.child=P,l=t.child,l.memoizedState=eu(i),l.childLanes=tu(e,L,i),t.memoizedState=Jo,Es(null,l)):(di(t),nu(t,P))}var W=e.memoizedState;if(W!==null&&(P=W.dehydrated,P!==null)){if(C)t.flags&256?(di(t),t.flags&=-257,t=iu(e,t,i)):t.memoizedState!==null?(pi(),t.child=e.child,t.flags|=128,t=null):(pi(),P=l.fallback,m=t.mode,l=ql({mode:"visible",children:l.children},m),P=Pi(P,m,i,null),P.flags|=2,l.return=t,P.return=t,l.sibling=P,t.child=l,Ki(t,e.child,null,i),l=t.child,l.memoizedState=eu(i),l.childLanes=tu(e,L,i),t.memoizedState=Jo,t=Es(null,l));else if(di(t),zu(P)){if(L=P.nextSibling&&P.nextSibling.dataset,L)var re=L.dgst;L=re,l=Error(o(419)),l.stack="",l.digest=L,ds({value:l,source:null,stack:null}),t=iu(e,t,i)}else if(kt||Cr(e,t,i,!1),L=(i&e.childLanes)!==0,kt||L){if(L=at,L!==null&&(l=es(L,i),l!==0&&l!==W.retryLane))throw W.retryLane=l,Ui(e,l),Zt(L,e,l),Qo;ju(P)||Zl(),t=iu(e,t,i)}else ju(P)?(t.flags|=192,t.child=e.child,t=null):(e=W.treeContext,ht=Sn(P.nextSibling),Nt=t,We=!0,ai=null,vn=!1,e!==null&&Kh(t,e),t=nu(t,l.children),t.flags|=4096);return t}return m?(pi(),P=l.fallback,m=t.mode,W=e.child,re=W.sibling,l=Fn(W,{mode:"hidden",children:l.children}),l.subtreeFlags=W.subtreeFlags&65011712,re!==null?P=Fn(re,P):(P=Pi(P,m,i,null),P.flags|=2),P.return=t,l.return=t,l.sibling=P,t.child=l,Es(null,l),l=t.child,P=e.child.memoizedState,P===null?P=eu(i):(m=P.cachePool,m!==null?(W=xt._currentValue,m=m.parent!==W?{parent:W,pool:W}:m):m=ef(),P={baseLanes:P.baseLanes|i,cachePool:m}),l.memoizedState=P,l.childLanes=tu(e,L,i),t.memoizedState=Jo,Es(e.child,l)):(di(t),i=e.child,e=i.sibling,i=Fn(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(L=t.deletions,L===null?(t.deletions=[e],t.flags|=16):L.push(e)),t.child=i,t.memoizedState=null,i)}function nu(e,t){return t=ql({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ql(e,t){return e=rn(22,e,null,t),e.lanes=0,e}function iu(e,t,i){return Ki(t,e.child,null,i),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),vo(e.return,t,i)}function ru(e,t,i,l,m,C){var L=e.memoizedState;L===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:m,treeForkCount:C}:(L.isBackwards=t,L.rendering=null,L.renderingStartTime=0,L.last=l,L.tail=i,L.tailMode=m,L.treeForkCount=C)}function md(e,t,i){var l=t.pendingProps,m=l.revealOrder,C=l.tail;l=l.children;var L=bt.current,P=(L&2)!==0;if(P?(L=L&1|2,t.flags|=128):L&=1,U(bt,L),zt(e,t,l,i),l=We?fs:0,!P&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,i,t);else if(e.tag===19)pd(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(m){case"forwards":for(i=t.child,m=null;i!==null;)e=i.alternate,e!==null&&Ml(e)===null&&(m=i),i=i.sibling;i=m,i===null?(m=t.child,t.child=null):(m=i.sibling,i.sibling=null),ru(t,!1,m,i,C,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,m=t.child,t.child=null;m!==null;){if(e=m.alternate,e!==null&&Ml(e)===null){t.child=m;break}e=m.sibling,m.sibling=i,i=m,m=e}ru(t,!0,i,null,C,l);break;case"together":ru(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Kn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Cr(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=Fn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Fn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function su(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wl(e)))}function Mv(e,t,i){switch(t.tag){case 3:H(t,t.stateNode.containerInfo),ui(t,xt,e.memoizedState.cache),Fi();break;case 27:case 5:Z(t);break;case 4:H(t,t.stateNode.containerInfo);break;case 10:ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(di(t),t.flags|=128,null):(i&t.child.childLanes)!==0?dd(e,t,i):(di(t),e=Kn(e,t,i),e!==null?e.sibling:null);di(t);break;case 19:var m=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(Cr(e,t,i,!1),l=(i&t.childLanes)!==0),m){if(l)return md(e,t,i);t.flags|=128}if(m=t.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),U(bt,bt.current),l)break;return null;case 22:return t.lanes=0,ad(e,t,i,t.pendingProps);case 24:ui(t,xt,e.memoizedState.cache)}return Kn(e,t,i)}function gd(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)kt=!0;else{if(!su(e,i)&&(t.flags&128)===0)return kt=!1,Mv(e,t,i);kt=(e.flags&131072)!==0}else kt=!1,We&&(t.flags&1048576)!==0&&Yh(t,fs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")uo(e)?(l=Xi(e,l),t.tag=1,t=hd(null,t,e,l,i)):(t.tag=0,t=Zo(null,t,e,l,i));else{if(e!=null){var m=e.$$typeof;if(m===k){t.tag=11,t=rd(null,t,e,l,i);break e}else if(m===T){t.tag=14,t=sd(null,t,e,l,i);break e}}throw t=Y(e)||e,Error(o(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,m=Xi(l,t.pendingProps),hd(e,t,l,m,i);case 3:e:{if(H(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var C=t.memoizedState;m=C.element,Eo(e,t),Ss(t,l,null,i);var L=t.memoizedState;if(l=L.cache,ui(t,xt,l),l!==C.cache&&yo(t,[xt],i,!0),ys(),l=L.element,C.isDehydrated)if(C={element:l,isDehydrated:!1,cache:L.cache},t.updateQueue.baseState=C,t.memoizedState=C,t.flags&256){t=fd(e,t,l,i);break e}else if(l!==m){m=mn(Error(o(424)),t),ds(m),t=fd(e,t,l,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=Sn(e.firstChild),Nt=t,We=!0,ai=null,vn=!0,i=af(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Fi(),l===m){t=Kn(e,t,i);break e}zt(e,t,l,i)}t=t.child}return t;case 26:return Fl(e,t),e===null?(i=Ap(t.type,null,t.pendingProps,null))?t.memoizedState=i:We||(i=t.type,e=t.pendingProps,l=sa(me.current).createElement(i),l[Bt]=t,l[$t]=e,Ht(l,i,e),Mt(l),t.stateNode=l):t.memoizedState=Ap(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),e===null&&We&&(l=t.stateNode=xp(t.type,t.pendingProps,me.current),Nt=t,vn=!0,m=ht,Ci(t.type)?(Hu=m,ht=Sn(l.firstChild)):ht=m),zt(e,t,t.pendingProps.children,i),Fl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&We&&((m=l=ht)&&(l=a0(l,t.type,t.pendingProps,vn),l!==null?(t.stateNode=l,Nt=t,ht=Sn(l.firstChild),vn=!1,m=!0):m=!1),m||oi(t)),Z(t),m=t.type,C=t.pendingProps,L=e!==null?e.memoizedProps:null,l=C.children,Ou(m,C)?l=null:L!==null&&Ou(m,L)&&(t.flags|=32),t.memoizedState!==null&&(m=Lo(e,t,Cv,null,null,i),Us._currentValue=m),Fl(e,t),zt(e,t,l,i),t.child;case 6:return e===null&&We&&((e=i=ht)&&(i=o0(i,t.pendingProps,vn),i!==null?(t.stateNode=i,Nt=t,ht=null,e=!0):e=!1),e||oi(t)),null;case 13:return dd(e,t,i);case 4:return H(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ki(t,null,l,i):zt(e,t,l,i),t.child;case 11:return rd(e,t,t.type,t.pendingProps,i);case 7:return zt(e,t,t.pendingProps,i),t.child;case 8:return zt(e,t,t.pendingProps.children,i),t.child;case 12:return zt(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,ui(t,t.type,l.value),zt(e,t,l.children,i),t.child;case 9:return m=t.type._context,l=t.pendingProps.children,Vi(t),m=jt(m),l=l(m),t.flags|=1,zt(e,t,l,i),t.child;case 14:return sd(e,t,t.type,t.pendingProps,i);case 15:return ld(e,t,t.type,t.pendingProps,i);case 19:return md(e,t,i);case 31:return Rv(e,t,i);case 22:return ad(e,t,i,t.pendingProps);case 24:return Vi(t),l=jt(xt),e===null?(m=Co(),m===null&&(m=at,C=So(),m.pooledCache=C,C.refCount++,C!==null&&(m.pooledCacheLanes|=i),m=C),t.memoizedState={parent:l,cache:m},xo(t),ui(t,xt,m)):((e.lanes&i)!==0&&(Eo(e,t),Ss(t,null,null,i),ys()),m=e.memoizedState,C=t.memoizedState,m.parent!==l?(m={parent:l,cache:l},t.memoizedState=m,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=m),ui(t,xt,l)):(l=C.cache,ui(t,xt,l),l!==m.cache&&yo(t,[xt],i,!0))),zt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Wn(e){e.flags|=4}function lu(e,t,i,l,m){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(m&335544128)===m)if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw Yi=Al,wo}else e.flags&=-16777217}function _d(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lp(t))if(qd())e.flags|=8192;else throw Yi=Al,wo}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mt():536870912,e.lanes|=t,Br|=t)}function ks(e,t){if(!We)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var m=e.child;m!==null;)i|=m.lanes|m.childLanes,l|=m.subtreeFlags&65011712,l|=m.flags&65011712,m.return=e,m=m.sibling;else for(m=e.child;m!==null;)i|=m.lanes|m.childLanes,l|=m.subtreeFlags,l|=m.flags,m.return=e,m=m.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function Lv(e,t,i){var l=t.pendingProps;switch(po(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Gn(xt),te(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(br(t)?Wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,go())),ft(t),null;case 26:var m=t.type,C=t.memoizedState;return e===null?(Wn(t),C!==null?(ft(t),_d(t,C)):(ft(t),lu(t,m,null,l,i))):C?C!==e.memoizedState?(Wn(t),ft(t),_d(t,C)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Wn(t),ft(t),lu(t,m,e,l,i)),null;case 27:if(fe(t),i=me.current,m=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ft(t),null}e=ne.current,br(t)?Wh(t):(e=xp(m,l,i),t.stateNode=e,Wn(t))}return ft(t),null;case 5:if(fe(t),m=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ft(t),null}if(C=ne.current,br(t))Wh(t);else{var L=sa(me.current);switch(C){case 1:C=L.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:C=L.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":C=L.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":C=L.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":C=L.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof l.is=="string"?L.createElement("select",{is:l.is}):L.createElement("select"),l.multiple?C.multiple=!0:l.size&&(C.size=l.size);break;default:C=typeof l.is=="string"?L.createElement(m,{is:l.is}):L.createElement(m)}}C[Bt]=t,C[$t]=l;e:for(L=t.child;L!==null;){if(L.tag===5||L.tag===6)C.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===t)break e;for(;L.sibling===null;){if(L.return===null||L.return===t)break e;L=L.return}L.sibling.return=L.return,L=L.sibling}t.stateNode=C;e:switch(Ht(C,m,l),m){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Wn(t)}}return ft(t),lu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Wn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,br(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,m=Nt,m!==null)switch(m.tag){case 27:case 5:l=m.memoizedProps}e[Bt]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||dp(e.nodeValue,i)),e||oi(t,!0)}else e=sa(e).createTextNode(l),e[Bt]=t,t.stateNode=e}return ft(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(l=br(t),i!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Bt]=t}else Fi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else i=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ft(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(m=br(t),l!==null&&l.dehydrated!==null){if(e===null){if(!m)throw Error(o(318));if(m=t.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(o(317));m[Bt]=t}else Fi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),m=!1}else m=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=m),m=!0;if(!m)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(t),(t.flags&128)!==0?(t.lanes=i,t):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=t.child,m=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(m=l.alternate.memoizedState.cachePool.pool),C=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(C=l.memoizedState.cachePool.pool),C!==m&&(l.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Vl(t,t.updateQueue),ft(t),null);case 4:return te(),e===null&&Tu(t.stateNode.containerInfo),ft(t),null;case 10:return Gn(t.type),ft(t),null;case 19:if(V(bt),l=t.memoizedState,l===null)return ft(t),null;if(m=(t.flags&128)!==0,C=l.rendering,C===null)if(m)ks(l,!1);else{if(yt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(C=Ml(e),C!==null){for(t.flags|=128,ks(l,!1),e=C.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Vh(i,e),i=i.sibling;return U(bt,bt.current&1|2),We&&qn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ct()>Wl&&(t.flags|=128,m=!0,ks(l,!1),t.lanes=4194304)}else{if(!m)if(e=Ml(C),e!==null){if(t.flags|=128,m=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),ks(l,!0),l.tail===null&&l.tailMode==="hidden"&&!C.alternate&&!We)return ft(t),null}else 2*ct()-l.renderingStartTime>Wl&&i!==536870912&&(t.flags|=128,m=!0,ks(l,!1),t.lanes=4194304);l.isBackwards?(C.sibling=t.child,t.child=C):(e=l.last,e!==null?e.sibling=C:t.child=C,l.last=C)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ct(),e.sibling=null,i=bt.current,U(bt,m?i&1|2:i&1),We&&qn(t,l.treeForkCount),e):(ft(t),null);case 22:case 23:return ln(t),Do(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),i=t.updateQueue,i!==null&&Vl(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&V(Gi),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Gn(xt),ft(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Ov(e,t){switch(po(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(xt),te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(o(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(bt),null;case 4:return te(),null;case 10:return Gn(t.type),null;case 22:case 23:return ln(t),Do(),e!==null&&V(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gn(xt),null;case 25:return null;default:return null}}function vd(e,t){switch(po(t),t.tag){case 3:Gn(xt),te();break;case 26:case 27:case 5:fe(t);break;case 4:te();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:V(bt);break;case 10:Gn(t.type);break;case 22:case 23:ln(t),Do(),e!==null&&V(Gi);break;case 24:Gn(xt)}}function As(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var m=l.next;i=m;do{if((i.tag&e)===e){l=void 0;var C=i.create,L=i.inst;l=C(),L.destroy=l}i=i.next}while(i!==m)}}catch(P){it(t,t.return,P)}}function mi(e,t,i){try{var l=t.updateQueue,m=l!==null?l.lastEffect:null;if(m!==null){var C=m.next;l=C;do{if((l.tag&e)===e){var L=l.inst,P=L.destroy;if(P!==void 0){L.destroy=void 0,m=t;var W=i,re=P;try{re()}catch(he){it(m,W,he)}}}l=l.next}while(l!==C)}}catch(he){it(t,t.return,he)}}function yd(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{uf(t,i)}catch(l){it(e,e.return,l)}}}function Sd(e,t,i){i.props=Xi(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){it(e,t,l)}}function Ts(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(m){it(e,t,m)}}function Ln(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(m){it(e,t,m)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(m){it(e,t,m)}else i.current=null}function bd(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(m){it(e,e.return,m)}}function au(e,t,i){try{var l=e.stateNode;t0(l,e.type,i,t),l[$t]=t}catch(m){it(e,e.return,m)}}function Cd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ci(e.type)||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ci(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uu(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Un));else if(l!==4&&(l===27&&Ci(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,i),e=e.sibling;e!==null;)uu(e,t,i),e=e.sibling}function Gl(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&Ci(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Gl(e,t,i),e=e.sibling;e!==null;)Gl(e,t,i),e=e.sibling}function wd(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,m=t.attributes;m.length;)t.removeAttributeNode(m[0]);Ht(t,l,i),t[Bt]=e,t[$t]=i}catch(C){it(e,e.return,C)}}var Xn=!1,At=!1,cu=!1,xd=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function Bv(e,t){if(e=e.containerInfo,Mu=fa,e=Nh(e),no(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var m=l.anchorOffset,C=l.focusNode;l=l.focusOffset;try{i.nodeType,C.nodeType}catch{i=null;break e}var L=0,P=-1,W=-1,re=0,he=0,pe=e,se=null;t:for(;;){for(var oe;pe!==i||m!==0&&pe.nodeType!==3||(P=L+m),pe!==C||l!==0&&pe.nodeType!==3||(W=L+l),pe.nodeType===3&&(L+=pe.nodeValue.length),(oe=pe.firstChild)!==null;)se=pe,pe=oe;for(;;){if(pe===e)break t;if(se===i&&++re===m&&(P=L),se===C&&++he===l&&(W=L),(oe=pe.nextSibling)!==null)break;pe=se,se=pe.parentNode}pe=oe}i=P===-1||W===-1?null:{start:P,end:W}}else i=null}i=i||{start:0,end:0}}else i=null;for(Lu={focusedElem:e,selectionRange:i},fa=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){switch(t=Lt,C=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)m=e[i],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&C!==null){e=void 0,i=t,m=C.memoizedProps,C=C.memoizedState,l=i.stateNode;try{var we=Xi(i.type,m);e=l.getSnapshotBeforeUpdate(we,C),l.__reactInternalSnapshotBeforeUpdate=e}catch(De){it(i,i.return,De)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Nu(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}}function Ed(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Zn(e,i),l&4&&As(5,i);break;case 1:if(Zn(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(L){it(i,i.return,L)}else{var m=Xi(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(m,t,e.__reactInternalSnapshotBeforeUpdate)}catch(L){it(i,i.return,L)}}l&64&&yd(i),l&512&&Ts(i,i.return);break;case 3:if(Zn(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{uf(e,t)}catch(L){it(i,i.return,L)}}break;case 27:t===null&&l&4&&wd(i);case 26:case 5:Zn(e,i),t===null&&l&4&&bd(i),l&512&&Ts(i,i.return);break;case 12:Zn(e,i);break;case 31:Zn(e,i),l&4&&Td(e,i);break;case 13:Zn(e,i),l&4&&Dd(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=qv.bind(null,i),u0(e,i))));break;case 22:if(l=i.memoizedState!==null||Xn,!l){t=t!==null&&t.memoizedState!==null||At,m=Xn;var C=At;Xn=l,(At=t)&&!C?Jn(e,i,(i.subtreeFlags&8772)!==0):Zn(e,i),Xn=m,At=C}break;case 30:break;default:Zn(e,i)}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ia(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gt=null,Kt=!1;function Qn(e,t,i){for(i=i.child;i!==null;)Ad(e,t,i),i=i.sibling}function Ad(e,t,i){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Dt,i)}catch{}switch(i.tag){case 26:At||Ln(i,t),Qn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:At||Ln(i,t);var l=gt,m=Kt;Ci(i.type)&&(gt=i.stateNode,Kt=!1),Qn(e,t,i),zs(i.stateNode),gt=l,Kt=m;break;case 5:At||Ln(i,t);case 6:if(l=gt,m=Kt,gt=null,Qn(e,t,i),gt=l,Kt=m,gt!==null)if(Kt)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(i.stateNode)}catch(C){it(i,t,C)}else try{gt.removeChild(i.stateNode)}catch(C){it(i,t,C)}break;case 18:gt!==null&&(Kt?(e=gt,yp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Fr(e)):yp(gt,i.stateNode));break;case 4:l=gt,m=Kt,gt=i.stateNode.containerInfo,Kt=!0,Qn(e,t,i),gt=l,Kt=m;break;case 0:case 11:case 14:case 15:mi(2,i,t),At||mi(4,i,t),Qn(e,t,i);break;case 1:At||(Ln(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Sd(i,t,l)),Qn(e,t,i);break;case 21:Qn(e,t,i);break;case 22:At=(l=At)||i.memoizedState!==null,Qn(e,t,i),At=l;break;default:Qn(e,t,i)}}function Td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fr(e)}catch(i){it(t,t.return,i)}}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fr(e)}catch(i){it(t,t.return,i)}}function Nv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xd),t;default:throw Error(o(435,e.tag))}}function $l(e,t){var i=Nv(e);t.forEach(function(l){if(!i.has(l)){i.add(l);var m=Vv.bind(null,e,l);l.then(m,m)}})}function Wt(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var m=i[l],C=e,L=t,P=L;e:for(;P!==null;){switch(P.tag){case 27:if(Ci(P.type)){gt=P.stateNode,Kt=!1;break e}break;case 5:gt=P.stateNode,Kt=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,Kt=!0;break e}P=P.return}if(gt===null)throw Error(o(160));Ad(C,L,m),gt=null,Kt=!1,C=m.alternate,C!==null&&(C.return=null),m.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rd(t,e),t=t.sibling}var En=null;function Rd(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wt(t,e),Xt(e),l&4&&(mi(3,e,e.return),As(3,e),mi(5,e,e.return));break;case 1:Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),l&64&&Xn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var m=En;if(Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),l&4){var C=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,m=m.ownerDocument||m;t:switch(l){case"title":C=m.getElementsByTagName("title")[0],(!C||C[ts]||C[Bt]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=m.createElement(l),m.head.insertBefore(C,m.querySelector("head > title"))),Ht(C,l,i),C[Bt]=e,Mt(C),l=C;break e;case"link":var L=Rp("link","href",m).get(l+(i.href||""));if(L){for(var P=0;P<L.length;P++)if(C=L[P],C.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&C.getAttribute("rel")===(i.rel==null?null:i.rel)&&C.getAttribute("title")===(i.title==null?null:i.title)&&C.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){L.splice(P,1);break t}}C=m.createElement(l),Ht(C,l,i),m.head.appendChild(C);break;case"meta":if(L=Rp("meta","content",m).get(l+(i.content||""))){for(P=0;P<L.length;P++)if(C=L[P],C.getAttribute("content")===(i.content==null?null:""+i.content)&&C.getAttribute("name")===(i.name==null?null:i.name)&&C.getAttribute("property")===(i.property==null?null:i.property)&&C.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&C.getAttribute("charset")===(i.charSet==null?null:i.charSet)){L.splice(P,1);break t}}C=m.createElement(l),Ht(C,l,i),m.head.appendChild(C);break;default:throw Error(o(468,l))}C[Bt]=e,Mt(C),l=C}e.stateNode=l}else Mp(m,e.type,e.stateNode);else e.stateNode=Dp(m,l,e.memoizedProps);else C!==l?(C===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):C.count--,l===null?Mp(m,e.type,e.stateNode):Dp(m,l,e.memoizedProps)):l===null&&e.stateNode!==null&&au(e,e.memoizedProps,i.memoizedProps)}break;case 27:Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),i!==null&&l&4&&au(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Wt(t,e),Xt(e),l&512&&(At||i===null||Ln(i,i.return)),e.flags&32){m=e.stateNode;try{hr(m,"")}catch(we){it(e,e.return,we)}}l&4&&e.stateNode!=null&&(m=e.memoizedProps,au(e,m,i!==null?i.memoizedProps:m)),l&1024&&(cu=!0);break;case 6:if(Wt(t,e),Xt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(we){it(e,e.return,we)}}break;case 3:if(oa=null,m=En,En=la(t.containerInfo),Wt(t,e),En=m,Xt(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Fr(t.containerInfo)}catch(we){it(e,e.return,we)}cu&&(cu=!1,Md(e));break;case 4:l=En,En=la(e.stateNode.containerInfo),Wt(t,e),Xt(e),En=l;break;case 12:Wt(t,e),Xt(e);break;case 31:Wt(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$l(e,l)));break;case 13:Wt(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Kl=ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$l(e,l)));break;case 22:m=e.memoizedState!==null;var W=i!==null&&i.memoizedState!==null,re=Xn,he=At;if(Xn=re||m,At=he||W,Wt(t,e),At=he,Xn=re,Xt(e),l&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&-2:t._visibility|1,m&&(i===null||W||Xn||At||Qi(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){W=i=t;try{if(C=W.stateNode,m)L=C.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{P=W.stateNode;var pe=W.memoizedProps.style,se=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;P.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(we){it(W,W.return,we)}}}else if(t.tag===6){if(i===null){W=t;try{W.stateNode.nodeValue=m?"":W.memoizedProps}catch(we){it(W,W.return,we)}}}else if(t.tag===18){if(i===null){W=t;try{var oe=W.stateNode;m?Sp(oe,!0):Sp(W.stateNode,!1)}catch(we){it(W,W.return,we)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,$l(e,i))));break;case 19:Wt(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$l(e,l)));break;case 30:break;case 21:break;default:Wt(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(Cd(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var m=i.stateNode,C=ou(e);Gl(e,C,m);break;case 5:var L=i.stateNode;i.flags&32&&(hr(L,""),i.flags&=-33);var P=ou(e);Gl(e,P,L);break;case 3:case 4:var W=i.stateNode.containerInfo,re=ou(e);uu(e,re,W);break;default:throw Error(o(161))}}catch(he){it(e,e.return,he)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ed(e,t.alternate,t),t=t.sibling}function Qi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:mi(4,t,t.return),Qi(t);break;case 1:Ln(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Sd(t,t.return,i),Qi(t);break;case 27:zs(t.stateNode);case 26:case 5:Ln(t,t.return),Qi(t);break;case 22:t.memoizedState===null&&Qi(t);break;case 30:Qi(t);break;default:Qi(t)}e=e.sibling}}function Jn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,m=e,C=t,L=C.flags;switch(C.tag){case 0:case 11:case 15:Jn(m,C,i),As(4,C);break;case 1:if(Jn(m,C,i),l=C,m=l.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(re){it(l,l.return,re)}if(l=C,m=l.updateQueue,m!==null){var P=l.stateNode;try{var W=m.shared.hiddenCallbacks;if(W!==null)for(m.shared.hiddenCallbacks=null,m=0;m<W.length;m++)of(W[m],P)}catch(re){it(l,l.return,re)}}i&&L&64&&yd(C),Ts(C,C.return);break;case 27:wd(C);case 26:case 5:Jn(m,C,i),i&&l===null&&L&4&&bd(C),Ts(C,C.return);break;case 12:Jn(m,C,i);break;case 31:Jn(m,C,i),i&&L&4&&Td(m,C);break;case 13:Jn(m,C,i),i&&L&4&&Dd(m,C);break;case 22:C.memoizedState===null&&Jn(m,C,i),Ts(C,C.return);break;case 30:break;default:Jn(m,C,i)}t=t.sibling}}function hu(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ps(i))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ps(e))}function kn(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ld(e,t,i,l),t=t.sibling}function Ld(e,t,i,l){var m=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,i,l),m&2048&&As(9,t);break;case 1:kn(e,t,i,l);break;case 3:kn(e,t,i,l),m&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ps(e)));break;case 12:if(m&2048){kn(e,t,i,l),e=t.stateNode;try{var C=t.memoizedProps,L=C.id,P=C.onPostCommit;typeof P=="function"&&P(L,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(W){it(t,t.return,W)}}else kn(e,t,i,l);break;case 31:kn(e,t,i,l);break;case 13:kn(e,t,i,l);break;case 23:break;case 22:C=t.stateNode,L=t.alternate,t.memoizedState!==null?C._visibility&2?kn(e,t,i,l):Ds(e,t):C._visibility&2?kn(e,t,i,l):(C._visibility|=2,Mr(e,t,i,l,(t.subtreeFlags&10256)!==0||!1)),m&2048&&hu(L,t);break;case 24:kn(e,t,i,l),m&2048&&fu(t.alternate,t);break;default:kn(e,t,i,l)}}function Mr(e,t,i,l,m){for(m=m&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var C=e,L=t,P=i,W=l,re=L.flags;switch(L.tag){case 0:case 11:case 15:Mr(C,L,P,W,m),As(8,L);break;case 23:break;case 22:var he=L.stateNode;L.memoizedState!==null?he._visibility&2?Mr(C,L,P,W,m):Ds(C,L):(he._visibility|=2,Mr(C,L,P,W,m)),m&&re&2048&&hu(L.alternate,L);break;case 24:Mr(C,L,P,W,m),m&&re&2048&&fu(L.alternate,L);break;default:Mr(C,L,P,W,m)}t=t.sibling}}function Ds(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,m=l.flags;switch(l.tag){case 22:Ds(i,l),m&2048&&hu(l.alternate,l);break;case 24:Ds(i,l),m&2048&&fu(l.alternate,l);break;default:Ds(i,l)}t=t.sibling}}var Rs=8192;function Lr(e,t,i){if(e.subtreeFlags&Rs)for(e=e.child;e!==null;)Od(e,t,i),e=e.sibling}function Od(e,t,i){switch(e.tag){case 26:Lr(e,t,i),e.flags&Rs&&e.memoizedState!==null&&b0(i,En,e.memoizedState,e.memoizedProps);break;case 5:Lr(e,t,i);break;case 3:case 4:var l=En;En=la(e.stateNode.containerInfo),Lr(e,t,i),En=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Rs,Rs=16777216,Lr(e,t,i),Rs=l):Lr(e,t,i));break;default:Lr(e,t,i)}}function Bd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Lt=l,jd(l,e)}Bd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nd(e),e=e.sibling}function Nd(e){switch(e.tag){case 0:case 11:case 15:Ms(e),e.flags&2048&&mi(9,e,e.return);break;case 3:Ms(e);break;case 12:Ms(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yl(e)):Ms(e);break;default:Ms(e)}}function Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Lt=l,jd(l,e)}Bd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:mi(8,t,t.return),Yl(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,Yl(t));break;default:Yl(t)}e=e.sibling}}function jd(e,t){for(;Lt!==null;){var i=Lt;switch(i.tag){case 0:case 11:case 15:mi(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ps(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Lt=l;else e:for(i=e;Lt!==null;){l=Lt;var m=l.sibling,C=l.return;if(kd(l),l===i){Lt=null;break e}if(m!==null){m.return=C,Lt=m;break e}Lt=C}}}var jv={getCacheForType:function(e){var t=jt(xt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return jt(xt).controller.signal}},zv=typeof WeakMap=="function"?WeakMap:Map,Je=0,at=null,Fe=null,Ye=0,nt=0,an=null,gi=!1,Or=!1,du=!1,ei=0,yt=0,_i=0,Zi=0,pu=0,on=0,Br=0,Ls=null,Qt=null,mu=!1,Kl=0,zd=0,Wl=1/0,Xl=null,vi=null,Rt=0,yi=null,Nr=null,ti=0,gu=0,_u=null,Hd=null,Os=0,vu=null;function un(){return(Je&2)!==0&&Ye!==0?Ye&-Ye:G.T!==null?xu():St()}function Id(){if(on===0)if((Ye&536870912)===0||We){var e=jn;jn<<=1,(jn&3932160)===0&&(jn=262144),on=e}else on=536870912;return e=sn.current,e!==null&&(e.flags|=32),on}function Zt(e,t,i){(e===at&&(nt===2||nt===9)||e.cancelPendingCommit!==null)&&(jr(e,0),Si(e,Ye,on,!1)),Ni(e,i),((Je&2)===0||e!==at)&&(e===at&&((Je&2)===0&&(Zi|=i),yt===4&&Si(e,Ye,on,!1)),On(e))}function Ud(e,t,i){if((Je&6)!==0)throw Error(o(327));var l=!i&&(t&127)===0&&(t&e.expiredLanes)===0||Hn(e,t),m=l?Uv(e,t):Su(e,t,!0),C=l;do{if(m===0){Or&&!l&&Si(e,t,0,!1);break}else{if(i=e.current.alternate,C&&!Hv(i)){m=Su(e,t,!1),C=!1;continue}if(m===2){if(C=t,e.errorRecoveryDisabledLanes&C)var L=0;else L=e.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){t=L;e:{var P=e;m=Ls;var W=P.current.memoizedState.isDehydrated;if(W&&(jr(P,L).flags|=256),L=Su(P,L,!1),L!==2){if(du&&!W){P.errorRecoveryDisabledLanes|=C,Zi|=C,m=4;break e}C=Qt,Qt=m,C!==null&&(Qt===null?Qt=C:Qt.push.apply(Qt,C))}m=L}if(C=!1,m!==2)continue}}if(m===1){jr(e,0),Si(e,t,0,!0);break}e:{switch(l=e,C=m,C){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Si(l,t,on,!gi);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(m=Kl+300-ct(),10<m)){if(Si(l,t,on,!gi),ir(l,0,!0)!==0)break e;ti=t,l.timeoutHandle=_p(Pd.bind(null,l,i,Qt,Xl,mu,t,on,Zi,Br,gi,C,"Throttled",-0,0),m);break e}Pd(l,i,Qt,Xl,mu,t,on,Zi,Br,gi,C,null,-0,0)}}break}while(!0);On(e)}function Pd(e,t,i,l,m,C,L,P,W,re,he,pe,se,oe){if(e.timeoutHandle=-1,pe=t.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},Od(t,C,pe);var we=(C&62914560)===C?Kl-ct():(C&4194048)===C?zd-ct():0;if(we=C0(pe,we),we!==null){ti=C,e.cancelPendingCommit=we(Wd.bind(null,e,t,C,i,l,m,L,P,W,he,pe,null,se,oe)),Si(e,C,L,!re);return}}Wd(e,t,C,i,l,m,L,P,W)}function Hv(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var m=i[l],C=m.getSnapshot;m=m.value;try{if(!nn(C(),m))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Si(e,t,i,l){t&=~pu,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var m=t;0<m;){var C=31-tt(m),L=1<<C;l[C]=-1,m&=~L}i!==0&&ll(e,i,t)}function Ql(){return(Je&6)===0?(Bs(0),!1):!0}function yu(){if(Fe!==null){if(nt===0)var e=Fe.return;else e=Fe,Vn=qi=null,No(e),kr=null,gs=0,e=Fe;for(;e!==null;)vd(e.alternate,e),e=e.return;Fe=null}}function jr(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,r0(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ti=0,yu(),at=e,Fe=i=Fn(e.current,null),Ye=t,nt=0,an=null,gi=!1,Or=Hn(e,t),du=!1,Br=on=pu=Zi=_i=yt=0,Qt=Ls=null,mu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var m=31-tt(l),C=1<<m;t|=e[m],l&=~C}return ei=t,vl(),i}function Fd(e,t){je=null,G.H=xs,t===Er||t===kl?(t=rf(),nt=3):t===wo?(t=rf(),nt=4):nt=t===Qo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Fe===null&&(yt=1,Ul(e,mn(t,e.current)))}function qd(){var e=sn.current;return e===null?!0:(Ye&4194048)===Ye?yn===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===yn:!1}function Vd(){var e=G.H;return G.H=xs,e===null?xs:e}function Gd(){var e=G.A;return G.A=jv,e}function Zl(){yt=4,gi||(Ye&4194048)!==Ye&&sn.current!==null||(Or=!0),(_i&134217727)===0&&(Zi&134217727)===0||at===null||Si(at,Ye,on,!1)}function Su(e,t,i){var l=Je;Je|=2;var m=Vd(),C=Gd();(at!==e||Ye!==t)&&(Xl=null,jr(e,t)),t=!1;var L=yt;e:do try{if(nt!==0&&Fe!==null){var P=Fe,W=an;switch(nt){case 8:yu(),L=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(t=!0);var re=nt;if(nt=0,an=null,zr(e,P,W,re),i&&Or){L=0;break e}break;default:re=nt,nt=0,an=null,zr(e,P,W,re)}}Iv(),L=yt;break}catch(he){Fd(e,he)}while(!0);return t&&e.shellSuspendCounter++,Vn=qi=null,Je=l,G.H=m,G.A=C,Fe===null&&(at=null,Ye=0,vl()),L}function Iv(){for(;Fe!==null;)$d(Fe)}function Uv(e,t){var i=Je;Je|=2;var l=Vd(),m=Gd();at!==e||Ye!==t?(Xl=null,Wl=ct()+500,jr(e,t)):Or=Hn(e,t);e:do try{if(nt!==0&&Fe!==null){t=Fe;var C=an;t:switch(nt){case 1:nt=0,an=null,zr(e,t,C,1);break;case 2:case 9:if(tf(C)){nt=0,an=null,Yd(t);break}t=function(){nt!==2&&nt!==9||at!==e||(nt=7),On(e)},C.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:tf(C)?(nt=0,an=null,Yd(t)):(nt=0,an=null,zr(e,t,C,7));break;case 5:var L=null;switch(Fe.tag){case 26:L=Fe.memoizedState;case 5:case 27:var P=Fe;if(L?Lp(L):P.stateNode.complete){nt=0,an=null;var W=P.sibling;if(W!==null)Fe=W;else{var re=P.return;re!==null?(Fe=re,Jl(re)):Fe=null}break t}}nt=0,an=null,zr(e,t,C,5);break;case 6:nt=0,an=null,zr(e,t,C,6);break;case 8:yu(),yt=6;break e;default:throw Error(o(462))}}Pv();break}catch(he){Fd(e,he)}while(!0);return Vn=qi=null,G.H=l,G.A=m,Je=i,Fe!==null?0:(at=null,Ye=0,vl(),yt)}function Pv(){for(;Fe!==null&&!wt();)$d(Fe)}function $d(e){var t=gd(e.alternate,e,ei);e.memoizedProps=e.pendingProps,t===null?Jl(e):Fe=t}function Yd(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=cd(i,t,t.pendingProps,t.type,void 0,Ye);break;case 11:t=cd(i,t,t.pendingProps,t.type.render,t.ref,Ye);break;case 5:No(t);default:vd(i,t),t=Fe=Vh(t,ei),t=gd(i,t,ei)}e.memoizedProps=e.pendingProps,t===null?Jl(e):Fe=t}function zr(e,t,i,l){Vn=qi=null,No(t),kr=null,gs=0;var m=t.return;try{if(Dv(e,m,t,i,Ye)){yt=1,Ul(e,mn(i,e.current)),Fe=null;return}}catch(C){if(m!==null)throw Fe=m,C;yt=1,Ul(e,mn(i,e.current)),Fe=null;return}t.flags&32768?(We||l===1?e=!0:Or||(Ye&536870912)!==0?e=!1:(gi=e=!0,(l===2||l===9||l===3||l===6)&&(l=sn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kd(t,e)):Jl(t)}function Jl(e){var t=e;do{if((t.flags&32768)!==0){Kd(t,gi);return}e=t.return;var i=Lv(t.alternate,t,ei);if(i!==null){Fe=i;return}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);yt===0&&(yt=5)}function Kd(e,t){do{var i=Ov(e.alternate,e);if(i!==null){i.flags&=32767,Fe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Fe=e;return}Fe=e=i}while(e!==null);yt=6,Fe=null}function Wd(e,t,i,l,m,C,L,P,W){e.cancelPendingCommit=null;do ea();while(Rt!==0);if((Je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(C=t.lanes|t.childLanes,C|=ao,za(e,i,C,L,P,W),e===at&&(Fe=at=null,Ye=0),Nr=t,yi=e,ti=i,gu=C,_u=m,Hd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gv(Ce,function(){return ep(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,m=X.p,X.p=2,L=Je,Je|=4;try{Bv(e,t,i)}finally{Je=L,X.p=m,G.T=l}}Rt=1,Xd(),Qd(),Zd()}}function Xd(){if(Rt===1){Rt=0;var e=yi,t=Nr,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null;var l=X.p;X.p=2;var m=Je;Je|=4;try{Rd(t,e);var C=Lu,L=Nh(e.containerInfo),P=C.focusedElem,W=C.selectionRange;if(L!==P&&P&&P.ownerDocument&&Bh(P.ownerDocument.documentElement,P)){if(W!==null&&no(P)){var re=W.start,he=W.end;if(he===void 0&&(he=re),"selectionStart"in P)P.selectionStart=re,P.selectionEnd=Math.min(he,P.value.length);else{var pe=P.ownerDocument||document,se=pe&&pe.defaultView||window;if(se.getSelection){var oe=se.getSelection(),we=P.textContent.length,De=Math.min(W.start,we),lt=W.end===void 0?De:Math.min(W.end,we);!oe.extend&&De>lt&&(L=lt,lt=De,De=L);var ee=Oh(P,De),Q=Oh(P,lt);if(ee&&Q&&(oe.rangeCount!==1||oe.anchorNode!==ee.node||oe.anchorOffset!==ee.offset||oe.focusNode!==Q.node||oe.focusOffset!==Q.offset)){var ie=pe.createRange();ie.setStart(ee.node,ee.offset),oe.removeAllRanges(),De>lt?(oe.addRange(ie),oe.extend(Q.node,Q.offset)):(ie.setEnd(Q.node,Q.offset),oe.addRange(ie))}}}}for(pe=[],oe=P;oe=oe.parentNode;)oe.nodeType===1&&pe.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<pe.length;P++){var de=pe[P];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}fa=!!Mu,Lu=Mu=null}finally{Je=m,X.p=l,G.T=i}}e.current=t,Rt=2}}function Qd(){if(Rt===2){Rt=0;var e=yi,t=Nr,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=G.T,G.T=null;var l=X.p;X.p=2;var m=Je;Je|=4;try{Ed(e,t.alternate,t)}finally{Je=m,X.p=l,G.T=i}}Rt=3}}function Zd(){if(Rt===4||Rt===3){Rt=0,ae();var e=yi,t=Nr,i=ti,l=Hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Rt=5:(Rt=0,Nr=yi=null,Jd(e,e.pendingLanes));var m=e.pendingLanes;if(m===0&&(vi=null),be(i),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Dt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=G.T,m=X.p,X.p=2,G.T=null;try{for(var C=e.onRecoverableError,L=0;L<l.length;L++){var P=l[L];C(P.value,{componentStack:P.stack})}}finally{G.T=t,X.p=m}}(ti&3)!==0&&ea(),On(e),m=e.pendingLanes,(i&261930)!==0&&(m&42)!==0?e===vu?Os++:(Os=0,vu=e):Os=0,Bs(0)}}function Jd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ps(t)))}function ea(){return Xd(),Qd(),Zd(),ep()}function ep(){if(Rt!==5)return!1;var e=yi,t=gu;gu=0;var i=be(ti),l=G.T,m=X.p;try{X.p=32>i?32:i,G.T=null,i=_u,_u=null;var C=yi,L=ti;if(Rt=0,Nr=yi=null,ti=0,(Je&6)!==0)throw Error(o(331));var P=Je;if(Je|=4,Nd(C.current),Ld(C,C.current,L,i),Je=P,Bs(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Dt,C)}catch{}return!0}finally{X.p=m,G.T=l,Jd(e,t)}}function tp(e,t,i){t=mn(i,t),t=Xo(e.stateNode,t,2),e=fi(e,t,2),e!==null&&(Ni(e,2),On(e))}function it(e,t,i){if(e.tag===3)tp(e,e,i);else for(;t!==null;){if(t.tag===3){tp(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(vi===null||!vi.has(l))){e=mn(i,e),i=nd(2),l=fi(t,i,2),l!==null&&(id(i,l,t,e),Ni(l,2),On(l));break}}t=t.return}}function bu(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new zv;var m=new Set;l.set(t,m)}else m=l.get(t),m===void 0&&(m=new Set,l.set(t,m));m.has(i)||(du=!0,m.add(i),e=Fv.bind(null,e,t,i),t.then(e,e))}function Fv(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,at===e&&(Ye&i)===i&&(yt===4||yt===3&&(Ye&62914560)===Ye&&300>ct()-Kl?(Je&2)===0&&jr(e,0):pu|=i,Br===Ye&&(Br=0)),On(e)}function np(e,t){t===0&&(t=mt()),e=Ui(e,t),e!==null&&(Ni(e,t),On(e))}function qv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),np(e,i)}function Vv(e,t){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,m=e.memoizedState;m!==null&&(i=m.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),np(e,i)}function Gv(e,t){return dt(e,t)}var ta=null,Hr=null,Cu=!1,na=!1,wu=!1,bi=0;function On(e){e!==Hr&&e.next===null&&(Hr===null?ta=Hr=e:Hr=Hr.next=e),na=!0,Cu||(Cu=!0,Yv())}function Bs(e,t){if(!wu&&na){wu=!0;do for(var i=!1,l=ta;l!==null;){if(e!==0){var m=l.pendingLanes;if(m===0)var C=0;else{var L=l.suspendedLanes,P=l.pingedLanes;C=(1<<31-tt(42|e)+1)-1,C&=m&~(L&~P),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(i=!0,lp(l,C))}else C=Ye,C=ir(l,l===at?C:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(C&3)===0||Hn(l,C)||(i=!0,lp(l,C));l=l.next}while(i);wu=!1}}function $v(){ip()}function ip(){na=Cu=!1;var e=0;bi!==0&&i0()&&(e=bi);for(var t=ct(),i=null,l=ta;l!==null;){var m=l.next,C=rp(l,t);C===0?(l.next=null,i===null?ta=m:i.next=m,m===null&&(Hr=i)):(i=l,(e!==0||(C&3)!==0)&&(na=!0)),l=m}Rt!==0&&Rt!==5||Bs(e),bi!==0&&(bi=0)}function rp(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,m=e.expirationTimes,C=e.pendingLanes&-62914561;0<C;){var L=31-tt(C),P=1<<L,W=m[L];W===-1?((P&i)===0||(P&l)!==0)&&(m[L]=Zr(P,t)):W<=t&&(e.expiredLanes|=P),C&=~P}if(t=at,i=Ye,i=ir(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(nt===2||nt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Le(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Hn(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&Le(l),be(i)){case 2:case 8:i=ye;break;case 32:i=Ce;break;case 268435456:i=Ne;break;default:i=Ce}return l=sp.bind(null,e),i=dt(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&Le(l),e.callbackPriority=2,e.callbackNode=null,2}function sp(e,t){if(Rt!==0&&Rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(ea()&&e.callbackNode!==i)return null;var l=Ye;return l=ir(e,e===at?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ud(e,l,t),rp(e,ct()),e.callbackNode!=null&&e.callbackNode===i?sp.bind(null,e):null)}function lp(e,t){if(ea())return null;Ud(e,t,!0)}function Yv(){s0(function(){(Je&6)!==0?dt(ce,$v):ip()})}function xu(){if(bi===0){var e=wr;e===0&&(e=Dn,Dn<<=1,(Dn&261888)===0&&(Dn=256)),bi=e}return bi}function ap(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cl(""+e)}function op(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function Kv(e,t,i,l,m){if(t==="submit"&&i&&i.stateNode===m){var C=ap((m[$t]||null).action),L=l.submitter;L&&(t=(t=L[$t]||null)?ap(t.formAction):L.getAttribute("formAction"),t!==null&&(C=t,L=null));var P=new pl("action","action",null,l,m);e.push({event:P,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(bi!==0){var W=L?op(m,L):new FormData(m);Vo(i,{pending:!0,data:W,method:m.method,action:C},null,W)}}else typeof C=="function"&&(P.preventDefault(),W=L?op(m,L):new FormData(m),Vo(i,{pending:!0,data:W,method:m.method,action:C},C,W))},currentTarget:m}]})}}for(var Eu=0;Eu<lo.length;Eu++){var ku=lo[Eu],Wv=ku.toLowerCase(),Xv=ku[0].toUpperCase()+ku.slice(1);xn(Wv,"on"+Xv)}xn(Hh,"onAnimationEnd"),xn(Ih,"onAnimationIteration"),xn(Uh,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(fv,"onTransitionRun"),xn(dv,"onTransitionStart"),xn(pv,"onTransitionCancel"),xn(Ph,"onTransitionEnd"),ur("onMouseEnter",["mouseout","mouseover"]),ur("onMouseLeave",["mouseout","mouseover"]),ur("onPointerEnter",["pointerout","pointerover"]),ur("onPointerLeave",["pointerout","pointerover"]),ji("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ji("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ji("onBeforeInput",["compositionend","keypress","textInput","paste"]),ji("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ji("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ji("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),Qv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ns));function up(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],m=l.event;l=l.listeners;e:{var C=void 0;if(t)for(var L=l.length-1;0<=L;L--){var P=l[L],W=P.instance,re=P.currentTarget;if(P=P.listener,W!==C&&m.isPropagationStopped())break e;C=P,m.currentTarget=re;try{C(m)}catch(he){_l(he)}m.currentTarget=null,C=W}else for(L=0;L<l.length;L++){if(P=l[L],W=P.instance,re=P.currentTarget,P=P.listener,W!==C&&m.isPropagationStopped())break e;C=P,m.currentTarget=re;try{C(m)}catch(he){_l(he)}m.currentTarget=null,C=W}}}}function qe(e,t){var i=t[Ha];i===void 0&&(i=t[Ha]=new Set);var l=e+"__bubble";i.has(l)||(cp(t,e,2,!1),i.add(l))}function Au(e,t,i){var l=0;t&&(l|=4),cp(i,e,l,t)}var ia="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[ia]){e[ia]=!0,nh.forEach(function(i){i!=="selectionchange"&&(Qv.has(i)||Au(i,!1,e),Au(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ia]||(t[ia]=!0,Au("selectionchange",!1,t))}}function cp(e,t,i,l){switch(Ip(t)){case 2:var m=E0;break;case 8:m=k0;break;default:m=qu}i=m.bind(null,t,i,e),m=void 0,!Ya||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(m=!0),l?m!==void 0?e.addEventListener(t,i,{capture:!0,passive:m}):e.addEventListener(t,i,!0):m!==void 0?e.addEventListener(t,i,{passive:m}):e.addEventListener(t,i,!1)}function Du(e,t,i,l,m){var C=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var L=l.tag;if(L===3||L===4){var P=l.stateNode.containerInfo;if(P===m)break;if(L===4)for(L=l.return;L!==null;){var W=L.tag;if((W===3||W===4)&&L.stateNode.containerInfo===m)return;L=L.return}for(;P!==null;){if(L=lr(P),L===null)return;if(W=L.tag,W===5||W===6||W===26||W===27){l=C=L;continue e}P=P.parentNode}}l=l.return}ph(function(){var re=C,he=Ga(i),pe=[];e:{var se=Fh.get(e);if(se!==void 0){var oe=pl,we=e;switch(e){case"keypress":if(fl(i)===0)break e;case"keydown":case"keyup":oe=V_;break;case"focusin":we="focus",oe=Qa;break;case"focusout":we="blur",oe=Qa;break;case"beforeblur":case"afterblur":oe=Qa;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=L_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=Y_;break;case Hh:case Ih:case Uh:oe=N_;break;case Ph:oe=W_;break;case"scroll":case"scrollend":oe=R_;break;case"wheel":oe=Q_;break;case"copy":case"cut":case"paste":oe=z_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=yh;break;case"toggle":case"beforetoggle":oe=J_}var De=(t&4)!==0,lt=!De&&(e==="scroll"||e==="scrollend"),ee=De?se!==null?se+"Capture":null:se;De=[];for(var Q=re,ie;Q!==null;){var de=Q;if(ie=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ie===null||ee===null||(de=is(Q,ee),de!=null&&De.push(js(Q,de,ie))),lt)break;Q=Q.return}0<De.length&&(se=new oe(se,we,null,i,he),pe.push({event:se,listeners:De}))}}if((t&7)===0){e:{if(se=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",se&&i!==Va&&(we=i.relatedTarget||i.fromElement)&&(lr(we)||we[sr]))break e;if((oe||se)&&(se=he.window===he?he:(se=he.ownerDocument)?se.defaultView||se.parentWindow:window,oe?(we=i.relatedTarget||i.toElement,oe=re,we=we?lr(we):null,we!==null&&(lt=y(we),De=we.tag,we!==lt||De!==5&&De!==27&&De!==6)&&(we=null)):(oe=null,we=re),oe!==we)){if(De=_h,de="onMouseLeave",ee="onMouseEnter",Q="mouse",(e==="pointerout"||e==="pointerover")&&(De=yh,de="onPointerLeave",ee="onPointerEnter",Q="pointer"),lt=oe==null?se:ns(oe),ie=we==null?se:ns(we),se=new De(de,Q+"leave",oe,i,he),se.target=lt,se.relatedTarget=ie,de=null,lr(he)===re&&(De=new De(ee,Q+"enter",we,i,he),De.target=ie,De.relatedTarget=lt,de=De),lt=de,oe&&we)t:{for(De=Zv,ee=oe,Q=we,ie=0,de=ee;de;de=De(de))ie++;de=0;for(var ke=Q;ke;ke=De(ke))de++;for(;0<ie-de;)ee=De(ee),ie--;for(;0<de-ie;)Q=De(Q),de--;for(;ie--;){if(ee===Q||Q!==null&&ee===Q.alternate){De=ee;break t}ee=De(ee),Q=De(Q)}De=null}else De=null;oe!==null&&hp(pe,se,oe,De,!1),we!==null&&lt!==null&&hp(pe,lt,we,De,!0)}}e:{if(se=re?ns(re):window,oe=se.nodeName&&se.nodeName.toLowerCase(),oe==="select"||oe==="input"&&se.type==="file")var Qe=Ah;else if(Eh(se))if(Th)Qe=uv;else{Qe=av;var Ee=lv}else oe=se.nodeName,!oe||oe.toLowerCase()!=="input"||se.type!=="checkbox"&&se.type!=="radio"?re&&qa(re.elementType)&&(Qe=Ah):Qe=ov;if(Qe&&(Qe=Qe(e,re))){kh(pe,Qe,i,he);break e}Ee&&Ee(e,se,re),e==="focusout"&&re&&se.type==="number"&&re.memoizedProps.value!=null&&Fa(se,"number",se.value)}switch(Ee=re?ns(re):window,e){case"focusin":(Eh(Ee)||Ee.contentEditable==="true")&&(mr=Ee,io=re,hs=null);break;case"focusout":hs=io=mr=null;break;case"mousedown":ro=!0;break;case"contextmenu":case"mouseup":case"dragend":ro=!1,jh(pe,i,he);break;case"selectionchange":if(hv)break;case"keydown":case"keyup":jh(pe,i,he)}var ze;if(Ja)e:{switch(e){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else pr?wh(e,i)&&(Ke="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ke="onCompositionStart");Ke&&(Sh&&i.locale!=="ko"&&(pr||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&pr&&(ze=mh()):(si=he,Ka="value"in si?si.value:si.textContent,pr=!0)),Ee=ra(re,Ke),0<Ee.length&&(Ke=new vh(Ke,e,null,i,he),pe.push({event:Ke,listeners:Ee}),ze?Ke.data=ze:(ze=xh(i),ze!==null&&(Ke.data=ze)))),(ze=tv?nv(e,i):iv(e,i))&&(Ke=ra(re,"onBeforeInput"),0<Ke.length&&(Ee=new vh("onBeforeInput","beforeinput",null,i,he),pe.push({event:Ee,listeners:Ke}),Ee.data=ze)),Kv(pe,e,re,i,he)}up(pe,t)})}function js(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ra(e,t){for(var i=t+"Capture",l=[];e!==null;){var m=e,C=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||C===null||(m=is(e,i),m!=null&&l.unshift(js(e,m,C)),m=is(e,t),m!=null&&l.push(js(e,m,C))),e.tag===3)return l;e=e.return}return[]}function Zv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hp(e,t,i,l,m){for(var C=t._reactName,L=[];i!==null&&i!==l;){var P=i,W=P.alternate,re=P.stateNode;if(P=P.tag,W!==null&&W===l)break;P!==5&&P!==26&&P!==27||re===null||(W=re,m?(re=is(i,C),re!=null&&L.unshift(js(i,re,W))):m||(re=is(i,C),re!=null&&L.push(js(i,re,W)))),i=i.return}L.length!==0&&e.push({event:t,listeners:L})}var Jv=/\r\n?/g,e0=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(Jv,`
49
+ `).replace(e0,"")}function dp(e,t){return t=fp(t),fp(e)===t}function st(e,t,i,l,m,C){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||hr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&hr(e,""+l);break;case"className":ol(e,"class",l);break;case"tabIndex":ol(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ol(e,i,l);break;case"style":fh(e,l,C);break;case"data":if(t!=="object"){ol(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=cl(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(i==="formAction"?(t!=="input"&&st(e,t,"name",m.name,m,null),st(e,t,"formEncType",m.formEncType,m,null),st(e,t,"formMethod",m.formMethod,m,null),st(e,t,"formTarget",m.formTarget,m,null)):(st(e,t,"encType",m.encType,m,null),st(e,t,"method",m.method,m,null),st(e,t,"target",m.target,m,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=cl(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=Un);break;case"onScroll":l!=null&&qe("scroll",e);break;case"onScrollEnd":l!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(m.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=cl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":qe("beforetoggle",e),qe("toggle",e),al(e,"popover",l);break;case"xlinkActuate":In(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":In(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":In(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":In(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":In(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":In(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":In(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":In(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":In(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":al(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=T_.get(i)||i,al(e,i,l))}}function Ru(e,t,i,l,m,C){switch(i){case"style":fh(e,l,C);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(m.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof l=="string"?hr(e,l):(typeof l=="number"||typeof l=="bigint")&&hr(e,""+l);break;case"onScroll":l!=null&&qe("scroll",e);break;case"onScrollEnd":l!=null&&qe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ih.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(m=i.endsWith("Capture"),t=i.slice(2,m?i.length-7:void 0),C=e[$t]||null,C=C!=null?C[i]:null,typeof C=="function"&&e.removeEventListener(t,C,m),typeof l=="function")){typeof C!="function"&&C!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,m);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):al(e,i,l)}}}function Ht(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var l=!1,m=!1,C;for(C in i)if(i.hasOwnProperty(C)){var L=i[C];if(L!=null)switch(C){case"src":l=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:st(e,t,C,L,i,null)}}m&&st(e,t,"srcSet",i.srcSet,i,null),l&&st(e,t,"src",i.src,i,null);return;case"input":qe("invalid",e);var P=C=L=m=null,W=null,re=null;for(l in i)if(i.hasOwnProperty(l)){var he=i[l];if(he!=null)switch(l){case"name":m=he;break;case"type":L=he;break;case"checked":W=he;break;case"defaultChecked":re=he;break;case"value":C=he;break;case"defaultValue":P=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(o(137,t));break;default:st(e,t,l,he,i,null)}}oh(e,C,P,W,re,L,m,!1);return;case"select":qe("invalid",e),l=L=C=null;for(m in i)if(i.hasOwnProperty(m)&&(P=i[m],P!=null))switch(m){case"value":C=P;break;case"defaultValue":L=P;break;case"multiple":l=P;default:st(e,t,m,P,i,null)}t=C,i=L,e.multiple=!!l,t!=null?cr(e,!!l,t,!1):i!=null&&cr(e,!!l,i,!0);return;case"textarea":qe("invalid",e),C=m=l=null;for(L in i)if(i.hasOwnProperty(L)&&(P=i[L],P!=null))switch(L){case"value":l=P;break;case"defaultValue":m=P;break;case"children":C=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(91));break;default:st(e,t,L,P,i,null)}ch(e,l,m,C);return;case"option":for(W in i)if(i.hasOwnProperty(W)&&(l=i[W],l!=null))switch(W){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:st(e,t,W,l,i,null)}return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(l=0;l<Ns.length;l++)qe(Ns[l],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(re in i)if(i.hasOwnProperty(re)&&(l=i[re],l!=null))switch(re){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:st(e,t,re,l,i,null)}return;default:if(qa(t)){for(he in i)i.hasOwnProperty(he)&&(l=i[he],l!==void 0&&Ru(e,t,he,l,i,void 0));return}}for(P in i)i.hasOwnProperty(P)&&(l=i[P],l!=null&&st(e,t,P,l,i,null))}function t0(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,C=null,L=null,P=null,W=null,re=null,he=null;for(oe in i){var pe=i[oe];if(i.hasOwnProperty(oe)&&pe!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":W=pe;default:l.hasOwnProperty(oe)||st(e,t,oe,null,l,pe)}}for(var se in l){var oe=l[se];if(pe=i[se],l.hasOwnProperty(se)&&(oe!=null||pe!=null))switch(se){case"type":C=oe;break;case"name":m=oe;break;case"checked":re=oe;break;case"defaultChecked":he=oe;break;case"value":L=oe;break;case"defaultValue":P=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(o(137,t));break;default:oe!==pe&&st(e,t,se,oe,l,pe)}}Pa(e,L,P,W,re,he,C,m);return;case"select":oe=L=P=se=null;for(C in i)if(W=i[C],i.hasOwnProperty(C)&&W!=null)switch(C){case"value":break;case"multiple":oe=W;default:l.hasOwnProperty(C)||st(e,t,C,null,l,W)}for(m in l)if(C=l[m],W=i[m],l.hasOwnProperty(m)&&(C!=null||W!=null))switch(m){case"value":se=C;break;case"defaultValue":P=C;break;case"multiple":L=C;default:C!==W&&st(e,t,m,C,l,W)}t=P,i=L,l=oe,se!=null?cr(e,!!i,se,!1):!!l!=!!i&&(t!=null?cr(e,!!i,t,!0):cr(e,!!i,i?[]:"",!1));return;case"textarea":oe=se=null;for(P in i)if(m=i[P],i.hasOwnProperty(P)&&m!=null&&!l.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:st(e,t,P,null,l,m)}for(L in l)if(m=l[L],C=i[L],l.hasOwnProperty(L)&&(m!=null||C!=null))switch(L){case"value":se=m;break;case"defaultValue":oe=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:m!==C&&st(e,t,L,m,l,C)}uh(e,se,oe);return;case"option":for(var we in i)if(se=i[we],i.hasOwnProperty(we)&&se!=null&&!l.hasOwnProperty(we))switch(we){case"selected":e.selected=!1;break;default:st(e,t,we,null,l,se)}for(W in l)if(se=l[W],oe=i[W],l.hasOwnProperty(W)&&se!==oe&&(se!=null||oe!=null))switch(W){case"selected":e.selected=se&&typeof se!="function"&&typeof se!="symbol";break;default:st(e,t,W,se,l,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in i)se=i[De],i.hasOwnProperty(De)&&se!=null&&!l.hasOwnProperty(De)&&st(e,t,De,null,l,se);for(re in l)if(se=l[re],oe=i[re],l.hasOwnProperty(re)&&se!==oe&&(se!=null||oe!=null))switch(re){case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(o(137,t));break;default:st(e,t,re,se,l,oe)}return;default:if(qa(t)){for(var lt in i)se=i[lt],i.hasOwnProperty(lt)&&se!==void 0&&!l.hasOwnProperty(lt)&&Ru(e,t,lt,void 0,l,se);for(he in l)se=l[he],oe=i[he],!l.hasOwnProperty(he)||se===oe||se===void 0&&oe===void 0||Ru(e,t,he,se,l,oe);return}}for(var ee in i)se=i[ee],i.hasOwnProperty(ee)&&se!=null&&!l.hasOwnProperty(ee)&&st(e,t,ee,null,l,se);for(pe in l)se=l[pe],oe=i[pe],!l.hasOwnProperty(pe)||se===oe||se==null&&oe==null||st(e,t,pe,se,l,oe)}function pp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function n0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var m=i[l],C=m.transferSize,L=m.initiatorType,P=m.duration;if(C&&P&&pp(L)){for(L=0,P=m.responseEnd,l+=1;l<i.length;l++){var W=i[l],re=W.startTime;if(re>P)break;var he=W.transferSize,pe=W.initiatorType;he&&pp(pe)&&(W=W.responseEnd,L+=he*(W<P?1:(P-re)/(W-re)))}if(--l,t+=8*(C+L)/(m.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mu=null,Lu=null;function sa(e){return e.nodeType===9?e:e.ownerDocument}function mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ou(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bu=null;function i0(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var _p=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,s0=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(l0)}:_p;function l0(e){setTimeout(function(){throw e})}function Ci(e){return e==="head"}function yp(e,t){var i=t,l=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"||i==="/&"){if(l===0){e.removeChild(m),Fr(t);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")zs(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,zs(i);for(var C=i.firstChild;C;){var L=C.nextSibling,P=C.nodeName;C[ts]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&C.rel.toLowerCase()==="stylesheet"||i.removeChild(C),C=L}}else i==="body"&&zs(e.ownerDocument.body);i=m}while(i);Fr(t)}function Sp(e,t){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=l}while(i)}function Nu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Nu(i),Ia(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function a0(e,t,i,l){for(;e.nodeType===1;){var m=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ts])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(C=e.getAttribute("rel"),C==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(C!==m.rel||e.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||e.getAttribute("title")!==(m.title==null?null:m.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(C=e.getAttribute("src"),(C!==(m.src==null?null:m.src)||e.getAttribute("type")!==(m.type==null?null:m.type)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&C&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var C=m.name==null?null:""+m.name;if(m.type==="hidden"&&e.getAttribute("name")===C)return e}else return e;if(e=Sn(e.nextSibling),e===null)break}return null}function o0(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Sn(e.nextSibling),e===null))return null;return e}function bp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Sn(e.nextSibling),e===null))return null;return e}function ju(e){return e.data==="$?"||e.data==="$~"}function zu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function u0(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Sn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hu=null;function Cp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return Sn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function wp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function xp(e,t,i){switch(t=sa(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function zs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ia(e)}var bn=new Map,Ep=new Set;function la(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=X.d;X.d={f:c0,r:h0,D:f0,C:d0,L:p0,m:m0,X:_0,S:g0,M:v0};function c0(){var e=ni.f(),t=Ql();return e||t}function h0(e){var t=ar(e);t!==null&&t.tag===5&&t.type==="form"?Ff(t):ni.r(e)}var Ir=typeof document>"u"?null:document;function kp(e,t,i){var l=Ir;if(l&&typeof t=="string"&&t){var m=dn(t);m='link[rel="'+e+'"][href="'+m+'"]',typeof i=="string"&&(m+='[crossorigin="'+i+'"]'),Ep.has(m)||(Ep.add(m),e={rel:e,crossOrigin:i,href:t},l.querySelector(m)===null&&(t=l.createElement("link"),Ht(t,"link",e),Mt(t),l.head.appendChild(t)))}}function f0(e){ni.D(e),kp("dns-prefetch",e,null)}function d0(e,t){ni.C(e,t),kp("preconnect",e,t)}function p0(e,t,i){ni.L(e,t,i);var l=Ir;if(l&&e&&t){var m='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(m+='[imagesrcset="'+dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(m+='[imagesizes="'+dn(i.imageSizes)+'"]')):m+='[href="'+dn(e)+'"]';var C=m;switch(t){case"style":C=Ur(e);break;case"script":C=Pr(e)}bn.has(C)||(e=c({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),bn.set(C,e),l.querySelector(m)!==null||t==="style"&&l.querySelector(Hs(C))||t==="script"&&l.querySelector(Is(C))||(t=l.createElement("link"),Ht(t,"link",e),Mt(t),l.head.appendChild(t)))}}function m0(e,t){ni.m(e,t);var i=Ir;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",m='link[rel="modulepreload"][as="'+dn(l)+'"][href="'+dn(e)+'"]',C=m;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=Pr(e)}if(!bn.has(C)&&(e=c({rel:"modulepreload",href:e},t),bn.set(C,e),i.querySelector(m)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Is(C)))return}l=i.createElement("link"),Ht(l,"link",e),Mt(l),i.head.appendChild(l)}}}function g0(e,t,i){ni.S(e,t,i);var l=Ir;if(l&&e){var m=or(l).hoistableStyles,C=Ur(e);t=t||"default";var L=m.get(C);if(!L){var P={loading:0,preload:null};if(L=l.querySelector(Hs(C)))P.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},i),(i=bn.get(C))&&Iu(e,i);var W=L=l.createElement("link");Mt(W),Ht(W,"link",e),W._p=new Promise(function(re,he){W.onload=re,W.onerror=he}),W.addEventListener("load",function(){P.loading|=1}),W.addEventListener("error",function(){P.loading|=2}),P.loading|=4,aa(L,t,l)}L={type:"stylesheet",instance:L,count:1,state:P},m.set(C,L)}}}function _0(e,t){ni.X(e,t);var i=Ir;if(i&&e){var l=or(i).hoistableScripts,m=Pr(e),C=l.get(m);C||(C=i.querySelector(Is(m)),C||(e=c({src:e,async:!0},t),(t=bn.get(m))&&Uu(e,t),C=i.createElement("script"),Mt(C),Ht(C,"link",e),i.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},l.set(m,C))}}function v0(e,t){ni.M(e,t);var i=Ir;if(i&&e){var l=or(i).hoistableScripts,m=Pr(e),C=l.get(m);C||(C=i.querySelector(Is(m)),C||(e=c({src:e,async:!0,type:"module"},t),(t=bn.get(m))&&Uu(e,t),C=i.createElement("script"),Mt(C),Ht(C,"link",e),i.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},l.set(m,C))}}function Ap(e,t,i,l){var m=(m=me.current)?la(m):null;if(!m)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Ur(i.href),i=or(m).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Ur(i.href);var C=or(m).hoistableStyles,L=C.get(e);if(L||(m=m.ownerDocument||m,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(e,L),(C=m.querySelector(Hs(e)))&&!C._p&&(L.instance=C,L.state.loading=5),bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},bn.set(e,i),C||y0(m,e,i,L.state))),t&&l===null)throw Error(o(528,""));return L}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pr(i),i=or(m).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ur(e){return'href="'+dn(e)+'"'}function Hs(e){return'link[rel="stylesheet"]['+e+"]"}function Tp(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function y0(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Ht(t,"link",i),Mt(t),e.head.appendChild(t))}function Pr(e){return'[src="'+dn(e)+'"]'}function Is(e){return"script[async]"+e}function Dp(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+dn(i.href)+'"]');if(l)return t.instance=l,Mt(l),l;var m=c({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Mt(l),Ht(l,"style",m),aa(l,i.precedence,e),t.instance=l;case"stylesheet":m=Ur(i.href);var C=e.querySelector(Hs(m));if(C)return t.state.loading|=4,t.instance=C,Mt(C),C;l=Tp(i),(m=bn.get(m))&&Iu(l,m),C=(e.ownerDocument||e).createElement("link"),Mt(C);var L=C;return L._p=new Promise(function(P,W){L.onload=P,L.onerror=W}),Ht(C,"link",l),t.state.loading|=4,aa(C,i.precedence,e),t.instance=C;case"script":return C=Pr(i.src),(m=e.querySelector(Is(C)))?(t.instance=m,Mt(m),m):(l=i,(m=bn.get(C))&&(l=c({},i),Uu(l,m)),e=e.ownerDocument||e,m=e.createElement("script"),Mt(m),Ht(m,"link",l),e.head.appendChild(m),t.instance=m);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,aa(l,i.precedence,e));return t.instance}function aa(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=l.length?l[l.length-1]:null,C=m,L=0;L<l.length;L++){var P=l[L];if(P.dataset.precedence===t)C=P;else if(C!==m)break}C?C.parentNode.insertBefore(e,C.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Iu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var oa=null;function Rp(e,t,i){if(oa===null){var l=new Map,m=oa=new Map;m.set(i,l)}else m=oa,l=m.get(i),l||(l=new Map,m.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),m=0;m<i.length;m++){var C=i[m];if(!(C[ts]||C[Bt]||e==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var L=C.getAttribute(t)||"";L=e+L;var P=l.get(L);P?P.push(C):l.set(L,[C])}}return l}function Mp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function S0(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function b0(e,t,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var m=Ur(l.href),C=t.querySelector(Hs(m));if(C){t=C._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ua.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=C,Mt(C);return}C=t.ownerDocument||t,l=Tp(l),(m=bn.get(m))&&Iu(l,m),C=C.createElement("link"),Mt(C);var L=C;L._p=new Promise(function(P,W){L.onload=P,L.onerror=W}),Ht(C,"link",l),i.instance=C}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=ua.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Pu=0;function C0(e,t){return e.stylesheets&&e.count===0&&ha(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&ha(e,e.stylesheets),e.unsuspend){var C=e.unsuspend;e.unsuspend=null,C()}},6e4+t);0<e.imgBytes&&Pu===0&&(Pu=62500*n0());var m=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ha(e,e.stylesheets),e.unsuspend)){var C=e.unsuspend;e.unsuspend=null,C()}},(e.imgBytes>Pu?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(m)}}:null}function ua(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ha(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ca=null;function ha(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ca=new Map,t.forEach(w0,e),ca=null,ua.call(e))}function w0(e,t){if(!(t.state.loading&4)){var i=ca.get(e);if(i)var l=i.get(null);else{i=new Map,ca.set(e,i);for(var m=e.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<m.length;C++){var L=m[C];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(i.set(L.dataset.precedence,L),l=L)}l&&i.set(null,l)}m=t.instance,L=m.getAttribute("data-precedence"),C=i.get(L)||l,C===l&&i.set(null,m),i.set(L,m),this.count++,l=ua.bind(this),m.addEventListener("load",l),m.addEventListener("error",l),C?C.parentNode.insertBefore(m,C.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(m,e.firstChild)),t.state.loading|=4}}var Us={$$typeof:v,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function x0(e,t,i,l,m,C,L,P,W){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jr(0),this.hiddenUpdates=Jr(null),this.identifierPrefix=l,this.onUncaughtError=m,this.onCaughtError=C,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function Op(e,t,i,l,m,C,L,P,W,re,he,pe){return e=new x0(e,t,i,L,W,re,he,pe,P),t=1,C===!0&&(t|=24),C=rn(3,null,null,t),e.current=C,C.stateNode=e,t=So(),t.refCount++,e.pooledCache=t,t.refCount++,C.memoizedState={element:l,isDehydrated:i,cache:t},xo(C),e}function Bp(e){return e?(e=vr,e):vr}function Np(e,t,i,l,m,C){m=Bp(m),l.context===null?l.context=m:l.pendingContext=m,l=hi(t),l.payload={element:i},C=C===void 0?null:C,C!==null&&(l.callback=C),i=fi(e,l,t),i!==null&&(Zt(i,e,t),vs(i,e,t))}function jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Fu(e,t){jp(e,t),(e=e.alternate)&&jp(e,t)}function zp(e){if(e.tag===13||e.tag===31){var t=Ui(e,67108864);t!==null&&Zt(t,e,67108864),Fu(e,67108864)}}function Hp(e){if(e.tag===13||e.tag===31){var t=un();t=le(t);var i=Ui(e,t);i!==null&&Zt(i,e,t),Fu(e,t)}}var fa=!0;function E0(e,t,i,l){var m=G.T;G.T=null;var C=X.p;try{X.p=2,qu(e,t,i,l)}finally{X.p=C,G.T=m}}function k0(e,t,i,l){var m=G.T;G.T=null;var C=X.p;try{X.p=8,qu(e,t,i,l)}finally{X.p=C,G.T=m}}function qu(e,t,i,l){if(fa){var m=Vu(l);if(m===null)Du(e,t,l,da,i),Up(e,l);else if(T0(m,e,t,i,l))l.stopPropagation();else if(Up(e,l),t&4&&-1<A0.indexOf(e)){for(;m!==null;){var C=ar(m);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var L=wn(C.pendingLanes);if(L!==0){var P=C;for(P.pendingLanes|=2,P.entangledLanes|=2;L;){var W=1<<31-tt(L);P.entanglements[1]|=W,L&=~W}On(C),(Je&6)===0&&(Wl=ct()+500,Bs(0))}}break;case 31:case 13:P=Ui(C,2),P!==null&&Zt(P,C,2),Ql(),Fu(C,2)}if(C=Vu(l),C===null&&Du(e,t,l,da,i),C===m)break;m=C}m!==null&&l.stopPropagation()}else Du(e,t,l,null,i)}}function Vu(e){return e=Ga(e),Gu(e)}var da=null;function Gu(e){if(da=null,e=lr(e),e!==null){var t=y(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=a(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return da=e,null}function Ip(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(et()){case ce:return 2;case ye:return 8;case Ce:case Ae:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var $u=!1,wi=null,xi=null,Ei=null,Ps=new Map,Fs=new Map,ki=[],A0="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".split(" ");function Up(e,t){switch(e){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":xi=null;break;case"mouseover":case"mouseout":Ei=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fs.delete(t.pointerId)}}function qs(e,t,i,l,m,C){return e===null||e.nativeEvent!==C?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:C,targetContainers:[m]},t!==null&&(t=ar(t),t!==null&&zp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,m!==null&&t.indexOf(m)===-1&&t.push(m),e)}function T0(e,t,i,l,m){switch(t){case"focusin":return wi=qs(wi,e,t,i,l,m),!0;case"dragenter":return xi=qs(xi,e,t,i,l,m),!0;case"mouseover":return Ei=qs(Ei,e,t,i,l,m),!0;case"pointerover":var C=m.pointerId;return Ps.set(C,qs(Ps.get(C)||null,e,t,i,l,m)),!0;case"gotpointercapture":return C=m.pointerId,Fs.set(C,qs(Fs.get(C)||null,e,t,i,l,m)),!0}return!1}function Pp(e){var t=lr(e.target);if(t!==null){var i=y(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,Ot(e.priority,function(){Hp(i)});return}}else if(t===31){if(t=a(i),t!==null){e.blockedOn=t,Ot(e.priority,function(){Hp(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Vu(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);Va=l,i.target.dispatchEvent(l),Va=null}else return t=ar(i),t!==null&&zp(t),e.blockedOn=i,!1;t.shift()}return!0}function Fp(e,t,i){pa(e)&&i.delete(t)}function D0(){$u=!1,wi!==null&&pa(wi)&&(wi=null),xi!==null&&pa(xi)&&(xi=null),Ei!==null&&pa(Ei)&&(Ei=null),Ps.forEach(Fp),Fs.forEach(Fp)}function ma(e,t){e.blockedOn===t&&(e.blockedOn=null,$u||($u=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,D0)))}var ga=null;function qp(e){ga!==e&&(ga=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ga===e&&(ga=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],m=e[t+2];if(typeof l!="function"){if(Gu(l||i)===null)continue;break}var C=ar(i);C!==null&&(e.splice(t,3),t-=3,Vo(C,{pending:!0,data:m,method:i.method,action:l},l,m))}}))}function Fr(e){function t(W){return ma(W,e)}wi!==null&&ma(wi,e),xi!==null&&ma(xi,e),Ei!==null&&ma(Ei,e),Ps.forEach(t),Fs.forEach(t);for(var i=0;i<ki.length;i++){var l=ki[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ki.length&&(i=ki[0],i.blockedOn===null);)Pp(i),i.blockedOn===null&&ki.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var m=i[l],C=i[l+1],L=m[$t]||null;if(typeof C=="function")L||qp(i);else if(L){var P=null;if(C&&C.hasAttribute("formAction")){if(m=C,L=C[$t]||null)P=L.formAction;else if(Gu(m)!==null)continue}else P=L.action;typeof P=="function"?i[l+1]=P:(i.splice(l,3),l-=3),qp(i)}}}function Vp(){function e(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(L){return m=L})},focusReset:"manual",scroll:"manual"})}function t(){m!==null&&(m(),m=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,m=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),m!==null&&(m(),m=null)}}}function Yu(e){this._internalRoot=e}_a.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,l=un();Np(i,l,e,t,null,null)},_a.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Np(e.current,2,null,e,null,null),Ql(),t[sr]=null}};function _a(e){this._internalRoot=e}_a.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ki.length&&t!==0&&t<ki[i].priority;i++);ki.splice(i,0,e),i===0&&Pp(e)}};var Gp=r.version;if(Gp!=="19.2.6")throw Error(o(527,Gp,"19.2.6"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var R0={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var va=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!va.isDisabled&&va.supportsFiber)try{Dt=va.inject(R0),pt=va}catch{}}return Gs.createRoot=function(e,t){if(!p(e))throw Error(o(299));var i=!1,l="",m=Zf,C=Jf,L=ed;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(m=t.onUncaughtError),t.onCaughtError!==void 0&&(C=t.onCaughtError),t.onRecoverableError!==void 0&&(L=t.onRecoverableError)),t=Op(e,1,!1,null,null,i,l,null,m,C,L,Vp),e[sr]=t.current,Tu(e),new Yu(t)},Gs.hydrateRoot=function(e,t,i){if(!p(e))throw Error(o(299));var l=!1,m="",C=Zf,L=Jf,P=ed,W=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onUncaughtError!==void 0&&(C=i.onUncaughtError),i.onCaughtError!==void 0&&(L=i.onCaughtError),i.onRecoverableError!==void 0&&(P=i.onRecoverableError),i.formState!==void 0&&(W=i.formState)),t=Op(e,1,!0,t,i??null,l,m,W,C,L,P,Vp),t.context=Bp(null),i=t.current,l=un(),l=le(l),m=hi(l),m.callback=null,fi(i,m,l),i=l,t.current.lanes=i,Ni(t,i),On(t),e[sr]=t.current,Tu(e),new _a(t)},Gs.version="19.2.6",Gs}var nm;function F0(){if(nm)return Xu.exports;nm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Xu.exports=P0(),Xu.exports}var q0=F0();const Wr=function(n,r){let p=n;const y=Xs[r];let f=null,a=0,u=null;const h=[],d={},c=function(T,E){a=p*4+17,f=(function(R){const B=new Array(R);for(let z=0;z<R;z+=1){B[z]=new Array(R);for(let q=0;q<R;q+=1)B[z][q]=null}return B})(a),S(0,0),S(a-7,0),S(0,a-7),x(),A(),_(T,E),p>=7&&b(T),u==null&&(u=k(p,y,h)),g(u,E)},S=function(T,E){for(let R=-1;R<=7;R+=1)if(!(T+R<=-1||a<=T+R))for(let B=-1;B<=7;B+=1)E+B<=-1||a<=E+B||(0<=R&&R<=6&&(B==0||B==6)||0<=B&&B<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=B&&B<=4?f[T+R][E+B]=!0:f[T+R][E+B]=!1)},w=function(){let T=0,E=0;for(let R=0;R<8;R+=1){c(!0,R);const B=Di.getLostPoint(d);(R==0||T>B)&&(T=B,E=R)}return E},A=function(){for(let T=8;T<a-8;T+=1)f[T][6]==null&&(f[T][6]=T%2==0);for(let T=8;T<a-8;T+=1)f[6][T]==null&&(f[6][T]=T%2==0)},x=function(){const T=Di.getPatternPosition(p);for(let E=0;E<T.length;E+=1)for(let R=0;R<T.length;R+=1){const B=T[E],z=T[R];if(f[B][z]==null)for(let q=-2;q<=2;q+=1)for(let F=-2;F<=2;F+=1)q==-2||q==2||F==-2||F==2||q==0&&F==0?f[B+q][z+F]=!0:f[B+q][z+F]=!1}},b=function(T){const E=Di.getBCHTypeNumber(p);for(let R=0;R<18;R+=1){const B=!T&&(E>>R&1)==1;f[Math.floor(R/3)][R%3+a-8-3]=B}for(let R=0;R<18;R+=1){const B=!T&&(E>>R&1)==1;f[R%3+a-8-3][Math.floor(R/3)]=B}},_=function(T,E){const R=y<<3|E,B=Di.getBCHTypeInfo(R);for(let z=0;z<15;z+=1){const q=!T&&(B>>z&1)==1;z<6?f[z][8]=q:z<8?f[z+1][8]=q:f[a-15+z][8]=q}for(let z=0;z<15;z+=1){const q=!T&&(B>>z&1)==1;z<8?f[8][a-z-1]=q:z<9?f[8][15-z-1+1]=q:f[8][15-z-1]=q}f[a-8][8]=!T},g=function(T,E){let R=-1,B=a-1,z=7,q=0;const F=Di.getMaskFunction(E);for(let Y=a-1;Y>0;Y-=2)for(Y==6&&(Y-=1);;){for(let K=0;K<2;K+=1)if(f[B][Y-K]==null){let G=!1;q<T.length&&(G=(T[q]>>>z&1)==1),F(B,Y-K)&&(G=!G),f[B][Y-K]=G,z-=1,z==-1&&(q+=1,z=7)}if(B+=R,B<0||a<=B){B-=R,R=-R;break}}},v=function(T,E){let R=0,B=0,z=0;const q=new Array(E.length),F=new Array(E.length);for(let X=0;X<E.length;X+=1){const J=E[X].dataCount,I=E[X].totalCount-J;B=Math.max(B,J),z=Math.max(z,I),q[X]=new Array(J);for(let U=0;U<q[X].length;U+=1)q[X][U]=255&T.getBuffer()[U+R];R+=J;const O=Di.getErrorCorrectPolynomial(I),V=el(q[X],O.getLength()-1).mod(O);F[X]=new Array(O.getLength()-1);for(let U=0;U<F[X].length;U+=1){const ne=U+V.getLength()-F[X].length;F[X][U]=ne>=0?V.getAt(ne):0}}let Y=0;for(let X=0;X<E.length;X+=1)Y+=E[X].totalCount;const K=new Array(Y);let G=0;for(let X=0;X<B;X+=1)for(let J=0;J<E.length;J+=1)X<q[J].length&&(K[G]=q[J][X],G+=1);for(let X=0;X<z;X+=1)for(let J=0;J<E.length;J+=1)X<F[J].length&&(K[G]=F[J][X],G+=1);return K},k=function(T,E,R){const B=im.getRSBlocks(T,E),z=rm();for(let F=0;F<R.length;F+=1){const Y=R[F];z.put(Y.getMode(),4),z.put(Y.getLength(),Di.getLengthInBits(Y.getMode(),T)),Y.write(z)}let q=0;for(let F=0;F<B.length;F+=1)q+=B[F].dataCount;if(z.getLengthInBits()>q*8)throw"code length overflow. ("+z.getLengthInBits()+">"+q*8+")";for(z.getLengthInBits()+4<=q*8&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=q*8||(z.put(236,8),z.getLengthInBits()>=q*8));)z.put(17,8);return v(z,B)};d.addData=function(T,E){E=E||"Byte";let R=null;switch(E){case"Numeric":R=V0(T);break;case"Alphanumeric":R=G0(T);break;case"Byte":R=$0(T);break;case"Kanji":R=Y0(T);break;default:throw"mode:"+E}h.push(R),u=null},d.isDark=function(T,E){if(T<0||a<=T||E<0||a<=E)throw T+","+E;return f[T][E]},d.getModuleCount=function(){return a},d.make=function(){if(p<1){let T=1;for(;T<40;T++){const E=im.getRSBlocks(T,y),R=rm();for(let z=0;z<h.length;z++){const q=h[z];R.put(q.getMode(),4),R.put(q.getLength(),Di.getLengthInBits(q.getMode(),T)),q.write(R)}let B=0;for(let z=0;z<E.length;z++)B+=E[z].dataCount;if(R.getLengthInBits()<=B*8)break}p=T}c(!1,w())},d.createTableTag=function(T,E){T=T||2,E=typeof E>"u"?T*4:E;let R="";R+='<table style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: "+E+"px;",R+='">',R+="<tbody>";for(let B=0;B<d.getModuleCount();B+=1){R+="<tr>";for(let z=0;z<d.getModuleCount();z+=1)R+='<td style="',R+=" border-width: 0px; border-style: none;",R+=" border-collapse: collapse;",R+=" padding: 0px; margin: 0px;",R+=" width: "+T+"px;",R+=" height: "+T+"px;",R+=" background-color: ",R+=d.isDark(B,z)?"#000000":"#ffffff",R+=";",R+='"/>';R+="</tr>"}return R+="</tbody>",R+="</table>",R},d.createSvgTag=function(T,E,R,B){let z={};typeof arguments[0]=="object"&&(z=arguments[0],T=z.cellSize,E=z.margin,R=z.alt,B=z.title),T=T||2,E=typeof E>"u"?T*4:E,R=typeof R=="string"?{text:R}:R||{},R.text=R.text||null,R.id=R.text?R.id||"qrcode-description":null,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-title":null;const q=d.getModuleCount()*T+E*2;let F,Y,K,G,X="",J;for(J="l"+T+",0 0,"+T+" -"+T+",0 0,-"+T+"z ",X+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',X+=z.scalable?"":' width="'+q+'px" height="'+q+'px"',X+=' viewBox="0 0 '+q+" "+q+'" ',X+=' preserveAspectRatio="xMinYMin meet"',X+=B.text||R.text?' role="img" aria-labelledby="'+M([B.id,R.id].join(" ").trim())+'"':"",X+=">",X+=B.text?'<title id="'+M(B.id)+'">'+M(B.text)+"</title>":"",X+=R.text?'<description id="'+M(R.id)+'">'+M(R.text)+"</description>":"",X+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',X+='<path d="',K=0;K<d.getModuleCount();K+=1)for(G=K*T+E,F=0;F<d.getModuleCount();F+=1)d.isDark(K,F)&&(Y=F*T+E,X+="M"+Y+","+G+J);return X+='" stroke="transparent" fill="black"/>',X+="</svg>",X},d.createDataURL=function(T,E){T=T||2,E=typeof E>"u"?T*4:E;const R=d.getModuleCount()*T+E*2,B=E,z=R-E;return Q0(R,R,function(q,F){if(B<=q&&q<z&&B<=F&&F<z){const Y=Math.floor((q-B)/T),K=Math.floor((F-B)/T);return d.isDark(K,Y)?0:1}else return 1})},d.createImgTag=function(T,E,R){T=T||2,E=typeof E>"u"?T*4:E;const B=d.getModuleCount()*T+E*2;let z="";return z+="<img",z+=' src="',z+=d.createDataURL(T,E),z+='"',z+=' width="',z+=B,z+='"',z+=' height="',z+=B,z+='"',R&&(z+=' alt="',z+=M(R),z+='"'),z+="/>",z};const M=function(T){let E="";for(let R=0;R<T.length;R+=1){const B=T.charAt(R);switch(B){case"<":E+="&lt;";break;case">":E+="&gt;";break;case"&":E+="&amp;";break;case'"':E+="&quot;";break;default:E+=B;break}}return E},D=function(T){T=typeof T>"u"?2:T;const R=d.getModuleCount()*1+T*2,B=T,z=R-T;let q,F,Y,K,G;const X={"██":"█","█ ":"▀"," █":"▄"," ":" "},J={"██":"▀","█ ":"▀"," █":" "," ":" "};let I="";for(q=0;q<R;q+=2){for(Y=Math.floor((q-B)/1),K=Math.floor((q+1-B)/1),F=0;F<R;F+=1)G="█",B<=F&&F<z&&B<=q&&q<z&&d.isDark(Y,Math.floor((F-B)/1))&&(G=" "),B<=F&&F<z&&B<=q+1&&q+1<z&&d.isDark(K,Math.floor((F-B)/1))?G+=" ":G+="█",I+=T<1&&q+1>=z?J[G]:X[G];I+=`
50
50
  `}return R%2&&T>0?I.substring(0,I.length-R-1)+Array(R+1).join("▀"):I.substring(0,I.length-1)};return d.createASCII=function(T,E){if(T=T||1,T<2)return D(E);T-=1,E=typeof E>"u"?T*2:E;const R=d.getModuleCount()*T+E*2,B=E,z=R-E;let q,F,Y,K;const G=Array(T+1).join("██"),X=Array(T+1).join(" ");let J="",I="";for(q=0;q<R;q+=1){for(Y=Math.floor((q-B)/T),I="",F=0;F<R;F+=1)K=1,B<=F&&F<z&&B<=q&&q<z&&d.isDark(Y,Math.floor((F-B)/T))&&(K=0),I+=K?G:X;for(Y=0;Y<T;Y+=1)J+=I+`
51
- `}return J.substring(0,J.length-1)},d.renderTo2dContext=function(T,E){E=E||2;const R=d.getModuleCount();for(let B=0;B<R;B++)for(let z=0;z<R;z++)T.fillStyle=d.isDark(B,z)?"black":"white",T.fillRect(z*E,B*E,E,E)},d};Wr.stringToBytes=function(n){const r=[];for(let s=0;s<n.length;s+=1){const o=n.charCodeAt(s);r.push(o&255)}return r};Wr.createStringToBytes=function(n,r){const s=(function(){const p=K0(n),y=function(){const u=p.read();if(u==-1)throw"eof";return u};let f=0;const a={};for(;;){const u=p.read();if(u==-1)break;const h=y(),d=y(),c=y(),S=String.fromCharCode(u<<8|h),w=d<<8|c;a[S]=w,f+=1}if(f!=r)throw f+" != "+r;return a})(),o=63;return function(p){const y=[];for(let f=0;f<p.length;f+=1){const a=p.charCodeAt(f);if(a<128)y.push(a);else{const u=s[p.charAt(f)];typeof u=="number"?(u&255)==u?y.push(u):(y.push(u>>>8),y.push(u&255)):y.push(o)}}return y}};const Pt={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Xs={L:1,M:0,Q:3,H:2},Ti={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},Di=(function(){const n=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,s=7973,o=21522,p={},y=function(f){let a=0;for(;f!=0;)a+=1,f>>>=1;return a};return p.getBCHTypeInfo=function(f){let a=f<<10;for(;y(a)-y(r)>=0;)a^=r<<y(a)-y(r);return(f<<10|a)^o},p.getBCHTypeNumber=function(f){let a=f<<12;for(;y(a)-y(s)>=0;)a^=s<<y(a)-y(s);return f<<12|a},p.getPatternPosition=function(f){return n[f-1]},p.getMaskFunction=function(f){switch(f){case Ti.PATTERN000:return function(a,u){return(a+u)%2==0};case Ti.PATTERN001:return function(a,u){return a%2==0};case Ti.PATTERN010:return function(a,u){return u%3==0};case Ti.PATTERN011:return function(a,u){return(a+u)%3==0};case Ti.PATTERN100:return function(a,u){return(Math.floor(a/2)+Math.floor(u/3))%2==0};case Ti.PATTERN101:return function(a,u){return a*u%2+a*u%3==0};case Ti.PATTERN110:return function(a,u){return(a*u%2+a*u%3)%2==0};case Ti.PATTERN111:return function(a,u){return(a*u%3+(a+u)%2)%2==0};default:throw"bad maskPattern:"+f}},p.getErrorCorrectPolynomial=function(f){let a=el([1],0);for(let u=0;u<f;u+=1)a=a.multiply(el([1,Li.gexp(u)],0));return a},p.getLengthInBits=function(f,a){if(1<=a&&a<10)switch(f){case Pt.MODE_NUMBER:return 10;case Pt.MODE_ALPHA_NUM:return 9;case Pt.MODE_8BIT_BYTE:return 8;case Pt.MODE_KANJI:return 8;default:throw"mode:"+f}else if(a<27)switch(f){case Pt.MODE_NUMBER:return 12;case Pt.MODE_ALPHA_NUM:return 11;case Pt.MODE_8BIT_BYTE:return 16;case Pt.MODE_KANJI:return 10;default:throw"mode:"+f}else if(a<41)switch(f){case Pt.MODE_NUMBER:return 14;case Pt.MODE_ALPHA_NUM:return 13;case Pt.MODE_8BIT_BYTE:return 16;case Pt.MODE_KANJI:return 12;default:throw"mode:"+f}else throw"type:"+a},p.getLostPoint=function(f){const a=f.getModuleCount();let u=0;for(let c=0;c<a;c+=1)for(let S=0;S<a;S+=1){let w=0;const A=f.isDark(c,S);for(let x=-1;x<=1;x+=1)if(!(c+x<0||a<=c+x))for(let b=-1;b<=1;b+=1)S+b<0||a<=S+b||x==0&&b==0||A==f.isDark(c+x,S+b)&&(w+=1);w>5&&(u+=3+w-5)}for(let c=0;c<a-1;c+=1)for(let S=0;S<a-1;S+=1){let w=0;f.isDark(c,S)&&(w+=1),f.isDark(c+1,S)&&(w+=1),f.isDark(c,S+1)&&(w+=1),f.isDark(c+1,S+1)&&(w+=1),(w==0||w==4)&&(u+=3)}for(let c=0;c<a;c+=1)for(let S=0;S<a-6;S+=1)f.isDark(c,S)&&!f.isDark(c,S+1)&&f.isDark(c,S+2)&&f.isDark(c,S+3)&&f.isDark(c,S+4)&&!f.isDark(c,S+5)&&f.isDark(c,S+6)&&(u+=40);for(let c=0;c<a;c+=1)for(let S=0;S<a-6;S+=1)f.isDark(S,c)&&!f.isDark(S+1,c)&&f.isDark(S+2,c)&&f.isDark(S+3,c)&&f.isDark(S+4,c)&&!f.isDark(S+5,c)&&f.isDark(S+6,c)&&(u+=40);let h=0;for(let c=0;c<a;c+=1)for(let S=0;S<a;S+=1)f.isDark(S,c)&&(h+=1);const d=Math.abs(100*h/a/a-50)/5;return u+=d*10,u},p})(),Li=(function(){const n=new Array(256),r=new Array(256);for(let o=0;o<8;o+=1)n[o]=1<<o;for(let o=8;o<256;o+=1)n[o]=n[o-4]^n[o-5]^n[o-6]^n[o-8];for(let o=0;o<255;o+=1)r[n[o]]=o;const s={};return s.glog=function(o){if(o<1)throw"glog("+o+")";return r[o]},s.gexp=function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return n[o]},s})(),el=function(n,r){if(typeof n.length>"u")throw n.length+"/"+r;const s=(function(){let p=0;for(;p<n.length&&n[p]==0;)p+=1;const y=new Array(n.length-p+r);for(let f=0;f<n.length-p;f+=1)y[f]=n[f+p];return y})(),o={};return o.getAt=function(p){return s[p]},o.getLength=function(){return s.length},o.multiply=function(p){const y=new Array(o.getLength()+p.getLength()-1);for(let f=0;f<o.getLength();f+=1)for(let a=0;a<p.getLength();a+=1)y[f+a]^=Li.gexp(Li.glog(o.getAt(f))+Li.glog(p.getAt(a)));return el(y,0)},o.mod=function(p){if(o.getLength()-p.getLength()<0)return o;const y=Li.glog(o.getAt(0))-Li.glog(p.getAt(0)),f=new Array(o.getLength());for(let a=0;a<o.getLength();a+=1)f[a]=o.getAt(a);for(let a=0;a<p.getLength();a+=1)f[a]^=Li.gexp(Li.glog(p.getAt(a))+y);return el(f,0).mod(p)},o},im=(function(){const n=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r=function(p,y){const f={};return f.totalCount=p,f.dataCount=y,f},s={},o=function(p,y){switch(y){case Xs.L:return n[(p-1)*4+0];case Xs.M:return n[(p-1)*4+1];case Xs.Q:return n[(p-1)*4+2];case Xs.H:return n[(p-1)*4+3];default:return}};return s.getRSBlocks=function(p,y){const f=o(p,y);if(typeof f>"u")throw"bad rs block @ typeNumber:"+p+"/errorCorrectionLevel:"+y;const a=f.length/3,u=[];for(let h=0;h<a;h+=1){const d=f[h*3+0],c=f[h*3+1],S=f[h*3+2];for(let w=0;w<d;w+=1)u.push(r(c,S))}return u},s})(),rm=function(){const n=[];let r=0;const s={};return s.getBuffer=function(){return n},s.getAt=function(o){const p=Math.floor(o/8);return(n[p]>>>7-o%8&1)==1},s.put=function(o,p){for(let y=0;y<p;y+=1)s.putBit((o>>>p-y-1&1)==1)},s.getLengthInBits=function(){return r},s.putBit=function(o){const p=Math.floor(r/8);n.length<=p&&n.push(0),o&&(n[p]|=128>>>r%8),r+=1},s},q0=function(n){const r=Pt.MODE_NUMBER,s=n,o={};o.getMode=function(){return r},o.getLength=function(f){return s.length},o.write=function(f){const a=s;let u=0;for(;u+2<a.length;)f.put(p(a.substring(u,u+3)),10),u+=3;u<a.length&&(a.length-u==1?f.put(p(a.substring(u,u+1)),4):a.length-u==2&&f.put(p(a.substring(u,u+2)),7))};const p=function(f){let a=0;for(let u=0;u<f.length;u+=1)a=a*10+y(f.charAt(u));return a},y=function(f){if("0"<=f&&f<="9")return f.charCodeAt(0)-48;throw"illegal char :"+f};return o},V0=function(n){const r=Pt.MODE_ALPHA_NUM,s=n,o={};o.getMode=function(){return r},o.getLength=function(y){return s.length},o.write=function(y){const f=s;let a=0;for(;a+1<f.length;)y.put(p(f.charAt(a))*45+p(f.charAt(a+1)),11),a+=2;a<f.length&&y.put(p(f.charAt(a)),6)};const p=function(y){if("0"<=y&&y<="9")return y.charCodeAt(0)-48;if("A"<=y&&y<="Z")return y.charCodeAt(0)-65+10;switch(y){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+y}};return o},G0=function(n){const r=Pt.MODE_8BIT_BYTE,s=Wr.stringToBytes(n),o={};return o.getMode=function(){return r},o.getLength=function(p){return s.length},o.write=function(p){for(let y=0;y<s.length;y+=1)p.put(s[y],8)},o},$0=function(n){const r=Pt.MODE_KANJI,s=Wr.stringToBytes;(function(y,f){const a=s(y);if(a.length!=2||(a[0]<<8|a[1])!=f)throw"sjis not supported."})("友",38726);const o=s(n),p={};return p.getMode=function(){return r},p.getLength=function(y){return~~(o.length/2)},p.write=function(y){const f=o;let a=0;for(;a+1<f.length;){let u=(255&f[a])<<8|255&f[a+1];if(33088<=u&&u<=40956)u-=33088;else if(57408<=u&&u<=60351)u-=49472;else throw"illegal char at "+(a+1)+"/"+u;u=(u>>>8&255)*192+(u&255),y.put(u,13),a+=2}if(a<f.length)throw"illegal char at "+(a+1)},p},rg=function(){const n=[],r={};return r.writeByte=function(s){n.push(s&255)},r.writeShort=function(s){r.writeByte(s),r.writeByte(s>>>8)},r.writeBytes=function(s,o,p){o=o||0,p=p||s.length;for(let y=0;y<p;y+=1)r.writeByte(s[y+o])},r.writeString=function(s){for(let o=0;o<s.length;o+=1)r.writeByte(s.charCodeAt(o))},r.toByteArray=function(){return n},r.toString=function(){let s="";s+="[";for(let o=0;o<n.length;o+=1)o>0&&(s+=","),s+=n[o];return s+="]",s},r},Y0=function(){let n=0,r=0,s=0,o="";const p={},y=function(a){o+=String.fromCharCode(f(a&63))},f=function(a){if(a<0)throw"n:"+a;if(a<26)return 65+a;if(a<52)return 97+(a-26);if(a<62)return 48+(a-52);if(a==62)return 43;if(a==63)return 47;throw"n:"+a};return p.writeByte=function(a){for(n=n<<8|a&255,r+=8,s+=1;r>=6;)y(n>>>r-6),r-=6},p.flush=function(){if(r>0&&(y(n<<6-r),n=0,r=0),s%3!=0){const a=3-s%3;for(let u=0;u<a;u+=1)o+="="}},p.toString=function(){return o},p},K0=function(n){const r=n;let s=0,o=0,p=0;const y={};y.read=function(){for(;p<8;){if(s>=r.length){if(p==0)return-1;throw"unexpected end of file./"+p}const u=r.charAt(s);if(s+=1,u=="=")return p=0,-1;if(u.match(/^\s$/))continue;o=o<<6|f(u.charCodeAt(0)),p+=6}const a=o>>>p-8&255;return p-=8,a};const f=function(a){if(65<=a&&a<=90)return a-65;if(97<=a&&a<=122)return a-97+26;if(48<=a&&a<=57)return a-48+52;if(a==43)return 62;if(a==47)return 63;throw"c:"+a};return y},W0=function(n,r){const s=n,o=r,p=new Array(n*r),y={};y.setPixel=function(h,d,c){p[d*s+h]=c},y.write=function(h){h.writeString("GIF87a"),h.writeShort(s),h.writeShort(o),h.writeByte(128),h.writeByte(0),h.writeByte(0),h.writeByte(0),h.writeByte(0),h.writeByte(0),h.writeByte(255),h.writeByte(255),h.writeByte(255),h.writeString(","),h.writeShort(0),h.writeShort(0),h.writeShort(s),h.writeShort(o),h.writeByte(0);const d=2,c=a(d);h.writeByte(d);let S=0;for(;c.length-S>255;)h.writeByte(255),h.writeBytes(c,S,255),S+=255;h.writeByte(c.length-S),h.writeBytes(c,S,c.length-S),h.writeByte(0),h.writeString(";")};const f=function(h){const d=h;let c=0,S=0;const w={};return w.write=function(A,x){if(A>>>x)throw"length over";for(;c+x>=8;)d.writeByte(255&(A<<c|S)),x-=8-c,A>>>=8-c,S=0,c=0;S=A<<c|S,c=c+x},w.flush=function(){c>0&&d.writeByte(S)},w},a=function(h){const d=1<<h,c=(1<<h)+1;let S=h+1;const w=u();for(let g=0;g<d;g+=1)w.add(String.fromCharCode(g));w.add(String.fromCharCode(d)),w.add(String.fromCharCode(c));const A=rg(),x=f(A);x.write(d,S);let b=0,_=String.fromCharCode(p[b]);for(b+=1;b<p.length;){const g=String.fromCharCode(p[b]);b+=1,w.contains(_+g)?_=_+g:(x.write(w.indexOf(_),S),w.size()<4095&&(w.size()==1<<S&&(S+=1),w.add(_+g)),_=g)}return x.write(w.indexOf(_),S),x.write(c,S),x.flush(),A.toByteArray()},u=function(){const h={};let d=0;const c={};return c.add=function(S){if(c.contains(S))throw"dup key:"+S;h[S]=d,d+=1},c.size=function(){return d},c.indexOf=function(S){return h[S]},c.contains=function(S){return typeof h[S]<"u"},c};return y},X0=function(n,r,s){const o=W0(n,r);for(let a=0;a<r;a+=1)for(let u=0;u<n;u+=1)o.setPixel(u,a,s(u,a));const p=rg();o.write(p);const y=Y0(),f=p.toByteArray();for(let a=0;a<f.length;a+=1)y.writeByte(f[a]);return y.flush(),"data:image/gif;base64,"+y};Wr.stringToBytes;const er=[{name:"project-manager",label:"Project Manager",commandAgent:"project-manager",dispatchable:!1},{name:"architect",label:"Architect",commandAgent:"architect",dispatchable:!0},{name:"coder",label:"Coder",commandAgent:"coder",dispatchable:!0},{name:"reviewer",label:"Reviewer",commandAgent:"reviewer",dispatchable:!0}],sg={name:"codex-reviewer",label:"Codex Reviewer",commandAgent:"codex-reviewer",dispatchable:!1},Bc=[...er,sg],Q0=er.map(n=>n.name);Bc.map(n=>n.name);Bc.filter(n=>n.dispatchable).map(n=>n.name);function Z0(){const n={};for(const r of Q0)n[r]={permissionMode:"default",model:"default",effort:"default"};return{version:1,roles:n,autoOrchestration:!0,translationEnabled:!0}}function J0({sidebar:n,children:r}){const[s,o]=ue.useState(!1);return N.jsxs("div",{className:s?"app-shell is-sidebar-collapsed":"app-shell",children:[N.jsxs("aside",{className:"app-sidebar",children:[N.jsx("button",{className:"sidebar-toggle",type:"button","aria-label":s?"Expand sidebar":"Collapse sidebar",title:s?"Expand sidebar":"Collapse sidebar",onClick:()=>o(p=>!p)}),N.jsx("div",{className:"sidebar-content",children:n})]}),N.jsx("main",{className:"app-main",children:r})]})}function e1(n,r){return n.find(s=>s.taskSlug===r)??n[0]??null}const xe={getAppPreferences(){return Re("/api/settings/preferences")},updateAppPreferences(n){return Re("/api/settings/preferences",{method:"PUT",body:JSON.stringify(n)})},getCurrentProject(){return Re("/api/projects/current")},pullCurrentProject(){return Re("/api/projects/current/pull",{method:"POST"})},getRecentRepositoryPaths(){return Re("/api/projects/recent")},connectProject(n){return Re("/api/projects/connect",{method:"POST",body:JSON.stringify(n)})},listTasks(){return Re("/api/tasks")},createTask(n){return Re("/api/tasks",{method:"POST",body:JSON.stringify(n)})},cleanupTask(n,r={}){return Re(`/api/tasks/${encodeURIComponent(n)}/cleanup`,{method:"POST",body:JSON.stringify(r)})},getHarnessStatus(){return Re("/api/projects/harness")},applyHarness(){return Re("/api/projects/harness/apply",{method:"POST"})},getHarnessBootstrapStatus(){return Re("/api/projects/harness/bootstrap")},startHarnessBootstrap(n={}){return Re("/api/projects/harness/bootstrap/start",{method:"POST",body:JSON.stringify(n)})},getTaskStatus(n){return Re(`/api/tasks/${encodeURIComponent(n)}/status`)},listSessions(n){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions`)},startRoleSession(n,r,s={}){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/start`,{method:"POST",body:JSON.stringify(s)})},stopRoleSession(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/stop`,{method:"POST"})},restartRoleSession(n,r,s={}){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/restart`,{method:"POST",body:JSON.stringify(s)})},resumeRoleSession(n,r,s={}){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/resume`,{method:"POST",body:JSON.stringify(s)})},dispatchRoleCommand(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/dispatch`,{method:"POST"})},listMessages(n){return Re(`/api/tasks/${encodeURIComponent(n)}/messages`)},markAllMessagesDone(n){return Re(`/api/tasks/${encodeURIComponent(n)}/messages/mark-all-done`,{method:"POST"})},deleteMessageHistory(n){return Re(`/api/tasks/${encodeURIComponent(n)}/messages/history`,{method:"DELETE"})},getOrchestrationState(n){return Re(`/api/tasks/${encodeURIComponent(n)}/orchestration`)},updateOrchestrationState(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/orchestration`,{method:"PUT",body:JSON.stringify(r)})},getSessionRoundState(n){return Re(`/api/tasks/${encodeURIComponent(n)}/round`)},getCodexReviewState(n){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review`)},updateCodexReviewSettings(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/settings`,{method:"PUT",body:JSON.stringify(r)})},requestCodexReviewGate(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/request`,{method:"POST"})},retryCodexReviewGate(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/retry`,{method:"POST"})},skipCodexReviewGate(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/skip`,{method:"POST",body:JSON.stringify(s)})},overrideCodexReviewGate(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/override`,{method:"POST",body:JSON.stringify(s)})},getCodexReviewReport(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/report`)},getTranslationSettings(){return Re("/api/translation/settings")},updateTranslationSettings(n){return Re("/api/translation/settings",{method:"PUT",body:JSON.stringify(n)})},getTranslationPrompts(){return Re("/api/translation/prompts")},testTranslationProvider(){return Re("/api/translation/test",{method:"POST"})},startTranslationSession(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/translation/start`,{method:"POST"})},pollTranslationSession(n,r,s){const o=new URLSearchParams({after:String(r)});return s!==void 0&&o.set("limit",String(s)),Re(`/api/translation/sessions/${encodeURIComponent(n)}/events?${o.toString()}`)},translateUserInput(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/translation/input`,{method:"POST",body:JSON.stringify(s)})},sendTranslatedInput(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/translation/send`,{method:"POST",body:JSON.stringify(s)})},clearTranslationSession(n){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/clear`,{method:"POST"})},retryTranslation(n,r){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/retry/${encodeURIComponent(r)}`,{method:"POST"})},ignoreTranslationFailures(n){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/failures/ignore`,{method:"POST"})},retryTranslationFailures(n){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/failures/retry`,{method:"POST"})},getGatewayStatus(){return Re("/api/gateway/status")},updateGatewaySettings(n){return Re("/api/gateway/settings",{method:"PUT",body:JSON.stringify(n)})},startGatewayQrLogin(){return Re("/api/gateway/qr/start",{method:"POST"})},checkGatewayQrLogin(n={}){return Re("/api/gateway/qr/check",{method:"POST",body:JSON.stringify(n)})},resetGatewayBinding(){return Re("/api/gateway/binding/reset",{method:"POST"})}};async function Re(n,r={}){var p,y;const s=new Headers(r.headers);r.body!==void 0&&r.body!==null&&!s.has("content-type")&&s.set("content-type","application/json");const o=await fetch(n,{...r,headers:s});if(!o.ok){const f=await o.json().catch(()=>null),a=(p=f==null?void 0:f.error)!=null&&p.hint?`${f.error.message} ${f.error.hint}`:((y=f==null?void 0:f.error)==null?void 0:y.message)??`Request failed: ${o.status}`;throw new Error(a)}return o.json()}const t1={role:"codex-reviewer",permissionMode:"default",model:"gpt-5.5",effort:"xhigh"};function n1(n,r){const s=er.map(o=>({role:o.name,permissionMode:n.roles[o.name].permissionMode,model:n.roles[o.name].model,effort:n.roles[o.name].effort}));return r.codexReviewerEnabled&&s.push(t1),s}const i1=["architecture-plan","validation-adequacy","final-diff"];function r1({events:n,maxEvents:r=8,showHeader:s=!0}){const o=r===null?n:n.slice(-r);return N.jsxs("section",{className:"event-log",children:[s?N.jsx("h2",{children:"Events"}):null,n.length===0?N.jsx("p",{className:"muted",children:"No terminal events yet."}):N.jsx("ol",{children:o.map((p,y)=>N.jsx("li",{children:p},`${p}-${y}`))})]})}var ec={exports:{}},sm;function s1(){return sm||(sm=1,(function(n,r){(function(s,o){n.exports=o()})(self,(()=>(()=>{var s={};return(()=>{var o=s;Object.defineProperty(o,"__esModule",{value:!0}),o.FitAddon=void 0,o.FitAddon=class{activate(p){this._terminal=p}dispose(){}fit(){const p=this.proposeDimensions();if(!p||!this._terminal||isNaN(p.cols)||isNaN(p.rows))return;const y=this._terminal._core;this._terminal.rows===p.rows&&this._terminal.cols===p.cols||(y._renderService.clear(),this._terminal.resize(p.cols,p.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const p=this._terminal._core,y=p._renderService.dimensions;if(y.css.cell.width===0||y.css.cell.height===0)return;const f=this._terminal.options.scrollback===0?0:p.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),u=parseInt(a.getPropertyValue("height")),h=Math.max(0,parseInt(a.getPropertyValue("width"))),d=window.getComputedStyle(this._terminal.element),c=u-(parseInt(d.getPropertyValue("padding-top"))+parseInt(d.getPropertyValue("padding-bottom"))),S=h-(parseInt(d.getPropertyValue("padding-right"))+parseInt(d.getPropertyValue("padding-left")))-f;return{cols:Math.max(2,Math.floor(S/y.css.cell.width)),rows:Math.max(1,Math.floor(c/y.css.cell.height))}}}})(),s})()))})(ec)),ec.exports}var l1=s1(),tc={exports:{}},lm;function a1(){return lm||(lm=1,(function(n,r){(function(s,o){n.exports=o()})(self,(()=>(()=>{var s={6:(f,a)=>{function u(d){try{const c=new URL(d),S=c.password&&c.username?`${c.protocol}//${c.username}:${c.password}@${c.host}`:c.username?`${c.protocol}//${c.username}@${c.host}`:`${c.protocol}//${c.host}`;return d.toLocaleLowerCase().startsWith(S.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(a,"__esModule",{value:!0}),a.LinkComputer=a.WebLinkProvider=void 0,a.WebLinkProvider=class{constructor(d,c,S,w={}){this._terminal=d,this._regex=c,this._handler=S,this._options=w}provideLinks(d,c){const S=h.computeLink(d,this._regex,this._terminal,this._handler);c(this._addCallbacks(S))}_addCallbacks(d){return d.map((c=>(c.leave=this._options.leave,c.hover=(S,w)=>{if(this._options.hover){const{range:A}=c;this._options.hover(S,w,A)}},c)))}};class h{static computeLink(c,S,w,A){const x=new RegExp(S.source,(S.flags||"")+"g"),[b,_]=h._getWindowedLineStrings(c-1,w),g=b.join("");let v;const k=[];for(;v=x.exec(g);){const M=v[0];if(!u(M))continue;const[D,T]=h._mapStrIdx(w,_,0,v.index),[E,R]=h._mapStrIdx(w,D,T,M.length);if(D===-1||T===-1||E===-1||R===-1)continue;const B={start:{x:T+1,y:D+1},end:{x:R,y:E+1}};k.push({range:B,text:M,activate:A})}return k}static _getWindowedLineStrings(c,S){let w,A=c,x=c,b=0,_="";const g=[];if(w=S.buffer.active.getLine(c)){const v=w.translateToString(!0);if(w.isWrapped&&v[0]!==" "){for(b=0;(w=S.buffer.active.getLine(--A))&&b<2048&&(_=w.translateToString(!0),b+=_.length,g.push(_),w.isWrapped&&_.indexOf(" ")===-1););g.reverse()}for(g.push(v),b=0;(w=S.buffer.active.getLine(++x))&&w.isWrapped&&b<2048&&(_=w.translateToString(!0),b+=_.length,g.push(_),_.indexOf(" ")===-1););}return[g,A]}static _mapStrIdx(c,S,w,A){const x=c.buffer.active,b=x.getNullCell();let _=w;for(;A;){const g=x.getLine(S);if(!g)return[-1,-1];for(let v=_;v<g.length;++v){g.getCell(v,b);const k=b.getChars();if(b.getWidth()&&(A-=k.length||1,v===g.length-1&&k==="")){const M=x.getLine(S+1);M&&M.isWrapped&&(M.getCell(0,b),b.getWidth()===2&&(A+=1))}if(A<0)return[S,v]}S++,_=0}return[S,_]}}a.LinkComputer=h}},o={};function p(f){var a=o[f];if(a!==void 0)return a.exports;var u=o[f]={exports:{}};return s[f](u,u.exports,p),u.exports}var y={};return(()=>{var f=y;Object.defineProperty(f,"__esModule",{value:!0}),f.WebLinksAddon=void 0;const a=p(6),u=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function h(d,c){const S=window.open();if(S){try{S.opener=null}catch{}S.location.href=c}else console.warn("Opening link blocked as opener could not be cleared")}f.WebLinksAddon=class{constructor(d=h,c={}){this._handler=d,this._options=c}activate(d){this._terminal=d;const c=this._options,S=c.urlRegex||u;this._linkProvider=this._terminal.registerLinkProvider(new a.WebLinkProvider(this._terminal,S,this._handler,c))}dispose(){var d;(d=this._linkProvider)==null||d.dispose()}}})(),y})()))})(tc)),tc.exports}var o1=a1(),nc={exports:{}},am;function u1(){return am||(am=1,(function(n,r){(function(s,o){n.exports=o()})(globalThis,(()=>(()=>{var s={4567:function(f,a,u){var h=this&&this.__decorate||function(g,v,k,M){var D,T=arguments.length,E=T<3?v:M===null?M=Object.getOwnPropertyDescriptor(v,k):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,v,k,M);else for(var R=g.length-1;R>=0;R--)(D=g[R])&&(E=(T<3?D(E):T>3?D(v,k,E):D(v,k))||E);return T>3&&E&&Object.defineProperty(v,k,E),E},d=this&&this.__param||function(g,v){return function(k,M){v(k,M,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;const c=u(9042),S=u(9924),w=u(844),A=u(4725),x=u(2585),b=u(3656);let _=a.AccessibilityManager=class extends w.Disposable{constructor(g,v,k,M){super(),this._terminal=g,this._coreBrowserService=k,this._renderService=M,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let D=0;D<this._terminal.rows;D++)this._rowElements[D]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[D]);if(this._topBoundaryFocusListener=D=>this._handleBoundaryFocus(D,0),this._bottomBoundaryFocusListener=D=>this._handleBoundaryFocus(D,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new S.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((D=>this._handleResize(D.rows)))),this.register(this._terminal.onRender((D=>this._refreshRows(D.start,D.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((D=>this._handleChar(D)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
51
+ `}return J.substring(0,J.length-1)},d.renderTo2dContext=function(T,E){E=E||2;const R=d.getModuleCount();for(let B=0;B<R;B++)for(let z=0;z<R;z++)T.fillStyle=d.isDark(B,z)?"black":"white",T.fillRect(z*E,B*E,E,E)},d};Wr.stringToBytes=function(n){const r=[];for(let s=0;s<n.length;s+=1){const o=n.charCodeAt(s);r.push(o&255)}return r};Wr.createStringToBytes=function(n,r){const s=(function(){const p=W0(n),y=function(){const u=p.read();if(u==-1)throw"eof";return u};let f=0;const a={};for(;;){const u=p.read();if(u==-1)break;const h=y(),d=y(),c=y(),S=String.fromCharCode(u<<8|h),w=d<<8|c;a[S]=w,f+=1}if(f!=r)throw f+" != "+r;return a})(),o=63;return function(p){const y=[];for(let f=0;f<p.length;f+=1){const a=p.charCodeAt(f);if(a<128)y.push(a);else{const u=s[p.charAt(f)];typeof u=="number"?(u&255)==u?y.push(u):(y.push(u>>>8),y.push(u&255)):y.push(o)}}return y}};const Pt={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Xs={L:1,M:0,Q:3,H:2},Ti={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},Di=(function(){const n=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,s=7973,o=21522,p={},y=function(f){let a=0;for(;f!=0;)a+=1,f>>>=1;return a};return p.getBCHTypeInfo=function(f){let a=f<<10;for(;y(a)-y(r)>=0;)a^=r<<y(a)-y(r);return(f<<10|a)^o},p.getBCHTypeNumber=function(f){let a=f<<12;for(;y(a)-y(s)>=0;)a^=s<<y(a)-y(s);return f<<12|a},p.getPatternPosition=function(f){return n[f-1]},p.getMaskFunction=function(f){switch(f){case Ti.PATTERN000:return function(a,u){return(a+u)%2==0};case Ti.PATTERN001:return function(a,u){return a%2==0};case Ti.PATTERN010:return function(a,u){return u%3==0};case Ti.PATTERN011:return function(a,u){return(a+u)%3==0};case Ti.PATTERN100:return function(a,u){return(Math.floor(a/2)+Math.floor(u/3))%2==0};case Ti.PATTERN101:return function(a,u){return a*u%2+a*u%3==0};case Ti.PATTERN110:return function(a,u){return(a*u%2+a*u%3)%2==0};case Ti.PATTERN111:return function(a,u){return(a*u%3+(a+u)%2)%2==0};default:throw"bad maskPattern:"+f}},p.getErrorCorrectPolynomial=function(f){let a=el([1],0);for(let u=0;u<f;u+=1)a=a.multiply(el([1,Li.gexp(u)],0));return a},p.getLengthInBits=function(f,a){if(1<=a&&a<10)switch(f){case Pt.MODE_NUMBER:return 10;case Pt.MODE_ALPHA_NUM:return 9;case Pt.MODE_8BIT_BYTE:return 8;case Pt.MODE_KANJI:return 8;default:throw"mode:"+f}else if(a<27)switch(f){case Pt.MODE_NUMBER:return 12;case Pt.MODE_ALPHA_NUM:return 11;case Pt.MODE_8BIT_BYTE:return 16;case Pt.MODE_KANJI:return 10;default:throw"mode:"+f}else if(a<41)switch(f){case Pt.MODE_NUMBER:return 14;case Pt.MODE_ALPHA_NUM:return 13;case Pt.MODE_8BIT_BYTE:return 16;case Pt.MODE_KANJI:return 12;default:throw"mode:"+f}else throw"type:"+a},p.getLostPoint=function(f){const a=f.getModuleCount();let u=0;for(let c=0;c<a;c+=1)for(let S=0;S<a;S+=1){let w=0;const A=f.isDark(c,S);for(let x=-1;x<=1;x+=1)if(!(c+x<0||a<=c+x))for(let b=-1;b<=1;b+=1)S+b<0||a<=S+b||x==0&&b==0||A==f.isDark(c+x,S+b)&&(w+=1);w>5&&(u+=3+w-5)}for(let c=0;c<a-1;c+=1)for(let S=0;S<a-1;S+=1){let w=0;f.isDark(c,S)&&(w+=1),f.isDark(c+1,S)&&(w+=1),f.isDark(c,S+1)&&(w+=1),f.isDark(c+1,S+1)&&(w+=1),(w==0||w==4)&&(u+=3)}for(let c=0;c<a;c+=1)for(let S=0;S<a-6;S+=1)f.isDark(c,S)&&!f.isDark(c,S+1)&&f.isDark(c,S+2)&&f.isDark(c,S+3)&&f.isDark(c,S+4)&&!f.isDark(c,S+5)&&f.isDark(c,S+6)&&(u+=40);for(let c=0;c<a;c+=1)for(let S=0;S<a-6;S+=1)f.isDark(S,c)&&!f.isDark(S+1,c)&&f.isDark(S+2,c)&&f.isDark(S+3,c)&&f.isDark(S+4,c)&&!f.isDark(S+5,c)&&f.isDark(S+6,c)&&(u+=40);let h=0;for(let c=0;c<a;c+=1)for(let S=0;S<a;S+=1)f.isDark(S,c)&&(h+=1);const d=Math.abs(100*h/a/a-50)/5;return u+=d*10,u},p})(),Li=(function(){const n=new Array(256),r=new Array(256);for(let o=0;o<8;o+=1)n[o]=1<<o;for(let o=8;o<256;o+=1)n[o]=n[o-4]^n[o-5]^n[o-6]^n[o-8];for(let o=0;o<255;o+=1)r[n[o]]=o;const s={};return s.glog=function(o){if(o<1)throw"glog("+o+")";return r[o]},s.gexp=function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return n[o]},s})(),el=function(n,r){if(typeof n.length>"u")throw n.length+"/"+r;const s=(function(){let p=0;for(;p<n.length&&n[p]==0;)p+=1;const y=new Array(n.length-p+r);for(let f=0;f<n.length-p;f+=1)y[f]=n[f+p];return y})(),o={};return o.getAt=function(p){return s[p]},o.getLength=function(){return s.length},o.multiply=function(p){const y=new Array(o.getLength()+p.getLength()-1);for(let f=0;f<o.getLength();f+=1)for(let a=0;a<p.getLength();a+=1)y[f+a]^=Li.gexp(Li.glog(o.getAt(f))+Li.glog(p.getAt(a)));return el(y,0)},o.mod=function(p){if(o.getLength()-p.getLength()<0)return o;const y=Li.glog(o.getAt(0))-Li.glog(p.getAt(0)),f=new Array(o.getLength());for(let a=0;a<o.getLength();a+=1)f[a]=o.getAt(a);for(let a=0;a<p.getLength();a+=1)f[a]^=Li.gexp(Li.glog(p.getAt(a))+y);return el(f,0).mod(p)},o},im=(function(){const n=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r=function(p,y){const f={};return f.totalCount=p,f.dataCount=y,f},s={},o=function(p,y){switch(y){case Xs.L:return n[(p-1)*4+0];case Xs.M:return n[(p-1)*4+1];case Xs.Q:return n[(p-1)*4+2];case Xs.H:return n[(p-1)*4+3];default:return}};return s.getRSBlocks=function(p,y){const f=o(p,y);if(typeof f>"u")throw"bad rs block @ typeNumber:"+p+"/errorCorrectionLevel:"+y;const a=f.length/3,u=[];for(let h=0;h<a;h+=1){const d=f[h*3+0],c=f[h*3+1],S=f[h*3+2];for(let w=0;w<d;w+=1)u.push(r(c,S))}return u},s})(),rm=function(){const n=[];let r=0;const s={};return s.getBuffer=function(){return n},s.getAt=function(o){const p=Math.floor(o/8);return(n[p]>>>7-o%8&1)==1},s.put=function(o,p){for(let y=0;y<p;y+=1)s.putBit((o>>>p-y-1&1)==1)},s.getLengthInBits=function(){return r},s.putBit=function(o){const p=Math.floor(r/8);n.length<=p&&n.push(0),o&&(n[p]|=128>>>r%8),r+=1},s},V0=function(n){const r=Pt.MODE_NUMBER,s=n,o={};o.getMode=function(){return r},o.getLength=function(f){return s.length},o.write=function(f){const a=s;let u=0;for(;u+2<a.length;)f.put(p(a.substring(u,u+3)),10),u+=3;u<a.length&&(a.length-u==1?f.put(p(a.substring(u,u+1)),4):a.length-u==2&&f.put(p(a.substring(u,u+2)),7))};const p=function(f){let a=0;for(let u=0;u<f.length;u+=1)a=a*10+y(f.charAt(u));return a},y=function(f){if("0"<=f&&f<="9")return f.charCodeAt(0)-48;throw"illegal char :"+f};return o},G0=function(n){const r=Pt.MODE_ALPHA_NUM,s=n,o={};o.getMode=function(){return r},o.getLength=function(y){return s.length},o.write=function(y){const f=s;let a=0;for(;a+1<f.length;)y.put(p(f.charAt(a))*45+p(f.charAt(a+1)),11),a+=2;a<f.length&&y.put(p(f.charAt(a)),6)};const p=function(y){if("0"<=y&&y<="9")return y.charCodeAt(0)-48;if("A"<=y&&y<="Z")return y.charCodeAt(0)-65+10;switch(y){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+y}};return o},$0=function(n){const r=Pt.MODE_8BIT_BYTE,s=Wr.stringToBytes(n),o={};return o.getMode=function(){return r},o.getLength=function(p){return s.length},o.write=function(p){for(let y=0;y<s.length;y+=1)p.put(s[y],8)},o},Y0=function(n){const r=Pt.MODE_KANJI,s=Wr.stringToBytes;(function(y,f){const a=s(y);if(a.length!=2||(a[0]<<8|a[1])!=f)throw"sjis not supported."})("友",38726);const o=s(n),p={};return p.getMode=function(){return r},p.getLength=function(y){return~~(o.length/2)},p.write=function(y){const f=o;let a=0;for(;a+1<f.length;){let u=(255&f[a])<<8|255&f[a+1];if(33088<=u&&u<=40956)u-=33088;else if(57408<=u&&u<=60351)u-=49472;else throw"illegal char at "+(a+1)+"/"+u;u=(u>>>8&255)*192+(u&255),y.put(u,13),a+=2}if(a<f.length)throw"illegal char at "+(a+1)},p},rg=function(){const n=[],r={};return r.writeByte=function(s){n.push(s&255)},r.writeShort=function(s){r.writeByte(s),r.writeByte(s>>>8)},r.writeBytes=function(s,o,p){o=o||0,p=p||s.length;for(let y=0;y<p;y+=1)r.writeByte(s[y+o])},r.writeString=function(s){for(let o=0;o<s.length;o+=1)r.writeByte(s.charCodeAt(o))},r.toByteArray=function(){return n},r.toString=function(){let s="";s+="[";for(let o=0;o<n.length;o+=1)o>0&&(s+=","),s+=n[o];return s+="]",s},r},K0=function(){let n=0,r=0,s=0,o="";const p={},y=function(a){o+=String.fromCharCode(f(a&63))},f=function(a){if(a<0)throw"n:"+a;if(a<26)return 65+a;if(a<52)return 97+(a-26);if(a<62)return 48+(a-52);if(a==62)return 43;if(a==63)return 47;throw"n:"+a};return p.writeByte=function(a){for(n=n<<8|a&255,r+=8,s+=1;r>=6;)y(n>>>r-6),r-=6},p.flush=function(){if(r>0&&(y(n<<6-r),n=0,r=0),s%3!=0){const a=3-s%3;for(let u=0;u<a;u+=1)o+="="}},p.toString=function(){return o},p},W0=function(n){const r=n;let s=0,o=0,p=0;const y={};y.read=function(){for(;p<8;){if(s>=r.length){if(p==0)return-1;throw"unexpected end of file./"+p}const u=r.charAt(s);if(s+=1,u=="=")return p=0,-1;if(u.match(/^\s$/))continue;o=o<<6|f(u.charCodeAt(0)),p+=6}const a=o>>>p-8&255;return p-=8,a};const f=function(a){if(65<=a&&a<=90)return a-65;if(97<=a&&a<=122)return a-97+26;if(48<=a&&a<=57)return a-48+52;if(a==43)return 62;if(a==47)return 63;throw"c:"+a};return y},X0=function(n,r){const s=n,o=r,p=new Array(n*r),y={};y.setPixel=function(h,d,c){p[d*s+h]=c},y.write=function(h){h.writeString("GIF87a"),h.writeShort(s),h.writeShort(o),h.writeByte(128),h.writeByte(0),h.writeByte(0),h.writeByte(0),h.writeByte(0),h.writeByte(0),h.writeByte(255),h.writeByte(255),h.writeByte(255),h.writeString(","),h.writeShort(0),h.writeShort(0),h.writeShort(s),h.writeShort(o),h.writeByte(0);const d=2,c=a(d);h.writeByte(d);let S=0;for(;c.length-S>255;)h.writeByte(255),h.writeBytes(c,S,255),S+=255;h.writeByte(c.length-S),h.writeBytes(c,S,c.length-S),h.writeByte(0),h.writeString(";")};const f=function(h){const d=h;let c=0,S=0;const w={};return w.write=function(A,x){if(A>>>x)throw"length over";for(;c+x>=8;)d.writeByte(255&(A<<c|S)),x-=8-c,A>>>=8-c,S=0,c=0;S=A<<c|S,c=c+x},w.flush=function(){c>0&&d.writeByte(S)},w},a=function(h){const d=1<<h,c=(1<<h)+1;let S=h+1;const w=u();for(let g=0;g<d;g+=1)w.add(String.fromCharCode(g));w.add(String.fromCharCode(d)),w.add(String.fromCharCode(c));const A=rg(),x=f(A);x.write(d,S);let b=0,_=String.fromCharCode(p[b]);for(b+=1;b<p.length;){const g=String.fromCharCode(p[b]);b+=1,w.contains(_+g)?_=_+g:(x.write(w.indexOf(_),S),w.size()<4095&&(w.size()==1<<S&&(S+=1),w.add(_+g)),_=g)}return x.write(w.indexOf(_),S),x.write(c,S),x.flush(),A.toByteArray()},u=function(){const h={};let d=0;const c={};return c.add=function(S){if(c.contains(S))throw"dup key:"+S;h[S]=d,d+=1},c.size=function(){return d},c.indexOf=function(S){return h[S]},c.contains=function(S){return typeof h[S]<"u"},c};return y},Q0=function(n,r,s){const o=X0(n,r);for(let a=0;a<r;a+=1)for(let u=0;u<n;u+=1)o.setPixel(u,a,s(u,a));const p=rg();o.write(p);const y=K0(),f=p.toByteArray();for(let a=0;a<f.length;a+=1)y.writeByte(f[a]);return y.flush(),"data:image/gif;base64,"+y};Wr.stringToBytes;const er=[{name:"project-manager",label:"Project Manager",commandAgent:"project-manager",dispatchable:!1},{name:"architect",label:"Architect",commandAgent:"architect",dispatchable:!0},{name:"coder",label:"Coder",commandAgent:"coder",dispatchable:!0},{name:"reviewer",label:"Reviewer",commandAgent:"reviewer",dispatchable:!0}],sg={name:"codex-reviewer",label:"Codex Reviewer",commandAgent:"codex-reviewer",dispatchable:!1},Bc=[...er,sg],Z0=er.map(n=>n.name);Bc.map(n=>n.name);Bc.filter(n=>n.dispatchable).map(n=>n.name);function J0(){const n={};for(const r of Z0)n[r]={permissionMode:"default",model:"default",effort:"default"};return{version:1,roles:n,autoOrchestration:!0,translationEnabled:!0}}function e1({sidebar:n,children:r}){const[s,o]=ue.useState(!1);return N.jsxs("div",{className:s?"app-shell is-sidebar-collapsed":"app-shell",children:[N.jsxs("aside",{className:"app-sidebar",children:[N.jsx("button",{className:"sidebar-toggle",type:"button","aria-label":s?"Expand sidebar":"Collapse sidebar",title:s?"Expand sidebar":"Collapse sidebar",onClick:()=>o(p=>!p)}),N.jsx("div",{className:"sidebar-content",children:n})]}),N.jsx("main",{className:"app-main",children:r})]})}function t1(n,r){return n.find(s=>s.taskSlug===r)??n[0]??null}const xe={getAppPreferences(){return Re("/api/settings/preferences")},updateAppPreferences(n){return Re("/api/settings/preferences",{method:"PUT",body:JSON.stringify(n)})},getCurrentProject(){return Re("/api/projects/current")},pullCurrentProject(){return Re("/api/projects/current/pull",{method:"POST"})},getRecentRepositoryPaths(){return Re("/api/projects/recent")},connectProject(n){return Re("/api/projects/connect",{method:"POST",body:JSON.stringify(n)})},listTasks(){return Re("/api/tasks")},createTask(n){return Re("/api/tasks",{method:"POST",body:JSON.stringify(n)})},cleanupTask(n,r={}){return Re(`/api/tasks/${encodeURIComponent(n)}/cleanup`,{method:"POST",body:JSON.stringify(r)})},getHarnessStatus(){return Re("/api/projects/harness")},applyHarness(){return Re("/api/projects/harness/apply",{method:"POST"})},getHarnessBootstrapStatus(){return Re("/api/projects/harness/bootstrap")},startHarnessBootstrap(n={}){return Re("/api/projects/harness/bootstrap/start",{method:"POST",body:JSON.stringify(n)})},getTaskStatus(n){return Re(`/api/tasks/${encodeURIComponent(n)}/status`)},listSessions(n){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions`)},startRoleSession(n,r,s={}){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/start`,{method:"POST",body:JSON.stringify(s)})},stopRoleSession(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/stop`,{method:"POST"})},restartRoleSession(n,r,s={}){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/restart`,{method:"POST",body:JSON.stringify(s)})},resumeRoleSession(n,r,s={}){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/resume`,{method:"POST",body:JSON.stringify(s)})},dispatchRoleCommand(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/dispatch`,{method:"POST"})},listMessages(n){return Re(`/api/tasks/${encodeURIComponent(n)}/messages`)},markAllMessagesDone(n){return Re(`/api/tasks/${encodeURIComponent(n)}/messages/mark-all-done`,{method:"POST"})},deleteMessageHistory(n){return Re(`/api/tasks/${encodeURIComponent(n)}/messages/history`,{method:"DELETE"})},getOrchestrationState(n){return Re(`/api/tasks/${encodeURIComponent(n)}/orchestration`)},updateOrchestrationState(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/orchestration`,{method:"PUT",body:JSON.stringify(r)})},getSessionRoundState(n){return Re(`/api/tasks/${encodeURIComponent(n)}/round`)},getCodexReviewState(n){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review`)},updateCodexReviewSettings(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/settings`,{method:"PUT",body:JSON.stringify(r)})},requestCodexReviewGate(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/request`,{method:"POST"})},retryCodexReviewGate(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/retry`,{method:"POST"})},skipCodexReviewGate(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/skip`,{method:"POST",body:JSON.stringify(s)})},overrideCodexReviewGate(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/override`,{method:"POST",body:JSON.stringify(s)})},getCodexReviewReport(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/codex-review/${r}/report`)},getTranslationSettings(){return Re("/api/translation/settings")},updateTranslationSettings(n){return Re("/api/translation/settings",{method:"PUT",body:JSON.stringify(n)})},getTranslationPrompts(){return Re("/api/translation/prompts")},testTranslationProvider(){return Re("/api/translation/test",{method:"POST"})},startTranslationSession(n,r){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/translation/start`,{method:"POST"})},pollTranslationSession(n,r,s){const o=new URLSearchParams({after:String(r)});return s!==void 0&&o.set("limit",String(s)),Re(`/api/translation/sessions/${encodeURIComponent(n)}/events?${o.toString()}`)},translateUserInput(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/translation/input`,{method:"POST",body:JSON.stringify(s)})},sendTranslatedInput(n,r,s){return Re(`/api/tasks/${encodeURIComponent(n)}/sessions/${r}/translation/send`,{method:"POST",body:JSON.stringify(s)})},clearTranslationSession(n){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/clear`,{method:"POST"})},retryTranslation(n,r){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/retry/${encodeURIComponent(r)}`,{method:"POST"})},ignoreTranslationFailures(n){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/failures/ignore`,{method:"POST"})},retryTranslationFailures(n){return Re(`/api/translation/sessions/${encodeURIComponent(n)}/failures/retry`,{method:"POST"})},getGatewayStatus(){return Re("/api/gateway/status")},updateGatewaySettings(n){return Re("/api/gateway/settings",{method:"PUT",body:JSON.stringify(n)})},startGatewayQrLogin(){return Re("/api/gateway/qr/start",{method:"POST"})},checkGatewayQrLogin(n={}){return Re("/api/gateway/qr/check",{method:"POST",body:JSON.stringify(n)})},resetGatewayBinding(){return Re("/api/gateway/binding/reset",{method:"POST"})}};async function Re(n,r={}){var p,y;const s=new Headers(r.headers);r.body!==void 0&&r.body!==null&&!s.has("content-type")&&s.set("content-type","application/json");const o=await fetch(n,{...r,headers:s});if(!o.ok){const f=await o.json().catch(()=>null),a=(p=f==null?void 0:f.error)!=null&&p.hint?`${f.error.message} ${f.error.hint}`:((y=f==null?void 0:f.error)==null?void 0:y.message)??`Request failed: ${o.status}`;throw new Error(a)}return o.json()}const n1={role:"codex-reviewer",permissionMode:"default",model:"gpt-5.5",effort:"xhigh"};function i1(n,r){const s=er.map(o=>({role:o.name,permissionMode:n.roles[o.name].permissionMode,model:n.roles[o.name].model,effort:n.roles[o.name].effort}));return r.codexReviewerEnabled&&s.push(n1),s}const r1=["architecture-plan","validation-adequacy","final-diff"];function s1({events:n,maxEvents:r=8,showHeader:s=!0}){const o=r===null?n:n.slice(-r);return N.jsxs("section",{className:"event-log",children:[s?N.jsx("h2",{children:"Events"}):null,n.length===0?N.jsx("p",{className:"muted",children:"No terminal events yet."}):N.jsx("ol",{children:o.map((p,y)=>N.jsx("li",{children:p},`${p}-${y}`))})]})}var ec={exports:{}},sm;function l1(){return sm||(sm=1,(function(n,r){(function(s,o){n.exports=o()})(self,(()=>(()=>{var s={};return(()=>{var o=s;Object.defineProperty(o,"__esModule",{value:!0}),o.FitAddon=void 0,o.FitAddon=class{activate(p){this._terminal=p}dispose(){}fit(){const p=this.proposeDimensions();if(!p||!this._terminal||isNaN(p.cols)||isNaN(p.rows))return;const y=this._terminal._core;this._terminal.rows===p.rows&&this._terminal.cols===p.cols||(y._renderService.clear(),this._terminal.resize(p.cols,p.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const p=this._terminal._core,y=p._renderService.dimensions;if(y.css.cell.width===0||y.css.cell.height===0)return;const f=this._terminal.options.scrollback===0?0:p.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),u=parseInt(a.getPropertyValue("height")),h=Math.max(0,parseInt(a.getPropertyValue("width"))),d=window.getComputedStyle(this._terminal.element),c=u-(parseInt(d.getPropertyValue("padding-top"))+parseInt(d.getPropertyValue("padding-bottom"))),S=h-(parseInt(d.getPropertyValue("padding-right"))+parseInt(d.getPropertyValue("padding-left")))-f;return{cols:Math.max(2,Math.floor(S/y.css.cell.width)),rows:Math.max(1,Math.floor(c/y.css.cell.height))}}}})(),s})()))})(ec)),ec.exports}var a1=l1(),tc={exports:{}},lm;function o1(){return lm||(lm=1,(function(n,r){(function(s,o){n.exports=o()})(self,(()=>(()=>{var s={6:(f,a)=>{function u(d){try{const c=new URL(d),S=c.password&&c.username?`${c.protocol}//${c.username}:${c.password}@${c.host}`:c.username?`${c.protocol}//${c.username}@${c.host}`:`${c.protocol}//${c.host}`;return d.toLocaleLowerCase().startsWith(S.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(a,"__esModule",{value:!0}),a.LinkComputer=a.WebLinkProvider=void 0,a.WebLinkProvider=class{constructor(d,c,S,w={}){this._terminal=d,this._regex=c,this._handler=S,this._options=w}provideLinks(d,c){const S=h.computeLink(d,this._regex,this._terminal,this._handler);c(this._addCallbacks(S))}_addCallbacks(d){return d.map((c=>(c.leave=this._options.leave,c.hover=(S,w)=>{if(this._options.hover){const{range:A}=c;this._options.hover(S,w,A)}},c)))}};class h{static computeLink(c,S,w,A){const x=new RegExp(S.source,(S.flags||"")+"g"),[b,_]=h._getWindowedLineStrings(c-1,w),g=b.join("");let v;const k=[];for(;v=x.exec(g);){const M=v[0];if(!u(M))continue;const[D,T]=h._mapStrIdx(w,_,0,v.index),[E,R]=h._mapStrIdx(w,D,T,M.length);if(D===-1||T===-1||E===-1||R===-1)continue;const B={start:{x:T+1,y:D+1},end:{x:R,y:E+1}};k.push({range:B,text:M,activate:A})}return k}static _getWindowedLineStrings(c,S){let w,A=c,x=c,b=0,_="";const g=[];if(w=S.buffer.active.getLine(c)){const v=w.translateToString(!0);if(w.isWrapped&&v[0]!==" "){for(b=0;(w=S.buffer.active.getLine(--A))&&b<2048&&(_=w.translateToString(!0),b+=_.length,g.push(_),w.isWrapped&&_.indexOf(" ")===-1););g.reverse()}for(g.push(v),b=0;(w=S.buffer.active.getLine(++x))&&w.isWrapped&&b<2048&&(_=w.translateToString(!0),b+=_.length,g.push(_),_.indexOf(" ")===-1););}return[g,A]}static _mapStrIdx(c,S,w,A){const x=c.buffer.active,b=x.getNullCell();let _=w;for(;A;){const g=x.getLine(S);if(!g)return[-1,-1];for(let v=_;v<g.length;++v){g.getCell(v,b);const k=b.getChars();if(b.getWidth()&&(A-=k.length||1,v===g.length-1&&k==="")){const M=x.getLine(S+1);M&&M.isWrapped&&(M.getCell(0,b),b.getWidth()===2&&(A+=1))}if(A<0)return[S,v]}S++,_=0}return[S,_]}}a.LinkComputer=h}},o={};function p(f){var a=o[f];if(a!==void 0)return a.exports;var u=o[f]={exports:{}};return s[f](u,u.exports,p),u.exports}var y={};return(()=>{var f=y;Object.defineProperty(f,"__esModule",{value:!0}),f.WebLinksAddon=void 0;const a=p(6),u=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function h(d,c){const S=window.open();if(S){try{S.opener=null}catch{}S.location.href=c}else console.warn("Opening link blocked as opener could not be cleared")}f.WebLinksAddon=class{constructor(d=h,c={}){this._handler=d,this._options=c}activate(d){this._terminal=d;const c=this._options,S=c.urlRegex||u;this._linkProvider=this._terminal.registerLinkProvider(new a.WebLinkProvider(this._terminal,S,this._handler,c))}dispose(){var d;(d=this._linkProvider)==null||d.dispose()}}})(),y})()))})(tc)),tc.exports}var u1=o1(),nc={exports:{}},am;function c1(){return am||(am=1,(function(n,r){(function(s,o){n.exports=o()})(globalThis,(()=>(()=>{var s={4567:function(f,a,u){var h=this&&this.__decorate||function(g,v,k,M){var D,T=arguments.length,E=T<3?v:M===null?M=Object.getOwnPropertyDescriptor(v,k):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,v,k,M);else for(var R=g.length-1;R>=0;R--)(D=g[R])&&(E=(T<3?D(E):T>3?D(v,k,E):D(v,k))||E);return T>3&&E&&Object.defineProperty(v,k,E),E},d=this&&this.__param||function(g,v){return function(k,M){v(k,M,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;const c=u(9042),S=u(9924),w=u(844),A=u(4725),x=u(2585),b=u(3656);let _=a.AccessibilityManager=class extends w.Disposable{constructor(g,v,k,M){super(),this._terminal=g,this._coreBrowserService=k,this._renderService=M,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let D=0;D<this._terminal.rows;D++)this._rowElements[D]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[D]);if(this._topBoundaryFocusListener=D=>this._handleBoundaryFocus(D,0),this._bottomBoundaryFocusListener=D=>this._handleBoundaryFocus(D,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new S.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((D=>this._handleResize(D.rows)))),this.register(this._terminal.onRender((D=>this._refreshRows(D.start,D.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((D=>this._handleChar(D)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
52
52
  `)))),this.register(this._terminal.onA11yTab((D=>this._handleTab(D)))),this.register(this._terminal.onKey((D=>this._handleKey(D.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,b.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,w.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(g){for(let v=0;v<g;v++)this._handleChar(" ")}_handleChar(g){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==g&&(this._charsToAnnounce+=g):this._charsToAnnounce+=g,g===`
53
53
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=c.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(g){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(g)||this._charsToConsume.push(g)}_refreshRows(g,v){this._liveRegionDebouncer.refresh(g,v,this._terminal.rows)}_renderRows(g,v){const k=this._terminal.buffer,M=k.lines.length.toString();for(let D=g;D<=v;D++){const T=k.lines.get(k.ydisp+D),E=[],R=(T==null?void 0:T.translateToString(!0,void 0,void 0,E))||"",B=(k.ydisp+D+1).toString(),z=this._rowElements[D];z&&(R.length===0?(z.innerText=" ",this._rowColumns.set(z,[0,1])):(z.textContent=R,this._rowColumns.set(z,E)),z.setAttribute("aria-posinset",B),z.setAttribute("aria-setsize",M))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(g,v){const k=g.target,M=this._rowElements[v===0?1:this._rowElements.length-2];if(k.getAttribute("aria-posinset")===(v===0?"1":`${this._terminal.buffer.lines.length}`)||g.relatedTarget!==M)return;let D,T;if(v===0?(D=k,T=this._rowElements.pop(),this._rowContainer.removeChild(T)):(D=this._rowElements.shift(),T=k,this._rowContainer.removeChild(D)),D.removeEventListener("focus",this._topBoundaryFocusListener),T.removeEventListener("focus",this._bottomBoundaryFocusListener),v===0){const E=this._createAccessibilityTreeNode();this._rowElements.unshift(E),this._rowContainer.insertAdjacentElement("afterbegin",E)}else{const E=this._createAccessibilityTreeNode();this._rowElements.push(E),this._rowContainer.appendChild(E)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(v===0?-1:1),this._rowElements[v===0?1:this._rowElements.length-2].focus(),g.preventDefault(),g.stopImmediatePropagation()}_handleSelectionChange(){var R;if(this._rowElements.length===0)return;const g=document.getSelection();if(!g)return;if(g.isCollapsed)return void(this._rowContainer.contains(g.anchorNode)&&this._terminal.clearSelection());if(!g.anchorNode||!g.focusNode)return void console.error("anchorNode and/or focusNode are null");let v={node:g.anchorNode,offset:g.anchorOffset},k={node:g.focusNode,offset:g.focusOffset};if((v.node.compareDocumentPosition(k.node)&Node.DOCUMENT_POSITION_PRECEDING||v.node===k.node&&v.offset>k.offset)&&([v,k]=[k,v]),v.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(v={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(v.node))return;const M=this._rowElements.slice(-1)[0];if(k.node.compareDocumentPosition(M)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(k={node:M,offset:((R=M.textContent)==null?void 0:R.length)??0}),!this._rowContainer.contains(k.node))return;const D=({node:B,offset:z})=>{const q=B instanceof Text?B.parentNode:B;let F=parseInt(q==null?void 0:q.getAttribute("aria-posinset"),10)-1;if(isNaN(F))return console.warn("row is invalid. Race condition?"),null;const Y=this._rowColumns.get(q);if(!Y)return console.warn("columns is null. Race condition?"),null;let K=z<Y.length?Y[z]:Y.slice(-1)[0]+1;return K>=this._terminal.cols&&(++F,K=0),{row:F,column:K}},T=D(v),E=D(k);if(T&&E){if(T.row>E.row||T.row===E.row&&T.column>=E.column)throw new Error("invalid range");this._terminal.select(T.column,T.row,(E.row-T.row)*this._terminal.cols-T.column+E.column)}}_handleResize(g){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let v=this._rowContainer.children.length;v<this._terminal.rows;v++)this._rowElements[v]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[v]);for(;this._rowElements.length>g;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const g=this._coreBrowserService.mainDocument.createElement("div");return g.setAttribute("role","listitem"),g.tabIndex=-1,this._refreshRowDimensions(g),g}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let g=0;g<this._terminal.rows;g++)this._refreshRowDimensions(this._rowElements[g])}}_refreshRowDimensions(g){g.style.height=`${this._renderService.dimensions.css.cell.height}px`}};a.AccessibilityManager=_=h([d(1,x.IInstantiationService),d(2,A.ICoreBrowserService),d(3,A.IRenderService)],_)},3614:(f,a)=>{function u(S){return S.replace(/\r?\n/g,"\r")}function h(S,w){return w?"\x1B[200~"+S+"\x1B[201~":S}function d(S,w,A,x){S=h(S=u(S),A.decPrivateModes.bracketedPasteMode&&x.rawOptions.ignoreBracketedPasteMode!==!0),A.triggerDataEvent(S,!0),w.value=""}function c(S,w,A){const x=A.getBoundingClientRect(),b=S.clientX-x.left-10,_=S.clientY-x.top-10;w.style.width="20px",w.style.height="20px",w.style.left=`${b}px`,w.style.top=`${_}px`,w.style.zIndex="1000",w.focus()}Object.defineProperty(a,"__esModule",{value:!0}),a.rightClickHandler=a.moveTextAreaUnderMouseCursor=a.paste=a.handlePasteEvent=a.copyHandler=a.bracketTextForPaste=a.prepareTextForTerminal=void 0,a.prepareTextForTerminal=u,a.bracketTextForPaste=h,a.copyHandler=function(S,w){S.clipboardData&&S.clipboardData.setData("text/plain",w.selectionText),S.preventDefault()},a.handlePasteEvent=function(S,w,A,x){S.stopPropagation(),S.clipboardData&&d(S.clipboardData.getData("text/plain"),w,A,x)},a.paste=d,a.moveTextAreaUnderMouseCursor=c,a.rightClickHandler=function(S,w,A,x,b){c(S,w,A),b&&x.rightClickSelect(S),w.value=x.selectionText,w.select()}},7239:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorContrastCache=void 0;const h=u(1505);a.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(d,c,S){this._css.set(d,c,S)}getCss(d,c){return this._css.get(d,c)}setColor(d,c,S){this._color.set(d,c,S)}getColor(d,c){return this._color.get(d,c)}clear(){this._color.clear(),this._css.clear()}}},3656:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addDisposableDomListener=void 0,a.addDisposableDomListener=function(u,h,d,c){u.addEventListener(h,d,c);let S=!1;return{dispose:()=>{S||(S=!0,u.removeEventListener(h,d,c))}}}},3551:function(f,a,u){var h=this&&this.__decorate||function(_,g,v,k){var M,D=arguments.length,T=D<3?g:k===null?k=Object.getOwnPropertyDescriptor(g,v):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(_,g,v,k);else for(var E=_.length-1;E>=0;E--)(M=_[E])&&(T=(D<3?M(T):D>3?M(g,v,T):M(g,v))||T);return D>3&&T&&Object.defineProperty(g,v,T),T},d=this&&this.__param||function(_,g){return function(v,k){g(v,k,_)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Linkifier=void 0;const c=u(3656),S=u(8460),w=u(844),A=u(2585),x=u(4725);let b=a.Linkifier=class extends w.Disposable{get currentLink(){return this._currentLink}constructor(_,g,v,k,M){super(),this._element=_,this._mouseService=g,this._renderService=v,this._bufferService=k,this._linkProviderService=M,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new S.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new S.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,w.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,w.toDisposable)((()=>{var D;this._lastMouseEvent=void 0,(D=this._activeProviderReplies)==null||D.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,c.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,c.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,c.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,c.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(_){this._lastMouseEvent=_;const g=this._positionFromMouseEvent(_,this._element,this._mouseService);if(!g)return;this._isMouseOut=!1;const v=_.composedPath();for(let k=0;k<v.length;k++){const M=v[k];if(M.classList.contains("xterm"))break;if(M.classList.contains("xterm-hover"))return}this._lastBufferCell&&g.x===this._lastBufferCell.x&&g.y===this._lastBufferCell.y||(this._handleHover(g),this._lastBufferCell=g)}_handleHover(_){if(this._activeLine!==_.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(_,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,_)||(this._clearCurrentLink(),this._askForLink(_,!0))}_askForLink(_,g){var k,M;this._activeProviderReplies&&g||((k=this._activeProviderReplies)==null||k.forEach((D=>{D==null||D.forEach((T=>{T.link.dispose&&T.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=_.y);let v=!1;for(const[D,T]of this._linkProviderService.linkProviders.entries())g?(M=this._activeProviderReplies)!=null&&M.get(D)&&(v=this._checkLinkProviderResult(D,_,v)):T.provideLinks(_.y,(E=>{var B,z;if(this._isMouseOut)return;const R=E==null?void 0:E.map((q=>({link:q})));(B=this._activeProviderReplies)==null||B.set(D,R),v=this._checkLinkProviderResult(D,_,v),((z=this._activeProviderReplies)==null?void 0:z.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(_.y,this._activeProviderReplies)}))}_removeIntersectingLinks(_,g){const v=new Set;for(let k=0;k<g.size;k++){const M=g.get(k);if(M)for(let D=0;D<M.length;D++){const T=M[D],E=T.link.range.start.y<_?0:T.link.range.start.x,R=T.link.range.end.y>_?this._bufferService.cols:T.link.range.end.x;for(let B=E;B<=R;B++){if(v.has(B)){M.splice(D--,1);break}v.add(B)}}}}_checkLinkProviderResult(_,g,v){var D;if(!this._activeProviderReplies)return v;const k=this._activeProviderReplies.get(_);let M=!1;for(let T=0;T<_;T++)this._activeProviderReplies.has(T)&&!this._activeProviderReplies.get(T)||(M=!0);if(!M&&k){const T=k.find((E=>this._linkAtPosition(E.link,g)));T&&(v=!0,this._handleNewLink(T))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!v)for(let T=0;T<this._activeProviderReplies.size;T++){const E=(D=this._activeProviderReplies.get(T))==null?void 0:D.find((R=>this._linkAtPosition(R.link,g)));if(E){v=!0,this._handleNewLink(E);break}}return v}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(_){if(!this._currentLink)return;const g=this._positionFromMouseEvent(_,this._element,this._mouseService);g&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,g)&&this._currentLink.link.activate(_,this._currentLink.link.text)}_clearCurrentLink(_,g){this._currentLink&&this._lastMouseEvent&&(!_||!g||this._currentLink.link.range.start.y>=_&&this._currentLink.link.range.end.y<=g)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,w.disposeArray)(this._linkCacheDisposables))}_handleNewLink(_){if(!this._lastMouseEvent)return;const g=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);g&&this._linkAtPosition(_.link,g)&&(this._currentLink=_,this._currentLink.state={decorations:{underline:_.link.decorations===void 0||_.link.decorations.underline,pointerCursor:_.link.decorations===void 0||_.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,_.link,this._lastMouseEvent),_.link.decorations={},Object.defineProperties(_.link.decorations,{pointerCursor:{get:()=>{var v,k;return(k=(v=this._currentLink)==null?void 0:v.state)==null?void 0:k.decorations.pointerCursor},set:v=>{var k;(k=this._currentLink)!=null&&k.state&&this._currentLink.state.decorations.pointerCursor!==v&&(this._currentLink.state.decorations.pointerCursor=v,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",v))}},underline:{get:()=>{var v,k;return(k=(v=this._currentLink)==null?void 0:v.state)==null?void 0:k.decorations.underline},set:v=>{var k,M,D;(k=this._currentLink)!=null&&k.state&&((D=(M=this._currentLink)==null?void 0:M.state)==null?void 0:D.decorations.underline)!==v&&(this._currentLink.state.decorations.underline=v,this._currentLink.state.isHovered&&this._fireUnderlineEvent(_.link,v))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((v=>{if(!this._currentLink)return;const k=v.start===0?0:v.start+1+this._bufferService.buffer.ydisp,M=this._bufferService.buffer.ydisp+1+v.end;if(this._currentLink.link.range.start.y>=k&&this._currentLink.link.range.end.y<=M&&(this._clearCurrentLink(k,M),this._lastMouseEvent)){const D=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);D&&this._askForLink(D,!1)}}))))}_linkHover(_,g,v){var k;(k=this._currentLink)!=null&&k.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(g,!0),this._currentLink.state.decorations.pointerCursor&&_.classList.add("xterm-cursor-pointer")),g.hover&&g.hover(v,g.text)}_fireUnderlineEvent(_,g){const v=_.range,k=this._bufferService.buffer.ydisp,M=this._createLinkUnderlineEvent(v.start.x-1,v.start.y-k-1,v.end.x,v.end.y-k-1,void 0);(g?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(M)}_linkLeave(_,g,v){var k;(k=this._currentLink)!=null&&k.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(g,!1),this._currentLink.state.decorations.pointerCursor&&_.classList.remove("xterm-cursor-pointer")),g.leave&&g.leave(v,g.text)}_linkAtPosition(_,g){const v=_.range.start.y*this._bufferService.cols+_.range.start.x,k=_.range.end.y*this._bufferService.cols+_.range.end.x,M=g.y*this._bufferService.cols+g.x;return v<=M&&M<=k}_positionFromMouseEvent(_,g,v){const k=v.getCoords(_,g,this._bufferService.cols,this._bufferService.rows);if(k)return{x:k[0],y:k[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(_,g,v,k,M){return{x1:_,y1:g,x2:v,y2:k,cols:this._bufferService.cols,fg:M}}};a.Linkifier=b=h([d(1,x.IMouseService),d(2,x.IRenderService),d(3,A.IBufferService),d(4,x.ILinkProviderService)],b)},9042:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.tooMuchOutput=a.promptLabel=void 0,a.promptLabel="Terminal input",a.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(f,a,u){var h=this&&this.__decorate||function(x,b,_,g){var v,k=arguments.length,M=k<3?b:g===null?g=Object.getOwnPropertyDescriptor(b,_):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(x,b,_,g);else for(var D=x.length-1;D>=0;D--)(v=x[D])&&(M=(k<3?v(M):k>3?v(b,_,M):v(b,_))||M);return k>3&&M&&Object.defineProperty(b,_,M),M},d=this&&this.__param||function(x,b){return function(_,g){b(_,g,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkProvider=void 0;const c=u(511),S=u(2585);let w=a.OscLinkProvider=class{constructor(x,b,_){this._bufferService=x,this._optionsService=b,this._oscLinkService=_}provideLinks(x,b){var R;const _=this._bufferService.buffer.lines.get(x-1);if(!_)return void b(void 0);const g=[],v=this._optionsService.rawOptions.linkHandler,k=new c.CellData,M=_.getTrimmedLength();let D=-1,T=-1,E=!1;for(let B=0;B<M;B++)if(T!==-1||_.hasContent(B)){if(_.loadCell(B,k),k.hasExtendedAttrs()&&k.extended.urlId){if(T===-1){T=B,D=k.extended.urlId;continue}E=k.extended.urlId!==D}else T!==-1&&(E=!0);if(E||T!==-1&&B===M-1){const z=(R=this._oscLinkService.getLinkData(D))==null?void 0:R.uri;if(z){const q={start:{x:T+1,y:x},end:{x:B+(E||B!==M-1?0:1),y:x}};let F=!1;if(!(v!=null&&v.allowNonHttpProtocols))try{const Y=new URL(z);["http:","https:"].includes(Y.protocol)||(F=!0)}catch{F=!0}F||g.push({text:z,range:q,activate:(Y,K)=>v?v.activate(Y,K,q):A(0,K),hover:(Y,K)=>{var G;return(G=v==null?void 0:v.hover)==null?void 0:G.call(v,Y,K,q)},leave:(Y,K)=>{var G;return(G=v==null?void 0:v.leave)==null?void 0:G.call(v,Y,K,q)}})}E=!1,k.hasExtendedAttrs()&&k.extended.urlId?(T=B,D=k.extended.urlId):(T=-1,D=-1)}}b(g)}};function A(x,b){if(confirm(`Do you want to navigate to ${b}?
54
54
 
@@ -56,37 +56,37 @@ WARNING: This link could potentially be dangerous`)){const _=window.open();if(_)
56
56
  `:`
57
57
  `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(E){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),_.isLinux&&E&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(E){const R=this._getMouseBufferCoords(E),B=this._model.finalSelectionStart,z=this._model.finalSelectionEnd;return!!(B&&z&&R)&&this._areCoordsInSelection(R,B,z)}isCellInSelection(E,R){const B=this._model.finalSelectionStart,z=this._model.finalSelectionEnd;return!(!B||!z)&&this._areCoordsInSelection([E,R],B,z)}_areCoordsInSelection(E,R,B){return E[1]>R[1]&&E[1]<B[1]||R[1]===B[1]&&E[1]===R[1]&&E[0]>=R[0]&&E[0]<B[0]||R[1]<B[1]&&E[1]===B[1]&&E[0]<B[0]||R[1]<B[1]&&E[1]===R[1]&&E[0]>=R[0]}_selectWordAtCursor(E,R){var q,F;const B=(F=(q=this._linkifier.currentLink)==null?void 0:q.link)==null?void 0:F.range;if(B)return this._model.selectionStart=[B.start.x-1,B.start.y-1],this._model.selectionStartLength=(0,g.getRangeLength)(B,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const z=this._getMouseBufferCoords(E);return!!z&&(this._selectWordAt(z,R),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(E,R){this._model.clearSelection(),E=Math.max(E,0),R=Math.min(R,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,E],this._model.selectionEnd=[this._bufferService.cols,R],this.refresh(),this._onSelectionChange.fire()}_handleTrim(E){this._model.handleTrim(E)&&this.refresh()}_getMouseBufferCoords(E){const R=this._mouseService.getCoords(E,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(R)return R[0]--,R[1]--,R[1]+=this._bufferService.buffer.ydisp,R}_getMouseEventScrollAmount(E){let R=(0,c.getCoordsRelativeToElement)(this._coreBrowserService.window,E,this._screenElement)[1];const B=this._renderService.dimensions.css.canvas.height;return R>=0&&R<=B?0:(R>B&&(R-=B),R=Math.min(Math.max(R,-50),50),R/=50,R/Math.abs(R)+Math.round(14*R))}shouldForceSelection(E){return _.isMac?E.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:E.shiftKey}handleMouseDown(E){if(this._mouseDownTimeStamp=E.timeStamp,(E.button!==2||!this.hasSelection)&&E.button===0){if(!this._enabled){if(!this.shouldForceSelection(E))return;E.stopPropagation()}E.preventDefault(),this._dragScrollAmount=0,this._enabled&&E.shiftKey?this._handleIncrementalClick(E):E.detail===1?this._handleSingleClick(E):E.detail===2?this._handleDoubleClick(E):E.detail===3&&this._handleTripleClick(E),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(E){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(E))}_handleSingleClick(E){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(E)?3:0,this._model.selectionStart=this._getMouseBufferCoords(E),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const R=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);R&&R.length!==this._model.selectionStart[0]&&R.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(E){this._selectWordAtCursor(E,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(E){const R=this._getMouseBufferCoords(E);R&&(this._activeSelectionMode=2,this._selectLineAt(R[1]))}shouldColumnSelect(E){return E.altKey&&!(_.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(E){if(E.stopImmediatePropagation(),!this._model.selectionStart)return;const R=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(E),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(E),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const B=this._bufferService.buffer;if(this._model.selectionEnd[1]<B.lines.length){const z=B.lines.get(this._model.selectionEnd[1]);z&&z.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}R&&R[0]===this._model.selectionEnd[0]&&R[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const E=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(E.ydisp+this._bufferService.rows,E.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=E.ydisp),this.refresh()}}_handleMouseUp(E){const R=E.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&R<500&&E.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const B=this._mouseService.getCoords(E,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(B&&B[0]!==void 0&&B[1]!==void 0){const z=(0,S.moveToCellSequence)(B[0]-1,B[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(z,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const E=this._model.finalSelectionStart,R=this._model.finalSelectionEnd,B=!(!E||!R||E[0]===R[0]&&E[1]===R[1]);B?E&&R&&(this._oldSelectionStart&&this._oldSelectionEnd&&E[0]===this._oldSelectionStart[0]&&E[1]===this._oldSelectionStart[1]&&R[0]===this._oldSelectionEnd[0]&&R[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(E,R,B)):this._oldHasSelection&&this._fireOnSelectionChange(E,R,B)}_fireOnSelectionChange(E,R,B){this._oldSelectionStart=E,this._oldSelectionEnd=R,this._oldHasSelection=B,this._onSelectionChange.fire()}_handleBufferActivate(E){this.clearSelection(),this._trimListener.dispose(),this._trimListener=E.activeBuffer.lines.onTrim((R=>this._handleTrim(R)))}_convertViewportColToCharacterIndex(E,R){let B=R;for(let z=0;R>=z;z++){const q=E.loadCell(z,this._workCell).getChars().length;this._workCell.getWidth()===0?B--:q>1&&R!==z&&(B+=q-1)}return B}setSelection(E,R,B){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[E,R],this._model.selectionStartLength=B,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(E){this._isClickInSelection(E)||(this._selectWordAtCursor(E,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(E,R,B=!0,z=!0){if(E[0]>=this._bufferService.cols)return;const q=this._bufferService.buffer,F=q.lines.get(E[1]);if(!F)return;const Y=q.translateBufferLineToString(E[1],!1);let K=this._convertViewportColToCharacterIndex(F,E[0]),G=K;const X=E[0]-K;let J=0,I=0,O=0,j=0;if(Y.charAt(K)===" "){for(;K>0&&Y.charAt(K-1)===" ";)K--;for(;G<Y.length&&Y.charAt(G+1)===" ";)G++}else{let ne=E[0],_e=E[0];F.getWidth(ne)===0&&(J++,ne--),F.getWidth(_e)===2&&(I++,_e++);const me=F.getString(_e).length;for(me>1&&(j+=me-1,G+=me-1);ne>0&&K>0&&!this._isCharWordSeparator(F.loadCell(ne-1,this._workCell));){F.loadCell(ne-1,this._workCell);const $=this._workCell.getChars().length;this._workCell.getWidth()===0?(J++,ne--):$>1&&(O+=$-1,K-=$-1),K--,ne--}for(;_e<F.length&&G+1<Y.length&&!this._isCharWordSeparator(F.loadCell(_e+1,this._workCell));){F.loadCell(_e+1,this._workCell);const $=this._workCell.getChars().length;this._workCell.getWidth()===2?(I++,_e++):$>1&&(j+=$-1,G+=$-1),G++,_e++}}G++;let V=K+X-J+O,U=Math.min(this._bufferService.cols,G-K+J+I-O-j);if(R||Y.slice(K,G).trim()!==""){if(B&&V===0&&F.getCodePoint(0)!==32){const ne=q.lines.get(E[1]-1);if(ne&&F.isWrapped&&ne.getCodePoint(this._bufferService.cols-1)!==32){const _e=this._getWordAt([this._bufferService.cols-1,E[1]-1],!1,!0,!1);if(_e){const me=this._bufferService.cols-_e.start;V-=me,U+=me}}}if(z&&V+U===this._bufferService.cols&&F.getCodePoint(this._bufferService.cols-1)!==32){const ne=q.lines.get(E[1]+1);if(ne!=null&&ne.isWrapped&&ne.getCodePoint(0)!==32){const _e=this._getWordAt([0,E[1]+1],!1,!1,!0);_e&&(U+=_e.length)}}return{start:V,length:U}}}_selectWordAt(E,R){const B=this._getWordAt(E,R);if(B){for(;B.start<0;)B.start+=this._bufferService.cols,E[1]--;this._model.selectionStart=[B.start,E[1]],this._model.selectionStartLength=B.length}}_selectToWordAt(E){const R=this._getWordAt(E,!0);if(R){let B=E[1];for(;R.start<0;)R.start+=this._bufferService.cols,B--;if(!this._model.areSelectionValuesReversed())for(;R.start+R.length>this._bufferService.cols;)R.length-=this._bufferService.cols,B++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?R.start:R.start+R.length,B]}}_isCharWordSeparator(E){return E.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(E.getChars())>=0}_selectLineAt(E){const R=this._bufferService.buffer.getWrappedRangeForLine(E),B={start:{x:0,y:R.first},end:{x:this._bufferService.cols-1,y:R.last}};this._model.selectionStart=[0,R.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,g.getRangeLength)(B,this._bufferService.cols)}};a.SelectionService=T=h([d(3,k.IBufferService),d(4,k.ICoreService),d(5,A.IMouseService),d(6,k.IOptionsService),d(7,A.IRenderService),d(8,A.ICoreBrowserService)],T)},4725:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ILinkProviderService=a.IThemeService=a.ICharacterJoinerService=a.ISelectionService=a.IRenderService=a.IMouseService=a.ICoreBrowserService=a.ICharSizeService=void 0;const h=u(8343);a.ICharSizeService=(0,h.createDecorator)("CharSizeService"),a.ICoreBrowserService=(0,h.createDecorator)("CoreBrowserService"),a.IMouseService=(0,h.createDecorator)("MouseService"),a.IRenderService=(0,h.createDecorator)("RenderService"),a.ISelectionService=(0,h.createDecorator)("SelectionService"),a.ICharacterJoinerService=(0,h.createDecorator)("CharacterJoinerService"),a.IThemeService=(0,h.createDecorator)("ThemeService"),a.ILinkProviderService=(0,h.createDecorator)("LinkProviderService")},6731:function(f,a,u){var h=this&&this.__decorate||function(T,E,R,B){var z,q=arguments.length,F=q<3?E:B===null?B=Object.getOwnPropertyDescriptor(E,R):B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(T,E,R,B);else for(var Y=T.length-1;Y>=0;Y--)(z=T[Y])&&(F=(q<3?z(F):q>3?z(E,R,F):z(E,R))||F);return q>3&&F&&Object.defineProperty(E,R,F),F},d=this&&this.__param||function(T,E){return function(R,B){E(R,B,T)}};Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeService=a.DEFAULT_ANSI_COLORS=void 0;const c=u(7239),S=u(8055),w=u(8460),A=u(844),x=u(2585),b=S.css.toColor("#ffffff"),_=S.css.toColor("#000000"),g=S.css.toColor("#ffffff"),v=S.css.toColor("#000000"),k={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};a.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const T=[S.css.toColor("#2e3436"),S.css.toColor("#cc0000"),S.css.toColor("#4e9a06"),S.css.toColor("#c4a000"),S.css.toColor("#3465a4"),S.css.toColor("#75507b"),S.css.toColor("#06989a"),S.css.toColor("#d3d7cf"),S.css.toColor("#555753"),S.css.toColor("#ef2929"),S.css.toColor("#8ae234"),S.css.toColor("#fce94f"),S.css.toColor("#729fcf"),S.css.toColor("#ad7fa8"),S.css.toColor("#34e2e2"),S.css.toColor("#eeeeec")],E=[0,95,135,175,215,255];for(let R=0;R<216;R++){const B=E[R/36%6|0],z=E[R/6%6|0],q=E[R%6];T.push({css:S.channels.toCss(B,z,q),rgba:S.channels.toRgba(B,z,q)})}for(let R=0;R<24;R++){const B=8+10*R;T.push({css:S.channels.toCss(B,B,B),rgba:S.channels.toRgba(B,B,B)})}return T})());let M=a.ThemeService=class extends A.Disposable{get colors(){return this._colors}constructor(T){super(),this._optionsService=T,this._contrastCache=new c.ColorContrastCache,this._halfContrastCache=new c.ColorContrastCache,this._onChangeColors=this.register(new w.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:b,background:_,cursor:g,cursorAccent:v,selectionForeground:void 0,selectionBackgroundTransparent:k,selectionBackgroundOpaque:S.color.blend(_,k),selectionInactiveBackgroundTransparent:k,selectionInactiveBackgroundOpaque:S.color.blend(_,k),ansi:a.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(T={}){const E=this._colors;if(E.foreground=D(T.foreground,b),E.background=D(T.background,_),E.cursor=D(T.cursor,g),E.cursorAccent=D(T.cursorAccent,v),E.selectionBackgroundTransparent=D(T.selectionBackground,k),E.selectionBackgroundOpaque=S.color.blend(E.background,E.selectionBackgroundTransparent),E.selectionInactiveBackgroundTransparent=D(T.selectionInactiveBackground,E.selectionBackgroundTransparent),E.selectionInactiveBackgroundOpaque=S.color.blend(E.background,E.selectionInactiveBackgroundTransparent),E.selectionForeground=T.selectionForeground?D(T.selectionForeground,S.NULL_COLOR):void 0,E.selectionForeground===S.NULL_COLOR&&(E.selectionForeground=void 0),S.color.isOpaque(E.selectionBackgroundTransparent)&&(E.selectionBackgroundTransparent=S.color.opacity(E.selectionBackgroundTransparent,.3)),S.color.isOpaque(E.selectionInactiveBackgroundTransparent)&&(E.selectionInactiveBackgroundTransparent=S.color.opacity(E.selectionInactiveBackgroundTransparent,.3)),E.ansi=a.DEFAULT_ANSI_COLORS.slice(),E.ansi[0]=D(T.black,a.DEFAULT_ANSI_COLORS[0]),E.ansi[1]=D(T.red,a.DEFAULT_ANSI_COLORS[1]),E.ansi[2]=D(T.green,a.DEFAULT_ANSI_COLORS[2]),E.ansi[3]=D(T.yellow,a.DEFAULT_ANSI_COLORS[3]),E.ansi[4]=D(T.blue,a.DEFAULT_ANSI_COLORS[4]),E.ansi[5]=D(T.magenta,a.DEFAULT_ANSI_COLORS[5]),E.ansi[6]=D(T.cyan,a.DEFAULT_ANSI_COLORS[6]),E.ansi[7]=D(T.white,a.DEFAULT_ANSI_COLORS[7]),E.ansi[8]=D(T.brightBlack,a.DEFAULT_ANSI_COLORS[8]),E.ansi[9]=D(T.brightRed,a.DEFAULT_ANSI_COLORS[9]),E.ansi[10]=D(T.brightGreen,a.DEFAULT_ANSI_COLORS[10]),E.ansi[11]=D(T.brightYellow,a.DEFAULT_ANSI_COLORS[11]),E.ansi[12]=D(T.brightBlue,a.DEFAULT_ANSI_COLORS[12]),E.ansi[13]=D(T.brightMagenta,a.DEFAULT_ANSI_COLORS[13]),E.ansi[14]=D(T.brightCyan,a.DEFAULT_ANSI_COLORS[14]),E.ansi[15]=D(T.brightWhite,a.DEFAULT_ANSI_COLORS[15]),T.extendedAnsi){const R=Math.min(E.ansi.length-16,T.extendedAnsi.length);for(let B=0;B<R;B++)E.ansi[B+16]=D(T.extendedAnsi[B],a.DEFAULT_ANSI_COLORS[B+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(T){this._restoreColor(T),this._onChangeColors.fire(this.colors)}_restoreColor(T){if(T!==void 0)switch(T){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[T]=this._restoreColors.ansi[T]}else for(let E=0;E<this._restoreColors.ansi.length;++E)this._colors.ansi[E]=this._restoreColors.ansi[E]}modifyColors(T){T(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function D(T,E){if(T!==void 0)try{return S.css.toColor(T)}catch{}return E}a.ThemeService=M=h([d(0,x.IOptionsService)],M)},6349:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CircularList=void 0;const h=u(8460),d=u(844);class c extends d.Disposable{constructor(w){super(),this._maxLength=w,this.onDeleteEmitter=this.register(new h.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new h.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new h.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(w){if(this._maxLength===w)return;const A=new Array(w);for(let x=0;x<Math.min(w,this.length);x++)A[x]=this._array[this._getCyclicIndex(x)];this._array=A,this._maxLength=w,this._startIndex=0}get length(){return this._length}set length(w){if(w>this._length)for(let A=this._length;A<w;A++)this._array[A]=void 0;this._length=w}get(w){return this._array[this._getCyclicIndex(w)]}set(w,A){this._array[this._getCyclicIndex(w)]=A}push(w){this._array[this._getCyclicIndex(this._length)]=w,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(w,A,...x){if(A){for(let b=w;b<this._length-A;b++)this._array[this._getCyclicIndex(b)]=this._array[this._getCyclicIndex(b+A)];this._length-=A,this.onDeleteEmitter.fire({index:w,amount:A})}for(let b=this._length-1;b>=w;b--)this._array[this._getCyclicIndex(b+x.length)]=this._array[this._getCyclicIndex(b)];for(let b=0;b<x.length;b++)this._array[this._getCyclicIndex(w+b)]=x[b];if(x.length&&this.onInsertEmitter.fire({index:w,amount:x.length}),this._length+x.length>this._maxLength){const b=this._length+x.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=x.length}trimStart(w){w>this._length&&(w=this._length),this._startIndex+=w,this._length-=w,this.onTrimEmitter.fire(w)}shiftElements(w,A,x){if(!(A<=0)){if(w<0||w>=this._length)throw new Error("start argument out of range");if(w+x<0)throw new Error("Cannot shift elements in list beyond index 0");if(x>0){for(let _=A-1;_>=0;_--)this.set(w+_+x,this.get(w+_));const b=w+A+x-this._length;if(b>0)for(this._length+=b;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let b=0;b<A;b++)this.set(w+b+x,this.get(w+b))}}_getCyclicIndex(w){return(this._startIndex+w)%this._maxLength}}a.CircularList=c},1439:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clone=void 0,a.clone=function u(h,d=5){if(typeof h!="object")return h;const c=Array.isArray(h)?[]:{};for(const S in h)c[S]=d<=1?h[S]:h[S]&&u(h[S],d-1);return c}},8055:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.contrastRatio=a.toPaddedHex=a.rgba=a.rgb=a.css=a.color=a.channels=a.NULL_COLOR=void 0;let u=0,h=0,d=0,c=0;var S,w,A,x,b;function _(v){const k=v.toString(16);return k.length<2?"0"+k:k}function g(v,k){return v<k?(k+.05)/(v+.05):(v+.05)/(k+.05)}a.NULL_COLOR={css:"#00000000",rgba:0},(function(v){v.toCss=function(k,M,D,T){return T!==void 0?`#${_(k)}${_(M)}${_(D)}${_(T)}`:`#${_(k)}${_(M)}${_(D)}`},v.toRgba=function(k,M,D,T=255){return(k<<24|M<<16|D<<8|T)>>>0},v.toColor=function(k,M,D,T){return{css:v.toCss(k,M,D,T),rgba:v.toRgba(k,M,D,T)}}})(S||(a.channels=S={})),(function(v){function k(M,D){return c=Math.round(255*D),[u,h,d]=b.toChannels(M.rgba),{css:S.toCss(u,h,d,c),rgba:S.toRgba(u,h,d,c)}}v.blend=function(M,D){if(c=(255&D.rgba)/255,c===1)return{css:D.css,rgba:D.rgba};const T=D.rgba>>24&255,E=D.rgba>>16&255,R=D.rgba>>8&255,B=M.rgba>>24&255,z=M.rgba>>16&255,q=M.rgba>>8&255;return u=B+Math.round((T-B)*c),h=z+Math.round((E-z)*c),d=q+Math.round((R-q)*c),{css:S.toCss(u,h,d),rgba:S.toRgba(u,h,d)}},v.isOpaque=function(M){return(255&M.rgba)==255},v.ensureContrastRatio=function(M,D,T){const E=b.ensureContrastRatio(M.rgba,D.rgba,T);if(E)return S.toColor(E>>24&255,E>>16&255,E>>8&255)},v.opaque=function(M){const D=(255|M.rgba)>>>0;return[u,h,d]=b.toChannels(D),{css:S.toCss(u,h,d),rgba:D}},v.opacity=k,v.multiplyOpacity=function(M,D){return c=255&M.rgba,k(M,c*D/255)},v.toColorRGB=function(M){return[M.rgba>>24&255,M.rgba>>16&255,M.rgba>>8&255]}})(w||(a.color=w={})),(function(v){let k,M;try{const D=document.createElement("canvas");D.width=1,D.height=1;const T=D.getContext("2d",{willReadFrequently:!0});T&&(k=T,k.globalCompositeOperation="copy",M=k.createLinearGradient(0,0,1,1))}catch{}v.toColor=function(D){if(D.match(/#[\da-f]{3,8}/i))switch(D.length){case 4:return u=parseInt(D.slice(1,2).repeat(2),16),h=parseInt(D.slice(2,3).repeat(2),16),d=parseInt(D.slice(3,4).repeat(2),16),S.toColor(u,h,d);case 5:return u=parseInt(D.slice(1,2).repeat(2),16),h=parseInt(D.slice(2,3).repeat(2),16),d=parseInt(D.slice(3,4).repeat(2),16),c=parseInt(D.slice(4,5).repeat(2),16),S.toColor(u,h,d,c);case 7:return{css:D,rgba:(parseInt(D.slice(1),16)<<8|255)>>>0};case 9:return{css:D,rgba:parseInt(D.slice(1),16)>>>0}}const T=D.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(T)return u=parseInt(T[1]),h=parseInt(T[2]),d=parseInt(T[3]),c=Math.round(255*(T[5]===void 0?1:parseFloat(T[5]))),S.toColor(u,h,d,c);if(!k||!M)throw new Error("css.toColor: Unsupported css format");if(k.fillStyle=M,k.fillStyle=D,typeof k.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(k.fillRect(0,0,1,1),[u,h,d,c]=k.getImageData(0,0,1,1).data,c!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:S.toRgba(u,h,d,c),css:D}}})(A||(a.css=A={})),(function(v){function k(M,D,T){const E=M/255,R=D/255,B=T/255;return .2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))+.0722*(B<=.03928?B/12.92:Math.pow((B+.055)/1.055,2.4))}v.relativeLuminance=function(M){return k(M>>16&255,M>>8&255,255&M)},v.relativeLuminance2=k})(x||(a.rgb=x={})),(function(v){function k(D,T,E){const R=D>>24&255,B=D>>16&255,z=D>>8&255;let q=T>>24&255,F=T>>16&255,Y=T>>8&255,K=g(x.relativeLuminance2(q,F,Y),x.relativeLuminance2(R,B,z));for(;K<E&&(q>0||F>0||Y>0);)q-=Math.max(0,Math.ceil(.1*q)),F-=Math.max(0,Math.ceil(.1*F)),Y-=Math.max(0,Math.ceil(.1*Y)),K=g(x.relativeLuminance2(q,F,Y),x.relativeLuminance2(R,B,z));return(q<<24|F<<16|Y<<8|255)>>>0}function M(D,T,E){const R=D>>24&255,B=D>>16&255,z=D>>8&255;let q=T>>24&255,F=T>>16&255,Y=T>>8&255,K=g(x.relativeLuminance2(q,F,Y),x.relativeLuminance2(R,B,z));for(;K<E&&(q<255||F<255||Y<255);)q=Math.min(255,q+Math.ceil(.1*(255-q))),F=Math.min(255,F+Math.ceil(.1*(255-F))),Y=Math.min(255,Y+Math.ceil(.1*(255-Y))),K=g(x.relativeLuminance2(q,F,Y),x.relativeLuminance2(R,B,z));return(q<<24|F<<16|Y<<8|255)>>>0}v.blend=function(D,T){if(c=(255&T)/255,c===1)return T;const E=T>>24&255,R=T>>16&255,B=T>>8&255,z=D>>24&255,q=D>>16&255,F=D>>8&255;return u=z+Math.round((E-z)*c),h=q+Math.round((R-q)*c),d=F+Math.round((B-F)*c),S.toRgba(u,h,d)},v.ensureContrastRatio=function(D,T,E){const R=x.relativeLuminance(D>>8),B=x.relativeLuminance(T>>8);if(g(R,B)<E){if(B<R){const F=k(D,T,E),Y=g(R,x.relativeLuminance(F>>8));if(Y<E){const K=M(D,T,E);return Y>g(R,x.relativeLuminance(K>>8))?F:K}return F}const z=M(D,T,E),q=g(R,x.relativeLuminance(z>>8));if(q<E){const F=k(D,T,E);return q>g(R,x.relativeLuminance(F>>8))?z:F}return z}},v.reduceLuminance=k,v.increaseLuminance=M,v.toChannels=function(D){return[D>>24&255,D>>16&255,D>>8&255,255&D]}})(b||(a.rgba=b={})),a.toPaddedHex=_,a.contrastRatio=g},8969:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreTerminal=void 0;const h=u(844),d=u(2585),c=u(4348),S=u(7866),w=u(744),A=u(7302),x=u(6975),b=u(8460),_=u(1753),g=u(1480),v=u(7994),k=u(9282),M=u(5435),D=u(5981),T=u(2660);let E=!1;class R extends h.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new b.EventEmitter),this._onScroll.event((z=>{var q;(q=this._onScrollApi)==null||q.fire(z.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(z){for(const q in z)this.optionsService.options[q]=z[q]}constructor(z){super(),this._windowsWrappingHeuristics=this.register(new h.MutableDisposable),this._onBinary=this.register(new b.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new b.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new b.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new b.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new b.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new b.EventEmitter),this._instantiationService=new c.InstantiationService,this.optionsService=this.register(new A.OptionsService(z)),this._instantiationService.setService(d.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(w.BufferService)),this._instantiationService.setService(d.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(S.LogService)),this._instantiationService.setService(d.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(x.CoreService)),this._instantiationService.setService(d.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(_.CoreMouseService)),this._instantiationService.setService(d.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(g.UnicodeService)),this._instantiationService.setService(d.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(v.CharsetService),this._instantiationService.setService(d.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(T.OscLinkService),this._instantiationService.setService(d.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new M.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,b.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,b.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,b.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,b.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((q=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((q=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new D.WriteBuffer(((q,F)=>this._inputHandler.parse(q,F)))),this.register((0,b.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(z,q){this._writeBuffer.write(z,q)}writeSync(z,q){this._logService.logLevel<=d.LogLevelEnum.WARN&&!E&&(this._logService.warn("writeSync is unreliable and will be removed soon."),E=!0),this._writeBuffer.writeSync(z,q)}input(z,q=!0){this.coreService.triggerDataEvent(z,q)}resize(z,q){isNaN(z)||isNaN(q)||(z=Math.max(z,w.MINIMUM_COLS),q=Math.max(q,w.MINIMUM_ROWS),this._bufferService.resize(z,q))}scroll(z,q=!1){this._bufferService.scroll(z,q)}scrollLines(z,q,F){this._bufferService.scrollLines(z,q,F)}scrollPages(z){this.scrollLines(z*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(z){const q=z-this._bufferService.buffer.ydisp;q!==0&&this.scrollLines(q)}registerEscHandler(z,q){return this._inputHandler.registerEscHandler(z,q)}registerDcsHandler(z,q){return this._inputHandler.registerDcsHandler(z,q)}registerCsiHandler(z,q){return this._inputHandler.registerCsiHandler(z,q)}registerOscHandler(z,q){return this._inputHandler.registerOscHandler(z,q)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let z=!1;const q=this.optionsService.rawOptions.windowsPty;q&&q.buildNumber!==void 0&&q.buildNumber!==void 0?z=q.backend==="conpty"&&q.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(z=!0),z?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const z=[];z.push(this.onLineFeed(k.updateWindowsModeWrappedState.bind(null,this._bufferService))),z.push(this.registerCsiHandler({final:"H"},(()=>((0,k.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,h.toDisposable)((()=>{for(const q of z)q.dispose()}))}}}a.CoreTerminal=R},8460:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.runAndSubscribe=a.forwardEvent=a.EventEmitter=void 0,a.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=u=>(this._listeners.push(u),{dispose:()=>{if(!this._disposed){for(let h=0;h<this._listeners.length;h++)if(this._listeners[h]===u)return void this._listeners.splice(h,1)}}})),this._event}fire(u,h){const d=[];for(let c=0;c<this._listeners.length;c++)d.push(this._listeners[c]);for(let c=0;c<d.length;c++)d[c].call(void 0,u,h)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},a.forwardEvent=function(u,h){return u((d=>h.fire(d)))},a.runAndSubscribe=function(u,h){return h(void 0),u((d=>h(d)))}},5435:function(f,a,u){var h=this&&this.__decorate||function(J,I,O,j){var V,U=arguments.length,ne=U<3?I:j===null?j=Object.getOwnPropertyDescriptor(I,O):j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(J,I,O,j);else for(var _e=J.length-1;_e>=0;_e--)(V=J[_e])&&(ne=(U<3?V(ne):U>3?V(I,O,ne):V(I,O))||ne);return U>3&&ne&&Object.defineProperty(I,O,ne),ne},d=this&&this.__param||function(J,I){return function(O,j){I(O,j,J)}};Object.defineProperty(a,"__esModule",{value:!0}),a.InputHandler=a.WindowsOptionsReportType=void 0;const c=u(2584),S=u(7116),w=u(2015),A=u(844),x=u(482),b=u(8437),_=u(8460),g=u(643),v=u(511),k=u(3734),M=u(2585),D=u(1480),T=u(6242),E=u(6351),R=u(5941),B={"(":0,")":1,"*":2,"+":3,"-":1,".":2},z=131072;function q(J,I){if(J>24)return I.setWinLines||!1;switch(J){case 1:return!!I.restoreWin;case 2:return!!I.minimizeWin;case 3:return!!I.setWinPosition;case 4:return!!I.setWinSizePixels;case 5:return!!I.raiseWin;case 6:return!!I.lowerWin;case 7:return!!I.refreshWin;case 8:return!!I.setWinSizeChars;case 9:return!!I.maximizeWin;case 10:return!!I.fullscreenWin;case 11:return!!I.getWinState;case 13:return!!I.getWinPosition;case 14:return!!I.getWinSizePixels;case 15:return!!I.getScreenSizePixels;case 16:return!!I.getCellSizePixels;case 18:return!!I.getWinSizeChars;case 19:return!!I.getScreenSizeChars;case 20:return!!I.getIconTitle;case 21:return!!I.getWinTitle;case 22:return!!I.pushTitle;case 23:return!!I.popTitle;case 24:return!!I.setWinLines}return!1}var F;(function(J){J[J.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",J[J.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(F||(a.WindowsOptionsReportType=F={}));let Y=0;class K extends A.Disposable{getAttrData(){return this._curAttrData}constructor(I,O,j,V,U,ne,_e,me,$=new w.EscapeSequenceParser){super(),this._bufferService=I,this._charsetService=O,this._coreService=j,this._logService=V,this._optionsService=U,this._oscLinkService=ne,this._coreMouseService=_e,this._unicodeService=me,this._parser=$,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new x.StringToUtf32,this._utf8Decoder=new x.Utf8ToUtf32,this._workCell=new v.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new _.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new _.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new _.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new _.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new _.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new _.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new _.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new _.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new _.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new _.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new _.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new _.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new _.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new G(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((H=>this._activeBuffer=H.activeBuffer))),this._parser.setCsiHandlerFallback(((H,te)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(H),params:te.toArray()})})),this._parser.setEscHandlerFallback((H=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(H)})})),this._parser.setExecuteHandlerFallback((H=>{this._logService.debug("Unknown EXECUTE code: ",{code:H})})),this._parser.setOscHandlerFallback(((H,te,Z)=>{this._logService.debug("Unknown OSC code: ",{identifier:H,action:te,data:Z})})),this._parser.setDcsHandlerFallback(((H,te,Z)=>{te==="HOOK"&&(Z=Z.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(H),action:te,payload:Z})})),this._parser.setPrintHandler(((H,te,Z)=>this.print(H,te,Z))),this._parser.registerCsiHandler({final:"@"},(H=>this.insertChars(H))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(H=>this.scrollLeft(H))),this._parser.registerCsiHandler({final:"A"},(H=>this.cursorUp(H))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(H=>this.scrollRight(H))),this._parser.registerCsiHandler({final:"B"},(H=>this.cursorDown(H))),this._parser.registerCsiHandler({final:"C"},(H=>this.cursorForward(H))),this._parser.registerCsiHandler({final:"D"},(H=>this.cursorBackward(H))),this._parser.registerCsiHandler({final:"E"},(H=>this.cursorNextLine(H))),this._parser.registerCsiHandler({final:"F"},(H=>this.cursorPrecedingLine(H))),this._parser.registerCsiHandler({final:"G"},(H=>this.cursorCharAbsolute(H))),this._parser.registerCsiHandler({final:"H"},(H=>this.cursorPosition(H))),this._parser.registerCsiHandler({final:"I"},(H=>this.cursorForwardTab(H))),this._parser.registerCsiHandler({final:"J"},(H=>this.eraseInDisplay(H,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(H=>this.eraseInDisplay(H,!0))),this._parser.registerCsiHandler({final:"K"},(H=>this.eraseInLine(H,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(H=>this.eraseInLine(H,!0))),this._parser.registerCsiHandler({final:"L"},(H=>this.insertLines(H))),this._parser.registerCsiHandler({final:"M"},(H=>this.deleteLines(H))),this._parser.registerCsiHandler({final:"P"},(H=>this.deleteChars(H))),this._parser.registerCsiHandler({final:"S"},(H=>this.scrollUp(H))),this._parser.registerCsiHandler({final:"T"},(H=>this.scrollDown(H))),this._parser.registerCsiHandler({final:"X"},(H=>this.eraseChars(H))),this._parser.registerCsiHandler({final:"Z"},(H=>this.cursorBackwardTab(H))),this._parser.registerCsiHandler({final:"`"},(H=>this.charPosAbsolute(H))),this._parser.registerCsiHandler({final:"a"},(H=>this.hPositionRelative(H))),this._parser.registerCsiHandler({final:"b"},(H=>this.repeatPrecedingCharacter(H))),this._parser.registerCsiHandler({final:"c"},(H=>this.sendDeviceAttributesPrimary(H))),this._parser.registerCsiHandler({prefix:">",final:"c"},(H=>this.sendDeviceAttributesSecondary(H))),this._parser.registerCsiHandler({final:"d"},(H=>this.linePosAbsolute(H))),this._parser.registerCsiHandler({final:"e"},(H=>this.vPositionRelative(H))),this._parser.registerCsiHandler({final:"f"},(H=>this.hVPosition(H))),this._parser.registerCsiHandler({final:"g"},(H=>this.tabClear(H))),this._parser.registerCsiHandler({final:"h"},(H=>this.setMode(H))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(H=>this.setModePrivate(H))),this._parser.registerCsiHandler({final:"l"},(H=>this.resetMode(H))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(H=>this.resetModePrivate(H))),this._parser.registerCsiHandler({final:"m"},(H=>this.charAttributes(H))),this._parser.registerCsiHandler({final:"n"},(H=>this.deviceStatus(H))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(H=>this.deviceStatusPrivate(H))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(H=>this.softReset(H))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(H=>this.setCursorStyle(H))),this._parser.registerCsiHandler({final:"r"},(H=>this.setScrollRegion(H))),this._parser.registerCsiHandler({final:"s"},(H=>this.saveCursor(H))),this._parser.registerCsiHandler({final:"t"},(H=>this.windowOptions(H))),this._parser.registerCsiHandler({final:"u"},(H=>this.restoreCursor(H))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(H=>this.insertColumns(H))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(H=>this.deleteColumns(H))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(H=>this.selectProtected(H))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(H=>this.requestMode(H,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(H=>this.requestMode(H,!1))),this._parser.setExecuteHandler(c.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(c.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(c.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(c.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(c.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(c.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(c.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(c.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(c.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(c.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(c.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(c.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new T.OscHandler((H=>(this.setTitle(H),this.setIconName(H),!0)))),this._parser.registerOscHandler(1,new T.OscHandler((H=>this.setIconName(H)))),this._parser.registerOscHandler(2,new T.OscHandler((H=>this.setTitle(H)))),this._parser.registerOscHandler(4,new T.OscHandler((H=>this.setOrReportIndexedColor(H)))),this._parser.registerOscHandler(8,new T.OscHandler((H=>this.setHyperlink(H)))),this._parser.registerOscHandler(10,new T.OscHandler((H=>this.setOrReportFgColor(H)))),this._parser.registerOscHandler(11,new T.OscHandler((H=>this.setOrReportBgColor(H)))),this._parser.registerOscHandler(12,new T.OscHandler((H=>this.setOrReportCursorColor(H)))),this._parser.registerOscHandler(104,new T.OscHandler((H=>this.restoreIndexedColor(H)))),this._parser.registerOscHandler(110,new T.OscHandler((H=>this.restoreFgColor(H)))),this._parser.registerOscHandler(111,new T.OscHandler((H=>this.restoreBgColor(H)))),this._parser.registerOscHandler(112,new T.OscHandler((H=>this.restoreCursorColor(H)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const H in S.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:H},(()=>this.selectCharset("("+H))),this._parser.registerEscHandler({intermediates:")",final:H},(()=>this.selectCharset(")"+H))),this._parser.registerEscHandler({intermediates:"*",final:H},(()=>this.selectCharset("*"+H))),this._parser.registerEscHandler({intermediates:"+",final:H},(()=>this.selectCharset("+"+H))),this._parser.registerEscHandler({intermediates:"-",final:H},(()=>this.selectCharset("-"+H))),this._parser.registerEscHandler({intermediates:".",final:H},(()=>this.selectCharset("."+H))),this._parser.registerEscHandler({intermediates:"/",final:H},(()=>this.selectCharset("/"+H)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((H=>(this._logService.error("Parsing error: ",H),H))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new E.DcsHandler(((H,te)=>this.requestStatusString(H,te))))}_preserveStack(I,O,j,V){this._parseStack.paused=!0,this._parseStack.cursorStartX=I,this._parseStack.cursorStartY=O,this._parseStack.decodedLength=j,this._parseStack.position=V}_logSlowResolvingAsync(I){this._logService.logLevel<=M.LogLevelEnum.WARN&&Promise.race([I,new Promise(((O,j)=>setTimeout((()=>j("#SLOW_TIMEOUT")),5e3)))]).catch((O=>{if(O!=="#SLOW_TIMEOUT")throw O;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(I,O){let j,V=this._activeBuffer.x,U=this._activeBuffer.y,ne=0;const _e=this._parseStack.paused;if(_e){if(j=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,O))return this._logSlowResolvingAsync(j),j;V=this._parseStack.cursorStartX,U=this._parseStack.cursorStartY,this._parseStack.paused=!1,I.length>z&&(ne=this._parseStack.position+z)}if(this._logService.logLevel<=M.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof I=="string"?` "${I}"`:` "${Array.prototype.map.call(I,(H=>String.fromCharCode(H))).join("")}"`),typeof I=="string"?I.split("").map((H=>H.charCodeAt(0))):I),this._parseBuffer.length<I.length&&this._parseBuffer.length<z&&(this._parseBuffer=new Uint32Array(Math.min(I.length,z))),_e||this._dirtyRowTracker.clearRange(),I.length>z)for(let H=ne;H<I.length;H+=z){const te=H+z<I.length?H+z:I.length,Z=typeof I=="string"?this._stringDecoder.decode(I.substring(H,te),this._parseBuffer):this._utf8Decoder.decode(I.subarray(H,te),this._parseBuffer);if(j=this._parser.parse(this._parseBuffer,Z))return this._preserveStack(V,U,Z,H),this._logSlowResolvingAsync(j),j}else if(!_e){const H=typeof I=="string"?this._stringDecoder.decode(I,this._parseBuffer):this._utf8Decoder.decode(I,this._parseBuffer);if(j=this._parser.parse(this._parseBuffer,H))return this._preserveStack(V,U,H,0),this._logSlowResolvingAsync(j),j}this._activeBuffer.x===V&&this._activeBuffer.y===U||this._onCursorMove.fire();const me=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),$=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);$<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min($,this._bufferService.rows-1),Math.min(me,this._bufferService.rows-1))}print(I,O,j){let V,U;const ne=this._charsetService.charset,_e=this._optionsService.rawOptions.screenReaderMode,me=this._bufferService.cols,$=this._coreService.decPrivateModes.wraparound,H=this._coreService.modes.insertMode,te=this._curAttrData;let Z=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&j-O>0&&Z.getWidth(this._activeBuffer.x-1)===2&&Z.setCellFromCodepoint(this._activeBuffer.x-1,0,1,te);let fe=this._parser.precedingJoinState;for(let Se=O;Se<j;++Se){if(V=I[Se],V<127&&ne){const Ue=ne[String.fromCharCode(V)];Ue&&(V=Ue.charCodeAt(0))}const Me=this._unicodeService.charProperties(V,fe);U=D.UnicodeService.extractWidth(Me);const Ie=D.UnicodeService.extractShouldJoin(Me),Ge=Ie?D.UnicodeService.extractWidth(fe):0;if(fe=Me,_e&&this._onA11yChar.fire((0,x.stringFromCodePoint)(V)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+U-Ge>me){if($){const Ue=Z;let ge=this._activeBuffer.x-Ge;for(this._activeBuffer.x=Ge,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Z=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),Ge>0&&Z instanceof b.BufferLine&&Z.copyCellsFrom(Ue,ge,0,Ge,!1);ge<me;)Ue.setCellFromCodepoint(ge++,0,1,te)}else if(this._activeBuffer.x=me-1,U===2)continue}if(Ie&&this._activeBuffer.x){const Ue=Z.getWidth(this._activeBuffer.x-1)?1:2;Z.addCodepointToCell(this._activeBuffer.x-Ue,V,U);for(let ge=U-Ge;--ge>=0;)Z.setCellFromCodepoint(this._activeBuffer.x++,0,0,te)}else if(H&&(Z.insertCells(this._activeBuffer.x,U-Ge,this._activeBuffer.getNullCell(te)),Z.getWidth(me-1)===2&&Z.setCellFromCodepoint(me-1,g.NULL_CELL_CODE,g.NULL_CELL_WIDTH,te)),Z.setCellFromCodepoint(this._activeBuffer.x++,V,U,te),U>0)for(;--U;)Z.setCellFromCodepoint(this._activeBuffer.x++,0,0,te)}this._parser.precedingJoinState=fe,this._activeBuffer.x<me&&j-O>0&&Z.getWidth(this._activeBuffer.x)===0&&!Z.hasContent(this._activeBuffer.x)&&Z.setCellFromCodepoint(this._activeBuffer.x,0,1,te),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(I,O){return I.final!=="t"||I.prefix||I.intermediates?this._parser.registerCsiHandler(I,O):this._parser.registerCsiHandler(I,(j=>!q(j.params[0],this._optionsService.rawOptions.windowOptions)||O(j)))}registerDcsHandler(I,O){return this._parser.registerDcsHandler(I,new E.DcsHandler(O))}registerEscHandler(I,O){return this._parser.registerEscHandler(I,O)}registerOscHandler(I,O){return this._parser.registerOscHandler(I,new T.OscHandler(O))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var I;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((I=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&I.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);O.hasWidth(this._activeBuffer.x)&&!O.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const I=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-I),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(I=this._bufferService.cols-1){this._activeBuffer.x=Math.min(I,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(I,O){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=I,this._activeBuffer.y=this._activeBuffer.scrollTop+O):(this._activeBuffer.x=I,this._activeBuffer.y=O),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(I,O){this._restrictCursor(),this._setCursor(this._activeBuffer.x+I,this._activeBuffer.y+O)}cursorUp(I){const O=this._activeBuffer.y-this._activeBuffer.scrollTop;return O>=0?this._moveCursor(0,-Math.min(O,I.params[0]||1)):this._moveCursor(0,-(I.params[0]||1)),!0}cursorDown(I){const O=this._activeBuffer.scrollBottom-this._activeBuffer.y;return O>=0?this._moveCursor(0,Math.min(O,I.params[0]||1)):this._moveCursor(0,I.params[0]||1),!0}cursorForward(I){return this._moveCursor(I.params[0]||1,0),!0}cursorBackward(I){return this._moveCursor(-(I.params[0]||1),0),!0}cursorNextLine(I){return this.cursorDown(I),this._activeBuffer.x=0,!0}cursorPrecedingLine(I){return this.cursorUp(I),this._activeBuffer.x=0,!0}cursorCharAbsolute(I){return this._setCursor((I.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(I){return this._setCursor(I.length>=2?(I.params[1]||1)-1:0,(I.params[0]||1)-1),!0}charPosAbsolute(I){return this._setCursor((I.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(I){return this._moveCursor(I.params[0]||1,0),!0}linePosAbsolute(I){return this._setCursor(this._activeBuffer.x,(I.params[0]||1)-1),!0}vPositionRelative(I){return this._moveCursor(0,I.params[0]||1),!0}hVPosition(I){return this.cursorPosition(I),!0}tabClear(I){const O=I.params[0];return O===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:O===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(I){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let O=I.params[0]||1;for(;O--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(I){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let O=I.params[0]||1;for(;O--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(I){const O=I.params[0];return O===1&&(this._curAttrData.bg|=536870912),O!==2&&O!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(I,O,j,V=!1,U=!1){const ne=this._activeBuffer.lines.get(this._activeBuffer.ybase+I);ne.replaceCells(O,j,this._activeBuffer.getNullCell(this._eraseAttrData()),U),V&&(ne.isWrapped=!1)}_resetBufferLine(I,O=!1){const j=this._activeBuffer.lines.get(this._activeBuffer.ybase+I);j&&(j.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),O),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+I),j.isWrapped=!1)}eraseInDisplay(I,O=!1){let j;switch(this._restrictCursor(this._bufferService.cols),I.params[0]){case 0:for(j=this._activeBuffer.y,this._dirtyRowTracker.markDirty(j),this._eraseInBufferLine(j++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,O);j<this._bufferService.rows;j++)this._resetBufferLine(j,O);this._dirtyRowTracker.markDirty(j);break;case 1:for(j=this._activeBuffer.y,this._dirtyRowTracker.markDirty(j),this._eraseInBufferLine(j,0,this._activeBuffer.x+1,!0,O),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(j+1).isWrapped=!1);j--;)this._resetBufferLine(j,O);this._dirtyRowTracker.markDirty(0);break;case 2:for(j=this._bufferService.rows,this._dirtyRowTracker.markDirty(j-1);j--;)this._resetBufferLine(j,O);this._dirtyRowTracker.markDirty(0);break;case 3:const V=this._activeBuffer.lines.length-this._bufferService.rows;V>0&&(this._activeBuffer.lines.trimStart(V),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-V,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-V,0),this._onScroll.fire(0))}return!0}eraseInLine(I,O=!1){switch(this._restrictCursor(this._bufferService.cols),I.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,O);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,O);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,O)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(I){this._restrictCursor();let O=I.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const j=this._activeBuffer.ybase+this._activeBuffer.y,V=this._bufferService.rows-1-this._activeBuffer.scrollBottom,U=this._bufferService.rows-1+this._activeBuffer.ybase-V+1;for(;O--;)this._activeBuffer.lines.splice(U-1,1),this._activeBuffer.lines.splice(j,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(I){this._restrictCursor();let O=I.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const j=this._activeBuffer.ybase+this._activeBuffer.y;let V;for(V=this._bufferService.rows-1-this._activeBuffer.scrollBottom,V=this._bufferService.rows-1+this._activeBuffer.ybase-V;O--;)this._activeBuffer.lines.splice(j,1),this._activeBuffer.lines.splice(V,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(I){this._restrictCursor();const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return O&&(O.insertCells(this._activeBuffer.x,I.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(I){this._restrictCursor();const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return O&&(O.deleteCells(this._activeBuffer.x,I.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(I){let O=I.params[0]||1;for(;O--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(I){let O=I.params[0]||1;for(;O--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(b.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(I){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const O=I.params[0]||1;for(let j=this._activeBuffer.scrollTop;j<=this._activeBuffer.scrollBottom;++j){const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+j);V.deleteCells(0,O,this._activeBuffer.getNullCell(this._eraseAttrData())),V.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(I){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const O=I.params[0]||1;for(let j=this._activeBuffer.scrollTop;j<=this._activeBuffer.scrollBottom;++j){const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+j);V.insertCells(0,O,this._activeBuffer.getNullCell(this._eraseAttrData())),V.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(I){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const O=I.params[0]||1;for(let j=this._activeBuffer.scrollTop;j<=this._activeBuffer.scrollBottom;++j){const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+j);V.insertCells(this._activeBuffer.x,O,this._activeBuffer.getNullCell(this._eraseAttrData())),V.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(I){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const O=I.params[0]||1;for(let j=this._activeBuffer.scrollTop;j<=this._activeBuffer.scrollBottom;++j){const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+j);V.deleteCells(this._activeBuffer.x,O,this._activeBuffer.getNullCell(this._eraseAttrData())),V.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(I){this._restrictCursor();const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return O&&(O.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(I.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(I){const O=this._parser.precedingJoinState;if(!O)return!0;const j=I.params[0]||1,V=D.UnicodeService.extractWidth(O),U=this._activeBuffer.x-V,ne=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(U),_e=new Uint32Array(ne.length*j);let me=0;for(let H=0;H<ne.length;){const te=ne.codePointAt(H)||0;_e[me++]=te,H+=te>65535?2:1}let $=me;for(let H=1;H<j;++H)_e.copyWithin($,0,me),$+=me;return this.print(_e,0,$),!0}sendDeviceAttributesPrimary(I){return I.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(c.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(c.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(I){return I.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(c.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(c.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(I.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(c.C0.ESC+"[>83;40003;0c")),!0}_is(I){return(this._optionsService.rawOptions.termName+"").indexOf(I)===0}setMode(I){for(let O=0;O<I.length;O++)switch(I.params[O]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(I){for(let O=0;O<I.length;O++)switch(I.params[O]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,S.DEFAULT_CHARSET),this._charsetService.setgCharset(1,S.DEFAULT_CHARSET),this._charsetService.setgCharset(2,S.DEFAULT_CHARSET),this._charsetService.setgCharset(3,S.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(I){for(let O=0;O<I.length;O++)switch(I.params[O]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(I){for(let O=0;O<I.length;O++)switch(I.params[O]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),I.params[O]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(I,O){const j=this._coreService.decPrivateModes,{activeProtocol:V,activeEncoding:U}=this._coreMouseService,ne=this._coreService,{buffers:_e,cols:me}=this._bufferService,{active:$,alt:H}=_e,te=this._optionsService.rawOptions,Z=Ie=>Ie?1:2,fe=I.params[0];return Se=fe,Me=O?fe===2?4:fe===4?Z(ne.modes.insertMode):fe===12?3:fe===20?Z(te.convertEol):0:fe===1?Z(j.applicationCursorKeys):fe===3?te.windowOptions.setWinLines?me===80?2:me===132?1:0:0:fe===6?Z(j.origin):fe===7?Z(j.wraparound):fe===8?3:fe===9?Z(V==="X10"):fe===12?Z(te.cursorBlink):fe===25?Z(!ne.isCursorHidden):fe===45?Z(j.reverseWraparound):fe===66?Z(j.applicationKeypad):fe===67?4:fe===1e3?Z(V==="VT200"):fe===1002?Z(V==="DRAG"):fe===1003?Z(V==="ANY"):fe===1004?Z(j.sendFocus):fe===1005?4:fe===1006?Z(U==="SGR"):fe===1015?4:fe===1016?Z(U==="SGR_PIXELS"):fe===1048?1:fe===47||fe===1047||fe===1049?Z($===H):fe===2004?Z(j.bracketedPasteMode):0,ne.triggerDataEvent(`${c.C0.ESC}[${O?"":"?"}${Se};${Me}$y`),!0;var Se,Me}_updateAttrColor(I,O,j,V,U){return O===2?(I|=50331648,I&=-16777216,I|=k.AttributeData.fromColorRGB([j,V,U])):O===5&&(I&=-50331904,I|=33554432|255&j),I}_extractColor(I,O,j){const V=[0,0,-1,0,0,0];let U=0,ne=0;do{if(V[ne+U]=I.params[O+ne],I.hasSubParams(O+ne)){const _e=I.getSubParams(O+ne);let me=0;do V[1]===5&&(U=1),V[ne+me+1+U]=_e[me];while(++me<_e.length&&me+ne+1+U<V.length);break}if(V[1]===5&&ne+U>=2||V[1]===2&&ne+U>=5)break;V[1]&&(U=1)}while(++ne+O<I.length&&ne+U<V.length);for(let _e=2;_e<V.length;++_e)V[_e]===-1&&(V[_e]=0);switch(V[0]){case 38:j.fg=this._updateAttrColor(j.fg,V[1],V[3],V[4],V[5]);break;case 48:j.bg=this._updateAttrColor(j.bg,V[1],V[3],V[4],V[5]);break;case 58:j.extended=j.extended.clone(),j.extended.underlineColor=this._updateAttrColor(j.extended.underlineColor,V[1],V[3],V[4],V[5])}return ne}_processUnderline(I,O){O.extended=O.extended.clone(),(!~I||I>5)&&(I=1),O.extended.underlineStyle=I,O.fg|=268435456,I===0&&(O.fg&=-268435457),O.updateExtended()}_processSGR0(I){I.fg=b.DEFAULT_ATTR_DATA.fg,I.bg=b.DEFAULT_ATTR_DATA.bg,I.extended=I.extended.clone(),I.extended.underlineStyle=0,I.extended.underlineColor&=-67108864,I.updateExtended()}charAttributes(I){if(I.length===1&&I.params[0]===0)return this._processSGR0(this._curAttrData),!0;const O=I.length;let j;const V=this._curAttrData;for(let U=0;U<O;U++)j=I.params[U],j>=30&&j<=37?(V.fg&=-50331904,V.fg|=16777216|j-30):j>=40&&j<=47?(V.bg&=-50331904,V.bg|=16777216|j-40):j>=90&&j<=97?(V.fg&=-50331904,V.fg|=16777224|j-90):j>=100&&j<=107?(V.bg&=-50331904,V.bg|=16777224|j-100):j===0?this._processSGR0(V):j===1?V.fg|=134217728:j===3?V.bg|=67108864:j===4?(V.fg|=268435456,this._processUnderline(I.hasSubParams(U)?I.getSubParams(U)[0]:1,V)):j===5?V.fg|=536870912:j===7?V.fg|=67108864:j===8?V.fg|=1073741824:j===9?V.fg|=2147483648:j===2?V.bg|=134217728:j===21?this._processUnderline(2,V):j===22?(V.fg&=-134217729,V.bg&=-134217729):j===23?V.bg&=-67108865:j===24?(V.fg&=-268435457,this._processUnderline(0,V)):j===25?V.fg&=-536870913:j===27?V.fg&=-67108865:j===28?V.fg&=-1073741825:j===29?V.fg&=2147483647:j===39?(V.fg&=-67108864,V.fg|=16777215&b.DEFAULT_ATTR_DATA.fg):j===49?(V.bg&=-67108864,V.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):j===38||j===48||j===58?U+=this._extractColor(I,U,V):j===53?V.bg|=1073741824:j===55?V.bg&=-1073741825:j===59?(V.extended=V.extended.clone(),V.extended.underlineColor=-1,V.updateExtended()):j===100?(V.fg&=-67108864,V.fg|=16777215&b.DEFAULT_ATTR_DATA.fg,V.bg&=-67108864,V.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",j);return!0}deviceStatus(I){switch(I.params[0]){case 5:this._coreService.triggerDataEvent(`${c.C0.ESC}[0n`);break;case 6:const O=this._activeBuffer.y+1,j=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${c.C0.ESC}[${O};${j}R`)}return!0}deviceStatusPrivate(I){if(I.params[0]===6){const O=this._activeBuffer.y+1,j=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${c.C0.ESC}[?${O};${j}R`)}return!0}softReset(I){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(I){const O=I.params[0]||1;switch(O){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const j=O%2==1;return this._optionsService.options.cursorBlink=j,!0}setScrollRegion(I){const O=I.params[0]||1;let j;return(I.length<2||(j=I.params[1])>this._bufferService.rows||j===0)&&(j=this._bufferService.rows),j>O&&(this._activeBuffer.scrollTop=O-1,this._activeBuffer.scrollBottom=j-1,this._setCursor(0,0)),!0}windowOptions(I){if(!q(I.params[0],this._optionsService.rawOptions.windowOptions))return!0;const O=I.length>1?I.params[1]:0;switch(I.params[0]){case 14:O!==2&&this._onRequestWindowsOptionsReport.fire(F.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(F.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${c.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:O!==0&&O!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),O!==0&&O!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:O!==0&&O!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),O!==0&&O!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(I){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(I){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(I){return this._windowTitle=I,this._onTitleChange.fire(I),!0}setIconName(I){return this._iconName=I,!0}setOrReportIndexedColor(I){const O=[],j=I.split(";");for(;j.length>1;){const V=j.shift(),U=j.shift();if(/^\d+$/.exec(V)){const ne=parseInt(V);if(X(ne))if(U==="?")O.push({type:0,index:ne});else{const _e=(0,R.parseColor)(U);_e&&O.push({type:1,index:ne,color:_e})}}}return O.length&&this._onColor.fire(O),!0}setHyperlink(I){const O=I.split(";");return!(O.length<2)&&(O[1]?this._createHyperlink(O[0],O[1]):!O[0]&&this._finishHyperlink())}_createHyperlink(I,O){this._getCurrentLinkId()&&this._finishHyperlink();const j=I.split(":");let V;const U=j.findIndex((ne=>ne.startsWith("id=")));return U!==-1&&(V=j[U].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:V,uri:O}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(I,O){const j=I.split(";");for(let V=0;V<j.length&&!(O>=this._specialColors.length);++V,++O)if(j[V]==="?")this._onColor.fire([{type:0,index:this._specialColors[O]}]);else{const U=(0,R.parseColor)(j[V]);U&&this._onColor.fire([{type:1,index:this._specialColors[O],color:U}])}return!0}setOrReportFgColor(I){return this._setOrReportSpecialColor(I,0)}setOrReportBgColor(I){return this._setOrReportSpecialColor(I,1)}setOrReportCursorColor(I){return this._setOrReportSpecialColor(I,2)}restoreIndexedColor(I){if(!I)return this._onColor.fire([{type:2}]),!0;const O=[],j=I.split(";");for(let V=0;V<j.length;++V)if(/^\d+$/.exec(j[V])){const U=parseInt(j[V]);X(U)&&O.push({type:2,index:U})}return O.length&&this._onColor.fire(O),!0}restoreFgColor(I){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(I){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(I){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,S.DEFAULT_CHARSET),!0}selectCharset(I){return I.length!==2?(this.selectDefaultCharset(),!0):(I[0]==="/"||this._charsetService.setgCharset(B[I[0]],S.CHARSETS[I[1]]||S.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const I=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,I,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(I){return this._charsetService.setgLevel(I),!0}screenAlignmentPattern(){const I=new v.CellData;I.content=4194373,I.fg=this._curAttrData.fg,I.bg=this._curAttrData.bg,this._setCursor(0,0);for(let O=0;O<this._bufferService.rows;++O){const j=this._activeBuffer.ybase+this._activeBuffer.y+O,V=this._activeBuffer.lines.get(j);V&&(V.fill(I),V.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(I,O){const j=this._bufferService.buffer,V=this._optionsService.rawOptions;return(U=>(this._coreService.triggerDataEvent(`${c.C0.ESC}${U}${c.C0.ESC}\\`),!0))(I==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:I==='"p'?'P1$r61;1"p':I==="r"?`P1$r${j.scrollTop+1};${j.scrollBottom+1}r`:I==="m"?"P1$r0m":I===" q"?`P1$r${{block:2,underline:4,bar:6}[V.cursorStyle]-(V.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(I,O){this._dirtyRowTracker.markRangeDirty(I,O)}}a.InputHandler=K;let G=class{constructor(J){this._bufferService=J,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(J){J<this.start?this.start=J:J>this.end&&(this.end=J)}markRangeDirty(J,I){J>I&&(Y=J,J=I,I=Y),J<this.start&&(this.start=J),I>this.end&&(this.end=I)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function X(J){return 0<=J&&J<256}G=h([d(0,M.IBufferService)],G)},844:(f,a)=>{function u(h){for(const d of h)d.dispose();h.length=0}Object.defineProperty(a,"__esModule",{value:!0}),a.getDisposeArrayDisposable=a.disposeArray=a.toDisposable=a.MutableDisposable=a.Disposable=void 0,a.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const h of this._disposables)h.dispose();this._disposables.length=0}register(h){return this._disposables.push(h),h}unregister(h){const d=this._disposables.indexOf(h);d!==-1&&this._disposables.splice(d,1)}},a.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(h){var d;this._isDisposed||h===this._value||((d=this._value)==null||d.dispose(),this._value=h)}clear(){this.value=void 0}dispose(){var h;this._isDisposed=!0,(h=this._value)==null||h.dispose(),this._value=void 0}},a.toDisposable=function(h){return{dispose:h}},a.disposeArray=u,a.getDisposeArrayDisposable=function(h){return{dispose:()=>u(h)}}},1505:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FourKeyMap=a.TwoKeyMap=void 0;class u{constructor(){this._data={}}set(d,c,S){this._data[d]||(this._data[d]={}),this._data[d][c]=S}get(d,c){return this._data[d]?this._data[d][c]:void 0}clear(){this._data={}}}a.TwoKeyMap=u,a.FourKeyMap=class{constructor(){this._data=new u}set(h,d,c,S,w){this._data.get(h,d)||this._data.set(h,d,new u),this._data.get(h,d).set(c,S,w)}get(h,d,c,S){var w;return(w=this._data.get(h,d))==null?void 0:w.get(c,S)}clear(){this._data.clear()}}},6114:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.isChromeOS=a.isLinux=a.isWindows=a.isIphone=a.isIpad=a.isMac=a.getSafariVersion=a.isSafari=a.isLegacyEdge=a.isFirefox=a.isNode=void 0,a.isNode=typeof process<"u"&&"title"in process;const u=a.isNode?"node":navigator.userAgent,h=a.isNode?"node":navigator.platform;a.isFirefox=u.includes("Firefox"),a.isLegacyEdge=u.includes("Edge"),a.isSafari=/^((?!chrome|android).)*safari/i.test(u),a.getSafariVersion=function(){if(!a.isSafari)return 0;const d=u.match(/Version\/(\d+)/);return d===null||d.length<2?0:parseInt(d[1])},a.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(h),a.isIpad=h==="iPad",a.isIphone=h==="iPhone",a.isWindows=["Windows","Win16","Win32","WinCE"].includes(h),a.isLinux=h.indexOf("Linux")>=0,a.isChromeOS=/\bCrOS\b/.test(u)},6106:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SortedList=void 0;let u=0;a.SortedList=class{constructor(h){this._getKey=h,this._array=[]}clear(){this._array.length=0}insert(h){this._array.length!==0?(u=this._search(this._getKey(h)),this._array.splice(u,0,h)):this._array.push(h)}delete(h){if(this._array.length===0)return!1;const d=this._getKey(h);if(d===void 0||(u=this._search(d),u===-1)||this._getKey(this._array[u])!==d)return!1;do if(this._array[u]===h)return this._array.splice(u,1),!0;while(++u<this._array.length&&this._getKey(this._array[u])===d);return!1}*getKeyIterator(h){if(this._array.length!==0&&(u=this._search(h),!(u<0||u>=this._array.length)&&this._getKey(this._array[u])===h))do yield this._array[u];while(++u<this._array.length&&this._getKey(this._array[u])===h)}forEachByKey(h,d){if(this._array.length!==0&&(u=this._search(h),!(u<0||u>=this._array.length)&&this._getKey(this._array[u])===h))do d(this._array[u]);while(++u<this._array.length&&this._getKey(this._array[u])===h)}values(){return[...this._array].values()}_search(h){let d=0,c=this._array.length-1;for(;c>=d;){let S=d+c>>1;const w=this._getKey(this._array[S]);if(w>h)c=S-1;else{if(!(w<h)){for(;S>0&&this._getKey(this._array[S-1])===h;)S--;return S}d=S+1}}return d}}},7226:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DebouncedIdleTask=a.IdleTaskQueue=a.PriorityTaskQueue=void 0;const h=u(6114);class d{constructor(){this._tasks=[],this._i=0}enqueue(w){this._tasks.push(w),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(w){this._idleCallback=void 0;let A=0,x=0,b=w.timeRemaining(),_=0;for(;this._i<this._tasks.length;){if(A=Date.now(),this._tasks[this._i]()||this._i++,A=Math.max(1,Date.now()-A),x=Math.max(A,x),_=w.timeRemaining(),1.5*x>_)return b-A<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(b-A))}ms`),void this._start();b=_}this.clear()}}class c extends d{_requestCallback(w){return setTimeout((()=>w(this._createDeadline(16))))}_cancelCallback(w){clearTimeout(w)}_createDeadline(w){const A=Date.now()+w;return{timeRemaining:()=>Math.max(0,A-Date.now())}}}a.PriorityTaskQueue=c,a.IdleTaskQueue=!h.isNode&&"requestIdleCallback"in window?class extends d{_requestCallback(S){return requestIdleCallback(S)}_cancelCallback(S){cancelIdleCallback(S)}}:c,a.DebouncedIdleTask=class{constructor(){this._queue=new a.IdleTaskQueue}set(S){this._queue.clear(),this._queue.enqueue(S)}flush(){this._queue.flush()}}},9282:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.updateWindowsModeWrappedState=void 0;const h=u(643);a.updateWindowsModeWrappedState=function(d){const c=d.buffer.lines.get(d.buffer.ybase+d.buffer.y-1),S=c==null?void 0:c.get(d.cols-1),w=d.buffer.lines.get(d.buffer.ybase+d.buffer.y);w&&S&&(w.isWrapped=S[h.CHAR_DATA_CODE_INDEX]!==h.NULL_CELL_CODE&&S[h.CHAR_DATA_CODE_INDEX]!==h.WHITESPACE_CELL_CODE)}},3734:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ExtendedAttrs=a.AttributeData=void 0;class u{constructor(){this.fg=0,this.bg=0,this.extended=new h}static toColorRGB(c){return[c>>>16&255,c>>>8&255,255&c]}static fromColorRGB(c){return(255&c[0])<<16|(255&c[1])<<8|255&c[2]}clone(){const c=new u;return c.fg=this.fg,c.bg=this.bg,c.extended=this.extended.clone(),c}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}a.AttributeData=u;class h{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(c){this._ext=c}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(c){this._ext&=-469762049,this._ext|=c<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(c){this._ext&=-67108864,this._ext|=67108863&c}get urlId(){return this._urlId}set urlId(c){this._urlId=c}get underlineVariantOffset(){const c=(3758096384&this._ext)>>29;return c<0?4294967288^c:c}set underlineVariantOffset(c){this._ext&=536870911,this._ext|=c<<29&3758096384}constructor(c=0,S=0){this._ext=0,this._urlId=0,this._ext=c,this._urlId=S}clone(){return new h(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}a.ExtendedAttrs=h},9092:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Buffer=a.MAX_BUFFER_SIZE=void 0;const h=u(6349),d=u(7226),c=u(3734),S=u(8437),w=u(4634),A=u(511),x=u(643),b=u(4863),_=u(7116);a.MAX_BUFFER_SIZE=4294967295,a.Buffer=class{constructor(g,v,k){this._hasScrollback=g,this._optionsService=v,this._bufferService=k,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=S.DEFAULT_ATTR_DATA.clone(),this.savedCharset=_.DEFAULT_CHARSET,this.markers=[],this._nullCell=A.CellData.fromCharData([0,x.NULL_CELL_CHAR,x.NULL_CELL_WIDTH,x.NULL_CELL_CODE]),this._whitespaceCell=A.CellData.fromCharData([0,x.WHITESPACE_CELL_CHAR,x.WHITESPACE_CELL_WIDTH,x.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new d.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new h.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(g){return g?(this._nullCell.fg=g.fg,this._nullCell.bg=g.bg,this._nullCell.extended=g.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new c.ExtendedAttrs),this._nullCell}getWhitespaceCell(g){return g?(this._whitespaceCell.fg=g.fg,this._whitespaceCell.bg=g.bg,this._whitespaceCell.extended=g.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new c.ExtendedAttrs),this._whitespaceCell}getBlankLine(g,v){return new S.BufferLine(this._bufferService.cols,this.getNullCell(g),v)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const g=this.ybase+this.y-this.ydisp;return g>=0&&g<this._rows}_getCorrectBufferLength(g){if(!this._hasScrollback)return g;const v=g+this._optionsService.rawOptions.scrollback;return v>a.MAX_BUFFER_SIZE?a.MAX_BUFFER_SIZE:v}fillViewportRows(g){if(this.lines.length===0){g===void 0&&(g=S.DEFAULT_ATTR_DATA);let v=this._rows;for(;v--;)this.lines.push(this.getBlankLine(g))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new h.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(g,v){const k=this.getNullCell(S.DEFAULT_ATTR_DATA);let M=0;const D=this._getCorrectBufferLength(v);if(D>this.lines.maxLength&&(this.lines.maxLength=D),this.lines.length>0){if(this._cols<g)for(let E=0;E<this.lines.length;E++)M+=+this.lines.get(E).resize(g,k);let T=0;if(this._rows<v)for(let E=this._rows;E<v;E++)this.lines.length<v+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new S.BufferLine(g,k)):this.ybase>0&&this.lines.length<=this.ybase+this.y+T+1?(this.ybase--,T++,this.ydisp>0&&this.ydisp--):this.lines.push(new S.BufferLine(g,k)));else for(let E=this._rows;E>v;E--)this.lines.length>v+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(D<this.lines.maxLength){const E=this.lines.length-D;E>0&&(this.lines.trimStart(E),this.ybase=Math.max(this.ybase-E,0),this.ydisp=Math.max(this.ydisp-E,0),this.savedY=Math.max(this.savedY-E,0)),this.lines.maxLength=D}this.x=Math.min(this.x,g-1),this.y=Math.min(this.y,v-1),T&&(this.y+=T),this.savedX=Math.min(this.savedX,g-1),this.scrollTop=0}if(this.scrollBottom=v-1,this._isReflowEnabled&&(this._reflow(g,v),this._cols>g))for(let T=0;T<this.lines.length;T++)M+=+this.lines.get(T).resize(g,k);this._cols=g,this._rows=v,this._memoryCleanupQueue.clear(),M>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let g=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,g=!1);let v=0;for(;this._memoryCleanupPosition<this.lines.length;)if(v+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),v>100)return!0;return g}get _isReflowEnabled(){const g=this._optionsService.rawOptions.windowsPty;return g&&g.buildNumber?this._hasScrollback&&g.backend==="conpty"&&g.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(g,v){this._cols!==g&&(g>this._cols?this._reflowLarger(g,v):this._reflowSmaller(g,v))}_reflowLarger(g,v){const k=(0,w.reflowLargerGetLinesToRemove)(this.lines,this._cols,g,this.ybase+this.y,this.getNullCell(S.DEFAULT_ATTR_DATA));if(k.length>0){const M=(0,w.reflowLargerCreateNewLayout)(this.lines,k);(0,w.reflowLargerApplyNewLayout)(this.lines,M.layout),this._reflowLargerAdjustViewport(g,v,M.countRemoved)}}_reflowLargerAdjustViewport(g,v,k){const M=this.getNullCell(S.DEFAULT_ATTR_DATA);let D=k;for(;D-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<v&&this.lines.push(new S.BufferLine(g,M))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-k,0)}_reflowSmaller(g,v){const k=this.getNullCell(S.DEFAULT_ATTR_DATA),M=[];let D=0;for(let T=this.lines.length-1;T>=0;T--){let E=this.lines.get(T);if(!E||!E.isWrapped&&E.getTrimmedLength()<=g)continue;const R=[E];for(;E.isWrapped&&T>0;)E=this.lines.get(--T),R.unshift(E);const B=this.ybase+this.y;if(B>=T&&B<T+R.length)continue;const z=R[R.length-1].getTrimmedLength(),q=(0,w.reflowSmallerGetNewLineLengths)(R,this._cols,g),F=q.length-R.length;let Y;Y=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+F):Math.max(0,this.lines.length-this.lines.maxLength+F);const K=[];for(let j=0;j<F;j++){const V=this.getBlankLine(S.DEFAULT_ATTR_DATA,!0);K.push(V)}K.length>0&&(M.push({start:T+R.length+D,newLines:K}),D+=K.length),R.push(...K);let G=q.length-1,X=q[G];X===0&&(G--,X=q[G]);let J=R.length-F-1,I=z;for(;J>=0;){const j=Math.min(I,X);if(R[G]===void 0)break;if(R[G].copyCellsFrom(R[J],I-j,X-j,j,!0),X-=j,X===0&&(G--,X=q[G]),I-=j,I===0){J--;const V=Math.max(J,0);I=(0,w.getWrappedLineTrimmedLength)(R,V,this._cols)}}for(let j=0;j<R.length;j++)q[j]<g&&R[j].setCell(q[j],k);let O=F-Y;for(;O-- >0;)this.ybase===0?this.y<v-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+D)-v&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+F,this.ybase+v-1)}if(M.length>0){const T=[],E=[];for(let G=0;G<this.lines.length;G++)E.push(this.lines.get(G));const R=this.lines.length;let B=R-1,z=0,q=M[z];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+D);let F=0;for(let G=Math.min(this.lines.maxLength-1,R+D-1);G>=0;G--)if(q&&q.start>B+F){for(let X=q.newLines.length-1;X>=0;X--)this.lines.set(G--,q.newLines[X]);G++,T.push({index:B+1,amount:q.newLines.length}),F+=q.newLines.length,q=M[++z]}else this.lines.set(G,E[B--]);let Y=0;for(let G=T.length-1;G>=0;G--)T[G].index+=Y,this.lines.onInsertEmitter.fire(T[G]),Y+=T[G].amount;const K=Math.max(0,R+D-this.lines.maxLength);K>0&&this.lines.onTrimEmitter.fire(K)}}translateBufferLineToString(g,v,k=0,M){const D=this.lines.get(g);return D?D.translateToString(v,k,M):""}getWrappedRangeForLine(g){let v=g,k=g;for(;v>0&&this.lines.get(v).isWrapped;)v--;for(;k+1<this.lines.length&&this.lines.get(k+1).isWrapped;)k++;return{first:v,last:k}}setupTabStops(g){for(g!=null?this.tabs[g]||(g=this.prevStop(g)):(this.tabs={},g=0);g<this._cols;g+=this._optionsService.rawOptions.tabStopWidth)this.tabs[g]=!0}prevStop(g){for(g==null&&(g=this.x);!this.tabs[--g]&&g>0;);return g>=this._cols?this._cols-1:g<0?0:g}nextStop(g){for(g==null&&(g=this.x);!this.tabs[++g]&&g<this._cols;);return g>=this._cols?this._cols-1:g<0?0:g}clearMarkers(g){this._isClearing=!0;for(let v=0;v<this.markers.length;v++)this.markers[v].line===g&&(this.markers[v].dispose(),this.markers.splice(v--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let g=0;g<this.markers.length;g++)this.markers[g].dispose(),this.markers.splice(g--,1);this._isClearing=!1}addMarker(g){const v=new b.Marker(g);return this.markers.push(v),v.register(this.lines.onTrim((k=>{v.line-=k,v.line<0&&v.dispose()}))),v.register(this.lines.onInsert((k=>{v.line>=k.index&&(v.line+=k.amount)}))),v.register(this.lines.onDelete((k=>{v.line>=k.index&&v.line<k.index+k.amount&&v.dispose(),v.line>k.index&&(v.line-=k.amount)}))),v.register(v.onDispose((()=>this._removeMarker(v)))),v}_removeMarker(g){this._isClearing||this.markers.splice(this.markers.indexOf(g),1)}}},8437:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLine=a.DEFAULT_ATTR_DATA=void 0;const h=u(3734),d=u(511),c=u(643),S=u(482);a.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);let w=0;class A{constructor(b,_,g=!1){this.isWrapped=g,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*b);const v=_||d.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]);for(let k=0;k<b;++k)this.setCell(k,v);this.length=b}get(b){const _=this._data[3*b+0],g=2097151&_;return[this._data[3*b+1],2097152&_?this._combined[b]:g?(0,S.stringFromCodePoint)(g):"",_>>22,2097152&_?this._combined[b].charCodeAt(this._combined[b].length-1):g]}set(b,_){this._data[3*b+1]=_[c.CHAR_DATA_ATTR_INDEX],_[c.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[b]=_[1],this._data[3*b+0]=2097152|b|_[c.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*b+0]=_[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|_[c.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(b){return this._data[3*b+0]>>22}hasWidth(b){return 12582912&this._data[3*b+0]}getFg(b){return this._data[3*b+1]}getBg(b){return this._data[3*b+2]}hasContent(b){return 4194303&this._data[3*b+0]}getCodePoint(b){const _=this._data[3*b+0];return 2097152&_?this._combined[b].charCodeAt(this._combined[b].length-1):2097151&_}isCombined(b){return 2097152&this._data[3*b+0]}getString(b){const _=this._data[3*b+0];return 2097152&_?this._combined[b]:2097151&_?(0,S.stringFromCodePoint)(2097151&_):""}isProtected(b){return 536870912&this._data[3*b+2]}loadCell(b,_){return w=3*b,_.content=this._data[w+0],_.fg=this._data[w+1],_.bg=this._data[w+2],2097152&_.content&&(_.combinedData=this._combined[b]),268435456&_.bg&&(_.extended=this._extendedAttrs[b]),_}setCell(b,_){2097152&_.content&&(this._combined[b]=_.combinedData),268435456&_.bg&&(this._extendedAttrs[b]=_.extended),this._data[3*b+0]=_.content,this._data[3*b+1]=_.fg,this._data[3*b+2]=_.bg}setCellFromCodepoint(b,_,g,v){268435456&v.bg&&(this._extendedAttrs[b]=v.extended),this._data[3*b+0]=_|g<<22,this._data[3*b+1]=v.fg,this._data[3*b+2]=v.bg}addCodepointToCell(b,_,g){let v=this._data[3*b+0];2097152&v?this._combined[b]+=(0,S.stringFromCodePoint)(_):2097151&v?(this._combined[b]=(0,S.stringFromCodePoint)(2097151&v)+(0,S.stringFromCodePoint)(_),v&=-2097152,v|=2097152):v=_|4194304,g&&(v&=-12582913,v|=g<<22),this._data[3*b+0]=v}insertCells(b,_,g){if((b%=this.length)&&this.getWidth(b-1)===2&&this.setCellFromCodepoint(b-1,0,1,g),_<this.length-b){const v=new d.CellData;for(let k=this.length-b-_-1;k>=0;--k)this.setCell(b+_+k,this.loadCell(b+k,v));for(let k=0;k<_;++k)this.setCell(b+k,g)}else for(let v=b;v<this.length;++v)this.setCell(v,g);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,g)}deleteCells(b,_,g){if(b%=this.length,_<this.length-b){const v=new d.CellData;for(let k=0;k<this.length-b-_;++k)this.setCell(b+k,this.loadCell(b+_+k,v));for(let k=this.length-_;k<this.length;++k)this.setCell(k,g)}else for(let v=b;v<this.length;++v)this.setCell(v,g);b&&this.getWidth(b-1)===2&&this.setCellFromCodepoint(b-1,0,1,g),this.getWidth(b)!==0||this.hasContent(b)||this.setCellFromCodepoint(b,0,1,g)}replaceCells(b,_,g,v=!1){if(v)for(b&&this.getWidth(b-1)===2&&!this.isProtected(b-1)&&this.setCellFromCodepoint(b-1,0,1,g),_<this.length&&this.getWidth(_-1)===2&&!this.isProtected(_)&&this.setCellFromCodepoint(_,0,1,g);b<_&&b<this.length;)this.isProtected(b)||this.setCell(b,g),b++;else for(b&&this.getWidth(b-1)===2&&this.setCellFromCodepoint(b-1,0,1,g),_<this.length&&this.getWidth(_-1)===2&&this.setCellFromCodepoint(_,0,1,g);b<_&&b<this.length;)this.setCell(b++,g)}resize(b,_){if(b===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const g=3*b;if(b>this.length){if(this._data.buffer.byteLength>=4*g)this._data=new Uint32Array(this._data.buffer,0,g);else{const v=new Uint32Array(g);v.set(this._data),this._data=v}for(let v=this.length;v<b;++v)this.setCell(v,_)}else{this._data=this._data.subarray(0,g);const v=Object.keys(this._combined);for(let M=0;M<v.length;M++){const D=parseInt(v[M],10);D>=b&&delete this._combined[D]}const k=Object.keys(this._extendedAttrs);for(let M=0;M<k.length;M++){const D=parseInt(k[M],10);D>=b&&delete this._extendedAttrs[D]}}return this.length=b,4*g*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const b=new Uint32Array(this._data.length);return b.set(this._data),this._data=b,1}return 0}fill(b,_=!1){if(_)for(let g=0;g<this.length;++g)this.isProtected(g)||this.setCell(g,b);else{this._combined={},this._extendedAttrs={};for(let g=0;g<this.length;++g)this.setCell(g,b)}}copyFrom(b){this.length!==b.length?this._data=new Uint32Array(b._data):this._data.set(b._data),this.length=b.length,this._combined={};for(const _ in b._combined)this._combined[_]=b._combined[_];this._extendedAttrs={};for(const _ in b._extendedAttrs)this._extendedAttrs[_]=b._extendedAttrs[_];this.isWrapped=b.isWrapped}clone(){const b=new A(0);b._data=new Uint32Array(this._data),b.length=this.length;for(const _ in this._combined)b._combined[_]=this._combined[_];for(const _ in this._extendedAttrs)b._extendedAttrs[_]=this._extendedAttrs[_];return b.isWrapped=this.isWrapped,b}getTrimmedLength(){for(let b=this.length-1;b>=0;--b)if(4194303&this._data[3*b+0])return b+(this._data[3*b+0]>>22);return 0}getNoBgTrimmedLength(){for(let b=this.length-1;b>=0;--b)if(4194303&this._data[3*b+0]||50331648&this._data[3*b+2])return b+(this._data[3*b+0]>>22);return 0}copyCellsFrom(b,_,g,v,k){const M=b._data;if(k)for(let T=v-1;T>=0;T--){for(let E=0;E<3;E++)this._data[3*(g+T)+E]=M[3*(_+T)+E];268435456&M[3*(_+T)+2]&&(this._extendedAttrs[g+T]=b._extendedAttrs[_+T])}else for(let T=0;T<v;T++){for(let E=0;E<3;E++)this._data[3*(g+T)+E]=M[3*(_+T)+E];268435456&M[3*(_+T)+2]&&(this._extendedAttrs[g+T]=b._extendedAttrs[_+T])}const D=Object.keys(b._combined);for(let T=0;T<D.length;T++){const E=parseInt(D[T],10);E>=_&&(this._combined[E-_+g]=b._combined[E])}}translateToString(b,_,g,v){_=_??0,g=g??this.length,b&&(g=Math.min(g,this.getTrimmedLength())),v&&(v.length=0);let k="";for(;_<g;){const M=this._data[3*_+0],D=2097151&M,T=2097152&M?this._combined[_]:D?(0,S.stringFromCodePoint)(D):c.WHITESPACE_CELL_CHAR;if(k+=T,v)for(let E=0;E<T.length;++E)v.push(_);_+=M>>22||1}return v&&v.push(_),k}}a.BufferLine=A},4841:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getRangeLength=void 0,a.getRangeLength=function(u,h){if(u.start.y>u.end.y)throw new Error(`Buffer range end (${u.end.x}, ${u.end.y}) cannot be before start (${u.start.x}, ${u.start.y})`);return h*(u.end.y-u.start.y)+(u.end.x-u.start.x+1)}},4634:(f,a)=>{function u(h,d,c){if(d===h.length-1)return h[d].getTrimmedLength();const S=!h[d].hasContent(c-1)&&h[d].getWidth(c-1)===1,w=h[d+1].getWidth(0)===2;return S&&w?c-1:c}Object.defineProperty(a,"__esModule",{value:!0}),a.getWrappedLineTrimmedLength=a.reflowSmallerGetNewLineLengths=a.reflowLargerApplyNewLayout=a.reflowLargerCreateNewLayout=a.reflowLargerGetLinesToRemove=void 0,a.reflowLargerGetLinesToRemove=function(h,d,c,S,w){const A=[];for(let x=0;x<h.length-1;x++){let b=x,_=h.get(++b);if(!_.isWrapped)continue;const g=[h.get(x)];for(;b<h.length&&_.isWrapped;)g.push(_),_=h.get(++b);if(S>=x&&S<b){x+=g.length-1;continue}let v=0,k=u(g,v,d),M=1,D=0;for(;M<g.length;){const E=u(g,M,d),R=E-D,B=c-k,z=Math.min(R,B);g[v].copyCellsFrom(g[M],D,k,z,!1),k+=z,k===c&&(v++,k=0),D+=z,D===E&&(M++,D=0),k===0&&v!==0&&g[v-1].getWidth(c-1)===2&&(g[v].copyCellsFrom(g[v-1],c-1,k++,1,!1),g[v-1].setCell(c-1,w))}g[v].replaceCells(k,c,w);let T=0;for(let E=g.length-1;E>0&&(E>v||g[E].getTrimmedLength()===0);E--)T++;T>0&&(A.push(x+g.length-T),A.push(T)),x+=g.length-1}return A},a.reflowLargerCreateNewLayout=function(h,d){const c=[];let S=0,w=d[S],A=0;for(let x=0;x<h.length;x++)if(w===x){const b=d[++S];h.onDeleteEmitter.fire({index:x-A,amount:b}),x+=b-1,A+=b,w=d[++S]}else c.push(x);return{layout:c,countRemoved:A}},a.reflowLargerApplyNewLayout=function(h,d){const c=[];for(let S=0;S<d.length;S++)c.push(h.get(d[S]));for(let S=0;S<c.length;S++)h.set(S,c[S]);h.length=d.length},a.reflowSmallerGetNewLineLengths=function(h,d,c){const S=[],w=h.map(((_,g)=>u(h,g,d))).reduce(((_,g)=>_+g));let A=0,x=0,b=0;for(;b<w;){if(w-b<c){S.push(w-b);break}A+=c;const _=u(h,x,d);A>_&&(A-=_,x++);const g=h[x].getWidth(A-1)===2;g&&A--;const v=g?c-1:c;S.push(v),b+=v}return S},a.getWrappedLineTrimmedLength=u},5295:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferSet=void 0;const h=u(8460),d=u(844),c=u(9092);class S extends d.Disposable{constructor(A,x){super(),this._optionsService=A,this._bufferService=x,this._onBufferActivate=this.register(new h.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new c.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new c.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(A){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(A),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(A,x){this._normal.resize(A,x),this._alt.resize(A,x),this.setupTabStops(A)}setupTabStops(A){this._normal.setupTabStops(A),this._alt.setupTabStops(A)}}a.BufferSet=S},511:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CellData=void 0;const h=u(482),d=u(643),c=u(3734);class S extends c.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new c.ExtendedAttrs,this.combinedData=""}static fromCharData(A){const x=new S;return x.setFromCharData(A),x}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,h.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(A){this.fg=A[d.CHAR_DATA_ATTR_INDEX],this.bg=0;let x=!1;if(A[d.CHAR_DATA_CHAR_INDEX].length>2)x=!0;else if(A[d.CHAR_DATA_CHAR_INDEX].length===2){const b=A[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=b&&b<=56319){const _=A[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=_&&_<=57343?this.content=1024*(b-55296)+_-56320+65536|A[d.CHAR_DATA_WIDTH_INDEX]<<22:x=!0}else x=!0}else this.content=A[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|A[d.CHAR_DATA_WIDTH_INDEX]<<22;x&&(this.combinedData=A[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|A[d.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}a.CellData=S},643:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WHITESPACE_CELL_CODE=a.WHITESPACE_CELL_WIDTH=a.WHITESPACE_CELL_CHAR=a.NULL_CELL_CODE=a.NULL_CELL_WIDTH=a.NULL_CELL_CHAR=a.CHAR_DATA_CODE_INDEX=a.CHAR_DATA_WIDTH_INDEX=a.CHAR_DATA_CHAR_INDEX=a.CHAR_DATA_ATTR_INDEX=a.DEFAULT_EXT=a.DEFAULT_ATTR=a.DEFAULT_COLOR=void 0,a.DEFAULT_COLOR=0,a.DEFAULT_ATTR=256|a.DEFAULT_COLOR<<9,a.DEFAULT_EXT=0,a.CHAR_DATA_ATTR_INDEX=0,a.CHAR_DATA_CHAR_INDEX=1,a.CHAR_DATA_WIDTH_INDEX=2,a.CHAR_DATA_CODE_INDEX=3,a.NULL_CELL_CHAR="",a.NULL_CELL_WIDTH=1,a.NULL_CELL_CODE=0,a.WHITESPACE_CELL_CHAR=" ",a.WHITESPACE_CELL_WIDTH=1,a.WHITESPACE_CELL_CODE=32},4863:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Marker=void 0;const h=u(8460),d=u(844);class c{get id(){return this._id}constructor(w){this.line=w,this.isDisposed=!1,this._disposables=[],this._id=c._nextId++,this._onDispose=this.register(new h.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,d.disposeArray)(this._disposables),this._disposables.length=0)}register(w){return this._disposables.push(w),w}}a.Marker=c,c._nextId=1},7116:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DEFAULT_CHARSET=a.CHARSETS=void 0,a.CHARSETS={},a.DEFAULT_CHARSET=a.CHARSETS.B,a.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},a.CHARSETS.A={"#":"£"},a.CHARSETS.B=void 0,a.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},a.CHARSETS.C=a.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},a.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},a.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},a.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},a.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},a.CHARSETS.E=a.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},a.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},a.CHARSETS.H=a.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},a.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(f,a)=>{var u,h,d;Object.defineProperty(a,"__esModule",{value:!0}),a.C1_ESCAPED=a.C1=a.C0=void 0,(function(c){c.NUL="\0",c.SOH="",c.STX="",c.ETX="",c.EOT="",c.ENQ="",c.ACK="",c.BEL="\x07",c.BS="\b",c.HT=" ",c.LF=`
58
58
  `,c.VT="\v",c.FF="\f",c.CR="\r",c.SO="",c.SI="",c.DLE="",c.DC1="",c.DC2="",c.DC3="",c.DC4="",c.NAK="",c.SYN="",c.ETB="",c.CAN="",c.EM="",c.SUB="",c.ESC="\x1B",c.FS="",c.GS="",c.RS="",c.US="",c.SP=" ",c.DEL=""})(u||(a.C0=u={})),(function(c){c.PAD="€",c.HOP="",c.BPH="‚",c.NBH="ƒ",c.IND="„",c.NEL="…",c.SSA="†",c.ESA="‡",c.HTS="ˆ",c.HTJ="‰",c.VTS="Š",c.PLD="‹",c.PLU="Œ",c.RI="",c.SS2="Ž",c.SS3="",c.DCS="",c.PU1="‘",c.PU2="’",c.STS="“",c.CCH="”",c.MW="•",c.SPA="–",c.EPA="—",c.SOS="˜",c.SGCI="™",c.SCI="š",c.CSI="›",c.ST="œ",c.OSC="",c.PM="ž",c.APC="Ÿ"})(h||(a.C1=h={})),(function(c){c.ST=`${u.ESC}\\`})(d||(a.C1_ESCAPED=d={}))},7399:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.evaluateKeyboardEvent=void 0;const h=u(2584),d={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};a.evaluateKeyboardEvent=function(c,S,w,A){const x={type:0,cancel:!1,key:void 0},b=(c.shiftKey?1:0)|(c.altKey?2:0)|(c.ctrlKey?4:0)|(c.metaKey?8:0);switch(c.keyCode){case 0:c.key==="UIKeyInputUpArrow"?x.key=S?h.C0.ESC+"OA":h.C0.ESC+"[A":c.key==="UIKeyInputLeftArrow"?x.key=S?h.C0.ESC+"OD":h.C0.ESC+"[D":c.key==="UIKeyInputRightArrow"?x.key=S?h.C0.ESC+"OC":h.C0.ESC+"[C":c.key==="UIKeyInputDownArrow"&&(x.key=S?h.C0.ESC+"OB":h.C0.ESC+"[B");break;case 8:x.key=c.ctrlKey?"\b":h.C0.DEL,c.altKey&&(x.key=h.C0.ESC+x.key);break;case 9:if(c.shiftKey){x.key=h.C0.ESC+"[Z";break}x.key=h.C0.HT,x.cancel=!0;break;case 13:x.key=c.altKey?h.C0.ESC+h.C0.CR:h.C0.CR,x.cancel=!0;break;case 27:x.key=h.C0.ESC,c.altKey&&(x.key=h.C0.ESC+h.C0.ESC),x.cancel=!0;break;case 37:if(c.metaKey)break;b?(x.key=h.C0.ESC+"[1;"+(b+1)+"D",x.key===h.C0.ESC+"[1;3D"&&(x.key=h.C0.ESC+(w?"b":"[1;5D"))):x.key=S?h.C0.ESC+"OD":h.C0.ESC+"[D";break;case 39:if(c.metaKey)break;b?(x.key=h.C0.ESC+"[1;"+(b+1)+"C",x.key===h.C0.ESC+"[1;3C"&&(x.key=h.C0.ESC+(w?"f":"[1;5C"))):x.key=S?h.C0.ESC+"OC":h.C0.ESC+"[C";break;case 38:if(c.metaKey)break;b?(x.key=h.C0.ESC+"[1;"+(b+1)+"A",w||x.key!==h.C0.ESC+"[1;3A"||(x.key=h.C0.ESC+"[1;5A")):x.key=S?h.C0.ESC+"OA":h.C0.ESC+"[A";break;case 40:if(c.metaKey)break;b?(x.key=h.C0.ESC+"[1;"+(b+1)+"B",w||x.key!==h.C0.ESC+"[1;3B"||(x.key=h.C0.ESC+"[1;5B")):x.key=S?h.C0.ESC+"OB":h.C0.ESC+"[B";break;case 45:c.shiftKey||c.ctrlKey||(x.key=h.C0.ESC+"[2~");break;case 46:x.key=b?h.C0.ESC+"[3;"+(b+1)+"~":h.C0.ESC+"[3~";break;case 36:x.key=b?h.C0.ESC+"[1;"+(b+1)+"H":S?h.C0.ESC+"OH":h.C0.ESC+"[H";break;case 35:x.key=b?h.C0.ESC+"[1;"+(b+1)+"F":S?h.C0.ESC+"OF":h.C0.ESC+"[F";break;case 33:c.shiftKey?x.type=2:c.ctrlKey?x.key=h.C0.ESC+"[5;"+(b+1)+"~":x.key=h.C0.ESC+"[5~";break;case 34:c.shiftKey?x.type=3:c.ctrlKey?x.key=h.C0.ESC+"[6;"+(b+1)+"~":x.key=h.C0.ESC+"[6~";break;case 112:x.key=b?h.C0.ESC+"[1;"+(b+1)+"P":h.C0.ESC+"OP";break;case 113:x.key=b?h.C0.ESC+"[1;"+(b+1)+"Q":h.C0.ESC+"OQ";break;case 114:x.key=b?h.C0.ESC+"[1;"+(b+1)+"R":h.C0.ESC+"OR";break;case 115:x.key=b?h.C0.ESC+"[1;"+(b+1)+"S":h.C0.ESC+"OS";break;case 116:x.key=b?h.C0.ESC+"[15;"+(b+1)+"~":h.C0.ESC+"[15~";break;case 117:x.key=b?h.C0.ESC+"[17;"+(b+1)+"~":h.C0.ESC+"[17~";break;case 118:x.key=b?h.C0.ESC+"[18;"+(b+1)+"~":h.C0.ESC+"[18~";break;case 119:x.key=b?h.C0.ESC+"[19;"+(b+1)+"~":h.C0.ESC+"[19~";break;case 120:x.key=b?h.C0.ESC+"[20;"+(b+1)+"~":h.C0.ESC+"[20~";break;case 121:x.key=b?h.C0.ESC+"[21;"+(b+1)+"~":h.C0.ESC+"[21~";break;case 122:x.key=b?h.C0.ESC+"[23;"+(b+1)+"~":h.C0.ESC+"[23~";break;case 123:x.key=b?h.C0.ESC+"[24;"+(b+1)+"~":h.C0.ESC+"[24~";break;default:if(!c.ctrlKey||c.shiftKey||c.altKey||c.metaKey)if(w&&!A||!c.altKey||c.metaKey)!w||c.altKey||c.ctrlKey||c.shiftKey||!c.metaKey?c.key&&!c.ctrlKey&&!c.altKey&&!c.metaKey&&c.keyCode>=48&&c.key.length===1?x.key=c.key:c.key&&c.ctrlKey&&(c.key==="_"&&(x.key=h.C0.US),c.key==="@"&&(x.key=h.C0.NUL)):c.keyCode===65&&(x.type=1);else{const _=d[c.keyCode],g=_==null?void 0:_[c.shiftKey?1:0];if(g)x.key=h.C0.ESC+g;else if(c.keyCode>=65&&c.keyCode<=90){const v=c.ctrlKey?c.keyCode-64:c.keyCode+32;let k=String.fromCharCode(v);c.shiftKey&&(k=k.toUpperCase()),x.key=h.C0.ESC+k}else if(c.keyCode===32)x.key=h.C0.ESC+(c.ctrlKey?h.C0.NUL:" ");else if(c.key==="Dead"&&c.code.startsWith("Key")){let v=c.code.slice(3,4);c.shiftKey||(v=v.toLowerCase()),x.key=h.C0.ESC+v,x.cancel=!0}}else c.keyCode>=65&&c.keyCode<=90?x.key=String.fromCharCode(c.keyCode-64):c.keyCode===32?x.key=h.C0.NUL:c.keyCode>=51&&c.keyCode<=55?x.key=String.fromCharCode(c.keyCode-51+27):c.keyCode===56?x.key=h.C0.DEL:c.keyCode===219?x.key=h.C0.ESC:c.keyCode===220?x.key=h.C0.FS:c.keyCode===221&&(x.key=h.C0.GS)}return x}},482:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Utf8ToUtf32=a.StringToUtf32=a.utf32ToString=a.stringFromCodePoint=void 0,a.stringFromCodePoint=function(u){return u>65535?(u-=65536,String.fromCharCode(55296+(u>>10))+String.fromCharCode(u%1024+56320)):String.fromCharCode(u)},a.utf32ToString=function(u,h=0,d=u.length){let c="";for(let S=h;S<d;++S){let w=u[S];w>65535?(w-=65536,c+=String.fromCharCode(55296+(w>>10))+String.fromCharCode(w%1024+56320)):c+=String.fromCharCode(w)}return c},a.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(u,h){const d=u.length;if(!d)return 0;let c=0,S=0;if(this._interim){const w=u.charCodeAt(S++);56320<=w&&w<=57343?h[c++]=1024*(this._interim-55296)+w-56320+65536:(h[c++]=this._interim,h[c++]=w),this._interim=0}for(let w=S;w<d;++w){const A=u.charCodeAt(w);if(55296<=A&&A<=56319){if(++w>=d)return this._interim=A,c;const x=u.charCodeAt(w);56320<=x&&x<=57343?h[c++]=1024*(A-55296)+x-56320+65536:(h[c++]=A,h[c++]=x)}else A!==65279&&(h[c++]=A)}return c}},a.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(u,h){const d=u.length;if(!d)return 0;let c,S,w,A,x=0,b=0,_=0;if(this.interim[0]){let k=!1,M=this.interim[0];M&=(224&M)==192?31:(240&M)==224?15:7;let D,T=0;for(;(D=63&this.interim[++T])&&T<4;)M<<=6,M|=D;const E=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,R=E-T;for(;_<R;){if(_>=d)return 0;if(D=u[_++],(192&D)!=128){_--,k=!0;break}this.interim[T++]=D,M<<=6,M|=63&D}k||(E===2?M<128?_--:h[x++]=M:E===3?M<2048||M>=55296&&M<=57343||M===65279||(h[x++]=M):M<65536||M>1114111||(h[x++]=M)),this.interim.fill(0)}const g=d-4;let v=_;for(;v<d;){for(;!(!(v<g)||128&(c=u[v])||128&(S=u[v+1])||128&(w=u[v+2])||128&(A=u[v+3]));)h[x++]=c,h[x++]=S,h[x++]=w,h[x++]=A,v+=4;if(c=u[v++],c<128)h[x++]=c;else if((224&c)==192){if(v>=d)return this.interim[0]=c,x;if(S=u[v++],(192&S)!=128){v--;continue}if(b=(31&c)<<6|63&S,b<128){v--;continue}h[x++]=b}else if((240&c)==224){if(v>=d)return this.interim[0]=c,x;if(S=u[v++],(192&S)!=128){v--;continue}if(v>=d)return this.interim[0]=c,this.interim[1]=S,x;if(w=u[v++],(192&w)!=128){v--;continue}if(b=(15&c)<<12|(63&S)<<6|63&w,b<2048||b>=55296&&b<=57343||b===65279)continue;h[x++]=b}else if((248&c)==240){if(v>=d)return this.interim[0]=c,x;if(S=u[v++],(192&S)!=128){v--;continue}if(v>=d)return this.interim[0]=c,this.interim[1]=S,x;if(w=u[v++],(192&w)!=128){v--;continue}if(v>=d)return this.interim[0]=c,this.interim[1]=S,this.interim[2]=w,x;if(A=u[v++],(192&A)!=128){v--;continue}if(b=(7&c)<<18|(63&S)<<12|(63&w)<<6|63&A,b<65536||b>1114111)continue;h[x++]=b}}return x}}},225:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeV6=void 0;const h=u(1480),d=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let S;a.UnicodeV6=class{constructor(){if(this.version="6",!S){S=new Uint8Array(65536),S.fill(1),S[0]=0,S.fill(0,1,32),S.fill(0,127,160),S.fill(2,4352,4448),S[9001]=2,S[9002]=2,S.fill(2,11904,42192),S[12351]=1,S.fill(2,44032,55204),S.fill(2,63744,64256),S.fill(2,65040,65050),S.fill(2,65072,65136),S.fill(2,65280,65377),S.fill(2,65504,65511);for(let w=0;w<d.length;++w)S.fill(0,d[w][0],d[w][1]+1)}}wcwidth(w){return w<32?0:w<127?1:w<65536?S[w]:(function(A,x){let b,_=0,g=x.length-1;if(A<x[0][0]||A>x[g][1])return!1;for(;g>=_;)if(b=_+g>>1,A>x[b][1])_=b+1;else{if(!(A<x[b][0]))return!0;g=b-1}return!1})(w,c)?0:w>=131072&&w<=196605||w>=196608&&w<=262141?2:1}charProperties(w,A){let x=this.wcwidth(w),b=x===0&&A!==0;if(b){const _=h.UnicodeService.extractWidth(A);_===0?b=!1:_>x&&(x=_)}return h.UnicodeService.createPropertyValue(0,x,b)}}},5981:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WriteBuffer=void 0;const h=u(8460),d=u(844);class c extends d.Disposable{constructor(w){super(),this._action=w,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new h.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(w,A){if(A!==void 0&&this._syncCalls>A)return void(this._syncCalls=0);if(this._pendingData+=w.length,this._writeBuffer.push(w),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let x;for(this._isSyncWriting=!0;x=this._writeBuffer.shift();){this._action(x);const b=this._callbacks.shift();b&&b()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(w,A){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=w.length,this._writeBuffer.push(w),this._callbacks.push(A),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=w.length,this._writeBuffer.push(w),this._callbacks.push(A)}_innerWrite(w=0,A=!0){const x=w||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const b=this._writeBuffer[this._bufferOffset],_=this._action(b,A);if(_){const v=k=>Date.now()-x>=12?setTimeout((()=>this._innerWrite(0,k))):this._innerWrite(x,k);return void _.catch((k=>(queueMicrotask((()=>{throw k})),Promise.resolve(!1)))).then(v)}const g=this._callbacks[this._bufferOffset];if(g&&g(),this._bufferOffset++,this._pendingData-=b.length,Date.now()-x>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}a.WriteBuffer=c},5941:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.toRgbString=a.parseColor=void 0;const u=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,h=/^[\da-f]+$/;function d(c,S){const w=c.toString(16),A=w.length<2?"0"+w:w;switch(S){case 4:return w[0];case 8:return A;case 12:return(A+A).slice(0,3);default:return A+A}}a.parseColor=function(c){if(!c)return;let S=c.toLowerCase();if(S.indexOf("rgb:")===0){S=S.slice(4);const w=u.exec(S);if(w){const A=w[1]?15:w[4]?255:w[7]?4095:65535;return[Math.round(parseInt(w[1]||w[4]||w[7]||w[10],16)/A*255),Math.round(parseInt(w[2]||w[5]||w[8]||w[11],16)/A*255),Math.round(parseInt(w[3]||w[6]||w[9]||w[12],16)/A*255)]}}else if(S.indexOf("#")===0&&(S=S.slice(1),h.exec(S)&&[3,6,9,12].includes(S.length))){const w=S.length/3,A=[0,0,0];for(let x=0;x<3;++x){const b=parseInt(S.slice(w*x,w*x+w),16);A[x]=w===1?b<<4:w===2?b:w===3?b>>4:b>>8}return A}},a.toRgbString=function(c,S=16){const[w,A,x]=c;return`rgb:${d(w,S)}/${d(A,S)}/${d(x,S)}`}},5770:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PAYLOAD_LIMIT=void 0,a.PAYLOAD_LIMIT=1e7},6351:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DcsHandler=a.DcsParser=void 0;const h=u(482),d=u(8742),c=u(5770),S=[];a.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=S,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=S}registerHandler(A,x){this._handlers[A]===void 0&&(this._handlers[A]=[]);const b=this._handlers[A];return b.push(x),{dispose:()=>{const _=b.indexOf(x);_!==-1&&b.splice(_,1)}}}clearHandler(A){this._handlers[A]&&delete this._handlers[A]}setHandlerFallback(A){this._handlerFb=A}reset(){if(this._active.length)for(let A=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;A>=0;--A)this._active[A].unhook(!1);this._stack.paused=!1,this._active=S,this._ident=0}hook(A,x){if(this.reset(),this._ident=A,this._active=this._handlers[A]||S,this._active.length)for(let b=this._active.length-1;b>=0;b--)this._active[b].hook(x);else this._handlerFb(this._ident,"HOOK",x)}put(A,x,b){if(this._active.length)for(let _=this._active.length-1;_>=0;_--)this._active[_].put(A,x,b);else this._handlerFb(this._ident,"PUT",(0,h.utf32ToString)(A,x,b))}unhook(A,x=!0){if(this._active.length){let b=!1,_=this._active.length-1,g=!1;if(this._stack.paused&&(_=this._stack.loopPosition-1,b=x,g=this._stack.fallThrough,this._stack.paused=!1),!g&&b===!1){for(;_>=0&&(b=this._active[_].unhook(A),b!==!0);_--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!1,b;_--}for(;_>=0;_--)if(b=this._active[_].unhook(!1),b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!0,b}else this._handlerFb(this._ident,"UNHOOK",A);this._active=S,this._ident=0}};const w=new d.Params;w.addParam(0),a.DcsHandler=class{constructor(A){this._handler=A,this._data="",this._params=w,this._hitLimit=!1}hook(A){this._params=A.length>1||A.params[0]?A.clone():w,this._data="",this._hitLimit=!1}put(A,x,b){this._hitLimit||(this._data+=(0,h.utf32ToString)(A,x,b),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(A){let x=!1;if(this._hitLimit)x=!1;else if(A&&(x=this._handler(this._data,this._params),x instanceof Promise))return x.then((b=>(this._params=w,this._data="",this._hitLimit=!1,b)));return this._params=w,this._data="",this._hitLimit=!1,x}}},2015:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.EscapeSequenceParser=a.VT500_TRANSITION_TABLE=a.TransitionTable=void 0;const h=u(844),d=u(8742),c=u(6242),S=u(6351);class w{constructor(_){this.table=new Uint8Array(_)}setDefault(_,g){this.table.fill(_<<4|g)}add(_,g,v,k){this.table[g<<8|_]=v<<4|k}addMany(_,g,v,k){for(let M=0;M<_.length;M++)this.table[g<<8|_[M]]=v<<4|k}}a.TransitionTable=w;const A=160;a.VT500_TRANSITION_TABLE=(function(){const b=new w(4095),_=Array.apply(null,Array(256)).map(((T,E)=>E)),g=(T,E)=>_.slice(T,E),v=g(32,127),k=g(0,24);k.push(25),k.push.apply(k,g(28,32));const M=g(0,14);let D;for(D in b.setDefault(1,0),b.addMany(v,0,2,0),M)b.addMany([24,26,153,154],D,3,0),b.addMany(g(128,144),D,3,0),b.addMany(g(144,152),D,3,0),b.add(156,D,0,0),b.add(27,D,11,1),b.add(157,D,4,8),b.addMany([152,158,159],D,0,7),b.add(155,D,11,3),b.add(144,D,11,9);return b.addMany(k,0,3,0),b.addMany(k,1,3,1),b.add(127,1,0,1),b.addMany(k,8,0,8),b.addMany(k,3,3,3),b.add(127,3,0,3),b.addMany(k,4,3,4),b.add(127,4,0,4),b.addMany(k,6,3,6),b.addMany(k,5,3,5),b.add(127,5,0,5),b.addMany(k,2,3,2),b.add(127,2,0,2),b.add(93,1,4,8),b.addMany(v,8,5,8),b.add(127,8,5,8),b.addMany([156,27,24,26,7],8,6,0),b.addMany(g(28,32),8,0,8),b.addMany([88,94,95],1,0,7),b.addMany(v,7,0,7),b.addMany(k,7,0,7),b.add(156,7,0,0),b.add(127,7,0,7),b.add(91,1,11,3),b.addMany(g(64,127),3,7,0),b.addMany(g(48,60),3,8,4),b.addMany([60,61,62,63],3,9,4),b.addMany(g(48,60),4,8,4),b.addMany(g(64,127),4,7,0),b.addMany([60,61,62,63],4,0,6),b.addMany(g(32,64),6,0,6),b.add(127,6,0,6),b.addMany(g(64,127),6,0,0),b.addMany(g(32,48),3,9,5),b.addMany(g(32,48),5,9,5),b.addMany(g(48,64),5,0,6),b.addMany(g(64,127),5,7,0),b.addMany(g(32,48),4,9,5),b.addMany(g(32,48),1,9,2),b.addMany(g(32,48),2,9,2),b.addMany(g(48,127),2,10,0),b.addMany(g(48,80),1,10,0),b.addMany(g(81,88),1,10,0),b.addMany([89,90,92],1,10,0),b.addMany(g(96,127),1,10,0),b.add(80,1,11,9),b.addMany(k,9,0,9),b.add(127,9,0,9),b.addMany(g(28,32),9,0,9),b.addMany(g(32,48),9,9,12),b.addMany(g(48,60),9,8,10),b.addMany([60,61,62,63],9,9,10),b.addMany(k,11,0,11),b.addMany(g(32,128),11,0,11),b.addMany(g(28,32),11,0,11),b.addMany(k,10,0,10),b.add(127,10,0,10),b.addMany(g(28,32),10,0,10),b.addMany(g(48,60),10,8,10),b.addMany([60,61,62,63],10,0,11),b.addMany(g(32,48),10,9,12),b.addMany(k,12,0,12),b.add(127,12,0,12),b.addMany(g(28,32),12,0,12),b.addMany(g(32,48),12,9,12),b.addMany(g(48,64),12,0,11),b.addMany(g(64,127),12,12,13),b.addMany(g(64,127),10,12,13),b.addMany(g(64,127),9,12,13),b.addMany(k,13,13,13),b.addMany(v,13,13,13),b.add(127,13,0,13),b.addMany([27,156,24,26],13,14,0),b.add(A,0,2,0),b.add(A,8,5,8),b.add(A,6,0,6),b.add(A,11,0,11),b.add(A,13,13,13),b})();class x extends h.Disposable{constructor(_=a.VT500_TRANSITION_TABLE){super(),this._transitions=_,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new d.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(g,v,k)=>{},this._executeHandlerFb=g=>{},this._csiHandlerFb=(g,v)=>{},this._escHandlerFb=g=>{},this._errorHandlerFb=g=>g,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,h.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new c.OscParser),this._dcsParser=this.register(new S.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(_,g=[64,126]){let v=0;if(_.prefix){if(_.prefix.length>1)throw new Error("only one byte as prefix supported");if(v=_.prefix.charCodeAt(0),v&&60>v||v>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(_.intermediates){if(_.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let M=0;M<_.intermediates.length;++M){const D=_.intermediates.charCodeAt(M);if(32>D||D>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");v<<=8,v|=D}}if(_.final.length!==1)throw new Error("final must be a single byte");const k=_.final.charCodeAt(0);if(g[0]>k||k>g[1])throw new Error(`final must be in range ${g[0]} .. ${g[1]}`);return v<<=8,v|=k,v}identToString(_){const g=[];for(;_;)g.push(String.fromCharCode(255&_)),_>>=8;return g.reverse().join("")}setPrintHandler(_){this._printHandler=_}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(_,g){const v=this._identifier(_,[48,126]);this._escHandlers[v]===void 0&&(this._escHandlers[v]=[]);const k=this._escHandlers[v];return k.push(g),{dispose:()=>{const M=k.indexOf(g);M!==-1&&k.splice(M,1)}}}clearEscHandler(_){this._escHandlers[this._identifier(_,[48,126])]&&delete this._escHandlers[this._identifier(_,[48,126])]}setEscHandlerFallback(_){this._escHandlerFb=_}setExecuteHandler(_,g){this._executeHandlers[_.charCodeAt(0)]=g}clearExecuteHandler(_){this._executeHandlers[_.charCodeAt(0)]&&delete this._executeHandlers[_.charCodeAt(0)]}setExecuteHandlerFallback(_){this._executeHandlerFb=_}registerCsiHandler(_,g){const v=this._identifier(_);this._csiHandlers[v]===void 0&&(this._csiHandlers[v]=[]);const k=this._csiHandlers[v];return k.push(g),{dispose:()=>{const M=k.indexOf(g);M!==-1&&k.splice(M,1)}}}clearCsiHandler(_){this._csiHandlers[this._identifier(_)]&&delete this._csiHandlers[this._identifier(_)]}setCsiHandlerFallback(_){this._csiHandlerFb=_}registerDcsHandler(_,g){return this._dcsParser.registerHandler(this._identifier(_),g)}clearDcsHandler(_){this._dcsParser.clearHandler(this._identifier(_))}setDcsHandlerFallback(_){this._dcsParser.setHandlerFallback(_)}registerOscHandler(_,g){return this._oscParser.registerHandler(_,g)}clearOscHandler(_){this._oscParser.clearHandler(_)}setOscHandlerFallback(_){this._oscParser.setHandlerFallback(_)}setErrorHandler(_){this._errorHandler=_}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(_,g,v,k,M){this._parseStack.state=_,this._parseStack.handlers=g,this._parseStack.handlerPos=v,this._parseStack.transition=k,this._parseStack.chunkPos=M}parse(_,g,v){let k,M=0,D=0,T=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,T=this._parseStack.chunkPos+1;else{if(v===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const E=this._parseStack.handlers;let R=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(v===!1&&R>-1){for(;R>=0&&(k=E[R](this._params),k!==!0);R--)if(k instanceof Promise)return this._parseStack.handlerPos=R,k}this._parseStack.handlers=[];break;case 4:if(v===!1&&R>-1){for(;R>=0&&(k=E[R](),k!==!0);R--)if(k instanceof Promise)return this._parseStack.handlerPos=R,k}this._parseStack.handlers=[];break;case 6:if(M=_[this._parseStack.chunkPos],k=this._dcsParser.unhook(M!==24&&M!==26,v),k)return k;M===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(M=_[this._parseStack.chunkPos],k=this._oscParser.end(M!==24&&M!==26,v),k)return k;M===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,T=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let E=T;E<g;++E){switch(M=_[E],D=this._transitions.table[this.currentState<<8|(M<160?M:A)],D>>4){case 2:for(let F=E+1;;++F){if(F>=g||(M=_[F])<32||M>126&&M<A){this._printHandler(_,E,F),E=F-1;break}if(++F>=g||(M=_[F])<32||M>126&&M<A){this._printHandler(_,E,F),E=F-1;break}if(++F>=g||(M=_[F])<32||M>126&&M<A){this._printHandler(_,E,F),E=F-1;break}if(++F>=g||(M=_[F])<32||M>126&&M<A){this._printHandler(_,E,F),E=F-1;break}}break;case 3:this._executeHandlers[M]?this._executeHandlers[M]():this._executeHandlerFb(M),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:E,code:M,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const R=this._csiHandlers[this._collect<<8|M];let B=R?R.length-1:-1;for(;B>=0&&(k=R[B](this._params),k!==!0);B--)if(k instanceof Promise)return this._preserveStack(3,R,B,D,E),k;B<0&&this._csiHandlerFb(this._collect<<8|M,this._params),this.precedingJoinState=0;break;case 8:do switch(M){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(M-48)}while(++E<g&&(M=_[E])>47&&M<60);E--;break;case 9:this._collect<<=8,this._collect|=M;break;case 10:const z=this._escHandlers[this._collect<<8|M];let q=z?z.length-1:-1;for(;q>=0&&(k=z[q](),k!==!0);q--)if(k instanceof Promise)return this._preserveStack(4,z,q,D,E),k;q<0&&this._escHandlerFb(this._collect<<8|M),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|M,this._params);break;case 13:for(let F=E+1;;++F)if(F>=g||(M=_[F])===24||M===26||M===27||M>127&&M<A){this._dcsParser.put(_,E,F),E=F-1;break}break;case 14:if(k=this._dcsParser.unhook(M!==24&&M!==26),k)return this._preserveStack(6,[],0,D,E),k;M===27&&(D|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let F=E+1;;F++)if(F>=g||(M=_[F])<32||M>127&&M<A){this._oscParser.put(_,E,F),E=F-1;break}break;case 6:if(k=this._oscParser.end(M!==24&&M!==26),k)return this._preserveStack(5,[],0,D,E),k;M===27&&(D|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&D}}}a.EscapeSequenceParser=x},6242:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OscHandler=a.OscParser=void 0;const h=u(5770),d=u(482),c=[];a.OscParser=class{constructor(){this._state=0,this._active=c,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(S,w){this._handlers[S]===void 0&&(this._handlers[S]=[]);const A=this._handlers[S];return A.push(w),{dispose:()=>{const x=A.indexOf(w);x!==-1&&A.splice(x,1)}}}clearHandler(S){this._handlers[S]&&delete this._handlers[S]}setHandlerFallback(S){this._handlerFb=S}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=c}reset(){if(this._state===2)for(let S=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;S>=0;--S)this._active[S].end(!1);this._stack.paused=!1,this._active=c,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||c,this._active.length)for(let S=this._active.length-1;S>=0;S--)this._active[S].start();else this._handlerFb(this._id,"START")}_put(S,w,A){if(this._active.length)for(let x=this._active.length-1;x>=0;x--)this._active[x].put(S,w,A);else this._handlerFb(this._id,"PUT",(0,d.utf32ToString)(S,w,A))}start(){this.reset(),this._state=1}put(S,w,A){if(this._state!==3){if(this._state===1)for(;w<A;){const x=S[w++];if(x===59){this._state=2,this._start();break}if(x<48||57<x)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+x-48}this._state===2&&A-w>0&&this._put(S,w,A)}}end(S,w=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let A=!1,x=this._active.length-1,b=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,A=w,b=this._stack.fallThrough,this._stack.paused=!1),!b&&A===!1){for(;x>=0&&(A=this._active[x].end(S),A!==!0);x--)if(A instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,A;x--}for(;x>=0;x--)if(A=this._active[x].end(!1),A instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,A}else this._handlerFb(this._id,"END",S);this._active=c,this._id=-1,this._state=0}}},a.OscHandler=class{constructor(S){this._handler=S,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(S,w,A){this._hitLimit||(this._data+=(0,d.utf32ToString)(S,w,A),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(S){let w=!1;if(this._hitLimit)w=!1;else if(S&&(w=this._handler(this._data),w instanceof Promise))return w.then((A=>(this._data="",this._hitLimit=!1,A)));return this._data="",this._hitLimit=!1,w}}},8742:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Params=void 0;const u=2147483647;class h{static fromArray(c){const S=new h;if(!c.length)return S;for(let w=Array.isArray(c[0])?1:0;w<c.length;++w){const A=c[w];if(Array.isArray(A))for(let x=0;x<A.length;++x)S.addSubParam(A[x]);else S.addParam(A)}return S}constructor(c=32,S=32){if(this.maxLength=c,this.maxSubParamsLength=S,S>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(c),this.length=0,this._subParams=new Int32Array(S),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(c),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const c=new h(this.maxLength,this.maxSubParamsLength);return c.params.set(this.params),c.length=this.length,c._subParams.set(this._subParams),c._subParamsLength=this._subParamsLength,c._subParamsIdx.set(this._subParamsIdx),c._rejectDigits=this._rejectDigits,c._rejectSubDigits=this._rejectSubDigits,c._digitIsSub=this._digitIsSub,c}toArray(){const c=[];for(let S=0;S<this.length;++S){c.push(this.params[S]);const w=this._subParamsIdx[S]>>8,A=255&this._subParamsIdx[S];A-w>0&&c.push(Array.prototype.slice.call(this._subParams,w,A))}return c}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(c){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(c<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=c>u?u:c}}addSubParam(c){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(c<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=c>u?u:c,this._subParamsIdx[this.length-1]++}}hasSubParams(c){return(255&this._subParamsIdx[c])-(this._subParamsIdx[c]>>8)>0}getSubParams(c){const S=this._subParamsIdx[c]>>8,w=255&this._subParamsIdx[c];return w-S>0?this._subParams.subarray(S,w):null}getSubParamsAll(){const c={};for(let S=0;S<this.length;++S){const w=this._subParamsIdx[S]>>8,A=255&this._subParamsIdx[S];A-w>0&&(c[S]=this._subParams.slice(w,A))}return c}addDigit(c){let S;if(this._rejectDigits||!(S=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const w=this._digitIsSub?this._subParams:this.params,A=w[S-1];w[S-1]=~A?Math.min(10*A+c,u):c}}a.Params=h},5741:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AddonManager=void 0,a.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let u=this._addons.length-1;u>=0;u--)this._addons[u].instance.dispose()}loadAddon(u,h){const d={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(d),h.dispose=()=>this._wrappedAddonDispose(d),h.activate(u)}_wrappedAddonDispose(u){if(u.isDisposed)return;let h=-1;for(let d=0;d<this._addons.length;d++)if(this._addons[d]===u){h=d;break}if(h===-1)throw new Error("Could not dispose an addon that has not been loaded");u.isDisposed=!0,u.dispose.apply(u.instance),this._addons.splice(h,1)}}},8771:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferApiView=void 0;const h=u(3785),d=u(511);a.BufferApiView=class{constructor(c,S){this._buffer=c,this.type=S}init(c){return this._buffer=c,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(c){const S=this._buffer.lines.get(c);if(S)return new h.BufferLineApiView(S)}getNullCell(){return new d.CellData}}},3785:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLineApiView=void 0;const h=u(511);a.BufferLineApiView=class{constructor(d){this._line=d}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(d,c){if(!(d<0||d>=this._line.length))return c?(this._line.loadCell(d,c),c):this._line.loadCell(d,new h.CellData)}translateToString(d,c,S){return this._line.translateToString(d,c,S)}}},8285:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferNamespaceApi=void 0;const h=u(8771),d=u(8460),c=u(844);class S extends c.Disposable{constructor(A){super(),this._core=A,this._onBufferChange=this.register(new d.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new h.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new h.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}a.BufferNamespaceApi=S},7975:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ParserApi=void 0,a.ParserApi=class{constructor(u){this._core=u}registerCsiHandler(u,h){return this._core.registerCsiHandler(u,(d=>h(d.toArray())))}addCsiHandler(u,h){return this.registerCsiHandler(u,h)}registerDcsHandler(u,h){return this._core.registerDcsHandler(u,((d,c)=>h(d,c.toArray())))}addDcsHandler(u,h){return this.registerDcsHandler(u,h)}registerEscHandler(u,h){return this._core.registerEscHandler(u,h)}addEscHandler(u,h){return this.registerEscHandler(u,h)}registerOscHandler(u,h){return this._core.registerOscHandler(u,h)}addOscHandler(u,h){return this.registerOscHandler(u,h)}}},7090:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeApi=void 0,a.UnicodeApi=class{constructor(u){this._core=u}register(u){this._core.unicodeService.register(u)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(u){this._core.unicodeService.activeVersion=u}}},744:function(f,a,u){var h=this&&this.__decorate||function(b,_,g,v){var k,M=arguments.length,D=M<3?_:v===null?v=Object.getOwnPropertyDescriptor(_,g):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(b,_,g,v);else for(var T=b.length-1;T>=0;T--)(k=b[T])&&(D=(M<3?k(D):M>3?k(_,g,D):k(_,g))||D);return M>3&&D&&Object.defineProperty(_,g,D),D},d=this&&this.__param||function(b,_){return function(g,v){_(g,v,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferService=a.MINIMUM_ROWS=a.MINIMUM_COLS=void 0;const c=u(8460),S=u(844),w=u(5295),A=u(2585);a.MINIMUM_COLS=2,a.MINIMUM_ROWS=1;let x=a.BufferService=class extends S.Disposable{get buffer(){return this.buffers.active}constructor(b){super(),this.isUserScrolling=!1,this._onResize=this.register(new c.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new c.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(b.rawOptions.cols||0,a.MINIMUM_COLS),this.rows=Math.max(b.rawOptions.rows||0,a.MINIMUM_ROWS),this.buffers=this.register(new w.BufferSet(b,this))}resize(b,_){this.cols=b,this.rows=_,this.buffers.resize(b,_),this._onResize.fire({cols:b,rows:_})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(b,_=!1){const g=this.buffer;let v;v=this._cachedBlankLine,v&&v.length===this.cols&&v.getFg(0)===b.fg&&v.getBg(0)===b.bg||(v=g.getBlankLine(b,_),this._cachedBlankLine=v),v.isWrapped=_;const k=g.ybase+g.scrollTop,M=g.ybase+g.scrollBottom;if(g.scrollTop===0){const D=g.lines.isFull;M===g.lines.length-1?D?g.lines.recycle().copyFrom(v):g.lines.push(v.clone()):g.lines.splice(M+1,0,v.clone()),D?this.isUserScrolling&&(g.ydisp=Math.max(g.ydisp-1,0)):(g.ybase++,this.isUserScrolling||g.ydisp++)}else{const D=M-k+1;g.lines.shiftElements(k+1,D-1,-1),g.lines.set(M,v.clone())}this.isUserScrolling||(g.ydisp=g.ybase),this._onScroll.fire(g.ydisp)}scrollLines(b,_,g){const v=this.buffer;if(b<0){if(v.ydisp===0)return;this.isUserScrolling=!0}else b+v.ydisp>=v.ybase&&(this.isUserScrolling=!1);const k=v.ydisp;v.ydisp=Math.max(Math.min(v.ydisp+b,v.ybase),0),k!==v.ydisp&&(_||this._onScroll.fire(v.ydisp))}};a.BufferService=x=h([d(0,A.IOptionsService)],x)},7994:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CharsetService=void 0,a.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(u){this.glevel=u,this.charset=this._charsets[u]}setgCharset(u,h){this._charsets[u]=h,this.glevel===u&&(this.charset=h)}}},1753:function(f,a,u){var h=this&&this.__decorate||function(v,k,M,D){var T,E=arguments.length,R=E<3?k:D===null?D=Object.getOwnPropertyDescriptor(k,M):D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(v,k,M,D);else for(var B=v.length-1;B>=0;B--)(T=v[B])&&(R=(E<3?T(R):E>3?T(k,M,R):T(k,M))||R);return E>3&&R&&Object.defineProperty(k,M,R),R},d=this&&this.__param||function(v,k){return function(M,D){k(M,D,v)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreMouseService=void 0;const c=u(2585),S=u(8460),w=u(844),A={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:v=>v.button!==4&&v.action===1&&(v.ctrl=!1,v.alt=!1,v.shift=!1,!0)},VT200:{events:19,restrict:v=>v.action!==32},DRAG:{events:23,restrict:v=>v.action!==32||v.button!==3},ANY:{events:31,restrict:v=>!0}};function x(v,k){let M=(v.ctrl?16:0)|(v.shift?4:0)|(v.alt?8:0);return v.button===4?(M|=64,M|=v.action):(M|=3&v.button,4&v.button&&(M|=64),8&v.button&&(M|=128),v.action===32?M|=32:v.action!==0||k||(M|=3)),M}const b=String.fromCharCode,_={DEFAULT:v=>{const k=[x(v,!1)+32,v.col+32,v.row+32];return k[0]>255||k[1]>255||k[2]>255?"":`\x1B[M${b(k[0])}${b(k[1])}${b(k[2])}`},SGR:v=>{const k=v.action===0&&v.button!==4?"m":"M";return`\x1B[<${x(v,!0)};${v.col};${v.row}${k}`},SGR_PIXELS:v=>{const k=v.action===0&&v.button!==4?"m":"M";return`\x1B[<${x(v,!0)};${v.x};${v.y}${k}`}};let g=a.CoreMouseService=class extends w.Disposable{constructor(v,k){super(),this._bufferService=v,this._coreService=k,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new S.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const M of Object.keys(A))this.addProtocol(M,A[M]);for(const M of Object.keys(_))this.addEncoding(M,_[M]);this.reset()}addProtocol(v,k){this._protocols[v]=k}addEncoding(v,k){this._encodings[v]=k}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(v){if(!this._protocols[v])throw new Error(`unknown protocol "${v}"`);this._activeProtocol=v,this._onProtocolChange.fire(this._protocols[v].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(v){if(!this._encodings[v])throw new Error(`unknown encoding "${v}"`);this._activeEncoding=v}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(v){if(v.col<0||v.col>=this._bufferService.cols||v.row<0||v.row>=this._bufferService.rows||v.button===4&&v.action===32||v.button===3&&v.action!==32||v.button!==4&&(v.action===2||v.action===3)||(v.col++,v.row++,v.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,v,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(v))return!1;const k=this._encodings[this._activeEncoding](v);return k&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(k):this._coreService.triggerDataEvent(k,!0)),this._lastEvent=v,!0}explainEvents(v){return{down:!!(1&v),up:!!(2&v),drag:!!(4&v),move:!!(8&v),wheel:!!(16&v)}}_equalEvents(v,k,M){if(M){if(v.x!==k.x||v.y!==k.y)return!1}else if(v.col!==k.col||v.row!==k.row)return!1;return v.button===k.button&&v.action===k.action&&v.ctrl===k.ctrl&&v.alt===k.alt&&v.shift===k.shift}};a.CoreMouseService=g=h([d(0,c.IBufferService),d(1,c.ICoreService)],g)},6975:function(f,a,u){var h=this&&this.__decorate||function(g,v,k,M){var D,T=arguments.length,E=T<3?v:M===null?M=Object.getOwnPropertyDescriptor(v,k):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(g,v,k,M);else for(var R=g.length-1;R>=0;R--)(D=g[R])&&(E=(T<3?D(E):T>3?D(v,k,E):D(v,k))||E);return T>3&&E&&Object.defineProperty(v,k,E),E},d=this&&this.__param||function(g,v){return function(k,M){v(k,M,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreService=void 0;const c=u(1439),S=u(8460),w=u(844),A=u(2585),x=Object.freeze({insertMode:!1}),b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let _=a.CoreService=class extends w.Disposable{constructor(g,v,k){super(),this._bufferService=g,this._logService=v,this._optionsService=k,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new S.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new S.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new S.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new S.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,c.clone)(x),this.decPrivateModes=(0,c.clone)(b)}reset(){this.modes=(0,c.clone)(x),this.decPrivateModes=(0,c.clone)(b)}triggerDataEvent(g,v=!1){if(this._optionsService.rawOptions.disableStdin)return;const k=this._bufferService.buffer;v&&this._optionsService.rawOptions.scrollOnUserInput&&k.ybase!==k.ydisp&&this._onRequestScrollToBottom.fire(),v&&this._onUserInput.fire(),this._logService.debug(`sending data "${g}"`,(()=>g.split("").map((M=>M.charCodeAt(0))))),this._onData.fire(g)}triggerBinaryEvent(g){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${g}"`,(()=>g.split("").map((v=>v.charCodeAt(0))))),this._onBinary.fire(g))}};a.CoreService=_=h([d(0,A.IBufferService),d(1,A.ILogService),d(2,A.IOptionsService)],_)},9074:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DecorationService=void 0;const h=u(8055),d=u(8460),c=u(844),S=u(6106);let w=0,A=0;class x extends c.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new S.SortedList((g=>g==null?void 0:g.marker.line)),this._onDecorationRegistered=this.register(new d.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new d.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,c.toDisposable)((()=>this.reset())))}registerDecoration(g){if(g.marker.isDisposed)return;const v=new b(g);if(v){const k=v.marker.onDispose((()=>v.dispose()));v.onDispose((()=>{v&&(this._decorations.delete(v)&&this._onDecorationRemoved.fire(v),k.dispose())})),this._decorations.insert(v),this._onDecorationRegistered.fire(v)}return v}reset(){for(const g of this._decorations.values())g.dispose();this._decorations.clear()}*getDecorationsAtCell(g,v,k){let M=0,D=0;for(const T of this._decorations.getKeyIterator(v))M=T.options.x??0,D=M+(T.options.width??1),g>=M&&g<D&&(!k||(T.options.layer??"bottom")===k)&&(yield T)}forEachDecorationAtCell(g,v,k,M){this._decorations.forEachByKey(v,(D=>{w=D.options.x??0,A=w+(D.options.width??1),g>=w&&g<A&&(!k||(D.options.layer??"bottom")===k)&&M(D)}))}}a.DecorationService=x;class b extends c.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=h.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=h.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(g){super(),this.options=g,this.onRenderEmitter=this.register(new d.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new d.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=g.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.InstantiationService=a.ServiceCollection=void 0;const h=u(2585),d=u(8343);class c{constructor(...w){this._entries=new Map;for(const[A,x]of w)this.set(A,x)}set(w,A){const x=this._entries.get(w);return this._entries.set(w,A),x}forEach(w){for(const[A,x]of this._entries.entries())w(A,x)}has(w){return this._entries.has(w)}get(w){return this._entries.get(w)}}a.ServiceCollection=c,a.InstantiationService=class{constructor(){this._services=new c,this._services.set(h.IInstantiationService,this)}setService(S,w){this._services.set(S,w)}getService(S){return this._services.get(S)}createInstance(S,...w){const A=(0,d.getServiceDependencies)(S).sort(((_,g)=>_.index-g.index)),x=[];for(const _ of A){const g=this._services.get(_.id);if(!g)throw new Error(`[createInstance] ${S.name} depends on UNKNOWN service ${_.id}.`);x.push(g)}const b=A.length>0?A[0].index:w.length;if(w.length!==b)throw new Error(`[createInstance] First service dependency of ${S.name} at position ${b+1} conflicts with ${w.length} static arguments`);return new S(...w,...x)}}},7866:function(f,a,u){var h=this&&this.__decorate||function(b,_,g,v){var k,M=arguments.length,D=M<3?_:v===null?v=Object.getOwnPropertyDescriptor(_,g):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(b,_,g,v);else for(var T=b.length-1;T>=0;T--)(k=b[T])&&(D=(M<3?k(D):M>3?k(_,g,D):k(_,g))||D);return M>3&&D&&Object.defineProperty(_,g,D),D},d=this&&this.__param||function(b,_){return function(g,v){_(g,v,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.traceCall=a.setTraceLogger=a.LogService=void 0;const c=u(844),S=u(2585),w={trace:S.LogLevelEnum.TRACE,debug:S.LogLevelEnum.DEBUG,info:S.LogLevelEnum.INFO,warn:S.LogLevelEnum.WARN,error:S.LogLevelEnum.ERROR,off:S.LogLevelEnum.OFF};let A,x=a.LogService=class extends c.Disposable{get logLevel(){return this._logLevel}constructor(b){super(),this._optionsService=b,this._logLevel=S.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),A=this}_updateLogLevel(){this._logLevel=w[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(b){for(let _=0;_<b.length;_++)typeof b[_]=="function"&&(b[_]=b[_]())}_log(b,_,g){this._evalLazyOptionalParams(g),b.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+_,...g)}trace(b,..._){var g;this._logLevel<=S.LogLevelEnum.TRACE&&this._log(((g=this._optionsService.options.logger)==null?void 0:g.trace.bind(this._optionsService.options.logger))??console.log,b,_)}debug(b,..._){var g;this._logLevel<=S.LogLevelEnum.DEBUG&&this._log(((g=this._optionsService.options.logger)==null?void 0:g.debug.bind(this._optionsService.options.logger))??console.log,b,_)}info(b,..._){var g;this._logLevel<=S.LogLevelEnum.INFO&&this._log(((g=this._optionsService.options.logger)==null?void 0:g.info.bind(this._optionsService.options.logger))??console.info,b,_)}warn(b,..._){var g;this._logLevel<=S.LogLevelEnum.WARN&&this._log(((g=this._optionsService.options.logger)==null?void 0:g.warn.bind(this._optionsService.options.logger))??console.warn,b,_)}error(b,..._){var g;this._logLevel<=S.LogLevelEnum.ERROR&&this._log(((g=this._optionsService.options.logger)==null?void 0:g.error.bind(this._optionsService.options.logger))??console.error,b,_)}};a.LogService=x=h([d(0,S.IOptionsService)],x),a.setTraceLogger=function(b){A=b},a.traceCall=function(b,_,g){if(typeof g.value!="function")throw new Error("not supported");const v=g.value;g.value=function(...k){if(A.logLevel!==S.LogLevelEnum.TRACE)return v.apply(this,k);A.trace(`GlyphRenderer#${v.name}(${k.map((D=>JSON.stringify(D))).join(", ")})`);const M=v.apply(this,k);return A.trace(`GlyphRenderer#${v.name} return`,M),M}}},7302:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OptionsService=a.DEFAULT_OPTIONS=void 0;const h=u(8460),d=u(844),c=u(6114);a.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:c.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const S=["normal","bold","100","200","300","400","500","600","700","800","900"];class w extends d.Disposable{constructor(x){super(),this._onOptionChange=this.register(new h.EventEmitter),this.onOptionChange=this._onOptionChange.event;const b={...a.DEFAULT_OPTIONS};for(const _ in x)if(_ in b)try{const g=x[_];b[_]=this._sanitizeAndValidateOption(_,g)}catch(g){console.error(g)}this.rawOptions=b,this.options={...b},this._setupOptions(),this.register((0,d.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(x,b){return this.onOptionChange((_=>{_===x&&b(this.rawOptions[x])}))}onMultipleOptionChange(x,b){return this.onOptionChange((_=>{x.indexOf(_)!==-1&&b()}))}_setupOptions(){const x=_=>{if(!(_ in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${_}"`);return this.rawOptions[_]},b=(_,g)=>{if(!(_ in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${_}"`);g=this._sanitizeAndValidateOption(_,g),this.rawOptions[_]!==g&&(this.rawOptions[_]=g,this._onOptionChange.fire(_))};for(const _ in this.rawOptions){const g={get:x.bind(this,_),set:b.bind(this,_)};Object.defineProperty(this.options,_,g)}}_sanitizeAndValidateOption(x,b){switch(x){case"cursorStyle":if(b||(b=a.DEFAULT_OPTIONS[x]),!(function(_){return _==="block"||_==="underline"||_==="bar"})(b))throw new Error(`"${b}" is not a valid value for ${x}`);break;case"wordSeparator":b||(b=a.DEFAULT_OPTIONS[x]);break;case"fontWeight":case"fontWeightBold":if(typeof b=="number"&&1<=b&&b<=1e3)break;b=S.includes(b)?b:a.DEFAULT_OPTIONS[x];break;case"cursorWidth":b=Math.floor(b);case"lineHeight":case"tabStopWidth":if(b<1)throw new Error(`${x} cannot be less than 1, value: ${b}`);break;case"minimumContrastRatio":b=Math.max(1,Math.min(21,Math.round(10*b)/10));break;case"scrollback":if((b=Math.min(b,4294967295))<0)throw new Error(`${x} cannot be less than 0, value: ${b}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(b<=0)throw new Error(`${x} cannot be less than or equal to 0, value: ${b}`);break;case"rows":case"cols":if(!b&&b!==0)throw new Error(`${x} must be numeric, value: ${b}`);break;case"windowsPty":b=b??{}}return b}}a.OptionsService=w},2660:function(f,a,u){var h=this&&this.__decorate||function(w,A,x,b){var _,g=arguments.length,v=g<3?A:b===null?b=Object.getOwnPropertyDescriptor(A,x):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(w,A,x,b);else for(var k=w.length-1;k>=0;k--)(_=w[k])&&(v=(g<3?_(v):g>3?_(A,x,v):_(A,x))||v);return g>3&&v&&Object.defineProperty(A,x,v),v},d=this&&this.__param||function(w,A){return function(x,b){A(x,b,w)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkService=void 0;const c=u(2585);let S=a.OscLinkService=class{constructor(w){this._bufferService=w,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(w){const A=this._bufferService.buffer;if(w.id===void 0){const k=A.addMarker(A.ybase+A.y),M={data:w,id:this._nextId++,lines:[k]};return k.onDispose((()=>this._removeMarkerFromLink(M,k))),this._dataByLinkId.set(M.id,M),M.id}const x=w,b=this._getEntryIdKey(x),_=this._entriesWithId.get(b);if(_)return this.addLineToLink(_.id,A.ybase+A.y),_.id;const g=A.addMarker(A.ybase+A.y),v={id:this._nextId++,key:this._getEntryIdKey(x),data:x,lines:[g]};return g.onDispose((()=>this._removeMarkerFromLink(v,g))),this._entriesWithId.set(v.key,v),this._dataByLinkId.set(v.id,v),v.id}addLineToLink(w,A){const x=this._dataByLinkId.get(w);if(x&&x.lines.every((b=>b.line!==A))){const b=this._bufferService.buffer.addMarker(A);x.lines.push(b),b.onDispose((()=>this._removeMarkerFromLink(x,b)))}}getLinkData(w){var A;return(A=this._dataByLinkId.get(w))==null?void 0:A.data}_getEntryIdKey(w){return`${w.id};;${w.uri}`}_removeMarkerFromLink(w,A){const x=w.lines.indexOf(A);x!==-1&&(w.lines.splice(x,1),w.lines.length===0&&(w.data.id!==void 0&&this._entriesWithId.delete(w.key),this._dataByLinkId.delete(w.id)))}};a.OscLinkService=S=h([d(0,c.IBufferService)],S)},8343:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createDecorator=a.getServiceDependencies=a.serviceRegistry=void 0;const u="di$target",h="di$dependencies";a.serviceRegistry=new Map,a.getServiceDependencies=function(d){return d[h]||[]},a.createDecorator=function(d){if(a.serviceRegistry.has(d))return a.serviceRegistry.get(d);const c=function(S,w,A){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(x,b,_){b[u]===b?b[h].push({id:x,index:_}):(b[h]=[{id:x,index:_}],b[u]=b)})(c,S,A)};return c.toString=()=>d,a.serviceRegistry.set(d,c),c}},2585:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IDecorationService=a.IUnicodeService=a.IOscLinkService=a.IOptionsService=a.ILogService=a.LogLevelEnum=a.IInstantiationService=a.ICharsetService=a.ICoreService=a.ICoreMouseService=a.IBufferService=void 0;const h=u(8343);var d;a.IBufferService=(0,h.createDecorator)("BufferService"),a.ICoreMouseService=(0,h.createDecorator)("CoreMouseService"),a.ICoreService=(0,h.createDecorator)("CoreService"),a.ICharsetService=(0,h.createDecorator)("CharsetService"),a.IInstantiationService=(0,h.createDecorator)("InstantiationService"),(function(c){c[c.TRACE=0]="TRACE",c[c.DEBUG=1]="DEBUG",c[c.INFO=2]="INFO",c[c.WARN=3]="WARN",c[c.ERROR=4]="ERROR",c[c.OFF=5]="OFF"})(d||(a.LogLevelEnum=d={})),a.ILogService=(0,h.createDecorator)("LogService"),a.IOptionsService=(0,h.createDecorator)("OptionsService"),a.IOscLinkService=(0,h.createDecorator)("OscLinkService"),a.IUnicodeService=(0,h.createDecorator)("UnicodeService"),a.IDecorationService=(0,h.createDecorator)("DecorationService")},1480:(f,a,u)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeService=void 0;const h=u(8460),d=u(225);class c{static extractShouldJoin(w){return(1&w)!=0}static extractWidth(w){return w>>1&3}static extractCharKind(w){return w>>3}static createPropertyValue(w,A,x=!1){return(16777215&w)<<3|(3&A)<<1|(x?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new h.EventEmitter,this.onChange=this._onChange.event;const w=new d.UnicodeV6;this.register(w),this._active=w.version,this._activeProvider=w}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(w){if(!this._providers[w])throw new Error(`unknown Unicode version "${w}"`);this._active=w,this._activeProvider=this._providers[w],this._onChange.fire(w)}register(w){this._providers[w.version]=w}wcwidth(w){return this._activeProvider.wcwidth(w)}getStringCellWidth(w){let A=0,x=0;const b=w.length;for(let _=0;_<b;++_){let g=w.charCodeAt(_);if(55296<=g&&g<=56319){if(++_>=b)return A+this.wcwidth(g);const M=w.charCodeAt(_);56320<=M&&M<=57343?g=1024*(g-55296)+M-56320+65536:A+=this.wcwidth(M)}const v=this.charProperties(g,x);let k=c.extractWidth(v);c.extractShouldJoin(v)&&(k-=c.extractWidth(x)),A+=k,x=v}return A}charProperties(w,A){return this._activeProvider.charProperties(w,A)}}a.UnicodeService=c}},o={};function p(f){var a=o[f];if(a!==void 0)return a.exports;var u=o[f]={exports:{}};return s[f].call(u.exports,u,u.exports,p),u.exports}var y={};return(()=>{var f=y;Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;const a=p(9042),u=p(3236),h=p(844),d=p(5741),c=p(8285),S=p(7975),w=p(7090),A=["cols","rows"];class x extends h.Disposable{constructor(_){super(),this._core=this.register(new u.Terminal(_)),this._addonManager=this.register(new d.AddonManager),this._publicOptions={...this._core.options};const g=k=>this._core.options[k],v=(k,M)=>{this._checkReadonlyOptions(k),this._core.options[k]=M};for(const k in this._core.options){const M={get:g.bind(this,k),set:v.bind(this,k)};Object.defineProperty(this._publicOptions,k,M)}}_checkReadonlyOptions(_){if(A.includes(_))throw new Error(`Option "${_}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new S.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new w.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new c.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const _=this._core.coreService.decPrivateModes;let g="none";switch(this._core.coreMouseService.activeProtocol){case"X10":g="x10";break;case"VT200":g="vt200";break;case"DRAG":g="drag";break;case"ANY":g="any"}return{applicationCursorKeysMode:_.applicationCursorKeys,applicationKeypadMode:_.applicationKeypad,bracketedPasteMode:_.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:g,originMode:_.origin,reverseWraparoundMode:_.reverseWraparound,sendFocusMode:_.sendFocus,wraparoundMode:_.wraparound}}get options(){return this._publicOptions}set options(_){for(const g in _)this._publicOptions[g]=_[g]}blur(){this._core.blur()}focus(){this._core.focus()}input(_,g=!0){this._core.input(_,g)}resize(_,g){this._verifyIntegers(_,g),this._core.resize(_,g)}open(_){this._core.open(_)}attachCustomKeyEventHandler(_){this._core.attachCustomKeyEventHandler(_)}attachCustomWheelEventHandler(_){this._core.attachCustomWheelEventHandler(_)}registerLinkProvider(_){return this._core.registerLinkProvider(_)}registerCharacterJoiner(_){return this._checkProposedApi(),this._core.registerCharacterJoiner(_)}deregisterCharacterJoiner(_){this._checkProposedApi(),this._core.deregisterCharacterJoiner(_)}registerMarker(_=0){return this._verifyIntegers(_),this._core.registerMarker(_)}registerDecoration(_){return this._checkProposedApi(),this._verifyPositiveIntegers(_.x??0,_.width??0,_.height??0),this._core.registerDecoration(_)}hasSelection(){return this._core.hasSelection()}select(_,g,v){this._verifyIntegers(_,g,v),this._core.select(_,g,v)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(_,g){this._verifyIntegers(_,g),this._core.selectLines(_,g)}dispose(){super.dispose()}scrollLines(_){this._verifyIntegers(_),this._core.scrollLines(_)}scrollPages(_){this._verifyIntegers(_),this._core.scrollPages(_)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(_){this._verifyIntegers(_),this._core.scrollToLine(_)}clear(){this._core.clear()}write(_,g){this._core.write(_,g)}writeln(_,g){this._core.write(_),this._core.write(`\r
59
- `,g)}paste(_){this._core.paste(_)}refresh(_,g){this._verifyIntegers(_,g),this._core.refresh(_,g)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(_){this._addonManager.loadAddon(this,_)}static get strings(){return a}_verifyIntegers(..._){for(const g of _)if(g===1/0||isNaN(g)||g%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(..._){for(const g of _)if(g&&(g===1/0||isNaN(g)||g%1!=0||g<0))throw new Error("This API only accepts positive integers")}}f.Terminal=x})(),y})()))})(nc)),nc.exports}var c1=u1();class h1{constructor(r,s){$p(this,"socket");const o=window.location.protocol==="https:"?"wss:":"ws:";this.socket=new WebSocket(`${o}//${window.location.host}/ws/terminal/${encodeURIComponent(r)}`),this.socket.addEventListener("message",p=>{var f,a;const y=JSON.parse(p.data);y.type==="output"?s.onOutput(y.data):y.type==="error"?(f=s.onError)==null||f.call(s,y.message):(a=s.onStatus)==null||a.call(s,y)}),this.socket.addEventListener("error",()=>{var p;(p=s.onError)==null||p.call(s,"Terminal connection failed.")})}sendInput(r){this.send({type:"input",data:r})}resize(r,s){this.send({type:"resize",cols:r,rows:s})}close(){this.socket.close()}send(r){const s=JSON.stringify(r);if(this.socket.readyState===WebSocket.OPEN){this.socket.send(s);return}this.socket.addEventListener("open",()=>this.socket.send(s),{once:!0})}}function ag({sessionId:n,active:r=!0,onEvent:s}){const o=ue.useRef(null),p=ue.useRef(null),y=ue.useRef(null),f=ue.useRef(null),a=ue.useRef(r),u=ue.useRef(s);function h(d={}){const c=o.current,S=p.current,w=y.current,A=f.current;if(!c||!S||!w||!A)return!1;const x=c.getBoundingClientRect();return x.width<f1||x.height<d1||(w.fit(),A.cols<p1||A.rows<m1)?!1:(S.resize(A.cols,A.rows),d.focus&&A.focus(),!0)}return ue.useEffect(()=>{u.current=s},[s]),ue.useEffect(()=>{a.current=r},[r]),ue.useEffect(()=>{if(!o.current)return;const d=new c1.Terminal({cursorBlink:!0,convertEol:!0,drawBoldTextInBrightColors:!0,fontFamily:"Menlo, Monaco, Consolas, monospace",fontSize:13,fontWeight:"400",fontWeightBold:"700",lineHeight:1.35,macOptionIsMeta:!0,scrollback:1e4,theme:g1}),c=new l1.FitAddon;d.loadAddon(c),d.loadAddon(new o1.WebLinksAddon),d.open(o.current),f.current=d,y.current=c;const S=new h1(n,{onOutput(v){d.write(v)},onStatus(v){var k;(k=u.current)==null||k.call(u,v.type)},onError(v){var k;d.writeln(`\r
60
- [VCM] ${v}`),(k=u.current)==null||k.call(u,v)}});p.current=S;const w=d.onData(v=>{S.sendInput(v)});let A=0,x=0,b=0;const _=()=>{A&&window.cancelAnimationFrame(A),A=window.requestAnimationFrame(()=>{A=0,h({focus:a.current})})},g=new ResizeObserver(()=>{_()});return g.observe(o.current),x=window.requestAnimationFrame(_),b=window.setTimeout(_,120),()=>{A&&window.cancelAnimationFrame(A),x&&window.cancelAnimationFrame(x),b&&window.clearTimeout(b),g.disconnect(),w.dispose(),S.close(),d.dispose(),p.current=null,f.current=null,y.current=null}},[n]),ue.useEffect(()=>{if(!r)return;const d=[],c=[];return d.push(window.requestAnimationFrame(()=>{h({focus:!0}),d.push(window.requestAnimationFrame(()=>h({focus:!0})))})),c.push(window.setTimeout(()=>h({focus:!0}),160)),c.push(window.setTimeout(()=>h({focus:!0}),360)),()=>{for(const S of d)window.cancelAnimationFrame(S);for(const S of c)window.clearTimeout(S)}},[r]),ue.useEffect(()=>{const d=()=>{a.current&&h()};return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),N.jsx("div",{className:"terminal-frame",ref:o,onMouseDown:()=>{var d;return(d=f.current)==null?void 0:d.focus()}})}const f1=160,d1=80,p1=20,m1=5,g1={background:"#0d1117",foreground:"#d6deeb",cursor:"#ffd866",cursorAccent:"#0d1117",selectionBackground:"#264f78",selectionForeground:"#ffffff",black:"#1f2430",red:"#ff5c57",green:"#5af78e",yellow:"#f3f99d",blue:"#57c7ff",magenta:"#ff6ac1",cyan:"#9aedfe",white:"#f1f1f0",brightBlack:"#686868",brightRed:"#ff5c57",brightGreen:"#5af78e",brightYellow:"#f3f99d",brightBlue:"#57c7ff",brightMagenta:"#ff6ac1",brightCyan:"#9aedfe",brightWhite:"#ffffff"};function $r({status:n}){return N.jsx("span",{className:`status-badge status-${n}`,children:n.replaceAll("_"," ")})}function _1({status:n,bootstrapStatus:r,applyResult:s,busy:o=!1,onRefresh:p,onApply:y,onStartBootstrap:f}){const[a,u]=ue.useState(!1),h=r==null?void 0:r.session;return ue.useEffect(()=>{h||u(!1)},[h]),n?N.jsxs("section",{className:"harness-panel",children:[N.jsxs("div",{className:"harness-stage",children:[N.jsxs("div",{className:"harness-panel-header",children:[N.jsxs("div",{children:[N.jsx("strong",{children:"Fixed install"}),N.jsx("p",{className:"muted",children:n.initialized?n.needsApply?`${n.plannedChanges.length} pending updates`:"Up to date":"Not initialized"})]}),N.jsx("div",{className:"harness-actions",children:n.initialized?N.jsxs(N.Fragment,{children:[N.jsx("button",{type:"button",disabled:o,onClick:()=>void p(),children:"Refresh"}),n.needsApply?N.jsx("button",{type:"button",disabled:o,onClick:()=>void y(),children:"Update"}):null]}):N.jsx("button",{type:"button",disabled:o,onClick:()=>void y(),children:"Initialize"})})]}),n.initialized&&n.needsApply?N.jsxs(N.Fragment,{children:[N.jsx("h3",{className:"harness-file-list-title",children:"Files to update"}),N.jsx("ol",{className:"harness-file-list",children:n.plannedChanges.map(d=>N.jsxs("li",{children:[N.jsx("span",{children:d.path}),N.jsx($r,{status:d.action})]},`${d.path}:${d.action}`))})]}):null]}),N.jsxs("div",{className:"harness-stage",children:[N.jsxs("div",{className:"harness-panel-header",children:[N.jsxs("div",{children:[N.jsx("strong",{children:"Bootstrap"}),N.jsx("p",{className:"muted",children:r?v1(r.status):"not loaded"})]}),N.jsx("div",{className:"harness-actions",children:N.jsx("button",{type:"button",disabled:o||!(r!=null&&r.canStart),onClick:()=>{u(!0),f()},children:"Run Bootstrap"})})]}),r?N.jsxs(N.Fragment,{children:[N.jsx("ol",{className:"harness-file-list",children:r.checks.map(d=>N.jsxs("li",{title:d.detail??d.path??"",children:[N.jsx("span",{children:d.path?`${d.label}: ${d.path}`:d.label}),N.jsx($r,{status:d.status})]},d.key))}),h?N.jsxs("div",{className:"harness-bootstrap-session",children:[N.jsxs("div",{children:[N.jsx("span",{children:h.command}),N.jsx($r,{status:h.status})]}),N.jsx("button",{type:"button",onClick:()=>u(!0),children:"Open Terminal"})]}):null]}):N.jsx("p",{className:"muted",children:"Refresh harness status to load bootstrap checks."})]}),s?N.jsxs("div",{className:"harness-result",children:[N.jsx("p",{children:s.message}),s.changedFiles.length>0?N.jsx("ul",{children:s.changedFiles.map(d=>N.jsxs("li",{children:[N.jsx("strong",{children:d.action})," ",d.path]},`${d.path}:${d.action}`))}):null]}):null,n.warnings.length>0?N.jsx("ul",{className:"warnings",children:n.warnings.map(d=>N.jsx("li",{children:d},d))}):null,r!=null&&r.warnings.length?N.jsx("ul",{className:"warnings",children:r.warnings.map(d=>N.jsx("li",{children:d},d))}):null,a&&h?N.jsx("div",{className:"harness-bootstrap-modal",role:"dialog","aria-modal":"true","aria-label":"Harness bootstrap terminal",children:N.jsxs("div",{className:"harness-bootstrap-modal-surface",children:[N.jsxs("header",{className:"harness-bootstrap-modal-header",children:[N.jsxs("div",{children:[N.jsx("strong",{children:"Harness Bootstrap Terminal"}),N.jsx("p",{className:"muted",children:h.command})]}),N.jsxs("div",{className:"harness-bootstrap-modal-actions",children:[N.jsx($r,{status:h.status}),N.jsx("button",{type:"button",onClick:()=>u(!1),children:"Close"})]})]}),N.jsx("div",{className:"harness-bootstrap-terminal",children:N.jsx(ag,{sessionId:h.id,active:a})})]})}):null]}):null}function v1(n){return n.replaceAll("_"," ")}function Nc(n){return{total:n.length,accepted:n.filter(r=>r.acceptedAt).length,delivered:n.filter(r=>r.deliveredAt).length}}function y1(n,r=6){const s=[...n].sort(C1).map((p,y)=>({message:p,sequence:y+1}));return[...r===null?s:s.slice(-r)].sort((p,y)=>y.sequence-p.sequence)}function S1({messages:n,orchestration:r,busy:s,maxMessages:o=6,showControls:p=!0,showHeader:y=!0,onModeChange:f,onMarkAllDone:a}){const[u,h]=ue.useState(null),d=Nc(n),c=(r==null?void 0:r.mode)??"auto",S=y1(n,o);async function w(A){await w1(A.body),h(A.id),window.setTimeout(()=>h(x=>x===A.id?null:x),1200)}return N.jsxs("section",{className:"message-panel",children:[y?N.jsxs("div",{className:"message-panel-header",children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Messages"}),N.jsxs("p",{className:"muted",children:[d.total," total / ",d.accepted," accepted"]})]}),p&&f?N.jsx("div",{className:"message-controls",children:N.jsxs("label",{className:"message-mode-toggle",children:[N.jsx("input",{type:"checkbox",checked:c==="auto",disabled:s,onChange:A=>f(A.target.checked?"auto":"manual")}),N.jsx("span",{children:"Auto orchestration"})]})}):null,p&&a?N.jsx("button",{type:"button",disabled:s,onClick:a,children:"Mark All Done"}):null]}):null,n.length===0?N.jsx("p",{className:"muted",children:"No role messages yet."}):N.jsx("ol",{className:"message-list",children:S.map(({message:A,sequence:x})=>N.jsxs("li",{className:"message-item",children:[N.jsxs("div",{className:"message-item-main",children:[N.jsxs("div",{className:"message-meta",children:[N.jsxs("span",{className:"message-sequence",children:["#",x]}),N.jsx("time",{dateTime:ka(A),children:b1(ka(A))}),N.jsxs("strong",{children:[A.fromRole," ","->"," ",A.toRole]}),N.jsx("span",{children:A.type})]}),N.jsx("p",{children:A.body}),A.failureReason?N.jsx("span",{className:"message-reason",children:A.failureReason}):null,A.bodyPath?N.jsx("span",{className:"message-path",children:A.bodyPath}):null]}),N.jsx("div",{className:"message-actions",children:N.jsx("button",{type:"button",disabled:s,onClick:()=>void w(A),children:u===A.id?"Copied":"Copy"})})]},A.id))})]})}function b1(n){const r=new Date(n);return Number.isNaN(r.getTime())?n:r.toLocaleString(void 0,{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function ka(n){return n.acceptedAt??n.deliveredAt??n.dispatchingAt??n.createdAt}function C1(n,r){const s=ka(n).localeCompare(ka(r));if(s!==0)return s;const o=n.createdAt.localeCompare(r.createdAt);return o!==0?o:n.id.localeCompare(r.id)}async function w1(n){var s;if((s=navigator.clipboard)!=null&&s.writeText){await navigator.clipboard.writeText(n);return}const r=document.createElement("textarea");r.value=n,r.setAttribute("readonly","true"),r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove()}function x1({defaultPath:n="",recentPaths:r=[],busy:s=!1,onConnect:o}){const[p,y]=ue.useState(n);ue.useEffect(()=>{n&&y(n)},[n]);async function f(a){a.preventDefault(),await o(p)}return N.jsx("form",{className:"repo-connect",onSubmit:f,children:N.jsxs("div",{className:r.length>0?"inline-form has-recent-paths":"inline-form",children:[N.jsx("input",{"aria-label":"Repository path",id:"repo-path",value:p,onChange:a=>y(a.target.value),placeholder:"/path/to/repo"}),r.length>0?N.jsxs("select",{"aria-label":"Recent repositories",className:"repo-recent-select",value:"",onChange:a=>{a.target.value&&y(a.target.value)},children:[N.jsx("option",{value:"",children:"Recent"}),r.map(a=>N.jsx("option",{value:a,children:a},a))]}):null,N.jsx("button",{type:"submit",disabled:s||!p.trim(),children:"Connect"})]})})}function E1({tasks:n,activeTaskSlug:r,onSelect:s}){return N.jsx("nav",{className:"task-nav","aria-label":"Tasks",children:n.map(o=>N.jsxs("button",{className:o.taskSlug===r?"task-nav-item is-active":"task-nav-item",type:"button",onClick:()=>s(o.taskSlug),children:[N.jsx("span",{children:o.title||o.taskSlug}),N.jsx($r,{status:o.status})]},o.taskSlug))})}function k1({project:n,recentRepositoryPaths:r,tasks:s,activeTaskSlug:o,messages:p,orchestration:y,events:f,roundState:a,codexReview:u,harnessStatus:h,harnessBootstrapStatus:d,harnessApplyResult:c,gatewayStatus:S,gatewayQrLogin:w,gatewayQrCheck:A,busy:x,onConnect:b,onRefreshConnectedRepository:_,onPullConnectedRepository:g,onRefreshHarness:v,onApplyHarness:k,onStartHarnessBootstrap:M,onRefreshGateway:D,onGatewayEnabledChange:T,onGatewayTranslationChange:E,onStartGatewayQrLogin:R,onResetGatewayBinding:B,onCodexGateEnabledChange:z,onCreateTask:q,onSelectTask:F,themeMode:Y,onThemeModeChange:K,flowPauseAlerts:G,onFlowPauseAlertsChange:X,permissionRequestMode:J,onPermissionRequestModeChange:I,launchTemplate:O,canSaveLaunchTemplate:j,canOneClickStart:V,onSaveLaunchTemplate:U,onOneClickStart:ne,onTryFlowPauseAlert:_e,onMarkAllMessagesDone:me,onDeleteMessageHistory:$}){const[H,te]=ue.useState(""),[Z,fe]=ue.useState(!0),[Se,Me]=ue.useState(!1),[Ie,Ge]=ue.useState(!1),[Ue,ge]=ue.useState(()=>o?null:"repository-path"),$e=Nc(p),Oe=H.trim(),dt=s.find(ae=>ae.taskSlug===o)??null;ue.useEffect(()=>{ge(ae=>o&&ae==="repository-path"?null:!o&&ae===null?"repository-path":ae)},[o]);function Le(ae,ct){ge(ct?ae:null)}async function wt(ae){ae.preventDefault(),await q({taskSlug:Oe,createWorktree:Z}),te(""),fe(!0)}return N.jsxs("div",{className:"project-dashboard",children:[N.jsx("header",{className:"brand-header",children:N.jsx("strong",{children:"VibeCodingMaster"})}),N.jsx(Ri,{title:"Repository Path",open:Ue==="repository-path",onOpenChange:ae=>Le("repository-path",ae),children:N.jsx(x1,{defaultPath:(n==null?void 0:n.repoRoot)??"",recentPaths:r,busy:x,onConnect:b})}),n?N.jsx(Ri,{title:"Connected Repository",open:Ue==="connected-repository",onOpenChange:ae=>{Le("connected-repository",ae),ae&&_()},children:N.jsx(M1,{activeTask:dt,busy:x,project:n,onPull:g})}):null,N.jsx(Ri,{title:"Settings",open:Ue==="settings",onOpenChange:ae=>Le("settings",ae),children:N.jsxs("div",{className:"sidebar-settings",children:[N.jsxs("button",{"aria-label":`Theme mode: ${cm(Y)}`,className:"settings-toggle theme-mode-toggle",disabled:x,title:"Cycle theme: system, light, dark",type:"button",onClick:()=>K(N1(Y)),children:[N.jsx("span",{children:"Theme"}),N.jsx("span",{children:cm(Y)})]}),N.jsxs("button",{"aria-pressed":!(S!=null&&S.enabled)&&G,className:!(S!=null&&S.enabled)&&G?"settings-toggle is-active":"settings-toggle",disabled:x||(S==null?void 0:S.enabled),title:S!=null&&S.enabled?"Disabled while Gateway is on":void 0,type:"button",onClick:()=>X(!G),children:[N.jsx("span",{children:"Flow pause alert"}),N.jsx("span",{children:S!=null&&S.enabled?"off":G?"on":"off"})]}),N.jsxs("button",{className:"settings-toggle",disabled:x||(S==null?void 0:S.enabled),title:S!=null&&S.enabled?"Disabled while Gateway is on":void 0,type:"button",onClick:_e,children:[N.jsx("span",{children:"Try alert"}),N.jsx("span",{children:"test"})]}),N.jsxs("label",{className:"settings-select-row",children:[N.jsx("span",{children:"Permission requests"}),N.jsxs("select",{value:J,disabled:x,onChange:ae=>I(ae.target.value),children:[N.jsx("option",{value:"off",children:"off"}),N.jsx("option",{value:"allowAll",children:"allow all"})]})]}),N.jsxs("button",{className:"settings-toggle",disabled:x||!j,title:"Save the current four role launch settings",type:"button",onClick:U,children:[N.jsx("span",{children:"Save launch template"}),N.jsx("span",{children:j?"ready":"needs 4 sessions"})]}),V?N.jsxs("button",{className:"settings-toggle is-active",disabled:x,title:A1(O),type:"button",onClick:ne,children:[N.jsx("span",{children:"One-click start"}),N.jsx("span",{children:og(O)})]}):null,o?N.jsxs(N.Fragment,{children:[N.jsxs("button",{type:"button",onClick:()=>Me(!0),children:[N.jsx("span",{children:"Messages"}),N.jsxs("span",{className:"muted",children:[$e.total," total"]})]}),N.jsxs("button",{type:"button",onClick:()=>Ge(!0),children:[N.jsx("span",{children:"Events"}),N.jsxs("span",{className:"muted",children:[f.length," total"]})]})]}):null]})}),n&&o?N.jsx(Ri,{title:"Codex Review Gates",open:Ue==="codex-review-gates",onOpenChange:ae=>Le("codex-review-gates",ae),children:N.jsx(T1,{busy:x,state:u,onGateEnabledChange:z})}):null,N.jsx(Ri,{title:"Gateway",open:Ue==="gateway",onOpenChange:ae=>{Le("gateway",ae),ae&&D()},children:N.jsx(R1,{busy:x,qrCheck:A,qrLogin:w,status:S,onEnabledChange:T,onResetBinding:B,onStartQrLogin:R,onTranslationChange:E})}),n?N.jsx(Ri,{title:"VCM Harness",open:Ue==="vcm-harness",onOpenChange:ae=>Le("vcm-harness",ae),children:N.jsx(_1,{status:h,bootstrapStatus:d,applyResult:c,busy:x,onRefresh:v,onApply:k,onStartBootstrap:M})}):null,n?N.jsx(Ri,{title:"New Task",open:Ue==="new-task",onOpenChange:ae=>Le("new-task",ae),children:N.jsx("div",{className:"task-create",children:N.jsxs("form",{onSubmit:wt,children:[N.jsx("input",{value:H,onChange:ae=>te(ae.target.value),placeholder:"task name"}),N.jsxs("label",{className:"task-create-option",children:[N.jsx("input",{type:"checkbox",checked:Z,onChange:ae=>fe(ae.target.checked)}),N.jsx("span",{children:"Create worktree and branch"})]}),Z?N.jsxs("div",{className:"task-create-preview",children:[N.jsxs("small",{children:["branch: ",Oe?`feature/${Oe}`:"feature/<task>"]}),N.jsxs("small",{children:["worktree: ",Oe?`.claude/worktrees/${Oe}`:".claude/worktrees/<task>"]})]}):N.jsx("div",{className:"task-create-preview",children:N.jsx("small",{children:"uses current repository path and current branch"})}),N.jsx("button",{type:"submit",disabled:x||!Oe,children:"Create"})]})})}):null,s.length>0?N.jsx(Ri,{title:"Tasks",open:Ue==="tasks",onOpenChange:ae=>Le("tasks",ae),children:N.jsx(E1,{tasks:s,activeTaskSlug:o,onSelect:F})}):null,n&&dt?N.jsx(B1,{task:dt,roundState:a}):null,Se?N.jsx(z1,{busy:x,messages:p,orchestration:y,onClose:()=>Me(!1),onMarkAllDone:()=>{o&&me(o)},onDeleteMessageHistory:()=>{o&&$(o)}}):null,Ie?N.jsx(j1,{events:f,onClose:()=>Ge(!1)}):null]})}function og(n){return[n.autoOrchestration?"auto":"manual",n.translationEnabled?"tx":"no tx"].join(" + ")}function A1(n){const r=Object.entries(n.roles).map(([s,o])=>`${s}: ${o.permissionMode} / ${o.model} / ${o.effort}`).join("; ");return`Launch template: ${og(n)}; ${r}`}function T1({busy:n,onGateEnabledChange:r,state:s}){return N.jsx("div",{className:"sidebar-settings",children:i1.map(o=>{const p=s==null?void 0:s.gates[o],y=!!(p!=null&&p.required);return N.jsxs("button",{"aria-pressed":y,className:y?"settings-toggle is-active":"settings-toggle",disabled:n||!s,title:p!=null&&p.status?`status: ${p.status}`:void 0,type:"button",onClick:()=>r(o,!y),children:[N.jsx("span",{children:D1(o)}),N.jsx("span",{children:y?"on":"off"})]},o)})})}function D1(n){switch(n){case"architecture-plan":return"Architecture plan";case"validation-adequacy":return"Validation adequacy";case"final-diff":return"Final diff"}return n}function R1({busy:n,onEnabledChange:r,onResetBinding:s,onStartQrLogin:o,onTranslationChange:p,qrCheck:y,qrLogin:f,status:a}){const u=!!(a!=null&&a.binding.tokenConfigured),h=!!(a!=null&&a.binding.tokenConfigured);return N.jsxs("div",{className:"gateway-panel",children:[N.jsxs("div",{className:"gateway-actions",children:[N.jsxs("button",{"aria-pressed":!!(a!=null&&a.enabled),className:a!=null&&a.enabled?"settings-toggle is-active":"settings-toggle",disabled:n||!a||!a.enabled&&!u,title:u?"Enable or disable PM messages and task-changing Gateway commands":"Scan and confirm iLink login first",type:"button",onClick:()=>a?r(!a.enabled):void 0,children:[N.jsx("span",{children:"Gateway"}),N.jsx("span",{children:a!=null&&a.enabled?"on":"off"})]}),N.jsxs("button",{"aria-pressed":!!(a!=null&&a.translationEnabled),className:a!=null&&a.translationEnabled?"settings-toggle is-active":"settings-toggle",disabled:n||!a,type:"button",onClick:()=>a?p(!a.translationEnabled):void 0,children:[N.jsx("span",{children:"Translation"}),N.jsx("span",{children:a!=null&&a.translationEnabled?"on":"off"})]}),h?N.jsx("button",{className:"danger-button",type:"button",disabled:n,onClick:s,children:"Reset Binding"}):N.jsx("button",{type:"button",disabled:n,onClick:o,children:"Start QR Login"})]}),f?N.jsx("p",{className:"muted",children:"QR login started. Use the login dialog to confirm binding."}):null,y?N.jsxs("p",{className:"muted",children:["QR status: ",y.status,y.message?` · ${y.message}`:""]}):null]})}function M1({activeTask:n,busy:r,onPull:s,project:o}){const p=!!(n&&!n.worktreePath&&n.cleanupStatus!=="cleaned"),y=p?`Inline task "${n==null?void 0:n.taskSlug}" uses the base repository.`:o.pullDisabledReason,f=!!(o.canPull&&!p);return N.jsxs("div",{className:"project-summary",children:[N.jsxs("dl",{children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Base path"}),N.jsx("dd",{children:o.repoRoot})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Branch"}),N.jsx("dd",{children:L1(o)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Remote"}),N.jsx("dd",{children:o.upstreamBranch??"no upstream"})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Status"}),N.jsx("dd",{children:O1(o)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Commit"}),N.jsx("dd",{children:o.shortHeadCommit??o.headCommit??"unknown"})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Working tree"}),N.jsx("dd",{children:o.isDirty?"uncommitted changes":"clean"})]})]}),N.jsxs("div",{className:"connected-repo-actions",children:[N.jsx("button",{type:"button",disabled:r||!f,title:y??"Pull latest changes with git pull --ff-only",onClick:()=>void s(),children:"Pull"}),N.jsx("span",{className:"muted",children:o.checkedAt?`checked ${Sc(o.checkedAt)}`:"status not refreshed"})]}),y?N.jsx("p",{className:"muted",children:y}):null,o.warnings.length>0?N.jsx("ul",{className:"warnings",children:o.warnings.map(a=>N.jsx("li",{children:a},a))}):null]})}function L1(n){return n.branch||"unknown"}function O1(n){if(!n.upstreamBranch)return"no upstream";const r=n.ahead??0,s=n.behind??0;return r===0&&s===0?"up to date":r>0&&s>0?`ahead ${r}, behind ${s}`:r>0?`ahead ${r}`:`behind ${s}`}function B1({roundState:n,task:r}){var d;const[s,o]=ue.useState(()=>Date.now()),p=!!(n!=null&&n.startedAt&&n.status==="running"),y=um(r.createdAt,s),f=om(n,(n==null?void 0:n.totalCcActiveMs)??0,s),a=p&&n?om(n,n.currentRoundCcActiveMs,s):0,u=p&&(n!=null&&n.startedAt)?um(n.startedAt,s):0,h=((d=r.title)==null?void 0:d.trim())||r.taskSlug;return ue.useEffect(()=>{const c=window.setInterval(()=>o(Date.now()),1e3);return()=>window.clearInterval(c)},[]),N.jsxs("section",{className:"task-status-dock","aria-label":"VCM Session status",children:[N.jsxs("div",{className:"task-status-dock-title",children:[N.jsx("strong",{title:h,children:h}),N.jsx("span",{className:`status-badge status-${r.status}`,children:r.status})]}),N.jsxs("dl",{className:"task-status-stats",children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Session start"}),N.jsx("dd",{children:Sc(r.createdAt)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Session total"}),N.jsx("dd",{children:ya(y)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Rounds"}),N.jsx("dd",{children:(n==null?void 0:n.totalRoundCount)??0})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Role runtime"}),N.jsx("dd",{children:ya(f)})]})]}),p&&n?N.jsxs("div",{className:"current-round-status",children:[N.jsxs("div",{className:"current-round-title",children:[N.jsx("span",{children:"Current Round"}),N.jsx("span",{className:`status-badge status-${n.status}`,children:n.status})]}),N.jsxs("dl",{className:"task-status-stats",children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Started"}),N.jsx("dd",{children:Sc(n.startedAt)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Total"}),N.jsx("dd",{children:ya(u)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Role runtime"}),N.jsx("dd",{children:ya(a)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Turn count"}),N.jsx("dd",{children:n.turnCount})]})]})]}):null]})}function om(n,r,s){if(!(n!=null&&n.activeTurnStartedAt)||n.status!=="running")return r;const o=Date.parse(n.updatedAt);return Number.isFinite(o)?r+Math.max(0,s-o):r}function um(n,r){const s=Date.parse(n);return Number.isFinite(s)?Math.max(0,r-s):0}function Sc(n){if(!n)return"-";const r=new Date(n);return Number.isNaN(r.getTime())?"-":new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit"}).format(r)}function ya(n){const r=Math.max(0,Math.floor(n/1e3)),s=Math.floor(r/3600),o=Math.floor(r%3600/60),p=r%60;return s>0?o>0?`${s}h ${o}m`:`${s}h`:o>0?p>0?`${o}m ${p}s`:`${o}m`:`${p}s`}function N1(n){return n==="system"?"light":n==="light"?"dark":"system"}function cm(n){return n==="system"?"System":n==="light"?"Light":"Dark"}function j1({events:n,onClose:r}){return N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{className:"event-modal",role:"dialog","aria-modal":"true","aria-label":"Events",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Events"}),N.jsxs("p",{className:"muted",children:[n.length," total"]})]}),N.jsx("button",{type:"button",onClick:r,children:"Close"})]}),N.jsx(r1,{events:n,maxEvents:null,showHeader:!1})]})})}function z1({busy:n,messages:r,orchestration:s,onClose:o,onMarkAllDone:p,onDeleteMessageHistory:y}){const f=Nc(r);function a(){window.confirm(["Clear all pending route-file messages?","","Use this only after you manually copied or handled stuck route-file messages.","VCM will clear non-empty handoff message files so Stop-hook orchestration can continue."].join(`
59
+ `,g)}paste(_){this._core.paste(_)}refresh(_,g){this._verifyIntegers(_,g),this._core.refresh(_,g)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(_){this._addonManager.loadAddon(this,_)}static get strings(){return a}_verifyIntegers(..._){for(const g of _)if(g===1/0||isNaN(g)||g%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(..._){for(const g of _)if(g&&(g===1/0||isNaN(g)||g%1!=0||g<0))throw new Error("This API only accepts positive integers")}}f.Terminal=x})(),y})()))})(nc)),nc.exports}var h1=c1();class f1{constructor(r,s){$p(this,"socket");const o=window.location.protocol==="https:"?"wss:":"ws:";this.socket=new WebSocket(`${o}//${window.location.host}/ws/terminal/${encodeURIComponent(r)}`),this.socket.addEventListener("message",p=>{var f,a;const y=JSON.parse(p.data);y.type==="output"?s.onOutput(y.data):y.type==="error"?(f=s.onError)==null||f.call(s,y.message):(a=s.onStatus)==null||a.call(s,y)}),this.socket.addEventListener("error",()=>{var p;(p=s.onError)==null||p.call(s,"Terminal connection failed.")})}sendInput(r){this.send({type:"input",data:r})}resize(r,s){this.send({type:"resize",cols:r,rows:s})}close(){this.socket.close()}send(r){const s=JSON.stringify(r);if(this.socket.readyState===WebSocket.OPEN){this.socket.send(s);return}this.socket.addEventListener("open",()=>this.socket.send(s),{once:!0})}}function ag({sessionId:n,active:r=!0,onEvent:s}){const o=ue.useRef(null),p=ue.useRef(null),y=ue.useRef(null),f=ue.useRef(null),a=ue.useRef(r),u=ue.useRef(s);function h(d={}){const c=o.current,S=p.current,w=y.current,A=f.current;if(!c||!S||!w||!A)return!1;const x=c.getBoundingClientRect();return x.width<d1||x.height<p1||(w.fit(),A.cols<m1||A.rows<g1)?!1:(S.resize(A.cols,A.rows),d.focus&&A.focus(),!0)}return ue.useEffect(()=>{u.current=s},[s]),ue.useEffect(()=>{a.current=r},[r]),ue.useEffect(()=>{if(!o.current)return;const d=new h1.Terminal({cursorBlink:!0,convertEol:!0,drawBoldTextInBrightColors:!0,fontFamily:"Menlo, Monaco, Consolas, monospace",fontSize:13,fontWeight:"400",fontWeightBold:"700",lineHeight:1.35,macOptionIsMeta:!0,scrollback:1e4,theme:_1}),c=new a1.FitAddon;d.loadAddon(c),d.loadAddon(new u1.WebLinksAddon),d.open(o.current),f.current=d,y.current=c;const S=new f1(n,{onOutput(v){d.write(v)},onStatus(v){var k;(k=u.current)==null||k.call(u,v.type)},onError(v){var k;d.writeln(`\r
60
+ [VCM] ${v}`),(k=u.current)==null||k.call(u,v)}});p.current=S;const w=d.onData(v=>{S.sendInput(v)});let A=0,x=0,b=0;const _=()=>{A&&window.cancelAnimationFrame(A),A=window.requestAnimationFrame(()=>{A=0,h({focus:a.current})})},g=new ResizeObserver(()=>{_()});return g.observe(o.current),x=window.requestAnimationFrame(_),b=window.setTimeout(_,120),()=>{A&&window.cancelAnimationFrame(A),x&&window.cancelAnimationFrame(x),b&&window.clearTimeout(b),g.disconnect(),w.dispose(),S.close(),d.dispose(),p.current=null,f.current=null,y.current=null}},[n]),ue.useEffect(()=>{if(!r)return;const d=[],c=[];return d.push(window.requestAnimationFrame(()=>{h({focus:!0}),d.push(window.requestAnimationFrame(()=>h({focus:!0})))})),c.push(window.setTimeout(()=>h({focus:!0}),160)),c.push(window.setTimeout(()=>h({focus:!0}),360)),()=>{for(const S of d)window.cancelAnimationFrame(S);for(const S of c)window.clearTimeout(S)}},[r]),ue.useEffect(()=>{const d=()=>{a.current&&h()};return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),N.jsx("div",{className:"terminal-frame",ref:o,onMouseDown:()=>{var d;return(d=f.current)==null?void 0:d.focus()}})}const d1=160,p1=80,m1=20,g1=5,_1={background:"#0d1117",foreground:"#d6deeb",cursor:"#ffd866",cursorAccent:"#0d1117",selectionBackground:"#264f78",selectionForeground:"#ffffff",black:"#1f2430",red:"#ff5c57",green:"#5af78e",yellow:"#f3f99d",blue:"#57c7ff",magenta:"#ff6ac1",cyan:"#9aedfe",white:"#f1f1f0",brightBlack:"#686868",brightRed:"#ff5c57",brightGreen:"#5af78e",brightYellow:"#f3f99d",brightBlue:"#57c7ff",brightMagenta:"#ff6ac1",brightCyan:"#9aedfe",brightWhite:"#ffffff"};function $r({status:n}){return N.jsx("span",{className:`status-badge status-${n}`,children:n.replaceAll("_"," ")})}function v1({status:n,bootstrapStatus:r,applyResult:s,busy:o=!1,onRefresh:p,onApply:y,onStartBootstrap:f}){const[a,u]=ue.useState(!1),h=r==null?void 0:r.session;return ue.useEffect(()=>{h||u(!1)},[h]),n?N.jsxs("section",{className:"harness-panel",children:[N.jsxs("div",{className:"harness-stage",children:[N.jsxs("div",{className:"harness-panel-header",children:[N.jsxs("div",{children:[N.jsx("strong",{children:"Fixed install"}),N.jsx("p",{className:"muted",children:n.initialized?n.needsApply?`${n.plannedChanges.length} pending updates`:"Up to date":"Not initialized"})]}),N.jsx("div",{className:"harness-actions",children:n.initialized?N.jsxs(N.Fragment,{children:[N.jsx("button",{type:"button",disabled:o,onClick:()=>void p(),children:"Refresh"}),n.needsApply?N.jsx("button",{type:"button",disabled:o,onClick:()=>void y(),children:"Update"}):null]}):N.jsx("button",{type:"button",disabled:o,onClick:()=>void y(),children:"Initialize"})})]}),n.initialized&&n.needsApply?N.jsxs(N.Fragment,{children:[N.jsx("h3",{className:"harness-file-list-title",children:"Files to update"}),N.jsx("ol",{className:"harness-file-list",children:n.plannedChanges.map(d=>N.jsxs("li",{children:[N.jsx("span",{children:d.path}),N.jsx($r,{status:d.action})]},`${d.path}:${d.action}`))})]}):null]}),N.jsxs("div",{className:"harness-stage",children:[N.jsxs("div",{className:"harness-panel-header",children:[N.jsxs("div",{children:[N.jsx("strong",{children:"Bootstrap"}),N.jsx("p",{className:"muted",children:r?y1(r.status):"not loaded"})]}),N.jsx("div",{className:"harness-actions",children:N.jsx("button",{type:"button",disabled:o||!(r!=null&&r.canStart),onClick:()=>{u(!0),f()},children:"Run Bootstrap"})})]}),r?N.jsxs(N.Fragment,{children:[N.jsx("ol",{className:"harness-file-list",children:r.checks.map(d=>N.jsxs("li",{title:d.detail??d.path??"",children:[N.jsx("span",{children:d.path?`${d.label}: ${d.path}`:d.label}),N.jsx($r,{status:d.status})]},d.key))}),h?N.jsxs("div",{className:"harness-bootstrap-session",children:[N.jsxs("div",{children:[N.jsx("span",{children:h.command}),N.jsx($r,{status:h.status})]}),N.jsx("button",{type:"button",onClick:()=>u(!0),children:"Open Terminal"})]}):null]}):N.jsx("p",{className:"muted",children:"Refresh harness status to load bootstrap checks."})]}),s?N.jsxs("div",{className:"harness-result",children:[N.jsx("p",{children:s.message}),s.changedFiles.length>0?N.jsx("ul",{children:s.changedFiles.map(d=>N.jsxs("li",{children:[N.jsx("strong",{children:d.action})," ",d.path]},`${d.path}:${d.action}`))}):null]}):null,n.warnings.length>0?N.jsx("ul",{className:"warnings",children:n.warnings.map(d=>N.jsx("li",{children:d},d))}):null,r!=null&&r.warnings.length?N.jsx("ul",{className:"warnings",children:r.warnings.map(d=>N.jsx("li",{children:d},d))}):null,a&&h?N.jsx("div",{className:"harness-bootstrap-modal",role:"dialog","aria-modal":"true","aria-label":"Harness bootstrap terminal",children:N.jsxs("div",{className:"harness-bootstrap-modal-surface",children:[N.jsxs("header",{className:"harness-bootstrap-modal-header",children:[N.jsxs("div",{children:[N.jsx("strong",{children:"Harness Bootstrap Terminal"}),N.jsx("p",{className:"muted",children:h.command})]}),N.jsxs("div",{className:"harness-bootstrap-modal-actions",children:[N.jsx($r,{status:h.status}),N.jsx("button",{type:"button",onClick:()=>u(!1),children:"Close"})]})]}),N.jsx("div",{className:"harness-bootstrap-terminal",children:N.jsx(ag,{sessionId:h.id,active:a})})]})}):null]}):null}function y1(n){return n.replaceAll("_"," ")}function Nc(n){return{total:n.length,accepted:n.filter(r=>r.acceptedAt).length,delivered:n.filter(r=>r.deliveredAt).length}}function S1(n,r=6){const s=[...n].sort(w1).map((p,y)=>({message:p,sequence:y+1}));return[...r===null?s:s.slice(-r)].sort((p,y)=>y.sequence-p.sequence)}function b1({messages:n,orchestration:r,busy:s,maxMessages:o=6,showControls:p=!0,showHeader:y=!0,onModeChange:f,onMarkAllDone:a}){const[u,h]=ue.useState(null),d=Nc(n),c=(r==null?void 0:r.mode)??"auto",S=S1(n,o);async function w(A){await x1(A.body),h(A.id),window.setTimeout(()=>h(x=>x===A.id?null:x),1200)}return N.jsxs("section",{className:"message-panel",children:[y?N.jsxs("div",{className:"message-panel-header",children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Messages"}),N.jsxs("p",{className:"muted",children:[d.total," total / ",d.accepted," accepted"]})]}),p&&f?N.jsx("div",{className:"message-controls",children:N.jsxs("label",{className:"message-mode-toggle",children:[N.jsx("input",{type:"checkbox",checked:c==="auto",disabled:s,onChange:A=>f(A.target.checked?"auto":"manual")}),N.jsx("span",{children:"Auto orchestration"})]})}):null,p&&a?N.jsx("button",{type:"button",disabled:s,onClick:a,children:"Mark All Done"}):null]}):null,n.length===0?N.jsx("p",{className:"muted",children:"No role messages yet."}):N.jsx("ol",{className:"message-list",children:S.map(({message:A,sequence:x})=>N.jsxs("li",{className:"message-item",children:[N.jsxs("div",{className:"message-item-main",children:[N.jsxs("div",{className:"message-meta",children:[N.jsxs("span",{className:"message-sequence",children:["#",x]}),N.jsx("time",{dateTime:ka(A),children:C1(ka(A))}),N.jsxs("strong",{children:[A.fromRole," ","->"," ",A.toRole]}),N.jsx("span",{children:A.type})]}),N.jsx("p",{children:A.body}),A.failureReason?N.jsx("span",{className:"message-reason",children:A.failureReason}):null,A.bodyPath?N.jsx("span",{className:"message-path",children:A.bodyPath}):null]}),N.jsx("div",{className:"message-actions",children:N.jsx("button",{type:"button",disabled:s,onClick:()=>void w(A),children:u===A.id?"Copied":"Copy"})})]},A.id))})]})}function C1(n){const r=new Date(n);return Number.isNaN(r.getTime())?n:r.toLocaleString(void 0,{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function ka(n){return n.acceptedAt??n.deliveredAt??n.dispatchingAt??n.createdAt}function w1(n,r){const s=ka(n).localeCompare(ka(r));if(s!==0)return s;const o=n.createdAt.localeCompare(r.createdAt);return o!==0?o:n.id.localeCompare(r.id)}async function x1(n){var s;if((s=navigator.clipboard)!=null&&s.writeText){await navigator.clipboard.writeText(n);return}const r=document.createElement("textarea");r.value=n,r.setAttribute("readonly","true"),r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove()}function E1({defaultPath:n="",recentPaths:r=[],busy:s=!1,onConnect:o}){const[p,y]=ue.useState(n);ue.useEffect(()=>{n&&y(n)},[n]);async function f(a){a.preventDefault(),await o(p)}return N.jsx("form",{className:"repo-connect",onSubmit:f,children:N.jsxs("div",{className:r.length>0?"inline-form has-recent-paths":"inline-form",children:[N.jsx("input",{"aria-label":"Repository path",id:"repo-path",value:p,onChange:a=>y(a.target.value),placeholder:"/path/to/repo"}),r.length>0?N.jsxs("select",{"aria-label":"Recent repositories",className:"repo-recent-select",value:"",onChange:a=>{a.target.value&&y(a.target.value)},children:[N.jsx("option",{value:"",children:"Recent"}),r.map(a=>N.jsx("option",{value:a,children:a},a))]}):null,N.jsx("button",{type:"submit",disabled:s||!p.trim(),children:"Connect"})]})})}function k1({tasks:n,activeTaskSlug:r,onSelect:s}){return N.jsx("nav",{className:"task-nav","aria-label":"Tasks",children:n.map(o=>N.jsxs("button",{className:o.taskSlug===r?"task-nav-item is-active":"task-nav-item",type:"button",onClick:()=>s(o.taskSlug),children:[N.jsx("span",{children:o.title||o.taskSlug}),N.jsx($r,{status:o.status})]},o.taskSlug))})}function A1({project:n,recentRepositoryPaths:r,tasks:s,activeTaskSlug:o,messages:p,orchestration:y,events:f,roundState:a,codexReview:u,harnessStatus:h,harnessBootstrapStatus:d,harnessApplyResult:c,gatewayStatus:S,gatewayQrLogin:w,gatewayQrCheck:A,busy:x,onConnect:b,onRefreshConnectedRepository:_,onPullConnectedRepository:g,onRefreshHarness:v,onApplyHarness:k,onStartHarnessBootstrap:M,onRefreshGateway:D,onGatewayEnabledChange:T,onGatewayTranslationChange:E,onStartGatewayQrLogin:R,onResetGatewayBinding:B,onCodexGateEnabledChange:z,onCreateTask:q,onSelectTask:F,themeMode:Y,onThemeModeChange:K,flowPauseAlerts:G,onFlowPauseAlertsChange:X,permissionRequestMode:J,onPermissionRequestModeChange:I,launchTemplate:O,canSaveLaunchTemplate:j,canOneClickStart:V,onSaveLaunchTemplate:U,onOneClickStart:ne,onTryFlowPauseAlert:_e,onMarkAllMessagesDone:me,onDeleteMessageHistory:$}){const[H,te]=ue.useState(""),[Z,fe]=ue.useState(!0),[Se,Me]=ue.useState(!1),[Ie,Ge]=ue.useState(!1),[Ue,ge]=ue.useState(()=>o?null:"repository-path"),$e=Nc(p),Oe=H.trim(),dt=s.find(ae=>ae.taskSlug===o)??null;ue.useEffect(()=>{ge(ae=>o&&ae==="repository-path"?null:!o&&ae===null?"repository-path":ae)},[o]);function Le(ae,ct){ge(ct?ae:null)}async function wt(ae){ae.preventDefault(),await q({taskSlug:Oe,createWorktree:Z}),te(""),fe(!0)}return N.jsxs("div",{className:"project-dashboard",children:[N.jsx("header",{className:"brand-header",children:N.jsx("strong",{children:"VibeCodingMaster"})}),N.jsx(Ri,{title:"Repository Path",open:Ue==="repository-path",onOpenChange:ae=>Le("repository-path",ae),children:N.jsx(E1,{defaultPath:(n==null?void 0:n.repoRoot)??"",recentPaths:r,busy:x,onConnect:b})}),n?N.jsx(Ri,{title:"Connected Repository",open:Ue==="connected-repository",onOpenChange:ae=>{Le("connected-repository",ae),ae&&_()},children:N.jsx(L1,{activeTask:dt,busy:x,project:n,onPull:g})}):null,N.jsx(Ri,{title:"Settings",open:Ue==="settings",onOpenChange:ae=>Le("settings",ae),children:N.jsxs("div",{className:"sidebar-settings",children:[N.jsxs("button",{"aria-label":`Theme mode: ${cm(Y)}`,className:"settings-toggle theme-mode-toggle",disabled:x,title:"Cycle theme: system, light, dark",type:"button",onClick:()=>K(j1(Y)),children:[N.jsx("span",{children:"Theme"}),N.jsx("span",{children:cm(Y)})]}),N.jsxs("button",{"aria-pressed":!(S!=null&&S.enabled)&&G,className:!(S!=null&&S.enabled)&&G?"settings-toggle is-active":"settings-toggle",disabled:x||(S==null?void 0:S.enabled),title:S!=null&&S.enabled?"Disabled while Gateway is on":void 0,type:"button",onClick:()=>X(!G),children:[N.jsx("span",{children:"Flow pause alert"}),N.jsx("span",{children:S!=null&&S.enabled?"off":G?"on":"off"})]}),N.jsxs("button",{className:"settings-toggle",disabled:x||(S==null?void 0:S.enabled),title:S!=null&&S.enabled?"Disabled while Gateway is on":void 0,type:"button",onClick:_e,children:[N.jsx("span",{children:"Try alert"}),N.jsx("span",{children:"test"})]}),N.jsxs("label",{className:"settings-select-row",children:[N.jsx("span",{children:"Permission requests"}),N.jsxs("select",{value:J,disabled:x,onChange:ae=>I(ae.target.value),children:[N.jsx("option",{value:"off",children:"off"}),N.jsx("option",{value:"allowAll",children:"allow all"})]})]}),N.jsxs("button",{className:"settings-toggle",disabled:x||!j,title:"Save the current four role launch settings",type:"button",onClick:U,children:[N.jsx("span",{children:"Save launch template"}),N.jsx("span",{children:j?"ready":"needs 4 sessions"})]}),V?N.jsxs("button",{className:"settings-toggle is-active",disabled:x,title:T1(O),type:"button",onClick:ne,children:[N.jsx("span",{children:"One-click start"}),N.jsx("span",{children:og(O)})]}):null,o?N.jsxs(N.Fragment,{children:[N.jsxs("button",{type:"button",onClick:()=>Me(!0),children:[N.jsx("span",{children:"Messages"}),N.jsxs("span",{className:"muted",children:[$e.total," total"]})]}),N.jsxs("button",{type:"button",onClick:()=>Ge(!0),children:[N.jsx("span",{children:"Events"}),N.jsxs("span",{className:"muted",children:[f.length," total"]})]})]}):null]})}),n&&o?N.jsx(Ri,{title:"Codex Review Gates",open:Ue==="codex-review-gates",onOpenChange:ae=>Le("codex-review-gates",ae),children:N.jsx(D1,{busy:x,state:u,onGateEnabledChange:z})}):null,N.jsx(Ri,{title:"Gateway",open:Ue==="gateway",onOpenChange:ae=>{Le("gateway",ae),ae&&D()},children:N.jsx(M1,{busy:x,qrCheck:A,qrLogin:w,status:S,onEnabledChange:T,onResetBinding:B,onStartQrLogin:R,onTranslationChange:E})}),n?N.jsx(Ri,{title:"VCM Harness",open:Ue==="vcm-harness",onOpenChange:ae=>Le("vcm-harness",ae),children:N.jsx(v1,{status:h,bootstrapStatus:d,applyResult:c,busy:x,onRefresh:v,onApply:k,onStartBootstrap:M})}):null,n?N.jsx(Ri,{title:"New Task",open:Ue==="new-task",onOpenChange:ae=>Le("new-task",ae),children:N.jsx("div",{className:"task-create",children:N.jsxs("form",{onSubmit:wt,children:[N.jsx("input",{value:H,onChange:ae=>te(ae.target.value),placeholder:"task name"}),N.jsxs("label",{className:"task-create-option",children:[N.jsx("input",{type:"checkbox",checked:Z,onChange:ae=>fe(ae.target.checked)}),N.jsx("span",{children:"Create worktree and branch"})]}),Z?N.jsxs("div",{className:"task-create-preview",children:[N.jsxs("small",{children:["branch: ",Oe?`feature/${Oe}`:"feature/<task>"]}),N.jsxs("small",{children:["worktree: ",Oe?`.claude/worktrees/${Oe}`:".claude/worktrees/<task>"]})]}):N.jsx("div",{className:"task-create-preview",children:N.jsx("small",{children:"uses current repository path and current branch"})}),N.jsx("button",{type:"submit",disabled:x||!Oe,children:"Create"})]})})}):null,s.length>0?N.jsx(Ri,{title:"Tasks",open:Ue==="tasks",onOpenChange:ae=>Le("tasks",ae),children:N.jsx(k1,{tasks:s,activeTaskSlug:o,onSelect:F})}):null,n&&dt?N.jsx(N1,{task:dt,roundState:a}):null,Se?N.jsx(H1,{busy:x,messages:p,orchestration:y,onClose:()=>Me(!1),onMarkAllDone:()=>{o&&me(o)},onDeleteMessageHistory:()=>{o&&$(o)}}):null,Ie?N.jsx(z1,{events:f,onClose:()=>Ge(!1)}):null]})}function og(n){return[n.autoOrchestration?"auto":"manual",n.translationEnabled?"tx":"no tx"].join(" + ")}function T1(n){const r=Object.entries(n.roles).map(([s,o])=>`${s}: ${o.permissionMode} / ${o.model} / ${o.effort}`).join("; ");return`Launch template: ${og(n)}; ${r}`}function D1({busy:n,onGateEnabledChange:r,state:s}){return N.jsx("div",{className:"sidebar-settings",children:r1.map(o=>{const p=s==null?void 0:s.gates[o],y=!!(p!=null&&p.required);return N.jsxs("button",{"aria-pressed":y,className:y?"settings-toggle is-active":"settings-toggle",disabled:n||!s,title:p!=null&&p.status?`status: ${p.status}`:void 0,type:"button",onClick:()=>r(o,!y),children:[N.jsx("span",{children:R1(o)}),N.jsx("span",{children:y?"on":"off"})]},o)})})}function R1(n){switch(n){case"architecture-plan":return"Architecture plan";case"validation-adequacy":return"Validation adequacy";case"final-diff":return"Final diff"}return n}function M1({busy:n,onEnabledChange:r,onResetBinding:s,onStartQrLogin:o,onTranslationChange:p,qrCheck:y,qrLogin:f,status:a}){const u=!!(a!=null&&a.binding.tokenConfigured),h=!!(a!=null&&a.binding.tokenConfigured);return N.jsxs("div",{className:"gateway-panel",children:[N.jsxs("div",{className:"gateway-actions",children:[N.jsxs("button",{"aria-pressed":!!(a!=null&&a.enabled),className:a!=null&&a.enabled?"settings-toggle is-active":"settings-toggle",disabled:n||!a||!a.enabled&&!u,title:u?"Enable or disable PM messages and task-changing Gateway commands":"Scan and confirm iLink login first",type:"button",onClick:()=>a?r(!a.enabled):void 0,children:[N.jsx("span",{children:"Gateway"}),N.jsx("span",{children:a!=null&&a.enabled?"on":"off"})]}),N.jsxs("button",{"aria-pressed":!!(a!=null&&a.translationEnabled),className:a!=null&&a.translationEnabled?"settings-toggle is-active":"settings-toggle",disabled:n||!a,type:"button",onClick:()=>a?p(!a.translationEnabled):void 0,children:[N.jsx("span",{children:"Translation"}),N.jsx("span",{children:a!=null&&a.translationEnabled?"on":"off"})]}),h?N.jsx("button",{className:"danger-button",type:"button",disabled:n,onClick:s,children:"Reset Binding"}):N.jsx("button",{type:"button",disabled:n,onClick:o,children:"Start QR Login"})]}),f?N.jsx("p",{className:"muted",children:"QR login started. Use the login dialog to confirm binding."}):null,y?N.jsxs("p",{className:"muted",children:["QR status: ",y.status,y.message?` · ${y.message}`:""]}):null]})}function L1({activeTask:n,busy:r,onPull:s,project:o}){const p=!!(n&&!n.worktreePath&&n.cleanupStatus!=="cleaned"),y=p?`Inline task "${n==null?void 0:n.taskSlug}" uses the base repository.`:o.pullDisabledReason,f=!!(o.canPull&&!p);return N.jsxs("div",{className:"project-summary",children:[N.jsxs("dl",{children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Base path"}),N.jsx("dd",{children:o.repoRoot})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Branch"}),N.jsx("dd",{children:O1(o)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Remote"}),N.jsx("dd",{children:o.upstreamBranch??"no upstream"})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Status"}),N.jsx("dd",{children:B1(o)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Commit"}),N.jsx("dd",{children:o.shortHeadCommit??o.headCommit??"unknown"})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Working tree"}),N.jsx("dd",{children:o.isDirty?"uncommitted changes":"clean"})]})]}),N.jsxs("div",{className:"connected-repo-actions",children:[N.jsx("button",{type:"button",disabled:r||!f,title:y??"Pull latest changes with git pull --ff-only",onClick:()=>void s(),children:"Pull"}),N.jsx("span",{className:"muted",children:o.checkedAt?`checked ${Sc(o.checkedAt)}`:"status not refreshed"})]}),y?N.jsx("p",{className:"muted",children:y}):null,o.warnings.length>0?N.jsx("ul",{className:"warnings",children:o.warnings.map(a=>N.jsx("li",{children:a},a))}):null]})}function O1(n){return n.branch||"unknown"}function B1(n){if(!n.upstreamBranch)return"no upstream";const r=n.ahead??0,s=n.behind??0;return r===0&&s===0?"up to date":r>0&&s>0?`ahead ${r}, behind ${s}`:r>0?`ahead ${r}`:`behind ${s}`}function N1({roundState:n,task:r}){var d;const[s,o]=ue.useState(()=>Date.now()),p=!!(n!=null&&n.startedAt&&n.status==="running"),y=um(r.createdAt,s),f=om(n,(n==null?void 0:n.totalCcActiveMs)??0,s),a=p&&n?om(n,n.currentRoundCcActiveMs,s):0,u=p&&(n!=null&&n.startedAt)?um(n.startedAt,s):0,h=((d=r.title)==null?void 0:d.trim())||r.taskSlug;return ue.useEffect(()=>{const c=window.setInterval(()=>o(Date.now()),1e3);return()=>window.clearInterval(c)},[]),N.jsxs("section",{className:"task-status-dock","aria-label":"VCM Session status",children:[N.jsxs("div",{className:"task-status-dock-title",children:[N.jsx("strong",{title:h,children:h}),N.jsx("span",{className:`status-badge status-${r.status}`,children:r.status})]}),N.jsxs("dl",{className:"task-status-stats",children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Session start"}),N.jsx("dd",{children:Sc(r.createdAt)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Session total"}),N.jsx("dd",{children:ya(y)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Rounds"}),N.jsx("dd",{children:(n==null?void 0:n.totalRoundCount)??0})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Role runtime"}),N.jsx("dd",{children:ya(f)})]})]}),p&&n?N.jsxs("div",{className:"current-round-status",children:[N.jsxs("div",{className:"current-round-title",children:[N.jsx("span",{children:"Current Round"}),N.jsx("span",{className:`status-badge status-${n.status}`,children:n.status})]}),N.jsxs("dl",{className:"task-status-stats",children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Started"}),N.jsx("dd",{children:Sc(n.startedAt)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Total"}),N.jsx("dd",{children:ya(u)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Role runtime"}),N.jsx("dd",{children:ya(a)})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Turn count"}),N.jsx("dd",{children:n.turnCount})]})]})]}):null]})}function om(n,r,s){if(!(n!=null&&n.activeTurnStartedAt)||n.status!=="running")return r;const o=Date.parse(n.updatedAt);return Number.isFinite(o)?r+Math.max(0,s-o):r}function um(n,r){const s=Date.parse(n);return Number.isFinite(s)?Math.max(0,r-s):0}function Sc(n){if(!n)return"-";const r=new Date(n);return Number.isNaN(r.getTime())?"-":new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit"}).format(r)}function ya(n){const r=Math.max(0,Math.floor(n/1e3)),s=Math.floor(r/3600),o=Math.floor(r%3600/60),p=r%60;return s>0?o>0?`${s}h ${o}m`:`${s}h`:o>0?p>0?`${o}m ${p}s`:`${o}m`:`${p}s`}function j1(n){return n==="system"?"light":n==="light"?"dark":"system"}function cm(n){return n==="system"?"System":n==="light"?"Light":"Dark"}function z1({events:n,onClose:r}){return N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{className:"event-modal",role:"dialog","aria-modal":"true","aria-label":"Events",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Events"}),N.jsxs("p",{className:"muted",children:[n.length," total"]})]}),N.jsx("button",{type:"button",onClick:r,children:"Close"})]}),N.jsx(s1,{events:n,maxEvents:null,showHeader:!1})]})})}function H1({busy:n,messages:r,orchestration:s,onClose:o,onMarkAllDone:p,onDeleteMessageHistory:y}){const f=Nc(r);function a(){window.confirm(["Clear all pending route-file messages?","","Use this only after you manually copied or handled stuck route-file messages.","VCM will clear non-empty handoff message files so Stop-hook orchestration can continue."].join(`
61
61
  `))&&p()}function u(){window.confirm([`Delete ${f.total} message histor${f.total===1?"y item":"y items"}?`,"","This removes message history from the Messages panel.","Pending route-file messages are not touched."].join(`
62
- `))&&y()}return N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{className:"message-modal",role:"dialog","aria-modal":"true","aria-label":"Messages",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Messages"}),N.jsxs("p",{className:"muted",children:[f.total," total / ",f.accepted," accepted",s?` · ${s.mode}`:""]})]}),N.jsxs("div",{className:"modal-actions",children:[N.jsx("button",{type:"button",disabled:n,onClick:a,children:"Mark All Done"}),N.jsx("button",{type:"button",disabled:n||f.total===0,onClick:u,children:"Delete All"}),N.jsx("button",{type:"button",onClick:o,children:"Close"})]})]}),N.jsx(S1,{busy:n,maxMessages:null,messages:r,orchestration:s,showControls:!1,showHeader:!1})]})})}function Ri({children:n,onOpenChange:r,open:s,title:o}){return N.jsxs("section",{className:"sidebar-section",children:[N.jsxs("button",{"aria-expanded":s,className:"sidebar-section-toggle",type:"button",onClick:()=>{r==null||r(!s)},children:[N.jsx("span",{children:o}),N.jsx("span",{"aria-hidden":"true",className:"sidebar-section-chevron"})]}),s?N.jsx("div",{className:"sidebar-section-content",children:n}):null]})}function ug(n,r){return n.find(s=>s.role===r)}function H1({activeRole:n,roles:r=Bc,sessions:s,onSelect:o}){return N.jsx("div",{className:"role-tabs",role:"tablist","aria-label":"Role sessions",children:r.map(p=>{const y=ug(s,p.name),f=(y==null?void 0:y.status)==="running"?y.activityStatus??"idle":(y==null?void 0:y.status)??"not_started";return N.jsxs("button",{className:p.name===n?"role-tab is-active":"role-tab",type:"button",role:"tab","aria-selected":p.name===n,onClick:()=>o(p.name),children:[N.jsx("span",{children:p.label}),N.jsx($r,{status:f})]},p.name)})})}const cg=[{value:"default",label:"Default",description:"Account default"},{value:"best",label:"Best",description:"Fable 5 or latest Opus"},{value:"fable",label:"Fable 5",description:"1M context, v2.1.170+"},{value:"opus",label:"Opus",description:"latest Opus"},{value:"opus[1m]",label:"Opus 1M",description:"Force 1M context"},{value:"claude-opus-4-8",label:"Opus 4.8",description:"Current Opus"},{value:"claude-opus-4-8[1m]",label:"Opus 4.8 1M",description:"Opus 4.8 + 1M context"}],hg=[{value:"gpt-5.5",label:"GPT-5.5",description:"Strong Codex reviewer default"},{value:"default",label:"Default",description:"Codex account default"}],fg=[{value:"default",label:"Default",description:"CLI or project default"},{value:"low",label:"Low",description:"Fastest reasoning"},{value:"medium",label:"Medium",description:"Balanced reasoning"},{value:"high",label:"High",description:"Deeper reasoning"},{value:"xhigh",label:"XHigh",description:"Extra high reasoning"},{value:"max",label:"Max",description:"Maximum reasoning"}];function I1({role:n,session:r,permissionMode:s,model:o,effort:p,busy:y=!1,onPermissionModeChange:f,onModelChange:a,onEffortChange:u,onStart:h,onResume:d,onStop:c,onRestart:S}){const w=(r==null?void 0:r.status)==="running",A=!!(r!=null&&r.claudeSessionId&&!w),x=!w&&!(r!=null&&r.claudeSessionId),b=n==="codex-reviewer",_=!!(r&&r.permissionMode!==s),g=(r==null?void 0:r.model)??"default",v=!!(r&&g!==o),k=(r==null?void 0:r.effort)??"default",M=!!(r&&k!==p),D=b?hg:cg;return N.jsxs("div",{className:"session-controls",children:[b?null:N.jsxs("label",{className:"session-option-field permission-mode-field",children:[N.jsxs("span",{children:["Permission",N.jsx("small",{children:r?`current: ${r.permissionMode}${_?" / next launch":""}`:"applies on start"})]}),N.jsxs("select",{value:s,onChange:T=>f(T.target.value),children:[N.jsx("option",{value:"default",children:"默认"}),N.jsx("option",{value:"bypassPermissions",children:"bypassPermissions"})]})]}),N.jsxs("label",{className:"session-option-field model-field",children:[N.jsxs("span",{children:["Model",N.jsx("small",{children:r?`current: ${U1(g,b)}${v?" / next launch":""}`:"applies on start"})]}),N.jsx("select",{value:o,onChange:T=>a(T.target.value),children:D.map(T=>N.jsx("option",{value:T.value,children:T.label},T.value))})]}),N.jsxs("label",{className:"session-option-field effort-field",children:[N.jsxs("span",{children:["Effort",N.jsx("small",{children:r?`current: ${P1(k)}${M?" / next launch":""}`:"applies on start"})]}),N.jsx("select",{value:p,onChange:T=>u(T.target.value),children:fg.map(T=>N.jsx("option",{value:T.value,children:T.label},T.value))})]}),N.jsxs("div",{className:"session-toolbar",children:[N.jsx("button",{type:"button",disabled:y||!x,onClick:h,children:"Start"}),N.jsx("button",{type:"button",disabled:y||!A,onClick:d,children:"Resume"}),N.jsx("button",{type:"button",disabled:y||!r,onClick:S,children:"Restart"}),N.jsx("button",{type:"button",disabled:y||!r,onClick:c,children:"Stop"})]})]})}function U1(n,r){var s,o;return r?((s=hg.find(p=>p.value===n))==null?void 0:s.label)??n:((o=cg.find(p=>p.value===n))==null?void 0:o.label)??n}function P1(n){var r;return((r=fg.find(s=>s.value===n))==null?void 0:r.label)??n}function F1(n,r){const s={};return(n[n.length-1]===""?[...n,""]:n).join((s.padRight?" ":"")+","+(s.padLeft===!1?"":" ")).trim()}const q1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,V1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,G1={};function hm(n,r){return(G1.jsx?V1:q1).test(n)}const $1=/[ \t\n\f\r]/g;function Y1(n){return typeof n=="object"?n.type==="text"?fm(n.value):!1:fm(n)}function fm(n){return n.replace($1,"")===""}class il{constructor(r,s,o){this.normal=s,this.property=r,o&&(this.space=o)}}il.prototype.normal={};il.prototype.property={};il.prototype.space=void 0;function dg(n,r){const s={},o={};for(const p of n)Object.assign(s,p.property),Object.assign(o,p.normal);return new il(s,o,r)}function bc(n){return n.toLowerCase()}class en{constructor(r,s){this.attribute=s,this.property=r}}en.prototype.attribute="";en.prototype.booleanish=!1;en.prototype.boolean=!1;en.prototype.commaOrSpaceSeparated=!1;en.prototype.commaSeparated=!1;en.prototype.defined=!1;en.prototype.mustUseProperty=!1;en.prototype.number=!1;en.prototype.overloadedBoolean=!1;en.prototype.property="";en.prototype.spaceSeparated=!1;en.prototype.space=void 0;let K1=0;const He=nr(),Tt=nr(),Cc=nr(),ve=nr(),ut=nr(),Yr=nr(),cn=nr();function nr(){return 2**++K1}const wc=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:Tt,commaOrSpaceSeparated:cn,commaSeparated:Yr,number:ve,overloadedBoolean:Cc,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),ic=Object.keys(wc);class jc extends en{constructor(r,s,o,p){let y=-1;if(super(r,s),dm(this,"space",p),typeof o=="number")for(;++y<ic.length;){const f=ic[y];dm(this,ic[y],(o&wc[f])===wc[f])}}}jc.prototype.defined=!0;function dm(n,r,s){s&&(n[r]=s)}function Xr(n){const r={},s={};for(const[o,p]of Object.entries(n.properties)){const y=new jc(o,n.transform(n.attributes||{},o),p,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(y.mustUseProperty=!0),r[o]=y,s[bc(o)]=o,s[bc(y.attribute)]=o}return new il(r,s,n.space)}const pg=Xr({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:ut,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:ve,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:ut,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:Tt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function mg(n,r){return r in n?n[r]:r}function gg(n,r){return mg(n,r.toLowerCase())}const W1=Xr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yr,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:ut,autoFocus:He,autoPlay:He,blocking:ut,capture:null,charSet:null,checked:He,cite:null,className:ut,cols:ve,colSpan:null,content:null,contentEditable:Tt,controls:He,controlsList:ut,coords:ve|Yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:Cc,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:ut,height:ve,hidden:Cc,high:ve,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:ut,itemRef:ut,itemScope:He,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,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:He,optimum:ve,pattern:null,ping:ut,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:ut,required:He,reversed:He,rows:ve,rowSpan:ve,sandbox:ut,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:Tt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:gg}),X1=Xr({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:cn,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:ut,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:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,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:Yr,g2:Yr,glyphName:Yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,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:ve,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:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cn,rev:cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cn,requiredFeatures:cn,requiredFonts:cn,requiredFormats:cn,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:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cn,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mg}),_g=Xr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,r){return"xlink:"+r.slice(5).toLowerCase()}}),vg=Xr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gg}),yg=Xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,r){return"xml:"+r.slice(3).toLowerCase()}}),Q1={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"},Z1=/[A-Z]/g,pm=/-[a-z]/g,J1=/^data[-\w.:]+$/i;function ey(n,r){const s=bc(r);let o=r,p=en;if(s in n.normal)return n.property[n.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&J1.test(r)){if(r.charAt(4)==="-"){const y=r.slice(5).replace(pm,ny);o="data"+y.charAt(0).toUpperCase()+y.slice(1)}else{const y=r.slice(4);if(!pm.test(y)){let f=y.replace(Z1,ty);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}p=jc}return new p(o,r)}function ty(n){return"-"+n.toLowerCase()}function ny(n){return n.charAt(1).toUpperCase()}const iy=dg([pg,W1,_g,vg,yg],"html"),zc=dg([pg,X1,_g,vg,yg],"svg");function ry(n){return n.join(" ").trim()}var qr={},rc,mm;function sy(){if(mm)return rc;mm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,s=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,p=/^:\s*/,y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
63
- `,h="/",d="*",c="",S="comment",w="declaration";function A(b,_){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];_=_||{};var g=1,v=1;function k(Y){var K=Y.match(r);K&&(g+=K.length);var G=Y.lastIndexOf(u);v=~G?Y.length-G:v+Y.length}function M(){var Y={line:g,column:v};return function(K){return K.position=new D(Y),R(),K}}function D(Y){this.start=Y,this.end={line:g,column:v},this.source=_.source}D.prototype.content=b;function T(Y){var K=new Error(_.source+":"+g+":"+v+": "+Y);if(K.reason=Y,K.filename=_.source,K.line=g,K.column=v,K.source=b,!_.silent)throw K}function E(Y){var K=Y.exec(b);if(K){var G=K[0];return k(G),b=b.slice(G.length),K}}function R(){E(s)}function B(Y){var K;for(Y=Y||[];K=z();)K!==!1&&Y.push(K);return Y}function z(){var Y=M();if(!(h!=b.charAt(0)||d!=b.charAt(1))){for(var K=2;c!=b.charAt(K)&&(d!=b.charAt(K)||h!=b.charAt(K+1));)++K;if(K+=2,c===b.charAt(K-1))return T("End of comment missing");var G=b.slice(2,K-2);return v+=2,k(G),b=b.slice(K),v+=2,Y({type:S,comment:G})}}function q(){var Y=M(),K=E(o);if(K){if(z(),!E(p))return T("property missing ':'");var G=E(y),X=Y({type:w,property:x(K[0].replace(n,c)),value:G?x(G[0].replace(n,c)):c});return E(f),X}}function F(){var Y=[];B(Y);for(var K;K=q();)K!==!1&&(Y.push(K),B(Y));return Y}return R(),F()}function x(b){return b?b.replace(a,c):c}return rc=A,rc}var gm;function ly(){if(gm)return qr;gm=1;var n=qr&&qr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=s;const r=n(sy());function s(o,p){let y=null;if(!o||typeof o!="string")return y;const f=(0,r.default)(o),a=typeof p=="function";return f.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:d}=u;a?p(h,d,u):d&&(y=y||{},y[h]=d)}),y}return qr}var $s={},_m;function ay(){if(_m)return $s;_m=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,s=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,p=/^-(ms)-/,y=function(h){return!h||s.test(h)||n.test(h)},f=function(h,d){return d.toUpperCase()},a=function(h,d){return"".concat(d,"-")},u=function(h,d){return d===void 0&&(d={}),y(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(p,a):h=h.replace(o,a),h.replace(r,f))};return $s.camelCase=u,$s}var Ys,vm;function oy(){if(vm)return Ys;vm=1;var n=Ys&&Ys.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},r=n(ly()),s=ay();function o(p,y){var f={};return!p||typeof p!="string"||(0,r.default)(p,function(a,u){a&&u&&(f[(0,s.camelCase)(a,y)]=u)}),f}return o.default=o,Ys=o,Ys}var uy=oy();const cy=ig(uy),Sg=bg("end"),Hc=bg("start");function bg(n){return r;function r(s){const o=s&&s.position&&s.position[n]||{};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 hy(n){const r=Hc(n),s=Sg(n);if(r&&s)return{start:r,end:s}}function Qs(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ym(n.position):"start"in n||"end"in n?ym(n):"line"in n||"column"in n?xc(n):""}function xc(n){return Sm(n&&n.line)+":"+Sm(n&&n.column)}function ym(n){return xc(n&&n.start)+"-"+xc(n&&n.end)}function Sm(n){return n&&typeof n=="number"?n:1}class qt extends Error{constructor(r,s,o){super(),typeof s=="string"&&(o=s,s=void 0);let p="",y={},f=!1;if(s&&("line"in s&&"column"in s?y={place:s}:"start"in s&&"end"in s?y={place:s}:"type"in s?y={ancestors:[s],place:s.position}:y={...s}),typeof r=="string"?p=r:!y.cause&&r&&(f=!0,p=r.message,y.cause=r),!y.ruleId&&!y.source&&typeof o=="string"){const u=o.indexOf(":");u===-1?y.ruleId=o:(y.source=o.slice(0,u),y.ruleId=o.slice(u+1))}if(!y.place&&y.ancestors&&y.ancestors){const u=y.ancestors[y.ancestors.length-1];u&&(y.place=u.position)}const a=y.place&&"start"in y.place?y.place.start:y.place;this.ancestors=y.ancestors||void 0,this.cause=y.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=p,this.line=a?a.line:void 0,this.name=Qs(y.place)||"1:1",this.place=y.place||void 0,this.reason=this.message,this.ruleId=y.ruleId||void 0,this.source=y.source||void 0,this.stack=f&&y.cause&&typeof y.cause.stack=="string"?y.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const Ic={}.hasOwnProperty,fy=new Map,dy=/[A-Z]/g,py=new Set(["table","tbody","thead","tfoot","tr"]),my=new Set(["td","th"]),Cg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gy(n,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const s=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=xy(s,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=wy(s,r.jsx,r.jsxs)}const p={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?zc:iy,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},y=wg(p,n,void 0);return y&&typeof y!="string"?y:p.create(n,p.Fragment,{children:y||void 0},void 0)}function wg(n,r,s){if(r.type==="element")return _y(n,r,s);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return vy(n,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Sy(n,r,s);if(r.type==="mdxjsEsm")return yy(n,r);if(r.type==="root")return by(n,r,s);if(r.type==="text")return Cy(n,r)}function _y(n,r,s){const o=n.schema;let p=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(p=zc,n.schema=p),n.ancestors.push(r);const y=Eg(n,r.tagName,!1),f=Ey(n,r);let a=Pc(n,r);return py.has(r.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Y1(u):!0})),xg(n,f,y,r),Uc(f,a),n.ancestors.pop(),n.schema=o,n.create(r,y,f,s)}function vy(n,r){if(r.data&&r.data.estree&&n.evaluater){const o=r.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}tl(n,r.position)}function yy(n,r){if(r.data&&r.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(r.data.estree);tl(n,r.position)}function Sy(n,r,s){const o=n.schema;let p=o;r.name==="svg"&&o.space==="html"&&(p=zc,n.schema=p),n.ancestors.push(r);const y=r.name===null?n.Fragment:Eg(n,r.name,!0),f=ky(n,r),a=Pc(n,r);return xg(n,f,y,r),Uc(f,a),n.ancestors.pop(),n.schema=o,n.create(r,y,f,s)}function by(n,r,s){const o={};return Uc(o,Pc(n,r)),n.create(r,n.Fragment,o,s)}function Cy(n,r){return r.value}function xg(n,r,s,o){typeof s!="string"&&s!==n.Fragment&&n.passNode&&(r.node=o)}function Uc(n,r){if(r.length>0){const s=r.length>1?r:r[0];s&&(n.children=s)}}function wy(n,r,s){return o;function o(p,y,f,a){const h=Array.isArray(f.children)?s:r;return a?h(y,f,a):h(y,f)}}function xy(n,r){return s;function s(o,p,y,f){const a=Array.isArray(y.children),u=Hc(o);return r(p,y,f,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function Ey(n,r){const s={};let o,p;for(p in r.properties)if(p!=="children"&&Ic.call(r.properties,p)){const y=Ay(n,p,r.properties[p]);if(y){const[f,a]=y;n.tableCellAlignToStyle&&f==="align"&&typeof a=="string"&&my.has(r.tagName)?o=a:s[f]=a}}if(o){const y=s.style||(s.style={});y[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return s}function ky(n,r){const s={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const y=o.data.estree.body[0];y.type;const f=y.expression;f.type;const a=f.properties[0];a.type,Object.assign(s,n.evaluater.evaluateExpression(a.argument))}else tl(n,r.position);else{const p=o.name;let y;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const a=o.value.data.estree.body[0];a.type,y=n.evaluater.evaluateExpression(a.expression)}else tl(n,r.position);else y=o.value===null?!0:o.value;s[p]=y}return s}function Pc(n,r){const s=[];let o=-1;const p=n.passKeys?new Map:fy;for(;++o<r.children.length;){const y=r.children[o];let f;if(n.passKeys){const u=y.type==="element"?y.tagName:y.type==="mdxJsxFlowElement"||y.type==="mdxJsxTextElement"?y.name:void 0;if(u){const h=p.get(u)||0;f=u+"-"+h,p.set(u,h+1)}}const a=wg(n,y,f);a!==void 0&&s.push(a)}return s}function Ay(n,r,s){const o=ey(n.schema,r);if(!(s==null||typeof s=="number"&&Number.isNaN(s))){if(Array.isArray(s)&&(s=o.commaSeparated?F1(s):ry(s)),o.property==="style"){let p=typeof s=="object"?s:Ty(n,String(s));return n.stylePropertyNameCase==="css"&&(p=Dy(p)),["style",p]}return[n.elementAttributeNameCase==="react"&&o.space?Q1[o.property]||o.property:o.attribute,s]}}function Ty(n,r){try{return cy(r,{reactCompat:!0})}catch(s){if(n.ignoreInvalidStyle)return{};const o=s,p=new qt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw p.file=n.filePath||void 0,p.url=Cg+"#cannot-parse-style-attribute",p}}function Eg(n,r,s){let o;if(!s)o={type:"Literal",value:r};else if(r.includes(".")){const p=r.split(".");let y=-1,f;for(;++y<p.length;){const a=hm(p[y])?{type:"Identifier",name:p[y]}:{type:"Literal",value:p[y]};f=f?{type:"MemberExpression",object:f,property:a,computed:!!(y&&a.type==="Literal"),optional:!1}:a}o=f}else o=hm(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const p=o.value;return Ic.call(n.components,p)?n.components[p]:p}if(n.evaluater)return n.evaluater.evaluateExpression(o);tl(n)}function tl(n,r){const s=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Cg+"#cannot-handle-mdx-estrees-without-createevaluater",s}function Dy(n){const r={};let s;for(s in n)Ic.call(n,s)&&(r[Ry(s)]=n[s]);return r}function Ry(n){let r=n.replace(dy,My);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function My(n){return"-"+n.toLowerCase()}const sc={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"]},Ly={};function Fc(n,r){const s=Ly,o=typeof s.includeImageAlt=="boolean"?s.includeImageAlt:!0,p=typeof s.includeHtml=="boolean"?s.includeHtml:!0;return kg(n,o,p)}function kg(n,r,s){if(Oy(n)){if("value"in n)return n.type==="html"&&!s?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return bm(n.children,r,s)}return Array.isArray(n)?bm(n,r,s):""}function bm(n,r,s){const o=[];let p=-1;for(;++p<n.length;)o[p]=kg(n[p],r,s);return o.join("")}function Oy(n){return!!(n&&typeof n=="object")}const Cm=document.createElement("i");function qc(n){const r="&"+n+";";Cm.innerHTML=r;const s=Cm.textContent;return s.charCodeAt(s.length-1)===59&&n!=="semi"||s===r?!1:s}function hn(n,r,s,o){const p=n.length;let y=0,f;if(r<0?r=-r>p?0:p+r:r=r>p?p:r,s=s>0?s:0,o.length<1e4)f=Array.from(o),f.unshift(r,s),n.splice(...f);else for(s&&n.splice(r,s);y<o.length;)f=o.slice(y,y+1e4),f.unshift(r,0),n.splice(...f),y+=1e4,r+=1e4}function Cn(n,r){return n.length>0?(hn(n,n.length,0,r),n):r}const wm={}.hasOwnProperty;function Ag(n){const r={};let s=-1;for(;++s<n.length;)By(r,n[s]);return r}function By(n,r){let s;for(s in r){const p=(wm.call(n,s)?n[s]:void 0)||(n[s]={}),y=r[s];let f;if(y)for(f in y){wm.call(p,f)||(p[f]=[]);const a=y[f];Ny(p[f],Array.isArray(a)?a:a?[a]:[])}}}function Ny(n,r){let s=-1;const o=[];for(;++s<r.length;)(r[s].add==="after"?n:o).push(r[s]);hn(n,0,0,o)}function Tg(n,r){const s=Number.parseInt(n,r);return s<9||s===11||s>13&&s<32||s>126&&s<160||s>55295&&s<57344||s>64975&&s<65008||(s&65535)===65535||(s&65535)===65534||s>1114111?"�":String.fromCodePoint(s)}function An(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Gt=Bi(/[A-Za-z]/),Ft=Bi(/[\dA-Za-z]/),jy=Bi(/[#-'*+\--9=?A-Z^-~]/);function Aa(n){return n!==null&&(n<32||n===127)}const Ec=Bi(/\d/),zy=Bi(/[\dA-Fa-f]/),Hy=Bi(/[!-/:-@[-`{-~]/);function Te(n){return n!==null&&n<-2}function ot(n){return n!==null&&(n<0||n===32)}function Ve(n){return n===-2||n===-1||n===32}const Ma=Bi(new RegExp("\\p{P}|\\p{S}","u")),tr=Bi(/\s/);function Bi(n){return r;function r(s){return s!==null&&s>-1&&n.test(String.fromCharCode(s))}}function Qr(n){const r=[];let s=-1,o=0,p=0;for(;++s<n.length;){const y=n.charCodeAt(s);let f="";if(y===37&&Ft(n.charCodeAt(s+1))&&Ft(n.charCodeAt(s+2)))p=2;else if(y<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(y))||(f=String.fromCharCode(y));else if(y>55295&&y<57344){const a=n.charCodeAt(s+1);y<56320&&a>56319&&a<57344?(f=String.fromCharCode(y,a),p=1):f="�"}else f=String.fromCharCode(y);f&&(r.push(n.slice(o,s),encodeURIComponent(f)),o=s+p+1,f=""),p&&(s+=p,p=0)}return r.join("")+n.slice(o)}function Xe(n,r,s,o){const p=o?o-1:Number.POSITIVE_INFINITY;let y=0;return f;function f(u){return Ve(u)?(n.enter(s),a(u)):r(u)}function a(u){return Ve(u)&&y++<p?(n.consume(u),a):(n.exit(s),r(u))}}const Iy={tokenize:Uy};function Uy(n){const r=n.attempt(this.parser.constructs.contentInitial,o,p);let s;return r;function o(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),Xe(n,r,"linePrefix")}function p(a){return n.enter("paragraph"),y(a)}function y(a){const u=n.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=u),s=u,f(a)}function f(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return Te(a)?(n.consume(a),n.exit("chunkText"),y):(n.consume(a),f)}}const Py={tokenize:Fy},xm={tokenize:qy};function Fy(n){const r=this,s=[];let o=0,p,y,f;return a;function a(v){if(o<s.length){const k=s[o];return r.containerState=k[1],n.attempt(k[0].continuation,u,h)(v)}return h(v)}function u(v){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,p&&g();const k=r.events.length;let M=k,D;for(;M--;)if(r.events[M][0]==="exit"&&r.events[M][1].type==="chunkFlow"){D=r.events[M][1].end;break}_(o);let T=k;for(;T<r.events.length;)r.events[T][1].end={...D},T++;return hn(r.events,M+1,0,r.events.slice(k)),r.events.length=T,h(v)}return a(v)}function h(v){if(o===s.length){if(!p)return S(v);if(p.currentConstruct&&p.currentConstruct.concrete)return A(v);r.interrupt=!!(p.currentConstruct&&!p._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(xm,d,c)(v)}function d(v){return p&&g(),_(o),S(v)}function c(v){return r.parser.lazy[r.now().line]=o!==s.length,f=r.now().offset,A(v)}function S(v){return r.containerState={},n.attempt(xm,w,A)(v)}function w(v){return o++,s.push([r.currentConstruct,r.containerState]),S(v)}function A(v){if(v===null){p&&g(),_(0),n.consume(v);return}return p=p||r.parser.flow(r.now()),n.enter("chunkFlow",{_tokenizer:p,contentType:"flow",previous:y}),x(v)}function x(v){if(v===null){b(n.exit("chunkFlow"),!0),_(0),n.consume(v);return}return Te(v)?(n.consume(v),b(n.exit("chunkFlow")),o=0,r.interrupt=void 0,a):(n.consume(v),x)}function b(v,k){const M=r.sliceStream(v);if(k&&M.push(null),v.previous=y,y&&(y.next=v),y=v,p.defineSkip(v.start),p.write(M),r.parser.lazy[v.start.line]){let D=p.events.length;for(;D--;)if(p.events[D][1].start.offset<f&&(!p.events[D][1].end||p.events[D][1].end.offset>f))return;const T=r.events.length;let E=T,R,B;for(;E--;)if(r.events[E][0]==="exit"&&r.events[E][1].type==="chunkFlow"){if(R){B=r.events[E][1].end;break}R=!0}for(_(o),D=T;D<r.events.length;)r.events[D][1].end={...B},D++;hn(r.events,E+1,0,r.events.slice(T)),r.events.length=D}}function _(v){let k=s.length;for(;k-- >v;){const M=s[k];r.containerState=M[1],M[0].exit.call(r,n)}s.length=v}function g(){p.write([null]),y=void 0,p=void 0,r.containerState._closeFlow=void 0}}function qy(n,r,s){return Xe(n,n.attempt(this.parser.constructs.document,r,s),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Kr(n){if(n===null||ot(n)||tr(n))return 1;if(Ma(n))return 2}function La(n,r,s){const o=[];let p=-1;for(;++p<n.length;){const y=n[p].resolveAll;y&&!o.includes(y)&&(r=y(r,s),o.push(y))}return r}const kc={name:"attention",resolveAll:Vy,tokenize:Gy};function Vy(n,r){let s=-1,o,p,y,f,a,u,h,d;for(;++s<n.length;)if(n[s][0]==="enter"&&n[s][1].type==="attentionSequence"&&n[s][1]._close){for(o=s;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&r.sliceSerialize(n[o][1]).charCodeAt(0)===r.sliceSerialize(n[s][1]).charCodeAt(0)){if((n[o][1]._close||n[s][1]._open)&&(n[s][1].end.offset-n[s][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[s][1].end.offset-n[s][1].start.offset)%3))continue;u=n[o][1].end.offset-n[o][1].start.offset>1&&n[s][1].end.offset-n[s][1].start.offset>1?2:1;const c={...n[o][1].end},S={...n[s][1].start};Em(c,-u),Em(S,u),f={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...n[o][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...n[s][1].start},end:S},y={type:u>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[s][1].start}},p={type:u>1?"strong":"emphasis",start:{...f.start},end:{...a.end}},n[o][1].end={...f.start},n[s][1].start={...a.end},h=[],n[o][1].end.offset-n[o][1].start.offset&&(h=Cn(h,[["enter",n[o][1],r],["exit",n[o][1],r]])),h=Cn(h,[["enter",p,r],["enter",f,r],["exit",f,r],["enter",y,r]]),h=Cn(h,La(r.parser.constructs.insideSpan.null,n.slice(o+1,s),r)),h=Cn(h,[["exit",y,r],["enter",a,r],["exit",a,r],["exit",p,r]]),n[s][1].end.offset-n[s][1].start.offset?(d=2,h=Cn(h,[["enter",n[s][1],r],["exit",n[s][1],r]])):d=0,hn(n,o-1,s-o+3,h),s=o+h.length-d-2;break}}for(s=-1;++s<n.length;)n[s][1].type==="attentionSequence"&&(n[s][1].type="data");return n}function Gy(n,r){const s=this.parser.constructs.attentionMarkers.null,o=this.previous,p=Kr(o);let y;return f;function f(u){return y=u,n.enter("attentionSequence"),a(u)}function a(u){if(u===y)return n.consume(u),a;const h=n.exit("attentionSequence"),d=Kr(u),c=!d||d===2&&p||s.includes(u),S=!p||p===2&&d||s.includes(o);return h._open=!!(y===42?c:c&&(p||!S)),h._close=!!(y===42?S:S&&(d||!c)),r(u)}}function Em(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const $y={name:"autolink",tokenize:Yy};function Yy(n,r,s){let o=0;return p;function p(w){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(w),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),y}function y(w){return Gt(w)?(n.consume(w),f):w===64?s(w):h(w)}function f(w){return w===43||w===45||w===46||Ft(w)?(o=1,a(w)):h(w)}function a(w){return w===58?(n.consume(w),o=0,u):(w===43||w===45||w===46||Ft(w))&&o++<32?(n.consume(w),a):(o=0,h(w))}function u(w){return w===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(w),n.exit("autolinkMarker"),n.exit("autolink"),r):w===null||w===32||w===60||Aa(w)?s(w):(n.consume(w),u)}function h(w){return w===64?(n.consume(w),d):jy(w)?(n.consume(w),h):s(w)}function d(w){return Ft(w)?c(w):s(w)}function c(w){return w===46?(n.consume(w),o=0,d):w===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(w),n.exit("autolinkMarker"),n.exit("autolink"),r):S(w)}function S(w){if((w===45||Ft(w))&&o++<63){const A=w===45?S:c;return n.consume(w),A}return s(w)}}const rl={partial:!0,tokenize:Ky};function Ky(n,r,s){return o;function o(y){return Ve(y)?Xe(n,p,"linePrefix")(y):p(y)}function p(y){return y===null||Te(y)?r(y):s(y)}}const Dg={continuation:{tokenize:Xy},exit:Qy,name:"blockQuote",tokenize:Wy};function Wy(n,r,s){const o=this;return p;function p(f){if(f===62){const a=o.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),y}return s(f)}function y(f){return Ve(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(f))}}function Xy(n,r,s){const o=this;return p;function p(f){return Ve(f)?Xe(n,y,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):y(f)}function y(f){return n.attempt(Dg,r,s)(f)}}function Qy(n){n.exit("blockQuote")}const Rg={name:"characterEscape",tokenize:Zy};function Zy(n,r,s){return o;function o(y){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(y),n.exit("escapeMarker"),p}function p(y){return Hy(y)?(n.enter("characterEscapeValue"),n.consume(y),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):s(y)}}const Mg={name:"characterReference",tokenize:Jy};function Jy(n,r,s){const o=this;let p=0,y,f;return a;function a(c){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(c),n.exit("characterReferenceMarker"),u}function u(c){return c===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(c),n.exit("characterReferenceMarkerNumeric"),h):(n.enter("characterReferenceValue"),y=31,f=Ft,d(c))}function h(c){return c===88||c===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(c),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),y=6,f=zy,d):(n.enter("characterReferenceValue"),y=7,f=Ec,d(c))}function d(c){if(c===59&&p){const S=n.exit("characterReferenceValue");return f===Ft&&!qc(o.sliceSerialize(S))?s(c):(n.enter("characterReferenceMarker"),n.consume(c),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return f(c)&&p++<y?(n.consume(c),d):s(c)}}const km={partial:!0,tokenize:tS},Am={concrete:!0,name:"codeFenced",tokenize:eS};function eS(n,r,s){const o=this,p={partial:!0,tokenize:M};let y=0,f=0,a;return u;function u(D){return h(D)}function h(D){const T=o.events[o.events.length-1];return y=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),d(D)}function d(D){return D===a?(f++,n.consume(D),d):f<3?s(D):(n.exit("codeFencedFenceSequence"),Ve(D)?Xe(n,c,"whitespace")(D):c(D))}function c(D){return D===null||Te(D)?(n.exit("codeFencedFence"),o.interrupt?r(D):n.check(km,x,k)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||Te(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),c(D)):Ve(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Xe(n,w,"whitespace")(D)):D===96&&D===a?s(D):(n.consume(D),S)}function w(D){return D===null||Te(D)?c(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(D))}function A(D){return D===null||Te(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),c(D)):D===96&&D===a?s(D):(n.consume(D),A)}function x(D){return n.attempt(p,k,b)(D)}function b(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),_}function _(D){return y>0&&Ve(D)?Xe(n,g,"linePrefix",y+1)(D):g(D)}function g(D){return D===null||Te(D)?n.check(km,x,k)(D):(n.enter("codeFlowValue"),v(D))}function v(D){return D===null||Te(D)?(n.exit("codeFlowValue"),g(D)):(n.consume(D),v)}function k(D){return n.exit("codeFenced"),r(D)}function M(D,T,E){let R=0;return B;function B(K){return D.enter("lineEnding"),D.consume(K),D.exit("lineEnding"),z}function z(K){return D.enter("codeFencedFence"),Ve(K)?Xe(D,q,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):q(K)}function q(K){return K===a?(D.enter("codeFencedFenceSequence"),F(K)):E(K)}function F(K){return K===a?(R++,D.consume(K),F):R>=f?(D.exit("codeFencedFenceSequence"),Ve(K)?Xe(D,Y,"whitespace")(K):Y(K)):E(K)}function Y(K){return K===null||Te(K)?(D.exit("codeFencedFence"),T(K)):E(K)}}}function tS(n,r,s){const o=this;return p;function p(f){return f===null?s(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),y)}function y(f){return o.parser.lazy[o.now().line]?s(f):r(f)}}const lc={name:"codeIndented",tokenize:iS},nS={partial:!0,tokenize:rS};function iS(n,r,s){const o=this;return p;function p(h){return n.enter("codeIndented"),Xe(n,y,"linePrefix",5)(h)}function y(h){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?f(h):s(h)}function f(h){return h===null?u(h):Te(h)?n.attempt(nS,f,u)(h):(n.enter("codeFlowValue"),a(h))}function a(h){return h===null||Te(h)?(n.exit("codeFlowValue"),f(h)):(n.consume(h),a)}function u(h){return n.exit("codeIndented"),r(h)}}function rS(n,r,s){const o=this;return p;function p(f){return o.parser.lazy[o.now().line]?s(f):Te(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),p):Xe(n,y,"linePrefix",5)(f)}function y(f){const a=o.events[o.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(f):Te(f)?p(f):s(f)}}const sS={name:"codeText",previous:aS,resolve:lS,tokenize:oS};function lS(n){let r=n.length-4,s=3,o,p;if((n[s][1].type==="lineEnding"||n[s][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(o=s;++o<r;)if(n[o][1].type==="codeTextData"){n[s][1].type="codeTextPadding",n[r][1].type="codeTextPadding",s+=2,r-=2;break}}for(o=s-1,r++;++o<=r;)p===void 0?o!==r&&n[o][1].type!=="lineEnding"&&(p=o):(o===r||n[o][1].type==="lineEnding")&&(n[p][1].type="codeTextData",o!==p+2&&(n[p][1].end=n[o-1][1].end,n.splice(p+2,o-p-2),r-=o-p-2,o=p+2),p=void 0);return n}function aS(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function oS(n,r,s){let o=0,p,y;return f;function f(c){return n.enter("codeText"),n.enter("codeTextSequence"),a(c)}function a(c){return c===96?(n.consume(c),o++,a):(n.exit("codeTextSequence"),u(c))}function u(c){return c===null?s(c):c===32?(n.enter("space"),n.consume(c),n.exit("space"),u):c===96?(y=n.enter("codeTextSequence"),p=0,d(c)):Te(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),u):(n.enter("codeTextData"),h(c))}function h(c){return c===null||c===32||c===96||Te(c)?(n.exit("codeTextData"),u(c)):(n.consume(c),h)}function d(c){return c===96?(n.consume(c),p++,d):p===o?(n.exit("codeTextSequence"),n.exit("codeText"),r(c)):(y.type="codeTextData",h(c))}}class uS{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,s){const o=s??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,s,o){const p=s||0;this.setCursor(Math.trunc(r));const y=this.right.splice(this.right.length-p,Number.POSITIVE_INFINITY);return o&&Ks(this.left,o),y.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Ks(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ks(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const s=this.left.splice(r,Number.POSITIVE_INFINITY);Ks(this.right,s.reverse())}else{const s=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ks(this.left,s.reverse())}}}function Ks(n,r){let s=0;if(r.length<1e4)n.push(...r);else for(;s<r.length;)n.push(...r.slice(s,s+1e4)),s+=1e4}function Lg(n){const r={};let s=-1,o,p,y,f,a,u,h;const d=new uS(n);for(;++s<d.length;){for(;s in r;)s=r[s];if(o=d.get(s),s&&o[1].type==="chunkFlow"&&d.get(s-1)[1].type==="listItemPrefix"&&(u=o[1]._tokenizer.events,y=0,y<u.length&&u[y][1].type==="lineEndingBlank"&&(y+=2),y<u.length&&u[y][1].type==="content"))for(;++y<u.length&&u[y][1].type!=="content";)u[y][1].type==="chunkText"&&(u[y][1]._isInFirstContentOfListItem=!0,y++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,cS(d,s)),s=r[s],h=!0);else if(o[1]._container){for(y=s,p=void 0;y--;)if(f=d.get(y),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(p&&(d.get(p)[1].type="lineEndingBlank"),f[1].type="lineEnding",p=y);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;p&&(o[1].end={...d.get(p)[1].start},a=d.slice(p,s),a.unshift(o),d.splice(p,s-p+1,a))}}return hn(n,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function cS(n,r){const s=n.get(r)[1],o=n.get(r)[2];let p=r-1;const y=[];let f=s._tokenizer;f||(f=o.parser[s.contentType](s.start),s._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const a=f.events,u=[],h={};let d,c,S=-1,w=s,A=0,x=0;const b=[x];for(;w;){for(;n.get(++p)[1]!==w;);y.push(p),w._tokenizer||(d=o.sliceStream(w),w.next||d.push(null),c&&f.defineSkip(w.start),w._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(d),w._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),c=w,w=w.next}for(w=s;++S<a.length;)a[S][0]==="exit"&&a[S-1][0]==="enter"&&a[S][1].type===a[S-1][1].type&&a[S][1].start.line!==a[S][1].end.line&&(x=S+1,b.push(x),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(f.events=[],w?(w._tokenizer=void 0,w.previous=void 0):b.pop(),S=b.length;S--;){const _=a.slice(b[S],b[S+1]),g=y.pop();u.push([g,g+_.length-1]),n.splice(g,2,_)}for(u.reverse(),S=-1;++S<u.length;)h[A+u[S][0]]=A+u[S][1],A+=u[S][1]-u[S][0]-1;return h}const hS={resolve:dS,tokenize:pS},fS={partial:!0,tokenize:mS};function dS(n){return Lg(n),n}function pS(n,r){let s;return o;function o(a){return n.enter("content"),s=n.enter("chunkContent",{contentType:"content"}),p(a)}function p(a){return a===null?y(a):Te(a)?n.check(fS,f,y)(a):(n.consume(a),p)}function y(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function f(a){return n.consume(a),n.exit("chunkContent"),s.next=n.enter("chunkContent",{contentType:"content",previous:s}),s=s.next,p}}function mS(n,r,s){const o=this;return p;function p(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Xe(n,y,"linePrefix")}function y(f){if(f===null||Te(f))return s(f);const a=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(f):n.interrupt(o.parser.constructs.flow,s,r)(f)}}function Og(n,r,s,o,p,y,f,a,u){const h=u||Number.POSITIVE_INFINITY;let d=0;return c;function c(_){return _===60?(n.enter(o),n.enter(p),n.enter(y),n.consume(_),n.exit(y),S):_===null||_===32||_===41||Aa(_)?s(_):(n.enter(o),n.enter(f),n.enter(a),n.enter("chunkString",{contentType:"string"}),x(_))}function S(_){return _===62?(n.enter(y),n.consume(_),n.exit(y),n.exit(p),n.exit(o),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),w(_))}function w(_){return _===62?(n.exit("chunkString"),n.exit(a),S(_)):_===null||_===60||Te(_)?s(_):(n.consume(_),_===92?A:w)}function A(_){return _===60||_===62||_===92?(n.consume(_),w):w(_)}function x(_){return!d&&(_===null||_===41||ot(_))?(n.exit("chunkString"),n.exit(a),n.exit(f),n.exit(o),r(_)):d<h&&_===40?(n.consume(_),d++,x):_===41?(n.consume(_),d--,x):_===null||_===32||_===40||Aa(_)?s(_):(n.consume(_),_===92?b:x)}function b(_){return _===40||_===41||_===92?(n.consume(_),x):x(_)}}function Bg(n,r,s,o,p,y){const f=this;let a=0,u;return h;function h(w){return n.enter(o),n.enter(p),n.consume(w),n.exit(p),n.enter(y),d}function d(w){return a>999||w===null||w===91||w===93&&!u||w===94&&!a&&"_hiddenFootnoteSupport"in f.parser.constructs?s(w):w===93?(n.exit(y),n.enter(p),n.consume(w),n.exit(p),n.exit(o),r):Te(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),d):(n.enter("chunkString",{contentType:"string"}),c(w))}function c(w){return w===null||w===91||w===93||Te(w)||a++>999?(n.exit("chunkString"),d(w)):(n.consume(w),u||(u=!Ve(w)),w===92?S:c)}function S(w){return w===91||w===92||w===93?(n.consume(w),a++,c):c(w)}}function Ng(n,r,s,o,p,y){let f;return a;function a(S){return S===34||S===39||S===40?(n.enter(o),n.enter(p),n.consume(S),n.exit(p),f=S===40?41:S,u):s(S)}function u(S){return S===f?(n.enter(p),n.consume(S),n.exit(p),n.exit(o),r):(n.enter(y),h(S))}function h(S){return S===f?(n.exit(y),u(f)):S===null?s(S):Te(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Xe(n,h,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===f||S===null||Te(S)?(n.exit("chunkString"),h(S)):(n.consume(S),S===92?c:d)}function c(S){return S===f||S===92?(n.consume(S),d):d(S)}}function Zs(n,r){let s;return o;function o(p){return Te(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),s=!0,o):Ve(p)?Xe(n,o,s?"linePrefix":"lineSuffix")(p):r(p)}}const gS={name:"definition",tokenize:vS},_S={partial:!0,tokenize:yS};function vS(n,r,s){const o=this;let p;return y;function y(w){return n.enter("definition"),f(w)}function f(w){return Bg.call(o,n,a,s,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function a(w){return p=An(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),u):s(w)}function u(w){return ot(w)?Zs(n,h)(w):h(w)}function h(w){return Og(n,d,s,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function d(w){return n.attempt(_S,c,c)(w)}function c(w){return Ve(w)?Xe(n,S,"whitespace")(w):S(w)}function S(w){return w===null||Te(w)?(n.exit("definition"),o.parser.defined.push(p),r(w)):s(w)}}function yS(n,r,s){return o;function o(a){return ot(a)?Zs(n,p)(a):s(a)}function p(a){return Ng(n,y,s,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function y(a){return Ve(a)?Xe(n,f,"whitespace")(a):f(a)}function f(a){return a===null||Te(a)?r(a):s(a)}}const SS={name:"hardBreakEscape",tokenize:bS};function bS(n,r,s){return o;function o(y){return n.enter("hardBreakEscape"),n.consume(y),p}function p(y){return Te(y)?(n.exit("hardBreakEscape"),r(y)):s(y)}}const CS={name:"headingAtx",resolve:wS,tokenize:xS};function wS(n,r){let s=n.length-2,o=3,p,y;return n[o][1].type==="whitespace"&&(o+=2),s-2>o&&n[s][1].type==="whitespace"&&(s-=2),n[s][1].type==="atxHeadingSequence"&&(o===s-1||s-4>o&&n[s-2][1].type==="whitespace")&&(s-=o+1===s?2:4),s>o&&(p={type:"atxHeadingText",start:n[o][1].start,end:n[s][1].end},y={type:"chunkText",start:n[o][1].start,end:n[s][1].end,contentType:"text"},hn(n,o,s-o+1,[["enter",p,r],["enter",y,r],["exit",y,r],["exit",p,r]])),n}function xS(n,r,s){let o=0;return p;function p(d){return n.enter("atxHeading"),y(d)}function y(d){return n.enter("atxHeadingSequence"),f(d)}function f(d){return d===35&&o++<6?(n.consume(d),f):d===null||ot(d)?(n.exit("atxHeadingSequence"),a(d)):s(d)}function a(d){return d===35?(n.enter("atxHeadingSequence"),u(d)):d===null||Te(d)?(n.exit("atxHeading"),r(d)):Ve(d)?Xe(n,a,"whitespace")(d):(n.enter("atxHeadingText"),h(d))}function u(d){return d===35?(n.consume(d),u):(n.exit("atxHeadingSequence"),a(d))}function h(d){return d===null||d===35||ot(d)?(n.exit("atxHeadingText"),a(d)):(n.consume(d),h)}}const ES=["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"],Tm=["pre","script","style","textarea"],kS={concrete:!0,name:"htmlFlow",resolveTo:DS,tokenize:RS},AS={partial:!0,tokenize:LS},TS={partial:!0,tokenize:MS};function DS(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function RS(n,r,s){const o=this;let p,y,f,a,u;return h;function h(U){return d(U)}function d(U){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(U),c}function c(U){return U===33?(n.consume(U),S):U===47?(n.consume(U),y=!0,x):U===63?(n.consume(U),p=3,o.interrupt?r:O):Gt(U)?(n.consume(U),f=String.fromCharCode(U),b):s(U)}function S(U){return U===45?(n.consume(U),p=2,w):U===91?(n.consume(U),p=5,a=0,A):Gt(U)?(n.consume(U),p=4,o.interrupt?r:O):s(U)}function w(U){return U===45?(n.consume(U),o.interrupt?r:O):s(U)}function A(U){const ne="CDATA[";return U===ne.charCodeAt(a++)?(n.consume(U),a===ne.length?o.interrupt?r:q:A):s(U)}function x(U){return Gt(U)?(n.consume(U),f=String.fromCharCode(U),b):s(U)}function b(U){if(U===null||U===47||U===62||ot(U)){const ne=U===47,_e=f.toLowerCase();return!ne&&!y&&Tm.includes(_e)?(p=1,o.interrupt?r(U):q(U)):ES.includes(f.toLowerCase())?(p=6,ne?(n.consume(U),_):o.interrupt?r(U):q(U)):(p=7,o.interrupt&&!o.parser.lazy[o.now().line]?s(U):y?g(U):v(U))}return U===45||Ft(U)?(n.consume(U),f+=String.fromCharCode(U),b):s(U)}function _(U){return U===62?(n.consume(U),o.interrupt?r:q):s(U)}function g(U){return Ve(U)?(n.consume(U),g):B(U)}function v(U){return U===47?(n.consume(U),B):U===58||U===95||Gt(U)?(n.consume(U),k):Ve(U)?(n.consume(U),v):B(U)}function k(U){return U===45||U===46||U===58||U===95||Ft(U)?(n.consume(U),k):M(U)}function M(U){return U===61?(n.consume(U),D):Ve(U)?(n.consume(U),M):v(U)}function D(U){return U===null||U===60||U===61||U===62||U===96?s(U):U===34||U===39?(n.consume(U),u=U,T):Ve(U)?(n.consume(U),D):E(U)}function T(U){return U===u?(n.consume(U),u=null,R):U===null||Te(U)?s(U):(n.consume(U),T)}function E(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||ot(U)?M(U):(n.consume(U),E)}function R(U){return U===47||U===62||Ve(U)?v(U):s(U)}function B(U){return U===62?(n.consume(U),z):s(U)}function z(U){return U===null||Te(U)?q(U):Ve(U)?(n.consume(U),z):s(U)}function q(U){return U===45&&p===2?(n.consume(U),G):U===60&&p===1?(n.consume(U),X):U===62&&p===4?(n.consume(U),j):U===63&&p===3?(n.consume(U),O):U===93&&p===5?(n.consume(U),I):Te(U)&&(p===6||p===7)?(n.exit("htmlFlowData"),n.check(AS,V,F)(U)):U===null||Te(U)?(n.exit("htmlFlowData"),F(U)):(n.consume(U),q)}function F(U){return n.check(TS,Y,V)(U)}function Y(U){return n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),K}function K(U){return U===null||Te(U)?F(U):(n.enter("htmlFlowData"),q(U))}function G(U){return U===45?(n.consume(U),O):q(U)}function X(U){return U===47?(n.consume(U),f="",J):q(U)}function J(U){if(U===62){const ne=f.toLowerCase();return Tm.includes(ne)?(n.consume(U),j):q(U)}return Gt(U)&&f.length<8?(n.consume(U),f+=String.fromCharCode(U),J):q(U)}function I(U){return U===93?(n.consume(U),O):q(U)}function O(U){return U===62?(n.consume(U),j):U===45&&p===2?(n.consume(U),O):q(U)}function j(U){return U===null||Te(U)?(n.exit("htmlFlowData"),V(U)):(n.consume(U),j)}function V(U){return n.exit("htmlFlow"),r(U)}}function MS(n,r,s){const o=this;return p;function p(f){return Te(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),y):s(f)}function y(f){return o.parser.lazy[o.now().line]?s(f):r(f)}}function LS(n,r,s){return o;function o(p){return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),n.attempt(rl,r,s)}}const OS={name:"htmlText",tokenize:BS};function BS(n,r,s){const o=this;let p,y,f;return a;function a(O){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(O),u}function u(O){return O===33?(n.consume(O),h):O===47?(n.consume(O),M):O===63?(n.consume(O),v):Gt(O)?(n.consume(O),E):s(O)}function h(O){return O===45?(n.consume(O),d):O===91?(n.consume(O),y=0,A):Gt(O)?(n.consume(O),g):s(O)}function d(O){return O===45?(n.consume(O),w):s(O)}function c(O){return O===null?s(O):O===45?(n.consume(O),S):Te(O)?(f=c,X(O)):(n.consume(O),c)}function S(O){return O===45?(n.consume(O),w):c(O)}function w(O){return O===62?G(O):O===45?S(O):c(O)}function A(O){const j="CDATA[";return O===j.charCodeAt(y++)?(n.consume(O),y===j.length?x:A):s(O)}function x(O){return O===null?s(O):O===93?(n.consume(O),b):Te(O)?(f=x,X(O)):(n.consume(O),x)}function b(O){return O===93?(n.consume(O),_):x(O)}function _(O){return O===62?G(O):O===93?(n.consume(O),_):x(O)}function g(O){return O===null||O===62?G(O):Te(O)?(f=g,X(O)):(n.consume(O),g)}function v(O){return O===null?s(O):O===63?(n.consume(O),k):Te(O)?(f=v,X(O)):(n.consume(O),v)}function k(O){return O===62?G(O):v(O)}function M(O){return Gt(O)?(n.consume(O),D):s(O)}function D(O){return O===45||Ft(O)?(n.consume(O),D):T(O)}function T(O){return Te(O)?(f=T,X(O)):Ve(O)?(n.consume(O),T):G(O)}function E(O){return O===45||Ft(O)?(n.consume(O),E):O===47||O===62||ot(O)?R(O):s(O)}function R(O){return O===47?(n.consume(O),G):O===58||O===95||Gt(O)?(n.consume(O),B):Te(O)?(f=R,X(O)):Ve(O)?(n.consume(O),R):G(O)}function B(O){return O===45||O===46||O===58||O===95||Ft(O)?(n.consume(O),B):z(O)}function z(O){return O===61?(n.consume(O),q):Te(O)?(f=z,X(O)):Ve(O)?(n.consume(O),z):R(O)}function q(O){return O===null||O===60||O===61||O===62||O===96?s(O):O===34||O===39?(n.consume(O),p=O,F):Te(O)?(f=q,X(O)):Ve(O)?(n.consume(O),q):(n.consume(O),Y)}function F(O){return O===p?(n.consume(O),p=void 0,K):O===null?s(O):Te(O)?(f=F,X(O)):(n.consume(O),F)}function Y(O){return O===null||O===34||O===39||O===60||O===61||O===96?s(O):O===47||O===62||ot(O)?R(O):(n.consume(O),Y)}function K(O){return O===47||O===62||ot(O)?R(O):s(O)}function G(O){return O===62?(n.consume(O),n.exit("htmlTextData"),n.exit("htmlText"),r):s(O)}function X(O){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),J}function J(O){return Ve(O)?Xe(n,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):I(O)}function I(O){return n.enter("htmlTextData"),f(O)}}const Vc={name:"labelEnd",resolveAll:HS,resolveTo:IS,tokenize:US},NS={tokenize:PS},jS={tokenize:FS},zS={tokenize:qS};function HS(n){let r=-1;const s=[];for(;++r<n.length;){const o=n[r][1];if(s.push(n[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const p=o.type==="labelImage"?4:2;o.type="data",r+=p}}return n.length!==s.length&&hn(n,0,n.length,s),n}function IS(n,r){let s=n.length,o=0,p,y,f,a;for(;s--;)if(p=n[s][1],y){if(p.type==="link"||p.type==="labelLink"&&p._inactive)break;n[s][0]==="enter"&&p.type==="labelLink"&&(p._inactive=!0)}else if(f){if(n[s][0]==="enter"&&(p.type==="labelImage"||p.type==="labelLink")&&!p._balanced&&(y=s,p.type!=="labelLink")){o=2;break}}else p.type==="labelEnd"&&(f=s);const u={type:n[y][1].type==="labelLink"?"link":"image",start:{...n[y][1].start},end:{...n[n.length-1][1].end}},h={type:"label",start:{...n[y][1].start},end:{...n[f][1].end}},d={type:"labelText",start:{...n[y+o+2][1].end},end:{...n[f-2][1].start}};return a=[["enter",u,r],["enter",h,r]],a=Cn(a,n.slice(y+1,y+o+3)),a=Cn(a,[["enter",d,r]]),a=Cn(a,La(r.parser.constructs.insideSpan.null,n.slice(y+o+4,f-3),r)),a=Cn(a,[["exit",d,r],n[f-2],n[f-1],["exit",h,r]]),a=Cn(a,n.slice(f+1)),a=Cn(a,[["exit",u,r]]),hn(n,y,n.length,a),n}function US(n,r,s){const o=this;let p=o.events.length,y,f;for(;p--;)if((o.events[p][1].type==="labelImage"||o.events[p][1].type==="labelLink")&&!o.events[p][1]._balanced){y=o.events[p][1];break}return a;function a(S){return y?y._inactive?c(S):(f=o.parser.defined.includes(An(o.sliceSerialize({start:y.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),u):s(S)}function u(S){return S===40?n.attempt(NS,d,f?d:c)(S):S===91?n.attempt(jS,d,f?h:c)(S):f?d(S):c(S)}function h(S){return n.attempt(zS,d,c)(S)}function d(S){return r(S)}function c(S){return y._balanced=!0,s(S)}}function PS(n,r,s){return o;function o(c){return n.enter("resource"),n.enter("resourceMarker"),n.consume(c),n.exit("resourceMarker"),p}function p(c){return ot(c)?Zs(n,y)(c):y(c)}function y(c){return c===41?d(c):Og(n,f,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function f(c){return ot(c)?Zs(n,u)(c):d(c)}function a(c){return s(c)}function u(c){return c===34||c===39||c===40?Ng(n,h,s,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function h(c){return ot(c)?Zs(n,d)(c):d(c)}function d(c){return c===41?(n.enter("resourceMarker"),n.consume(c),n.exit("resourceMarker"),n.exit("resource"),r):s(c)}}function FS(n,r,s){const o=this;return p;function p(a){return Bg.call(o,n,y,f,"reference","referenceMarker","referenceString")(a)}function y(a){return o.parser.defined.includes(An(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(a):s(a)}function f(a){return s(a)}}function qS(n,r,s){return o;function o(y){return n.enter("reference"),n.enter("referenceMarker"),n.consume(y),n.exit("referenceMarker"),p}function p(y){return y===93?(n.enter("referenceMarker"),n.consume(y),n.exit("referenceMarker"),n.exit("reference"),r):s(y)}}const VS={name:"labelStartImage",resolveAll:Vc.resolveAll,tokenize:GS};function GS(n,r,s){const o=this;return p;function p(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),y}function y(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),f):s(a)}function f(a){return a===94&&"_hiddenFootnoteSupport"in o.parser.constructs?s(a):r(a)}}const $S={name:"labelStartLink",resolveAll:Vc.resolveAll,tokenize:YS};function YS(n,r,s){const o=this;return p;function p(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),y}function y(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?s(f):r(f)}}const ac={name:"lineEnding",tokenize:KS};function KS(n,r){return s;function s(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Xe(n,r,"linePrefix")}}const Ea={name:"thematicBreak",tokenize:WS};function WS(n,r,s){let o=0,p;return y;function y(h){return n.enter("thematicBreak"),f(h)}function f(h){return p=h,a(h)}function a(h){return h===p?(n.enter("thematicBreakSequence"),u(h)):o>=3&&(h===null||Te(h))?(n.exit("thematicBreak"),r(h)):s(h)}function u(h){return h===p?(n.consume(h),o++,u):(n.exit("thematicBreakSequence"),Ve(h)?Xe(n,a,"whitespace")(h):a(h))}}const Jt={continuation:{tokenize:JS},exit:tb,name:"list",tokenize:ZS},XS={partial:!0,tokenize:nb},QS={partial:!0,tokenize:eb};function ZS(n,r,s){const o=this,p=o.events[o.events.length-1];let y=p&&p[1].type==="linePrefix"?p[2].sliceSerialize(p[1],!0).length:0,f=0;return a;function a(w){const A=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:Ec(w)){if(o.containerState.type||(o.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),w===42||w===45?n.check(Ea,s,h)(w):h(w);if(!o.interrupt||w===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(w)}return s(w)}function u(w){return Ec(w)&&++f<10?(n.consume(w),u):(!o.interrupt||f<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(n.exit("listItemValue"),h(w)):s(w)}function h(w){return n.enter("listItemMarker"),n.consume(w),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,n.check(rl,o.interrupt?s:d,n.attempt(XS,S,c))}function d(w){return o.containerState.initialBlankLine=!0,y++,S(w)}function c(w){return Ve(w)?(n.enter("listItemPrefixWhitespace"),n.consume(w),n.exit("listItemPrefixWhitespace"),S):s(w)}function S(w){return o.containerState.size=y+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(w)}}function JS(n,r,s){const o=this;return o.containerState._closeFlow=void 0,n.check(rl,p,y);function p(a){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Xe(n,r,"listItemIndent",o.containerState.size+1)(a)}function y(a){return o.containerState.furtherBlankLines||!Ve(a)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,f(a)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(QS,r,f)(a))}function f(a){return o.containerState._closeFlow=!0,o.interrupt=void 0,Xe(n,n.attempt(Jt,r,s),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function eb(n,r,s){const o=this;return Xe(n,p,"listItemIndent",o.containerState.size+1);function p(y){const f=o.events[o.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===o.containerState.size?r(y):s(y)}}function tb(n){n.exit(this.containerState.type)}function nb(n,r,s){const o=this;return Xe(n,p,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function p(y){const f=o.events[o.events.length-1];return!Ve(y)&&f&&f[1].type==="listItemPrefixWhitespace"?r(y):s(y)}}const Dm={name:"setextUnderline",resolveTo:ib,tokenize:rb};function ib(n,r){let s=n.length,o,p,y;for(;s--;)if(n[s][0]==="enter"){if(n[s][1].type==="content"){o=s;break}n[s][1].type==="paragraph"&&(p=s)}else n[s][1].type==="content"&&n.splice(s,1),!y&&n[s][1].type==="definition"&&(y=s);const f={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[p][1].type="setextHeadingText",y?(n.splice(p,0,["enter",f,r]),n.splice(y+1,0,["exit",n[o][1],r]),n[o][1].end={...n[y][1].end}):n[o][1]=f,n.push(["exit",f,r]),n}function rb(n,r,s){const o=this;let p;return y;function y(h){let d=o.events.length,c;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){c=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||c)?(n.enter("setextHeadingLine"),p=h,f(h)):s(h)}function f(h){return n.enter("setextHeadingLineSequence"),a(h)}function a(h){return h===p?(n.consume(h),a):(n.exit("setextHeadingLineSequence"),Ve(h)?Xe(n,u,"lineSuffix")(h):u(h))}function u(h){return h===null||Te(h)?(n.exit("setextHeadingLine"),r(h)):s(h)}}const sb={tokenize:lb};function lb(n){const r=this,s=n.attempt(rl,o,n.attempt(this.parser.constructs.flowInitial,p,Xe(n,n.attempt(this.parser.constructs.flow,p,n.attempt(hS,p)),"linePrefix")));return s;function o(y){if(y===null){n.consume(y);return}return n.enter("lineEndingBlank"),n.consume(y),n.exit("lineEndingBlank"),r.currentConstruct=void 0,s}function p(y){if(y===null){n.consume(y);return}return n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),r.currentConstruct=void 0,s}}const ab={resolveAll:zg()},ob=jg("string"),ub=jg("text");function jg(n){return{resolveAll:zg(n==="text"?cb:void 0),tokenize:r};function r(s){const o=this,p=this.parser.constructs[n],y=s.attempt(p,f,a);return f;function f(d){return h(d)?y(d):a(d)}function a(d){if(d===null){s.consume(d);return}return s.enter("data"),s.consume(d),u}function u(d){return h(d)?(s.exit("data"),y(d)):(s.consume(d),u)}function h(d){if(d===null)return!0;const c=p[d];let S=-1;if(c)for(;++S<c.length;){const w=c[S];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function zg(n){return r;function r(s,o){let p=-1,y;for(;++p<=s.length;)y===void 0?s[p]&&s[p][1].type==="data"&&(y=p,p++):(!s[p]||s[p][1].type!=="data")&&(p!==y+2&&(s[y][1].end=s[p-1][1].end,s.splice(y+2,p-y-2),p=y+2),y=void 0);return n?n(s,o):s}}function cb(n,r){let s=0;for(;++s<=n.length;)if((s===n.length||n[s][1].type==="lineEnding")&&n[s-1][1].type==="data"){const o=n[s-1][1],p=r.sliceStream(o);let y=p.length,f=-1,a=0,u;for(;y--;){const h=p[y];if(typeof h=="string"){for(f=h.length;h.charCodeAt(f-1)===32;)a++,f--;if(f)break;f=-1}else if(h===-2)u=!0,a++;else if(h!==-1){y++;break}}if(r._contentTypeTextTrailing&&s===n.length&&(a=0),a){const h={type:s===n.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:y?f:o.start._bufferIndex+f,_index:o.start._index+y,line:o.end.line,column:o.end.column-a,offset:o.end.offset-a},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(n.splice(s,0,["enter",h,r],["exit",h,r]),s+=2)}s++}return n}const hb={42:Jt,43:Jt,45:Jt,48:Jt,49:Jt,50:Jt,51:Jt,52:Jt,53:Jt,54:Jt,55:Jt,56:Jt,57:Jt,62:Dg},fb={91:gS},db={[-2]:lc,[-1]:lc,32:lc},pb={35:CS,42:Ea,45:[Dm,Ea],60:kS,61:Dm,95:Ea,96:Am,126:Am},mb={38:Mg,92:Rg},gb={[-5]:ac,[-4]:ac,[-3]:ac,33:VS,38:Mg,42:kc,60:[$y,OS],91:$S,92:[SS,Rg],93:Vc,95:kc,96:sS},_b={null:[kc,ab]},vb={null:[42,95]},yb={null:[]},Sb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vb,contentInitial:fb,disable:yb,document:hb,flow:pb,flowInitial:db,insideSpan:_b,string:mb,text:gb},Symbol.toStringTag,{value:"Module"}));function bb(n,r,s){let o={_bufferIndex:-1,_index:0,line:s&&s.line||1,column:s&&s.column||1,offset:s&&s.offset||0};const p={},y=[];let f=[],a=[];const u={attempt:T(M),check:T(D),consume:g,enter:v,exit:k,interrupt:T(D,{interrupt:!0})},h={code:null,containerState:{},defineSkip:x,events:[],now:A,parser:n,previous:null,sliceSerialize:S,sliceStream:w,write:c};let d=r.tokenize.call(h,u);return r.resolveAll&&y.push(r),h;function c(z){return f=Cn(f,z),b(),f[f.length-1]!==null?[]:(E(r,0),h.events=La(y,h.events,h),h.events)}function S(z,q){return wb(w(z),q)}function w(z){return Cb(f,z)}function A(){const{_bufferIndex:z,_index:q,line:F,column:Y,offset:K}=o;return{_bufferIndex:z,_index:q,line:F,column:Y,offset:K}}function x(z){p[z.line]=z.column,B()}function b(){let z;for(;o._index<f.length;){const q=f[o._index];if(typeof q=="string")for(z=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===z&&o._bufferIndex<q.length;)_(q.charCodeAt(o._bufferIndex));else _(q)}}function _(z){d=d(z)}function g(z){Te(z)?(o.line++,o.column=1,o.offset+=z===-3?2:1,B()):z!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===f[o._index].length&&(o._bufferIndex=-1,o._index++)),h.previous=z}function v(z,q){const F=q||{};return F.type=z,F.start=A(),h.events.push(["enter",F,h]),a.push(F),F}function k(z){const q=a.pop();return q.end=A(),h.events.push(["exit",q,h]),q}function M(z,q){E(z,q.from)}function D(z,q){q.restore()}function T(z,q){return F;function F(Y,K,G){let X,J,I,O;return Array.isArray(Y)?V(Y):"tokenize"in Y?V([Y]):j(Y);function j(me){return $;function $(H){const te=H!==null&&me[H],Z=H!==null&&me.null,fe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return V(fe)(H)}}function V(me){return X=me,J=0,me.length===0?G:U(me[J])}function U(me){return $;function $(H){return O=R(),I=me,me.partial||(h.currentConstruct=me),me.name&&h.parser.constructs.disable.null.includes(me.name)?_e():me.tokenize.call(q?Object.assign(Object.create(h),q):h,u,ne,_e)(H)}}function ne(me){return z(I,O),K}function _e(me){return O.restore(),++J<X.length?U(X[J]):G}}}function E(z,q){z.resolveAll&&!y.includes(z)&&y.push(z),z.resolve&&hn(h.events,q,h.events.length-q,z.resolve(h.events.slice(q),h)),z.resolveTo&&(h.events=z.resolveTo(h.events,h))}function R(){const z=A(),q=h.previous,F=h.currentConstruct,Y=h.events.length,K=Array.from(a);return{from:Y,restore:G};function G(){o=z,h.previous=q,h.currentConstruct=F,h.events.length=Y,a=K,B()}}function B(){o.line in p&&o.column<2&&(o.column=p[o.line],o.offset+=p[o.line]-1)}}function Cb(n,r){const s=r.start._index,o=r.start._bufferIndex,p=r.end._index,y=r.end._bufferIndex;let f;if(s===p)f=[n[s].slice(o,y)];else{if(f=n.slice(s,p),o>-1){const a=f[0];typeof a=="string"?f[0]=a.slice(o):f.shift()}y>0&&f.push(n[p].slice(0,y))}return f}function wb(n,r){let s=-1;const o=[];let p;for(;++s<n.length;){const y=n[s];let f;if(typeof y=="string")f=y;else switch(y){case-5:{f="\r";break}case-4:{f=`
62
+ `))&&y()}return N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{className:"message-modal",role:"dialog","aria-modal":"true","aria-label":"Messages",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Messages"}),N.jsxs("p",{className:"muted",children:[f.total," total / ",f.accepted," accepted",s?` · ${s.mode}`:""]})]}),N.jsxs("div",{className:"modal-actions",children:[N.jsx("button",{type:"button",disabled:n,onClick:a,children:"Mark All Done"}),N.jsx("button",{type:"button",disabled:n||f.total===0,onClick:u,children:"Delete All"}),N.jsx("button",{type:"button",onClick:o,children:"Close"})]})]}),N.jsx(b1,{busy:n,maxMessages:null,messages:r,orchestration:s,showControls:!1,showHeader:!1})]})})}function Ri({children:n,onOpenChange:r,open:s,title:o}){return N.jsxs("section",{className:"sidebar-section",children:[N.jsxs("button",{"aria-expanded":s,className:"sidebar-section-toggle",type:"button",onClick:()=>{r==null||r(!s)},children:[N.jsx("span",{children:o}),N.jsx("span",{"aria-hidden":"true",className:"sidebar-section-chevron"})]}),s?N.jsx("div",{className:"sidebar-section-content",children:n}):null]})}function ug(n,r){return n.find(s=>s.role===r)}function I1({activeRole:n,roles:r=Bc,sessions:s,onSelect:o}){return N.jsx("div",{className:"role-tabs",role:"tablist","aria-label":"Role sessions",children:r.map(p=>{const y=ug(s,p.name),f=(y==null?void 0:y.status)==="running"?y.activityStatus??"idle":(y==null?void 0:y.status)??"not_started";return N.jsxs("button",{className:p.name===n?"role-tab is-active":"role-tab",type:"button",role:"tab","aria-selected":p.name===n,onClick:()=>o(p.name),children:[N.jsx("span",{children:p.label}),N.jsx($r,{status:f})]},p.name)})})}const cg=[{value:"default",label:"Default",description:"Account default"},{value:"best",label:"Best",description:"Fable 5 or latest Opus"},{value:"fable",label:"Fable 5",description:"1M context, v2.1.170+"},{value:"opus",label:"Opus",description:"latest Opus"},{value:"opus[1m]",label:"Opus 1M",description:"Force 1M context"},{value:"claude-opus-4-8",label:"Opus 4.8",description:"Current Opus"},{value:"claude-opus-4-8[1m]",label:"Opus 4.8 1M",description:"Opus 4.8 + 1M context"}],hg=[{value:"gpt-5.5",label:"GPT-5.5",description:"Strong Codex reviewer default"},{value:"default",label:"Default",description:"Codex account default"}],fg=[{value:"default",label:"Default",description:"CLI or project default"},{value:"low",label:"Low",description:"Fastest reasoning"},{value:"medium",label:"Medium",description:"Balanced reasoning"},{value:"high",label:"High",description:"Deeper reasoning"},{value:"xhigh",label:"XHigh",description:"Extra high reasoning"},{value:"max",label:"Max",description:"Maximum reasoning"}],dg=[...fg,{value:"ultracode",label:"Ultracode",description:"Claude Code dynamic workflows with xhigh reasoning"}],U1=dg;function P1({role:n,session:r,permissionMode:s,model:o,effort:p,busy:y=!1,onPermissionModeChange:f,onModelChange:a,onEffortChange:u,onStart:h,onResume:d,onStop:c,onRestart:S}){const w=(r==null?void 0:r.status)==="running",A=!!(r!=null&&r.claudeSessionId&&!w),x=!w&&!(r!=null&&r.claudeSessionId),b=n==="codex-reviewer",_=!!(r&&r.permissionMode!==s),g=(r==null?void 0:r.model)??"default",v=!!(r&&g!==o),k=(r==null?void 0:r.effort)??"default",M=!!(r&&k!==p),D=b?hg:cg,T=b?fg:dg;return N.jsxs("div",{className:"session-controls",children:[b?null:N.jsxs("label",{className:"session-option-field permission-mode-field",children:[N.jsxs("span",{children:["Permission",N.jsx("small",{children:r?`current: ${r.permissionMode}${_?" / next launch":""}`:"applies on start"})]}),N.jsxs("select",{value:s,onChange:E=>f(E.target.value),children:[N.jsx("option",{value:"default",children:"默认"}),N.jsx("option",{value:"bypassPermissions",children:"bypassPermissions"})]})]}),N.jsxs("label",{className:"session-option-field model-field",children:[N.jsxs("span",{children:["Model",N.jsx("small",{children:r?`current: ${F1(g,b)}${v?" / next launch":""}`:"applies on start"})]}),N.jsx("select",{value:o,onChange:E=>a(E.target.value),children:D.map(E=>N.jsx("option",{value:E.value,children:E.label},E.value))})]}),N.jsxs("label",{className:"session-option-field effort-field",children:[N.jsxs("span",{children:["Effort",N.jsx("small",{children:r?`current: ${q1(k)}${M?" / next launch":""}`:"applies on start"})]}),N.jsx("select",{value:p,onChange:E=>u(E.target.value),children:T.map(E=>N.jsx("option",{value:E.value,children:E.label},E.value))})]}),N.jsxs("div",{className:"session-toolbar",children:[N.jsx("button",{type:"button",disabled:y||!x,onClick:h,children:"Start"}),N.jsx("button",{type:"button",disabled:y||!A,onClick:d,children:"Resume"}),N.jsx("button",{type:"button",disabled:y||!r,onClick:S,children:"Restart"}),N.jsx("button",{type:"button",disabled:y||!r,onClick:c,children:"Stop"})]})]})}function F1(n,r){var s,o;return r?((s=hg.find(p=>p.value===n))==null?void 0:s.label)??n:((o=cg.find(p=>p.value===n))==null?void 0:o.label)??n}function q1(n){var r;return((r=U1.find(s=>s.value===n))==null?void 0:r.label)??n}function V1(n,r){const s={};return(n[n.length-1]===""?[...n,""]:n).join((s.padRight?" ":"")+","+(s.padLeft===!1?"":" ")).trim()}const G1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y1={};function hm(n,r){return(Y1.jsx?$1:G1).test(n)}const K1=/[ \t\n\f\r]/g;function W1(n){return typeof n=="object"?n.type==="text"?fm(n.value):!1:fm(n)}function fm(n){return n.replace(K1,"")===""}class il{constructor(r,s,o){this.normal=s,this.property=r,o&&(this.space=o)}}il.prototype.normal={};il.prototype.property={};il.prototype.space=void 0;function pg(n,r){const s={},o={};for(const p of n)Object.assign(s,p.property),Object.assign(o,p.normal);return new il(s,o,r)}function bc(n){return n.toLowerCase()}class en{constructor(r,s){this.attribute=s,this.property=r}}en.prototype.attribute="";en.prototype.booleanish=!1;en.prototype.boolean=!1;en.prototype.commaOrSpaceSeparated=!1;en.prototype.commaSeparated=!1;en.prototype.defined=!1;en.prototype.mustUseProperty=!1;en.prototype.number=!1;en.prototype.overloadedBoolean=!1;en.prototype.property="";en.prototype.spaceSeparated=!1;en.prototype.space=void 0;let X1=0;const He=nr(),Tt=nr(),Cc=nr(),ve=nr(),ut=nr(),Yr=nr(),cn=nr();function nr(){return 2**++X1}const wc=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:Tt,commaOrSpaceSeparated:cn,commaSeparated:Yr,number:ve,overloadedBoolean:Cc,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),ic=Object.keys(wc);class jc extends en{constructor(r,s,o,p){let y=-1;if(super(r,s),dm(this,"space",p),typeof o=="number")for(;++y<ic.length;){const f=ic[y];dm(this,ic[y],(o&wc[f])===wc[f])}}}jc.prototype.defined=!0;function dm(n,r,s){s&&(n[r]=s)}function Xr(n){const r={},s={};for(const[o,p]of Object.entries(n.properties)){const y=new jc(o,n.transform(n.attributes||{},o),p,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(y.mustUseProperty=!0),r[o]=y,s[bc(o)]=o,s[bc(y.attribute)]=o}return new il(r,s,n.space)}const mg=Xr({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:ut,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:ve,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:ut,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:Tt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function gg(n,r){return r in n?n[r]:r}function _g(n,r){return gg(n,r.toLowerCase())}const Q1=Xr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yr,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:ut,autoFocus:He,autoPlay:He,blocking:ut,capture:null,charSet:null,checked:He,cite:null,className:ut,cols:ve,colSpan:null,content:null,contentEditable:Tt,controls:He,controlsList:ut,coords:ve|Yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:Cc,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:ut,height:ve,hidden:Cc,high:ve,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:ut,itemRef:ut,itemScope:He,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,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:He,optimum:ve,pattern:null,ping:ut,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:ut,required:He,reversed:He,rows:ve,rowSpan:ve,sandbox:ut,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:Tt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:_g}),Z1=Xr({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:cn,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:ut,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:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,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:Yr,g2:Yr,glyphName:Yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,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:ve,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:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cn,rev:cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cn,requiredFeatures:cn,requiredFonts:cn,requiredFormats:cn,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:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cn,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gg}),vg=Xr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,r){return"xlink:"+r.slice(5).toLowerCase()}}),yg=Xr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_g}),Sg=Xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,r){return"xml:"+r.slice(3).toLowerCase()}}),J1={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"},ey=/[A-Z]/g,pm=/-[a-z]/g,ty=/^data[-\w.:]+$/i;function ny(n,r){const s=bc(r);let o=r,p=en;if(s in n.normal)return n.property[n.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&ty.test(r)){if(r.charAt(4)==="-"){const y=r.slice(5).replace(pm,ry);o="data"+y.charAt(0).toUpperCase()+y.slice(1)}else{const y=r.slice(4);if(!pm.test(y)){let f=y.replace(ey,iy);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}p=jc}return new p(o,r)}function iy(n){return"-"+n.toLowerCase()}function ry(n){return n.charAt(1).toUpperCase()}const sy=pg([mg,Q1,vg,yg,Sg],"html"),zc=pg([mg,Z1,vg,yg,Sg],"svg");function ly(n){return n.join(" ").trim()}var qr={},rc,mm;function ay(){if(mm)return rc;mm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,s=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,p=/^:\s*/,y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
63
+ `,h="/",d="*",c="",S="comment",w="declaration";function A(b,_){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];_=_||{};var g=1,v=1;function k(Y){var K=Y.match(r);K&&(g+=K.length);var G=Y.lastIndexOf(u);v=~G?Y.length-G:v+Y.length}function M(){var Y={line:g,column:v};return function(K){return K.position=new D(Y),R(),K}}function D(Y){this.start=Y,this.end={line:g,column:v},this.source=_.source}D.prototype.content=b;function T(Y){var K=new Error(_.source+":"+g+":"+v+": "+Y);if(K.reason=Y,K.filename=_.source,K.line=g,K.column=v,K.source=b,!_.silent)throw K}function E(Y){var K=Y.exec(b);if(K){var G=K[0];return k(G),b=b.slice(G.length),K}}function R(){E(s)}function B(Y){var K;for(Y=Y||[];K=z();)K!==!1&&Y.push(K);return Y}function z(){var Y=M();if(!(h!=b.charAt(0)||d!=b.charAt(1))){for(var K=2;c!=b.charAt(K)&&(d!=b.charAt(K)||h!=b.charAt(K+1));)++K;if(K+=2,c===b.charAt(K-1))return T("End of comment missing");var G=b.slice(2,K-2);return v+=2,k(G),b=b.slice(K),v+=2,Y({type:S,comment:G})}}function q(){var Y=M(),K=E(o);if(K){if(z(),!E(p))return T("property missing ':'");var G=E(y),X=Y({type:w,property:x(K[0].replace(n,c)),value:G?x(G[0].replace(n,c)):c});return E(f),X}}function F(){var Y=[];B(Y);for(var K;K=q();)K!==!1&&(Y.push(K),B(Y));return Y}return R(),F()}function x(b){return b?b.replace(a,c):c}return rc=A,rc}var gm;function oy(){if(gm)return qr;gm=1;var n=qr&&qr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=s;const r=n(ay());function s(o,p){let y=null;if(!o||typeof o!="string")return y;const f=(0,r.default)(o),a=typeof p=="function";return f.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:d}=u;a?p(h,d,u):d&&(y=y||{},y[h]=d)}),y}return qr}var $s={},_m;function uy(){if(_m)return $s;_m=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,s=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,p=/^-(ms)-/,y=function(h){return!h||s.test(h)||n.test(h)},f=function(h,d){return d.toUpperCase()},a=function(h,d){return"".concat(d,"-")},u=function(h,d){return d===void 0&&(d={}),y(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(p,a):h=h.replace(o,a),h.replace(r,f))};return $s.camelCase=u,$s}var Ys,vm;function cy(){if(vm)return Ys;vm=1;var n=Ys&&Ys.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},r=n(oy()),s=uy();function o(p,y){var f={};return!p||typeof p!="string"||(0,r.default)(p,function(a,u){a&&u&&(f[(0,s.camelCase)(a,y)]=u)}),f}return o.default=o,Ys=o,Ys}var hy=cy();const fy=ig(hy),bg=Cg("end"),Hc=Cg("start");function Cg(n){return r;function r(s){const o=s&&s.position&&s.position[n]||{};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 dy(n){const r=Hc(n),s=bg(n);if(r&&s)return{start:r,end:s}}function Qs(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ym(n.position):"start"in n||"end"in n?ym(n):"line"in n||"column"in n?xc(n):""}function xc(n){return Sm(n&&n.line)+":"+Sm(n&&n.column)}function ym(n){return xc(n&&n.start)+"-"+xc(n&&n.end)}function Sm(n){return n&&typeof n=="number"?n:1}class qt extends Error{constructor(r,s,o){super(),typeof s=="string"&&(o=s,s=void 0);let p="",y={},f=!1;if(s&&("line"in s&&"column"in s?y={place:s}:"start"in s&&"end"in s?y={place:s}:"type"in s?y={ancestors:[s],place:s.position}:y={...s}),typeof r=="string"?p=r:!y.cause&&r&&(f=!0,p=r.message,y.cause=r),!y.ruleId&&!y.source&&typeof o=="string"){const u=o.indexOf(":");u===-1?y.ruleId=o:(y.source=o.slice(0,u),y.ruleId=o.slice(u+1))}if(!y.place&&y.ancestors&&y.ancestors){const u=y.ancestors[y.ancestors.length-1];u&&(y.place=u.position)}const a=y.place&&"start"in y.place?y.place.start:y.place;this.ancestors=y.ancestors||void 0,this.cause=y.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=p,this.line=a?a.line:void 0,this.name=Qs(y.place)||"1:1",this.place=y.place||void 0,this.reason=this.message,this.ruleId=y.ruleId||void 0,this.source=y.source||void 0,this.stack=f&&y.cause&&typeof y.cause.stack=="string"?y.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const Ic={}.hasOwnProperty,py=new Map,my=/[A-Z]/g,gy=new Set(["table","tbody","thead","tfoot","tr"]),_y=new Set(["td","th"]),wg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vy(n,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const s=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=ky(s,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Ey(s,r.jsx,r.jsxs)}const p={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?zc:sy,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},y=xg(p,n,void 0);return y&&typeof y!="string"?y:p.create(n,p.Fragment,{children:y||void 0},void 0)}function xg(n,r,s){if(r.type==="element")return yy(n,r,s);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Sy(n,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Cy(n,r,s);if(r.type==="mdxjsEsm")return by(n,r);if(r.type==="root")return wy(n,r,s);if(r.type==="text")return xy(n,r)}function yy(n,r,s){const o=n.schema;let p=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(p=zc,n.schema=p),n.ancestors.push(r);const y=kg(n,r.tagName,!1),f=Ay(n,r);let a=Pc(n,r);return gy.has(r.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!W1(u):!0})),Eg(n,f,y,r),Uc(f,a),n.ancestors.pop(),n.schema=o,n.create(r,y,f,s)}function Sy(n,r){if(r.data&&r.data.estree&&n.evaluater){const o=r.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}tl(n,r.position)}function by(n,r){if(r.data&&r.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(r.data.estree);tl(n,r.position)}function Cy(n,r,s){const o=n.schema;let p=o;r.name==="svg"&&o.space==="html"&&(p=zc,n.schema=p),n.ancestors.push(r);const y=r.name===null?n.Fragment:kg(n,r.name,!0),f=Ty(n,r),a=Pc(n,r);return Eg(n,f,y,r),Uc(f,a),n.ancestors.pop(),n.schema=o,n.create(r,y,f,s)}function wy(n,r,s){const o={};return Uc(o,Pc(n,r)),n.create(r,n.Fragment,o,s)}function xy(n,r){return r.value}function Eg(n,r,s,o){typeof s!="string"&&s!==n.Fragment&&n.passNode&&(r.node=o)}function Uc(n,r){if(r.length>0){const s=r.length>1?r:r[0];s&&(n.children=s)}}function Ey(n,r,s){return o;function o(p,y,f,a){const h=Array.isArray(f.children)?s:r;return a?h(y,f,a):h(y,f)}}function ky(n,r){return s;function s(o,p,y,f){const a=Array.isArray(y.children),u=Hc(o);return r(p,y,f,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function Ay(n,r){const s={};let o,p;for(p in r.properties)if(p!=="children"&&Ic.call(r.properties,p)){const y=Dy(n,p,r.properties[p]);if(y){const[f,a]=y;n.tableCellAlignToStyle&&f==="align"&&typeof a=="string"&&_y.has(r.tagName)?o=a:s[f]=a}}if(o){const y=s.style||(s.style={});y[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return s}function Ty(n,r){const s={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const y=o.data.estree.body[0];y.type;const f=y.expression;f.type;const a=f.properties[0];a.type,Object.assign(s,n.evaluater.evaluateExpression(a.argument))}else tl(n,r.position);else{const p=o.name;let y;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const a=o.value.data.estree.body[0];a.type,y=n.evaluater.evaluateExpression(a.expression)}else tl(n,r.position);else y=o.value===null?!0:o.value;s[p]=y}return s}function Pc(n,r){const s=[];let o=-1;const p=n.passKeys?new Map:py;for(;++o<r.children.length;){const y=r.children[o];let f;if(n.passKeys){const u=y.type==="element"?y.tagName:y.type==="mdxJsxFlowElement"||y.type==="mdxJsxTextElement"?y.name:void 0;if(u){const h=p.get(u)||0;f=u+"-"+h,p.set(u,h+1)}}const a=xg(n,y,f);a!==void 0&&s.push(a)}return s}function Dy(n,r,s){const o=ny(n.schema,r);if(!(s==null||typeof s=="number"&&Number.isNaN(s))){if(Array.isArray(s)&&(s=o.commaSeparated?V1(s):ly(s)),o.property==="style"){let p=typeof s=="object"?s:Ry(n,String(s));return n.stylePropertyNameCase==="css"&&(p=My(p)),["style",p]}return[n.elementAttributeNameCase==="react"&&o.space?J1[o.property]||o.property:o.attribute,s]}}function Ry(n,r){try{return fy(r,{reactCompat:!0})}catch(s){if(n.ignoreInvalidStyle)return{};const o=s,p=new qt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw p.file=n.filePath||void 0,p.url=wg+"#cannot-parse-style-attribute",p}}function kg(n,r,s){let o;if(!s)o={type:"Literal",value:r};else if(r.includes(".")){const p=r.split(".");let y=-1,f;for(;++y<p.length;){const a=hm(p[y])?{type:"Identifier",name:p[y]}:{type:"Literal",value:p[y]};f=f?{type:"MemberExpression",object:f,property:a,computed:!!(y&&a.type==="Literal"),optional:!1}:a}o=f}else o=hm(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const p=o.value;return Ic.call(n.components,p)?n.components[p]:p}if(n.evaluater)return n.evaluater.evaluateExpression(o);tl(n)}function tl(n,r){const s=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=wg+"#cannot-handle-mdx-estrees-without-createevaluater",s}function My(n){const r={};let s;for(s in n)Ic.call(n,s)&&(r[Ly(s)]=n[s]);return r}function Ly(n){let r=n.replace(my,Oy);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Oy(n){return"-"+n.toLowerCase()}const sc={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"]},By={};function Fc(n,r){const s=By,o=typeof s.includeImageAlt=="boolean"?s.includeImageAlt:!0,p=typeof s.includeHtml=="boolean"?s.includeHtml:!0;return Ag(n,o,p)}function Ag(n,r,s){if(Ny(n)){if("value"in n)return n.type==="html"&&!s?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return bm(n.children,r,s)}return Array.isArray(n)?bm(n,r,s):""}function bm(n,r,s){const o=[];let p=-1;for(;++p<n.length;)o[p]=Ag(n[p],r,s);return o.join("")}function Ny(n){return!!(n&&typeof n=="object")}const Cm=document.createElement("i");function qc(n){const r="&"+n+";";Cm.innerHTML=r;const s=Cm.textContent;return s.charCodeAt(s.length-1)===59&&n!=="semi"||s===r?!1:s}function hn(n,r,s,o){const p=n.length;let y=0,f;if(r<0?r=-r>p?0:p+r:r=r>p?p:r,s=s>0?s:0,o.length<1e4)f=Array.from(o),f.unshift(r,s),n.splice(...f);else for(s&&n.splice(r,s);y<o.length;)f=o.slice(y,y+1e4),f.unshift(r,0),n.splice(...f),y+=1e4,r+=1e4}function Cn(n,r){return n.length>0?(hn(n,n.length,0,r),n):r}const wm={}.hasOwnProperty;function Tg(n){const r={};let s=-1;for(;++s<n.length;)jy(r,n[s]);return r}function jy(n,r){let s;for(s in r){const p=(wm.call(n,s)?n[s]:void 0)||(n[s]={}),y=r[s];let f;if(y)for(f in y){wm.call(p,f)||(p[f]=[]);const a=y[f];zy(p[f],Array.isArray(a)?a:a?[a]:[])}}}function zy(n,r){let s=-1;const o=[];for(;++s<r.length;)(r[s].add==="after"?n:o).push(r[s]);hn(n,0,0,o)}function Dg(n,r){const s=Number.parseInt(n,r);return s<9||s===11||s>13&&s<32||s>126&&s<160||s>55295&&s<57344||s>64975&&s<65008||(s&65535)===65535||(s&65535)===65534||s>1114111?"�":String.fromCodePoint(s)}function An(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Gt=Bi(/[A-Za-z]/),Ft=Bi(/[\dA-Za-z]/),Hy=Bi(/[#-'*+\--9=?A-Z^-~]/);function Aa(n){return n!==null&&(n<32||n===127)}const Ec=Bi(/\d/),Iy=Bi(/[\dA-Fa-f]/),Uy=Bi(/[!-/:-@[-`{-~]/);function Te(n){return n!==null&&n<-2}function ot(n){return n!==null&&(n<0||n===32)}function Ve(n){return n===-2||n===-1||n===32}const Ma=Bi(new RegExp("\\p{P}|\\p{S}","u")),tr=Bi(/\s/);function Bi(n){return r;function r(s){return s!==null&&s>-1&&n.test(String.fromCharCode(s))}}function Qr(n){const r=[];let s=-1,o=0,p=0;for(;++s<n.length;){const y=n.charCodeAt(s);let f="";if(y===37&&Ft(n.charCodeAt(s+1))&&Ft(n.charCodeAt(s+2)))p=2;else if(y<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(y))||(f=String.fromCharCode(y));else if(y>55295&&y<57344){const a=n.charCodeAt(s+1);y<56320&&a>56319&&a<57344?(f=String.fromCharCode(y,a),p=1):f="�"}else f=String.fromCharCode(y);f&&(r.push(n.slice(o,s),encodeURIComponent(f)),o=s+p+1,f=""),p&&(s+=p,p=0)}return r.join("")+n.slice(o)}function Xe(n,r,s,o){const p=o?o-1:Number.POSITIVE_INFINITY;let y=0;return f;function f(u){return Ve(u)?(n.enter(s),a(u)):r(u)}function a(u){return Ve(u)&&y++<p?(n.consume(u),a):(n.exit(s),r(u))}}const Py={tokenize:Fy};function Fy(n){const r=n.attempt(this.parser.constructs.contentInitial,o,p);let s;return r;function o(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),Xe(n,r,"linePrefix")}function p(a){return n.enter("paragraph"),y(a)}function y(a){const u=n.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=u),s=u,f(a)}function f(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return Te(a)?(n.consume(a),n.exit("chunkText"),y):(n.consume(a),f)}}const qy={tokenize:Vy},xm={tokenize:Gy};function Vy(n){const r=this,s=[];let o=0,p,y,f;return a;function a(v){if(o<s.length){const k=s[o];return r.containerState=k[1],n.attempt(k[0].continuation,u,h)(v)}return h(v)}function u(v){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,p&&g();const k=r.events.length;let M=k,D;for(;M--;)if(r.events[M][0]==="exit"&&r.events[M][1].type==="chunkFlow"){D=r.events[M][1].end;break}_(o);let T=k;for(;T<r.events.length;)r.events[T][1].end={...D},T++;return hn(r.events,M+1,0,r.events.slice(k)),r.events.length=T,h(v)}return a(v)}function h(v){if(o===s.length){if(!p)return S(v);if(p.currentConstruct&&p.currentConstruct.concrete)return A(v);r.interrupt=!!(p.currentConstruct&&!p._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(xm,d,c)(v)}function d(v){return p&&g(),_(o),S(v)}function c(v){return r.parser.lazy[r.now().line]=o!==s.length,f=r.now().offset,A(v)}function S(v){return r.containerState={},n.attempt(xm,w,A)(v)}function w(v){return o++,s.push([r.currentConstruct,r.containerState]),S(v)}function A(v){if(v===null){p&&g(),_(0),n.consume(v);return}return p=p||r.parser.flow(r.now()),n.enter("chunkFlow",{_tokenizer:p,contentType:"flow",previous:y}),x(v)}function x(v){if(v===null){b(n.exit("chunkFlow"),!0),_(0),n.consume(v);return}return Te(v)?(n.consume(v),b(n.exit("chunkFlow")),o=0,r.interrupt=void 0,a):(n.consume(v),x)}function b(v,k){const M=r.sliceStream(v);if(k&&M.push(null),v.previous=y,y&&(y.next=v),y=v,p.defineSkip(v.start),p.write(M),r.parser.lazy[v.start.line]){let D=p.events.length;for(;D--;)if(p.events[D][1].start.offset<f&&(!p.events[D][1].end||p.events[D][1].end.offset>f))return;const T=r.events.length;let E=T,R,B;for(;E--;)if(r.events[E][0]==="exit"&&r.events[E][1].type==="chunkFlow"){if(R){B=r.events[E][1].end;break}R=!0}for(_(o),D=T;D<r.events.length;)r.events[D][1].end={...B},D++;hn(r.events,E+1,0,r.events.slice(T)),r.events.length=D}}function _(v){let k=s.length;for(;k-- >v;){const M=s[k];r.containerState=M[1],M[0].exit.call(r,n)}s.length=v}function g(){p.write([null]),y=void 0,p=void 0,r.containerState._closeFlow=void 0}}function Gy(n,r,s){return Xe(n,n.attempt(this.parser.constructs.document,r,s),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Kr(n){if(n===null||ot(n)||tr(n))return 1;if(Ma(n))return 2}function La(n,r,s){const o=[];let p=-1;for(;++p<n.length;){const y=n[p].resolveAll;y&&!o.includes(y)&&(r=y(r,s),o.push(y))}return r}const kc={name:"attention",resolveAll:$y,tokenize:Yy};function $y(n,r){let s=-1,o,p,y,f,a,u,h,d;for(;++s<n.length;)if(n[s][0]==="enter"&&n[s][1].type==="attentionSequence"&&n[s][1]._close){for(o=s;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&r.sliceSerialize(n[o][1]).charCodeAt(0)===r.sliceSerialize(n[s][1]).charCodeAt(0)){if((n[o][1]._close||n[s][1]._open)&&(n[s][1].end.offset-n[s][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[s][1].end.offset-n[s][1].start.offset)%3))continue;u=n[o][1].end.offset-n[o][1].start.offset>1&&n[s][1].end.offset-n[s][1].start.offset>1?2:1;const c={...n[o][1].end},S={...n[s][1].start};Em(c,-u),Em(S,u),f={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...n[o][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...n[s][1].start},end:S},y={type:u>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[s][1].start}},p={type:u>1?"strong":"emphasis",start:{...f.start},end:{...a.end}},n[o][1].end={...f.start},n[s][1].start={...a.end},h=[],n[o][1].end.offset-n[o][1].start.offset&&(h=Cn(h,[["enter",n[o][1],r],["exit",n[o][1],r]])),h=Cn(h,[["enter",p,r],["enter",f,r],["exit",f,r],["enter",y,r]]),h=Cn(h,La(r.parser.constructs.insideSpan.null,n.slice(o+1,s),r)),h=Cn(h,[["exit",y,r],["enter",a,r],["exit",a,r],["exit",p,r]]),n[s][1].end.offset-n[s][1].start.offset?(d=2,h=Cn(h,[["enter",n[s][1],r],["exit",n[s][1],r]])):d=0,hn(n,o-1,s-o+3,h),s=o+h.length-d-2;break}}for(s=-1;++s<n.length;)n[s][1].type==="attentionSequence"&&(n[s][1].type="data");return n}function Yy(n,r){const s=this.parser.constructs.attentionMarkers.null,o=this.previous,p=Kr(o);let y;return f;function f(u){return y=u,n.enter("attentionSequence"),a(u)}function a(u){if(u===y)return n.consume(u),a;const h=n.exit("attentionSequence"),d=Kr(u),c=!d||d===2&&p||s.includes(u),S=!p||p===2&&d||s.includes(o);return h._open=!!(y===42?c:c&&(p||!S)),h._close=!!(y===42?S:S&&(d||!c)),r(u)}}function Em(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Ky={name:"autolink",tokenize:Wy};function Wy(n,r,s){let o=0;return p;function p(w){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(w),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),y}function y(w){return Gt(w)?(n.consume(w),f):w===64?s(w):h(w)}function f(w){return w===43||w===45||w===46||Ft(w)?(o=1,a(w)):h(w)}function a(w){return w===58?(n.consume(w),o=0,u):(w===43||w===45||w===46||Ft(w))&&o++<32?(n.consume(w),a):(o=0,h(w))}function u(w){return w===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(w),n.exit("autolinkMarker"),n.exit("autolink"),r):w===null||w===32||w===60||Aa(w)?s(w):(n.consume(w),u)}function h(w){return w===64?(n.consume(w),d):Hy(w)?(n.consume(w),h):s(w)}function d(w){return Ft(w)?c(w):s(w)}function c(w){return w===46?(n.consume(w),o=0,d):w===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(w),n.exit("autolinkMarker"),n.exit("autolink"),r):S(w)}function S(w){if((w===45||Ft(w))&&o++<63){const A=w===45?S:c;return n.consume(w),A}return s(w)}}const rl={partial:!0,tokenize:Xy};function Xy(n,r,s){return o;function o(y){return Ve(y)?Xe(n,p,"linePrefix")(y):p(y)}function p(y){return y===null||Te(y)?r(y):s(y)}}const Rg={continuation:{tokenize:Zy},exit:Jy,name:"blockQuote",tokenize:Qy};function Qy(n,r,s){const o=this;return p;function p(f){if(f===62){const a=o.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),y}return s(f)}function y(f){return Ve(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(f))}}function Zy(n,r,s){const o=this;return p;function p(f){return Ve(f)?Xe(n,y,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):y(f)}function y(f){return n.attempt(Rg,r,s)(f)}}function Jy(n){n.exit("blockQuote")}const Mg={name:"characterEscape",tokenize:eS};function eS(n,r,s){return o;function o(y){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(y),n.exit("escapeMarker"),p}function p(y){return Uy(y)?(n.enter("characterEscapeValue"),n.consume(y),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):s(y)}}const Lg={name:"characterReference",tokenize:tS};function tS(n,r,s){const o=this;let p=0,y,f;return a;function a(c){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(c),n.exit("characterReferenceMarker"),u}function u(c){return c===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(c),n.exit("characterReferenceMarkerNumeric"),h):(n.enter("characterReferenceValue"),y=31,f=Ft,d(c))}function h(c){return c===88||c===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(c),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),y=6,f=Iy,d):(n.enter("characterReferenceValue"),y=7,f=Ec,d(c))}function d(c){if(c===59&&p){const S=n.exit("characterReferenceValue");return f===Ft&&!qc(o.sliceSerialize(S))?s(c):(n.enter("characterReferenceMarker"),n.consume(c),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return f(c)&&p++<y?(n.consume(c),d):s(c)}}const km={partial:!0,tokenize:iS},Am={concrete:!0,name:"codeFenced",tokenize:nS};function nS(n,r,s){const o=this,p={partial:!0,tokenize:M};let y=0,f=0,a;return u;function u(D){return h(D)}function h(D){const T=o.events[o.events.length-1];return y=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),d(D)}function d(D){return D===a?(f++,n.consume(D),d):f<3?s(D):(n.exit("codeFencedFenceSequence"),Ve(D)?Xe(n,c,"whitespace")(D):c(D))}function c(D){return D===null||Te(D)?(n.exit("codeFencedFence"),o.interrupt?r(D):n.check(km,x,k)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||Te(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),c(D)):Ve(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Xe(n,w,"whitespace")(D)):D===96&&D===a?s(D):(n.consume(D),S)}function w(D){return D===null||Te(D)?c(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(D))}function A(D){return D===null||Te(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),c(D)):D===96&&D===a?s(D):(n.consume(D),A)}function x(D){return n.attempt(p,k,b)(D)}function b(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),_}function _(D){return y>0&&Ve(D)?Xe(n,g,"linePrefix",y+1)(D):g(D)}function g(D){return D===null||Te(D)?n.check(km,x,k)(D):(n.enter("codeFlowValue"),v(D))}function v(D){return D===null||Te(D)?(n.exit("codeFlowValue"),g(D)):(n.consume(D),v)}function k(D){return n.exit("codeFenced"),r(D)}function M(D,T,E){let R=0;return B;function B(K){return D.enter("lineEnding"),D.consume(K),D.exit("lineEnding"),z}function z(K){return D.enter("codeFencedFence"),Ve(K)?Xe(D,q,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):q(K)}function q(K){return K===a?(D.enter("codeFencedFenceSequence"),F(K)):E(K)}function F(K){return K===a?(R++,D.consume(K),F):R>=f?(D.exit("codeFencedFenceSequence"),Ve(K)?Xe(D,Y,"whitespace")(K):Y(K)):E(K)}function Y(K){return K===null||Te(K)?(D.exit("codeFencedFence"),T(K)):E(K)}}}function iS(n,r,s){const o=this;return p;function p(f){return f===null?s(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),y)}function y(f){return o.parser.lazy[o.now().line]?s(f):r(f)}}const lc={name:"codeIndented",tokenize:sS},rS={partial:!0,tokenize:lS};function sS(n,r,s){const o=this;return p;function p(h){return n.enter("codeIndented"),Xe(n,y,"linePrefix",5)(h)}function y(h){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?f(h):s(h)}function f(h){return h===null?u(h):Te(h)?n.attempt(rS,f,u)(h):(n.enter("codeFlowValue"),a(h))}function a(h){return h===null||Te(h)?(n.exit("codeFlowValue"),f(h)):(n.consume(h),a)}function u(h){return n.exit("codeIndented"),r(h)}}function lS(n,r,s){const o=this;return p;function p(f){return o.parser.lazy[o.now().line]?s(f):Te(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),p):Xe(n,y,"linePrefix",5)(f)}function y(f){const a=o.events[o.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(f):Te(f)?p(f):s(f)}}const aS={name:"codeText",previous:uS,resolve:oS,tokenize:cS};function oS(n){let r=n.length-4,s=3,o,p;if((n[s][1].type==="lineEnding"||n[s][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(o=s;++o<r;)if(n[o][1].type==="codeTextData"){n[s][1].type="codeTextPadding",n[r][1].type="codeTextPadding",s+=2,r-=2;break}}for(o=s-1,r++;++o<=r;)p===void 0?o!==r&&n[o][1].type!=="lineEnding"&&(p=o):(o===r||n[o][1].type==="lineEnding")&&(n[p][1].type="codeTextData",o!==p+2&&(n[p][1].end=n[o-1][1].end,n.splice(p+2,o-p-2),r-=o-p-2,o=p+2),p=void 0);return n}function uS(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cS(n,r,s){let o=0,p,y;return f;function f(c){return n.enter("codeText"),n.enter("codeTextSequence"),a(c)}function a(c){return c===96?(n.consume(c),o++,a):(n.exit("codeTextSequence"),u(c))}function u(c){return c===null?s(c):c===32?(n.enter("space"),n.consume(c),n.exit("space"),u):c===96?(y=n.enter("codeTextSequence"),p=0,d(c)):Te(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),u):(n.enter("codeTextData"),h(c))}function h(c){return c===null||c===32||c===96||Te(c)?(n.exit("codeTextData"),u(c)):(n.consume(c),h)}function d(c){return c===96?(n.consume(c),p++,d):p===o?(n.exit("codeTextSequence"),n.exit("codeText"),r(c)):(y.type="codeTextData",h(c))}}class hS{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,s){const o=s??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,s,o){const p=s||0;this.setCursor(Math.trunc(r));const y=this.right.splice(this.right.length-p,Number.POSITIVE_INFINITY);return o&&Ks(this.left,o),y.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Ks(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ks(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const s=this.left.splice(r,Number.POSITIVE_INFINITY);Ks(this.right,s.reverse())}else{const s=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ks(this.left,s.reverse())}}}function Ks(n,r){let s=0;if(r.length<1e4)n.push(...r);else for(;s<r.length;)n.push(...r.slice(s,s+1e4)),s+=1e4}function Og(n){const r={};let s=-1,o,p,y,f,a,u,h;const d=new hS(n);for(;++s<d.length;){for(;s in r;)s=r[s];if(o=d.get(s),s&&o[1].type==="chunkFlow"&&d.get(s-1)[1].type==="listItemPrefix"&&(u=o[1]._tokenizer.events,y=0,y<u.length&&u[y][1].type==="lineEndingBlank"&&(y+=2),y<u.length&&u[y][1].type==="content"))for(;++y<u.length&&u[y][1].type!=="content";)u[y][1].type==="chunkText"&&(u[y][1]._isInFirstContentOfListItem=!0,y++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,fS(d,s)),s=r[s],h=!0);else if(o[1]._container){for(y=s,p=void 0;y--;)if(f=d.get(y),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(p&&(d.get(p)[1].type="lineEndingBlank"),f[1].type="lineEnding",p=y);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;p&&(o[1].end={...d.get(p)[1].start},a=d.slice(p,s),a.unshift(o),d.splice(p,s-p+1,a))}}return hn(n,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function fS(n,r){const s=n.get(r)[1],o=n.get(r)[2];let p=r-1;const y=[];let f=s._tokenizer;f||(f=o.parser[s.contentType](s.start),s._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const a=f.events,u=[],h={};let d,c,S=-1,w=s,A=0,x=0;const b=[x];for(;w;){for(;n.get(++p)[1]!==w;);y.push(p),w._tokenizer||(d=o.sliceStream(w),w.next||d.push(null),c&&f.defineSkip(w.start),w._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(d),w._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),c=w,w=w.next}for(w=s;++S<a.length;)a[S][0]==="exit"&&a[S-1][0]==="enter"&&a[S][1].type===a[S-1][1].type&&a[S][1].start.line!==a[S][1].end.line&&(x=S+1,b.push(x),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(f.events=[],w?(w._tokenizer=void 0,w.previous=void 0):b.pop(),S=b.length;S--;){const _=a.slice(b[S],b[S+1]),g=y.pop();u.push([g,g+_.length-1]),n.splice(g,2,_)}for(u.reverse(),S=-1;++S<u.length;)h[A+u[S][0]]=A+u[S][1],A+=u[S][1]-u[S][0]-1;return h}const dS={resolve:mS,tokenize:gS},pS={partial:!0,tokenize:_S};function mS(n){return Og(n),n}function gS(n,r){let s;return o;function o(a){return n.enter("content"),s=n.enter("chunkContent",{contentType:"content"}),p(a)}function p(a){return a===null?y(a):Te(a)?n.check(pS,f,y)(a):(n.consume(a),p)}function y(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function f(a){return n.consume(a),n.exit("chunkContent"),s.next=n.enter("chunkContent",{contentType:"content",previous:s}),s=s.next,p}}function _S(n,r,s){const o=this;return p;function p(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Xe(n,y,"linePrefix")}function y(f){if(f===null||Te(f))return s(f);const a=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(f):n.interrupt(o.parser.constructs.flow,s,r)(f)}}function Bg(n,r,s,o,p,y,f,a,u){const h=u||Number.POSITIVE_INFINITY;let d=0;return c;function c(_){return _===60?(n.enter(o),n.enter(p),n.enter(y),n.consume(_),n.exit(y),S):_===null||_===32||_===41||Aa(_)?s(_):(n.enter(o),n.enter(f),n.enter(a),n.enter("chunkString",{contentType:"string"}),x(_))}function S(_){return _===62?(n.enter(y),n.consume(_),n.exit(y),n.exit(p),n.exit(o),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),w(_))}function w(_){return _===62?(n.exit("chunkString"),n.exit(a),S(_)):_===null||_===60||Te(_)?s(_):(n.consume(_),_===92?A:w)}function A(_){return _===60||_===62||_===92?(n.consume(_),w):w(_)}function x(_){return!d&&(_===null||_===41||ot(_))?(n.exit("chunkString"),n.exit(a),n.exit(f),n.exit(o),r(_)):d<h&&_===40?(n.consume(_),d++,x):_===41?(n.consume(_),d--,x):_===null||_===32||_===40||Aa(_)?s(_):(n.consume(_),_===92?b:x)}function b(_){return _===40||_===41||_===92?(n.consume(_),x):x(_)}}function Ng(n,r,s,o,p,y){const f=this;let a=0,u;return h;function h(w){return n.enter(o),n.enter(p),n.consume(w),n.exit(p),n.enter(y),d}function d(w){return a>999||w===null||w===91||w===93&&!u||w===94&&!a&&"_hiddenFootnoteSupport"in f.parser.constructs?s(w):w===93?(n.exit(y),n.enter(p),n.consume(w),n.exit(p),n.exit(o),r):Te(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),d):(n.enter("chunkString",{contentType:"string"}),c(w))}function c(w){return w===null||w===91||w===93||Te(w)||a++>999?(n.exit("chunkString"),d(w)):(n.consume(w),u||(u=!Ve(w)),w===92?S:c)}function S(w){return w===91||w===92||w===93?(n.consume(w),a++,c):c(w)}}function jg(n,r,s,o,p,y){let f;return a;function a(S){return S===34||S===39||S===40?(n.enter(o),n.enter(p),n.consume(S),n.exit(p),f=S===40?41:S,u):s(S)}function u(S){return S===f?(n.enter(p),n.consume(S),n.exit(p),n.exit(o),r):(n.enter(y),h(S))}function h(S){return S===f?(n.exit(y),u(f)):S===null?s(S):Te(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Xe(n,h,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===f||S===null||Te(S)?(n.exit("chunkString"),h(S)):(n.consume(S),S===92?c:d)}function c(S){return S===f||S===92?(n.consume(S),d):d(S)}}function Zs(n,r){let s;return o;function o(p){return Te(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),s=!0,o):Ve(p)?Xe(n,o,s?"linePrefix":"lineSuffix")(p):r(p)}}const vS={name:"definition",tokenize:SS},yS={partial:!0,tokenize:bS};function SS(n,r,s){const o=this;let p;return y;function y(w){return n.enter("definition"),f(w)}function f(w){return Ng.call(o,n,a,s,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function a(w){return p=An(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),u):s(w)}function u(w){return ot(w)?Zs(n,h)(w):h(w)}function h(w){return Bg(n,d,s,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function d(w){return n.attempt(yS,c,c)(w)}function c(w){return Ve(w)?Xe(n,S,"whitespace")(w):S(w)}function S(w){return w===null||Te(w)?(n.exit("definition"),o.parser.defined.push(p),r(w)):s(w)}}function bS(n,r,s){return o;function o(a){return ot(a)?Zs(n,p)(a):s(a)}function p(a){return jg(n,y,s,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function y(a){return Ve(a)?Xe(n,f,"whitespace")(a):f(a)}function f(a){return a===null||Te(a)?r(a):s(a)}}const CS={name:"hardBreakEscape",tokenize:wS};function wS(n,r,s){return o;function o(y){return n.enter("hardBreakEscape"),n.consume(y),p}function p(y){return Te(y)?(n.exit("hardBreakEscape"),r(y)):s(y)}}const xS={name:"headingAtx",resolve:ES,tokenize:kS};function ES(n,r){let s=n.length-2,o=3,p,y;return n[o][1].type==="whitespace"&&(o+=2),s-2>o&&n[s][1].type==="whitespace"&&(s-=2),n[s][1].type==="atxHeadingSequence"&&(o===s-1||s-4>o&&n[s-2][1].type==="whitespace")&&(s-=o+1===s?2:4),s>o&&(p={type:"atxHeadingText",start:n[o][1].start,end:n[s][1].end},y={type:"chunkText",start:n[o][1].start,end:n[s][1].end,contentType:"text"},hn(n,o,s-o+1,[["enter",p,r],["enter",y,r],["exit",y,r],["exit",p,r]])),n}function kS(n,r,s){let o=0;return p;function p(d){return n.enter("atxHeading"),y(d)}function y(d){return n.enter("atxHeadingSequence"),f(d)}function f(d){return d===35&&o++<6?(n.consume(d),f):d===null||ot(d)?(n.exit("atxHeadingSequence"),a(d)):s(d)}function a(d){return d===35?(n.enter("atxHeadingSequence"),u(d)):d===null||Te(d)?(n.exit("atxHeading"),r(d)):Ve(d)?Xe(n,a,"whitespace")(d):(n.enter("atxHeadingText"),h(d))}function u(d){return d===35?(n.consume(d),u):(n.exit("atxHeadingSequence"),a(d))}function h(d){return d===null||d===35||ot(d)?(n.exit("atxHeadingText"),a(d)):(n.consume(d),h)}}const AS=["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"],Tm=["pre","script","style","textarea"],TS={concrete:!0,name:"htmlFlow",resolveTo:MS,tokenize:LS},DS={partial:!0,tokenize:BS},RS={partial:!0,tokenize:OS};function MS(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function LS(n,r,s){const o=this;let p,y,f,a,u;return h;function h(U){return d(U)}function d(U){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(U),c}function c(U){return U===33?(n.consume(U),S):U===47?(n.consume(U),y=!0,x):U===63?(n.consume(U),p=3,o.interrupt?r:O):Gt(U)?(n.consume(U),f=String.fromCharCode(U),b):s(U)}function S(U){return U===45?(n.consume(U),p=2,w):U===91?(n.consume(U),p=5,a=0,A):Gt(U)?(n.consume(U),p=4,o.interrupt?r:O):s(U)}function w(U){return U===45?(n.consume(U),o.interrupt?r:O):s(U)}function A(U){const ne="CDATA[";return U===ne.charCodeAt(a++)?(n.consume(U),a===ne.length?o.interrupt?r:q:A):s(U)}function x(U){return Gt(U)?(n.consume(U),f=String.fromCharCode(U),b):s(U)}function b(U){if(U===null||U===47||U===62||ot(U)){const ne=U===47,_e=f.toLowerCase();return!ne&&!y&&Tm.includes(_e)?(p=1,o.interrupt?r(U):q(U)):AS.includes(f.toLowerCase())?(p=6,ne?(n.consume(U),_):o.interrupt?r(U):q(U)):(p=7,o.interrupt&&!o.parser.lazy[o.now().line]?s(U):y?g(U):v(U))}return U===45||Ft(U)?(n.consume(U),f+=String.fromCharCode(U),b):s(U)}function _(U){return U===62?(n.consume(U),o.interrupt?r:q):s(U)}function g(U){return Ve(U)?(n.consume(U),g):B(U)}function v(U){return U===47?(n.consume(U),B):U===58||U===95||Gt(U)?(n.consume(U),k):Ve(U)?(n.consume(U),v):B(U)}function k(U){return U===45||U===46||U===58||U===95||Ft(U)?(n.consume(U),k):M(U)}function M(U){return U===61?(n.consume(U),D):Ve(U)?(n.consume(U),M):v(U)}function D(U){return U===null||U===60||U===61||U===62||U===96?s(U):U===34||U===39?(n.consume(U),u=U,T):Ve(U)?(n.consume(U),D):E(U)}function T(U){return U===u?(n.consume(U),u=null,R):U===null||Te(U)?s(U):(n.consume(U),T)}function E(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||ot(U)?M(U):(n.consume(U),E)}function R(U){return U===47||U===62||Ve(U)?v(U):s(U)}function B(U){return U===62?(n.consume(U),z):s(U)}function z(U){return U===null||Te(U)?q(U):Ve(U)?(n.consume(U),z):s(U)}function q(U){return U===45&&p===2?(n.consume(U),G):U===60&&p===1?(n.consume(U),X):U===62&&p===4?(n.consume(U),j):U===63&&p===3?(n.consume(U),O):U===93&&p===5?(n.consume(U),I):Te(U)&&(p===6||p===7)?(n.exit("htmlFlowData"),n.check(DS,V,F)(U)):U===null||Te(U)?(n.exit("htmlFlowData"),F(U)):(n.consume(U),q)}function F(U){return n.check(RS,Y,V)(U)}function Y(U){return n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),K}function K(U){return U===null||Te(U)?F(U):(n.enter("htmlFlowData"),q(U))}function G(U){return U===45?(n.consume(U),O):q(U)}function X(U){return U===47?(n.consume(U),f="",J):q(U)}function J(U){if(U===62){const ne=f.toLowerCase();return Tm.includes(ne)?(n.consume(U),j):q(U)}return Gt(U)&&f.length<8?(n.consume(U),f+=String.fromCharCode(U),J):q(U)}function I(U){return U===93?(n.consume(U),O):q(U)}function O(U){return U===62?(n.consume(U),j):U===45&&p===2?(n.consume(U),O):q(U)}function j(U){return U===null||Te(U)?(n.exit("htmlFlowData"),V(U)):(n.consume(U),j)}function V(U){return n.exit("htmlFlow"),r(U)}}function OS(n,r,s){const o=this;return p;function p(f){return Te(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),y):s(f)}function y(f){return o.parser.lazy[o.now().line]?s(f):r(f)}}function BS(n,r,s){return o;function o(p){return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),n.attempt(rl,r,s)}}const NS={name:"htmlText",tokenize:jS};function jS(n,r,s){const o=this;let p,y,f;return a;function a(O){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(O),u}function u(O){return O===33?(n.consume(O),h):O===47?(n.consume(O),M):O===63?(n.consume(O),v):Gt(O)?(n.consume(O),E):s(O)}function h(O){return O===45?(n.consume(O),d):O===91?(n.consume(O),y=0,A):Gt(O)?(n.consume(O),g):s(O)}function d(O){return O===45?(n.consume(O),w):s(O)}function c(O){return O===null?s(O):O===45?(n.consume(O),S):Te(O)?(f=c,X(O)):(n.consume(O),c)}function S(O){return O===45?(n.consume(O),w):c(O)}function w(O){return O===62?G(O):O===45?S(O):c(O)}function A(O){const j="CDATA[";return O===j.charCodeAt(y++)?(n.consume(O),y===j.length?x:A):s(O)}function x(O){return O===null?s(O):O===93?(n.consume(O),b):Te(O)?(f=x,X(O)):(n.consume(O),x)}function b(O){return O===93?(n.consume(O),_):x(O)}function _(O){return O===62?G(O):O===93?(n.consume(O),_):x(O)}function g(O){return O===null||O===62?G(O):Te(O)?(f=g,X(O)):(n.consume(O),g)}function v(O){return O===null?s(O):O===63?(n.consume(O),k):Te(O)?(f=v,X(O)):(n.consume(O),v)}function k(O){return O===62?G(O):v(O)}function M(O){return Gt(O)?(n.consume(O),D):s(O)}function D(O){return O===45||Ft(O)?(n.consume(O),D):T(O)}function T(O){return Te(O)?(f=T,X(O)):Ve(O)?(n.consume(O),T):G(O)}function E(O){return O===45||Ft(O)?(n.consume(O),E):O===47||O===62||ot(O)?R(O):s(O)}function R(O){return O===47?(n.consume(O),G):O===58||O===95||Gt(O)?(n.consume(O),B):Te(O)?(f=R,X(O)):Ve(O)?(n.consume(O),R):G(O)}function B(O){return O===45||O===46||O===58||O===95||Ft(O)?(n.consume(O),B):z(O)}function z(O){return O===61?(n.consume(O),q):Te(O)?(f=z,X(O)):Ve(O)?(n.consume(O),z):R(O)}function q(O){return O===null||O===60||O===61||O===62||O===96?s(O):O===34||O===39?(n.consume(O),p=O,F):Te(O)?(f=q,X(O)):Ve(O)?(n.consume(O),q):(n.consume(O),Y)}function F(O){return O===p?(n.consume(O),p=void 0,K):O===null?s(O):Te(O)?(f=F,X(O)):(n.consume(O),F)}function Y(O){return O===null||O===34||O===39||O===60||O===61||O===96?s(O):O===47||O===62||ot(O)?R(O):(n.consume(O),Y)}function K(O){return O===47||O===62||ot(O)?R(O):s(O)}function G(O){return O===62?(n.consume(O),n.exit("htmlTextData"),n.exit("htmlText"),r):s(O)}function X(O){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),J}function J(O){return Ve(O)?Xe(n,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):I(O)}function I(O){return n.enter("htmlTextData"),f(O)}}const Vc={name:"labelEnd",resolveAll:US,resolveTo:PS,tokenize:FS},zS={tokenize:qS},HS={tokenize:VS},IS={tokenize:GS};function US(n){let r=-1;const s=[];for(;++r<n.length;){const o=n[r][1];if(s.push(n[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const p=o.type==="labelImage"?4:2;o.type="data",r+=p}}return n.length!==s.length&&hn(n,0,n.length,s),n}function PS(n,r){let s=n.length,o=0,p,y,f,a;for(;s--;)if(p=n[s][1],y){if(p.type==="link"||p.type==="labelLink"&&p._inactive)break;n[s][0]==="enter"&&p.type==="labelLink"&&(p._inactive=!0)}else if(f){if(n[s][0]==="enter"&&(p.type==="labelImage"||p.type==="labelLink")&&!p._balanced&&(y=s,p.type!=="labelLink")){o=2;break}}else p.type==="labelEnd"&&(f=s);const u={type:n[y][1].type==="labelLink"?"link":"image",start:{...n[y][1].start},end:{...n[n.length-1][1].end}},h={type:"label",start:{...n[y][1].start},end:{...n[f][1].end}},d={type:"labelText",start:{...n[y+o+2][1].end},end:{...n[f-2][1].start}};return a=[["enter",u,r],["enter",h,r]],a=Cn(a,n.slice(y+1,y+o+3)),a=Cn(a,[["enter",d,r]]),a=Cn(a,La(r.parser.constructs.insideSpan.null,n.slice(y+o+4,f-3),r)),a=Cn(a,[["exit",d,r],n[f-2],n[f-1],["exit",h,r]]),a=Cn(a,n.slice(f+1)),a=Cn(a,[["exit",u,r]]),hn(n,y,n.length,a),n}function FS(n,r,s){const o=this;let p=o.events.length,y,f;for(;p--;)if((o.events[p][1].type==="labelImage"||o.events[p][1].type==="labelLink")&&!o.events[p][1]._balanced){y=o.events[p][1];break}return a;function a(S){return y?y._inactive?c(S):(f=o.parser.defined.includes(An(o.sliceSerialize({start:y.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),u):s(S)}function u(S){return S===40?n.attempt(zS,d,f?d:c)(S):S===91?n.attempt(HS,d,f?h:c)(S):f?d(S):c(S)}function h(S){return n.attempt(IS,d,c)(S)}function d(S){return r(S)}function c(S){return y._balanced=!0,s(S)}}function qS(n,r,s){return o;function o(c){return n.enter("resource"),n.enter("resourceMarker"),n.consume(c),n.exit("resourceMarker"),p}function p(c){return ot(c)?Zs(n,y)(c):y(c)}function y(c){return c===41?d(c):Bg(n,f,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function f(c){return ot(c)?Zs(n,u)(c):d(c)}function a(c){return s(c)}function u(c){return c===34||c===39||c===40?jg(n,h,s,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function h(c){return ot(c)?Zs(n,d)(c):d(c)}function d(c){return c===41?(n.enter("resourceMarker"),n.consume(c),n.exit("resourceMarker"),n.exit("resource"),r):s(c)}}function VS(n,r,s){const o=this;return p;function p(a){return Ng.call(o,n,y,f,"reference","referenceMarker","referenceString")(a)}function y(a){return o.parser.defined.includes(An(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(a):s(a)}function f(a){return s(a)}}function GS(n,r,s){return o;function o(y){return n.enter("reference"),n.enter("referenceMarker"),n.consume(y),n.exit("referenceMarker"),p}function p(y){return y===93?(n.enter("referenceMarker"),n.consume(y),n.exit("referenceMarker"),n.exit("reference"),r):s(y)}}const $S={name:"labelStartImage",resolveAll:Vc.resolveAll,tokenize:YS};function YS(n,r,s){const o=this;return p;function p(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),y}function y(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),f):s(a)}function f(a){return a===94&&"_hiddenFootnoteSupport"in o.parser.constructs?s(a):r(a)}}const KS={name:"labelStartLink",resolveAll:Vc.resolveAll,tokenize:WS};function WS(n,r,s){const o=this;return p;function p(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),y}function y(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?s(f):r(f)}}const ac={name:"lineEnding",tokenize:XS};function XS(n,r){return s;function s(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Xe(n,r,"linePrefix")}}const Ea={name:"thematicBreak",tokenize:QS};function QS(n,r,s){let o=0,p;return y;function y(h){return n.enter("thematicBreak"),f(h)}function f(h){return p=h,a(h)}function a(h){return h===p?(n.enter("thematicBreakSequence"),u(h)):o>=3&&(h===null||Te(h))?(n.exit("thematicBreak"),r(h)):s(h)}function u(h){return h===p?(n.consume(h),o++,u):(n.exit("thematicBreakSequence"),Ve(h)?Xe(n,a,"whitespace")(h):a(h))}}const Jt={continuation:{tokenize:tb},exit:ib,name:"list",tokenize:eb},ZS={partial:!0,tokenize:rb},JS={partial:!0,tokenize:nb};function eb(n,r,s){const o=this,p=o.events[o.events.length-1];let y=p&&p[1].type==="linePrefix"?p[2].sliceSerialize(p[1],!0).length:0,f=0;return a;function a(w){const A=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:Ec(w)){if(o.containerState.type||(o.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),w===42||w===45?n.check(Ea,s,h)(w):h(w);if(!o.interrupt||w===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(w)}return s(w)}function u(w){return Ec(w)&&++f<10?(n.consume(w),u):(!o.interrupt||f<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(n.exit("listItemValue"),h(w)):s(w)}function h(w){return n.enter("listItemMarker"),n.consume(w),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,n.check(rl,o.interrupt?s:d,n.attempt(ZS,S,c))}function d(w){return o.containerState.initialBlankLine=!0,y++,S(w)}function c(w){return Ve(w)?(n.enter("listItemPrefixWhitespace"),n.consume(w),n.exit("listItemPrefixWhitespace"),S):s(w)}function S(w){return o.containerState.size=y+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(w)}}function tb(n,r,s){const o=this;return o.containerState._closeFlow=void 0,n.check(rl,p,y);function p(a){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Xe(n,r,"listItemIndent",o.containerState.size+1)(a)}function y(a){return o.containerState.furtherBlankLines||!Ve(a)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,f(a)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(JS,r,f)(a))}function f(a){return o.containerState._closeFlow=!0,o.interrupt=void 0,Xe(n,n.attempt(Jt,r,s),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function nb(n,r,s){const o=this;return Xe(n,p,"listItemIndent",o.containerState.size+1);function p(y){const f=o.events[o.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===o.containerState.size?r(y):s(y)}}function ib(n){n.exit(this.containerState.type)}function rb(n,r,s){const o=this;return Xe(n,p,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function p(y){const f=o.events[o.events.length-1];return!Ve(y)&&f&&f[1].type==="listItemPrefixWhitespace"?r(y):s(y)}}const Dm={name:"setextUnderline",resolveTo:sb,tokenize:lb};function sb(n,r){let s=n.length,o,p,y;for(;s--;)if(n[s][0]==="enter"){if(n[s][1].type==="content"){o=s;break}n[s][1].type==="paragraph"&&(p=s)}else n[s][1].type==="content"&&n.splice(s,1),!y&&n[s][1].type==="definition"&&(y=s);const f={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[p][1].type="setextHeadingText",y?(n.splice(p,0,["enter",f,r]),n.splice(y+1,0,["exit",n[o][1],r]),n[o][1].end={...n[y][1].end}):n[o][1]=f,n.push(["exit",f,r]),n}function lb(n,r,s){const o=this;let p;return y;function y(h){let d=o.events.length,c;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){c=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||c)?(n.enter("setextHeadingLine"),p=h,f(h)):s(h)}function f(h){return n.enter("setextHeadingLineSequence"),a(h)}function a(h){return h===p?(n.consume(h),a):(n.exit("setextHeadingLineSequence"),Ve(h)?Xe(n,u,"lineSuffix")(h):u(h))}function u(h){return h===null||Te(h)?(n.exit("setextHeadingLine"),r(h)):s(h)}}const ab={tokenize:ob};function ob(n){const r=this,s=n.attempt(rl,o,n.attempt(this.parser.constructs.flowInitial,p,Xe(n,n.attempt(this.parser.constructs.flow,p,n.attempt(dS,p)),"linePrefix")));return s;function o(y){if(y===null){n.consume(y);return}return n.enter("lineEndingBlank"),n.consume(y),n.exit("lineEndingBlank"),r.currentConstruct=void 0,s}function p(y){if(y===null){n.consume(y);return}return n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),r.currentConstruct=void 0,s}}const ub={resolveAll:Hg()},cb=zg("string"),hb=zg("text");function zg(n){return{resolveAll:Hg(n==="text"?fb:void 0),tokenize:r};function r(s){const o=this,p=this.parser.constructs[n],y=s.attempt(p,f,a);return f;function f(d){return h(d)?y(d):a(d)}function a(d){if(d===null){s.consume(d);return}return s.enter("data"),s.consume(d),u}function u(d){return h(d)?(s.exit("data"),y(d)):(s.consume(d),u)}function h(d){if(d===null)return!0;const c=p[d];let S=-1;if(c)for(;++S<c.length;){const w=c[S];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function Hg(n){return r;function r(s,o){let p=-1,y;for(;++p<=s.length;)y===void 0?s[p]&&s[p][1].type==="data"&&(y=p,p++):(!s[p]||s[p][1].type!=="data")&&(p!==y+2&&(s[y][1].end=s[p-1][1].end,s.splice(y+2,p-y-2),p=y+2),y=void 0);return n?n(s,o):s}}function fb(n,r){let s=0;for(;++s<=n.length;)if((s===n.length||n[s][1].type==="lineEnding")&&n[s-1][1].type==="data"){const o=n[s-1][1],p=r.sliceStream(o);let y=p.length,f=-1,a=0,u;for(;y--;){const h=p[y];if(typeof h=="string"){for(f=h.length;h.charCodeAt(f-1)===32;)a++,f--;if(f)break;f=-1}else if(h===-2)u=!0,a++;else if(h!==-1){y++;break}}if(r._contentTypeTextTrailing&&s===n.length&&(a=0),a){const h={type:s===n.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:y?f:o.start._bufferIndex+f,_index:o.start._index+y,line:o.end.line,column:o.end.column-a,offset:o.end.offset-a},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(n.splice(s,0,["enter",h,r],["exit",h,r]),s+=2)}s++}return n}const db={42:Jt,43:Jt,45:Jt,48:Jt,49:Jt,50:Jt,51:Jt,52:Jt,53:Jt,54:Jt,55:Jt,56:Jt,57:Jt,62:Rg},pb={91:vS},mb={[-2]:lc,[-1]:lc,32:lc},gb={35:xS,42:Ea,45:[Dm,Ea],60:TS,61:Dm,95:Ea,96:Am,126:Am},_b={38:Lg,92:Mg},vb={[-5]:ac,[-4]:ac,[-3]:ac,33:$S,38:Lg,42:kc,60:[Ky,NS],91:KS,92:[CS,Mg],93:Vc,95:kc,96:aS},yb={null:[kc,ub]},Sb={null:[42,95]},bb={null:[]},Cb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Sb,contentInitial:pb,disable:bb,document:db,flow:gb,flowInitial:mb,insideSpan:yb,string:_b,text:vb},Symbol.toStringTag,{value:"Module"}));function wb(n,r,s){let o={_bufferIndex:-1,_index:0,line:s&&s.line||1,column:s&&s.column||1,offset:s&&s.offset||0};const p={},y=[];let f=[],a=[];const u={attempt:T(M),check:T(D),consume:g,enter:v,exit:k,interrupt:T(D,{interrupt:!0})},h={code:null,containerState:{},defineSkip:x,events:[],now:A,parser:n,previous:null,sliceSerialize:S,sliceStream:w,write:c};let d=r.tokenize.call(h,u);return r.resolveAll&&y.push(r),h;function c(z){return f=Cn(f,z),b(),f[f.length-1]!==null?[]:(E(r,0),h.events=La(y,h.events,h),h.events)}function S(z,q){return Eb(w(z),q)}function w(z){return xb(f,z)}function A(){const{_bufferIndex:z,_index:q,line:F,column:Y,offset:K}=o;return{_bufferIndex:z,_index:q,line:F,column:Y,offset:K}}function x(z){p[z.line]=z.column,B()}function b(){let z;for(;o._index<f.length;){const q=f[o._index];if(typeof q=="string")for(z=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===z&&o._bufferIndex<q.length;)_(q.charCodeAt(o._bufferIndex));else _(q)}}function _(z){d=d(z)}function g(z){Te(z)?(o.line++,o.column=1,o.offset+=z===-3?2:1,B()):z!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===f[o._index].length&&(o._bufferIndex=-1,o._index++)),h.previous=z}function v(z,q){const F=q||{};return F.type=z,F.start=A(),h.events.push(["enter",F,h]),a.push(F),F}function k(z){const q=a.pop();return q.end=A(),h.events.push(["exit",q,h]),q}function M(z,q){E(z,q.from)}function D(z,q){q.restore()}function T(z,q){return F;function F(Y,K,G){let X,J,I,O;return Array.isArray(Y)?V(Y):"tokenize"in Y?V([Y]):j(Y);function j(me){return $;function $(H){const te=H!==null&&me[H],Z=H!==null&&me.null,fe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return V(fe)(H)}}function V(me){return X=me,J=0,me.length===0?G:U(me[J])}function U(me){return $;function $(H){return O=R(),I=me,me.partial||(h.currentConstruct=me),me.name&&h.parser.constructs.disable.null.includes(me.name)?_e():me.tokenize.call(q?Object.assign(Object.create(h),q):h,u,ne,_e)(H)}}function ne(me){return z(I,O),K}function _e(me){return O.restore(),++J<X.length?U(X[J]):G}}}function E(z,q){z.resolveAll&&!y.includes(z)&&y.push(z),z.resolve&&hn(h.events,q,h.events.length-q,z.resolve(h.events.slice(q),h)),z.resolveTo&&(h.events=z.resolveTo(h.events,h))}function R(){const z=A(),q=h.previous,F=h.currentConstruct,Y=h.events.length,K=Array.from(a);return{from:Y,restore:G};function G(){o=z,h.previous=q,h.currentConstruct=F,h.events.length=Y,a=K,B()}}function B(){o.line in p&&o.column<2&&(o.column=p[o.line],o.offset+=p[o.line]-1)}}function xb(n,r){const s=r.start._index,o=r.start._bufferIndex,p=r.end._index,y=r.end._bufferIndex;let f;if(s===p)f=[n[s].slice(o,y)];else{if(f=n.slice(s,p),o>-1){const a=f[0];typeof a=="string"?f[0]=a.slice(o):f.shift()}y>0&&f.push(n[p].slice(0,y))}return f}function Eb(n,r){let s=-1;const o=[];let p;for(;++s<n.length;){const y=n[s];let f;if(typeof y=="string")f=y;else switch(y){case-5:{f="\r";break}case-4:{f=`
64
64
  `;break}case-3:{f=`\r
65
- `;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&p)continue;f=" ";break}default:f=String.fromCharCode(y)}p=y===-2,o.push(f)}return o.join("")}function xb(n){const o={constructs:Ag([Sb,...(n||{}).extensions||[]]),content:p(Iy),defined:[],document:p(Py),flow:p(sb),lazy:{},string:p(ob),text:p(ub)};return o;function p(y){return f;function f(a){return bb(o,y,a)}}}function Eb(n){for(;!Lg(n););return n}const Rm=/[\0\t\n\r]/g;function kb(){let n=1,r="",s=!0,o;return p;function p(y,f,a){const u=[];let h,d,c,S,w;for(y=r+(typeof y=="string"?y.toString():new TextDecoder(f||void 0).decode(y)),c=0,r="",s&&(y.charCodeAt(0)===65279&&c++,s=void 0);c<y.length;){if(Rm.lastIndex=c,h=Rm.exec(y),S=h&&h.index!==void 0?h.index:y.length,w=y.charCodeAt(S),!h){r=y.slice(c);break}if(w===10&&c===S&&o)u.push(-3),o=void 0;else switch(o&&(u.push(-5),o=void 0),c<S&&(u.push(y.slice(c,S)),n+=S-c),w){case 0:{u.push(65533),n++;break}case 9:{for(d=Math.ceil(n/4)*4,u.push(-2);n++<d;)u.push(-1);break}case 10:{u.push(-4),n=1;break}default:o=!0,n=1}c=S+1}return a&&(o&&u.push(-5),r&&u.push(r),u.push(null)),u}}const Ab=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tb(n){return n.replace(Ab,Db)}function Db(n,r,s){if(r)return r;if(s.charCodeAt(0)===35){const p=s.charCodeAt(1),y=p===120||p===88;return Tg(s.slice(y?2:1),y?16:10)}return qc(s)||n}const Hg={}.hasOwnProperty;function Rb(n,r,s){return r&&typeof r=="object"&&(s=r,r=void 0),Mb(s)(Eb(xb(s).document().write(kb()(n,r,!0))))}function Mb(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:y(Oe),autolinkProtocol:R,autolinkEmail:R,atxHeading:y(Ge),blockQuote:y(Z),characterEscape:R,characterReference:R,codeFenced:y(fe),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:y(fe,f),codeText:y(Se,f),codeTextData:R,data:R,codeFlowValue:R,definition:y(Me),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:y(Ie),hardBreakEscape:y(Ue),hardBreakTrailing:y(Ue),htmlFlow:y(ge,f),htmlFlowData:R,htmlText:y(ge,f),htmlTextData:R,image:y($e),label:f,link:y(Oe),listItem:y(Le),listItemValue:S,listOrdered:y(dt,c),listUnordered:y(dt),paragraph:y(wt),reference:U,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:y(Ge),strong:y(ae),thematicBreak:y(et)},exit:{atxHeading:u(),atxHeadingSequence:M,autolink:u(),autolinkEmail:te,autolinkProtocol:H,blockQuote:u(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:me,characterReference:$,codeFenced:u(b),codeFencedFence:x,codeFencedFenceInfo:w,codeFencedFenceMeta:A,codeFlowValue:B,codeIndented:u(_),codeText:u(K),codeTextData:B,data:B,definition:u(),definitionDestinationString:k,definitionLabelString:g,definitionTitleString:v,emphasis:u(),hardBreakEscape:u(q),hardBreakTrailing:u(q),htmlFlow:u(F),htmlFlowData:B,htmlText:u(Y),htmlTextData:B,image:u(X),label:I,labelText:J,lineEnding:z,link:u(G),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ne,resourceDestinationString:O,resourceTitleString:j,resource:V,setextHeading:u(E),setextHeadingLineSequence:T,setextHeadingText:D,strong:u(),thematicBreak:u()}};Ig(r,(n||{}).mdastExtensions||[]);const s={};return o;function o(ce){let ye={type:"root",children:[]};const Ce={stack:[ye],tokenStack:[],config:r,enter:a,exit:h,buffer:f,resume:d,data:s},Ae=[];let Ne=-1;for(;++Ne<ce.length;)if(ce[Ne][1].type==="listOrdered"||ce[Ne][1].type==="listUnordered")if(ce[Ne][0]==="enter")Ae.push(Ne);else{const _t=Ae.pop();Ne=p(ce,_t,Ne)}for(Ne=-1;++Ne<ce.length;){const _t=r[ce[Ne][0]];Hg.call(_t,ce[Ne][1].type)&&_t[ce[Ne][1].type].call(Object.assign({sliceSerialize:ce[Ne][2].sliceSerialize},Ce),ce[Ne][1])}if(Ce.tokenStack.length>0){const _t=Ce.tokenStack[Ce.tokenStack.length-1];(_t[1]||Mm).call(Ce,void 0,_t[0])}for(ye.position={start:Mi(ce.length>0?ce[0][1].start:{line:1,column:1,offset:0}),end:Mi(ce.length>0?ce[ce.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<r.transforms.length;)ye=r.transforms[Ne](ye)||ye;return ye}function p(ce,ye,Ce){let Ae=ye-1,Ne=-1,_t=!1,Pe,Dt,pt,It;for(;++Ae<=Ce;){const tt=ce[Ae];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?Ne++:Ne--,It=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(Pe&&!It&&!Ne&&!pt&&(pt=Ae),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!Ne&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||Ne===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(Pe){let Tn=Ae;for(Dt=void 0;Tn--;){const tn=ce[Tn];if(tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank"){if(tn[0]==="exit")continue;Dt&&(ce[Dt][1].type="lineEndingBlank",_t=!0),tn[1].type="lineEnding",Dt=Tn}else if(!(tn[1].type==="linePrefix"||tn[1].type==="blockQuotePrefix"||tn[1].type==="blockQuotePrefixWhitespace"||tn[1].type==="blockQuoteMarker"||tn[1].type==="listItemIndent"))break}pt&&(!Dt||pt<Dt)&&(Pe._spread=!0),Pe.end=Object.assign({},Dt?ce[Dt][1].start:tt[1].end),ce.splice(Dt||Ae,0,["exit",Pe,tt[2]]),Ae++,Ce++}if(tt[1].type==="listItemPrefix"){const Tn={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};Pe=Tn,ce.splice(Ae,0,["enter",Tn,tt[2]]),Ae++,Ce++,pt=void 0,It=!0}}}return ce[ye][1]._spread=_t,Ce}function y(ce,ye){return Ce;function Ce(Ae){a.call(this,ce(Ae),Ae),ye&&ye.call(this,Ae)}}function f(){this.stack.push({type:"fragment",children:[]})}function a(ce,ye,Ce){this.stack[this.stack.length-1].children.push(ce),this.stack.push(ce),this.tokenStack.push([ye,Ce||void 0]),ce.position={start:Mi(ye.start),end:void 0}}function u(ce){return ye;function ye(Ce){ce&&ce.call(this,Ce),h.call(this,Ce)}}function h(ce,ye){const Ce=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==ce.type&&(ye?ye.call(this,ce,Ae[0]):(Ae[1]||Mm).call(this,ce,Ae[0]));else throw new Error("Cannot close `"+ce.type+"` ("+Qs({start:ce.start,end:ce.end})+"): it’s not open");Ce.position.end=Mi(ce.end)}function d(){return Fc(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function S(ce){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(ce),10),this.data.expectingFirstListItemValue=void 0}}function w(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=ce}function A(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=ce}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce.replace(/(\r?\n|\r)$/g,"")}function g(ce){const ye=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ye,Ce.identifier=An(this.sliceSerialize(ce)).toLowerCase()}function v(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ce}function k(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ce}function M(ce){const ye=this.stack[this.stack.length-1];if(!ye.depth){const Ce=this.sliceSerialize(ce).length;ye.depth=Ce}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function T(ce){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(ce).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function R(ce){const Ce=this.stack[this.stack.length-1].children;let Ae=Ce[Ce.length-1];(!Ae||Ae.type!=="text")&&(Ae=ct(),Ae.position={start:Mi(ce.start),end:void 0},Ce.push(Ae)),this.stack.push(Ae)}function B(ce){const ye=this.stack.pop();ye.value+=this.sliceSerialize(ce),ye.position.end=Mi(ce.end)}function z(ce){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ye.children[ye.children.length-1];Ce.position.end=Mi(ce.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ye.type)&&(R.call(this,ce),B.call(this,ce))}function q(){this.data.atHardBreak=!0}function F(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function Y(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function K(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function G(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=ye,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function X(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=ye,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function J(ce){const ye=this.sliceSerialize(ce),Ce=this.stack[this.stack.length-2];Ce.label=Tb(ye),Ce.identifier=An(ye).toLowerCase()}function I(){const ce=this.stack[this.stack.length-1],ye=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Ae=ce.children;Ce.children=Ae}else Ce.alt=ye}function O(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ce}function j(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ce}function V(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function ne(ce){const ye=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ye,Ce.identifier=An(this.sliceSerialize(ce)).toLowerCase(),this.data.referenceType="full"}function _e(ce){this.data.characterReferenceType=ce.type}function me(ce){const ye=this.sliceSerialize(ce),Ce=this.data.characterReferenceType;let Ae;Ce?(Ae=Tg(ye,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=qc(ye);const Ne=this.stack[this.stack.length-1];Ne.value+=Ae}function $(ce){const ye=this.stack.pop();ye.position.end=Mi(ce.end)}function H(ce){B.call(this,ce);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(ce)}function te(ce){B.call(this,ce);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(ce)}function Z(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function Se(){return{type:"inlineCode",value:""}}function Me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ie(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ue(){return{type:"break"}}function ge(){return{type:"html",value:""}}function $e(){return{type:"image",title:null,url:"",alt:null}}function Oe(){return{type:"link",title:null,url:"",children:[]}}function dt(ce){return{type:"list",ordered:ce.type==="listOrdered",start:null,spread:ce._spread,children:[]}}function Le(ce){return{type:"listItem",spread:ce._spread,checked:null,children:[]}}function wt(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function Mi(n){return{line:n.line,column:n.column,offset:n.offset}}function Ig(n,r){let s=-1;for(;++s<r.length;){const o=r[s];Array.isArray(o)?Ig(n,o):Lb(n,o)}}function Lb(n,r){let s;for(s in r)if(Hg.call(r,s))switch(s){case"canContainEols":{const o=r[s];o&&n[s].push(...o);break}case"transforms":{const o=r[s];o&&n[s].push(...o);break}case"enter":case"exit":{const o=r[s];o&&Object.assign(n[s],o);break}}}function Mm(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+Qs({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+Qs({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Qs({start:r.start,end:r.end})+") is still open")}function Ob(n){const r=this;r.parser=s;function s(o){return Rb(o,{...r.data("settings"),...n,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function Bb(n,r){const s={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(r),!0)};return n.patch(r,s),n.applyData(r,s)}function Nb(n,r){const s={type:"element",tagName:"br",properties:{},children:[]};return n.patch(r,s),[n.applyData(r,s),{type:"text",value:`
66
- `}]}function jb(n,r){const s=r.value?r.value+`
67
- `:"",o={},p=r.lang?r.lang.split(/\s+/):[];p.length>0&&(o.className=["language-"+p[0]]);let y={type:"element",tagName:"code",properties:o,children:[{type:"text",value:s}]};return r.meta&&(y.data={meta:r.meta}),n.patch(r,y),y=n.applyData(r,y),y={type:"element",tagName:"pre",properties:{},children:[y]},n.patch(r,y),y}function zb(n,r){const s={type:"element",tagName:"del",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Hb(n,r){const s={type:"element",tagName:"em",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Ib(n,r){const s=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),p=Qr(o.toLowerCase()),y=n.footnoteOrder.indexOf(o);let f,a=n.footnoteCounts.get(o);a===void 0?(a=0,n.footnoteOrder.push(o),f=n.footnoteOrder.length):f=y+1,a+=1,n.footnoteCounts.set(o,a);const u={type:"element",tagName:"a",properties:{href:"#"+s+"fn-"+p,id:s+"fnref-"+p+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(r,u);const h={type:"element",tagName:"sup",properties:{},children:[u]};return n.patch(r,h),n.applyData(r,h)}function Ub(n,r){const s={type:"element",tagName:"h"+r.depth,properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Pb(n,r){if(n.options.allowDangerousHtml){const s={type:"raw",value:r.value};return n.patch(r,s),n.applyData(r,s)}}function Ug(n,r){const s=r.referenceType;let o="]";if(s==="collapsed"?o+="[]":s==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const p=n.all(r),y=p[0];y&&y.type==="text"?y.value="["+y.value:p.unshift({type:"text",value:"["});const f=p[p.length-1];return f&&f.type==="text"?f.value+=o:p.push({type:"text",value:o}),p}function Fb(n,r){const s=String(r.identifier).toUpperCase(),o=n.definitionById.get(s);if(!o)return Ug(n,r);const p={src:Qr(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(p.title=o.title);const y={type:"element",tagName:"img",properties:p,children:[]};return n.patch(r,y),n.applyData(r,y)}function qb(n,r){const s={src:Qr(r.url)};r.alt!==null&&r.alt!==void 0&&(s.alt=r.alt),r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"img",properties:s,children:[]};return n.patch(r,o),n.applyData(r,o)}function Vb(n,r){const s={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};n.patch(r,s);const o={type:"element",tagName:"code",properties:{},children:[s]};return n.patch(r,o),n.applyData(r,o)}function Gb(n,r){const s=String(r.identifier).toUpperCase(),o=n.definitionById.get(s);if(!o)return Ug(n,r);const p={href:Qr(o.url||"")};o.title!==null&&o.title!==void 0&&(p.title=o.title);const y={type:"element",tagName:"a",properties:p,children:n.all(r)};return n.patch(r,y),n.applyData(r,y)}function $b(n,r){const s={href:Qr(r.url)};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"a",properties:s,children:n.all(r)};return n.patch(r,o),n.applyData(r,o)}function Yb(n,r,s){const o=n.all(r),p=s?Kb(s):Pg(r),y={},f=[];if(typeof r.checked=="boolean"){const d=o[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},o.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),y.className=["task-list-item"]}let a=-1;for(;++a<o.length;){const d=o[a];(p||a!==0||d.type!=="element"||d.tagName!=="p")&&f.push({type:"text",value:`
65
+ `;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&p)continue;f=" ";break}default:f=String.fromCharCode(y)}p=y===-2,o.push(f)}return o.join("")}function kb(n){const o={constructs:Tg([Cb,...(n||{}).extensions||[]]),content:p(Py),defined:[],document:p(qy),flow:p(ab),lazy:{},string:p(cb),text:p(hb)};return o;function p(y){return f;function f(a){return wb(o,y,a)}}}function Ab(n){for(;!Og(n););return n}const Rm=/[\0\t\n\r]/g;function Tb(){let n=1,r="",s=!0,o;return p;function p(y,f,a){const u=[];let h,d,c,S,w;for(y=r+(typeof y=="string"?y.toString():new TextDecoder(f||void 0).decode(y)),c=0,r="",s&&(y.charCodeAt(0)===65279&&c++,s=void 0);c<y.length;){if(Rm.lastIndex=c,h=Rm.exec(y),S=h&&h.index!==void 0?h.index:y.length,w=y.charCodeAt(S),!h){r=y.slice(c);break}if(w===10&&c===S&&o)u.push(-3),o=void 0;else switch(o&&(u.push(-5),o=void 0),c<S&&(u.push(y.slice(c,S)),n+=S-c),w){case 0:{u.push(65533),n++;break}case 9:{for(d=Math.ceil(n/4)*4,u.push(-2);n++<d;)u.push(-1);break}case 10:{u.push(-4),n=1;break}default:o=!0,n=1}c=S+1}return a&&(o&&u.push(-5),r&&u.push(r),u.push(null)),u}}const Db=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rb(n){return n.replace(Db,Mb)}function Mb(n,r,s){if(r)return r;if(s.charCodeAt(0)===35){const p=s.charCodeAt(1),y=p===120||p===88;return Dg(s.slice(y?2:1),y?16:10)}return qc(s)||n}const Ig={}.hasOwnProperty;function Lb(n,r,s){return r&&typeof r=="object"&&(s=r,r=void 0),Ob(s)(Ab(kb(s).document().write(Tb()(n,r,!0))))}function Ob(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:y(Oe),autolinkProtocol:R,autolinkEmail:R,atxHeading:y(Ge),blockQuote:y(Z),characterEscape:R,characterReference:R,codeFenced:y(fe),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:y(fe,f),codeText:y(Se,f),codeTextData:R,data:R,codeFlowValue:R,definition:y(Me),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:y(Ie),hardBreakEscape:y(Ue),hardBreakTrailing:y(Ue),htmlFlow:y(ge,f),htmlFlowData:R,htmlText:y(ge,f),htmlTextData:R,image:y($e),label:f,link:y(Oe),listItem:y(Le),listItemValue:S,listOrdered:y(dt,c),listUnordered:y(dt),paragraph:y(wt),reference:U,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:y(Ge),strong:y(ae),thematicBreak:y(et)},exit:{atxHeading:u(),atxHeadingSequence:M,autolink:u(),autolinkEmail:te,autolinkProtocol:H,blockQuote:u(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:me,characterReference:$,codeFenced:u(b),codeFencedFence:x,codeFencedFenceInfo:w,codeFencedFenceMeta:A,codeFlowValue:B,codeIndented:u(_),codeText:u(K),codeTextData:B,data:B,definition:u(),definitionDestinationString:k,definitionLabelString:g,definitionTitleString:v,emphasis:u(),hardBreakEscape:u(q),hardBreakTrailing:u(q),htmlFlow:u(F),htmlFlowData:B,htmlText:u(Y),htmlTextData:B,image:u(X),label:I,labelText:J,lineEnding:z,link:u(G),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ne,resourceDestinationString:O,resourceTitleString:j,resource:V,setextHeading:u(E),setextHeadingLineSequence:T,setextHeadingText:D,strong:u(),thematicBreak:u()}};Ug(r,(n||{}).mdastExtensions||[]);const s={};return o;function o(ce){let ye={type:"root",children:[]};const Ce={stack:[ye],tokenStack:[],config:r,enter:a,exit:h,buffer:f,resume:d,data:s},Ae=[];let Ne=-1;for(;++Ne<ce.length;)if(ce[Ne][1].type==="listOrdered"||ce[Ne][1].type==="listUnordered")if(ce[Ne][0]==="enter")Ae.push(Ne);else{const _t=Ae.pop();Ne=p(ce,_t,Ne)}for(Ne=-1;++Ne<ce.length;){const _t=r[ce[Ne][0]];Ig.call(_t,ce[Ne][1].type)&&_t[ce[Ne][1].type].call(Object.assign({sliceSerialize:ce[Ne][2].sliceSerialize},Ce),ce[Ne][1])}if(Ce.tokenStack.length>0){const _t=Ce.tokenStack[Ce.tokenStack.length-1];(_t[1]||Mm).call(Ce,void 0,_t[0])}for(ye.position={start:Mi(ce.length>0?ce[0][1].start:{line:1,column:1,offset:0}),end:Mi(ce.length>0?ce[ce.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<r.transforms.length;)ye=r.transforms[Ne](ye)||ye;return ye}function p(ce,ye,Ce){let Ae=ye-1,Ne=-1,_t=!1,Pe,Dt,pt,It;for(;++Ae<=Ce;){const tt=ce[Ae];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?Ne++:Ne--,It=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(Pe&&!It&&!Ne&&!pt&&(pt=Ae),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!Ne&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||Ne===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(Pe){let Tn=Ae;for(Dt=void 0;Tn--;){const tn=ce[Tn];if(tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank"){if(tn[0]==="exit")continue;Dt&&(ce[Dt][1].type="lineEndingBlank",_t=!0),tn[1].type="lineEnding",Dt=Tn}else if(!(tn[1].type==="linePrefix"||tn[1].type==="blockQuotePrefix"||tn[1].type==="blockQuotePrefixWhitespace"||tn[1].type==="blockQuoteMarker"||tn[1].type==="listItemIndent"))break}pt&&(!Dt||pt<Dt)&&(Pe._spread=!0),Pe.end=Object.assign({},Dt?ce[Dt][1].start:tt[1].end),ce.splice(Dt||Ae,0,["exit",Pe,tt[2]]),Ae++,Ce++}if(tt[1].type==="listItemPrefix"){const Tn={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};Pe=Tn,ce.splice(Ae,0,["enter",Tn,tt[2]]),Ae++,Ce++,pt=void 0,It=!0}}}return ce[ye][1]._spread=_t,Ce}function y(ce,ye){return Ce;function Ce(Ae){a.call(this,ce(Ae),Ae),ye&&ye.call(this,Ae)}}function f(){this.stack.push({type:"fragment",children:[]})}function a(ce,ye,Ce){this.stack[this.stack.length-1].children.push(ce),this.stack.push(ce),this.tokenStack.push([ye,Ce||void 0]),ce.position={start:Mi(ye.start),end:void 0}}function u(ce){return ye;function ye(Ce){ce&&ce.call(this,Ce),h.call(this,Ce)}}function h(ce,ye){const Ce=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==ce.type&&(ye?ye.call(this,ce,Ae[0]):(Ae[1]||Mm).call(this,ce,Ae[0]));else throw new Error("Cannot close `"+ce.type+"` ("+Qs({start:ce.start,end:ce.end})+"): it’s not open");Ce.position.end=Mi(ce.end)}function d(){return Fc(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function S(ce){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(ce),10),this.data.expectingFirstListItemValue=void 0}}function w(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=ce}function A(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=ce}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce.replace(/(\r?\n|\r)$/g,"")}function g(ce){const ye=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ye,Ce.identifier=An(this.sliceSerialize(ce)).toLowerCase()}function v(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ce}function k(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ce}function M(ce){const ye=this.stack[this.stack.length-1];if(!ye.depth){const Ce=this.sliceSerialize(ce).length;ye.depth=Ce}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function T(ce){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(ce).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function R(ce){const Ce=this.stack[this.stack.length-1].children;let Ae=Ce[Ce.length-1];(!Ae||Ae.type!=="text")&&(Ae=ct(),Ae.position={start:Mi(ce.start),end:void 0},Ce.push(Ae)),this.stack.push(Ae)}function B(ce){const ye=this.stack.pop();ye.value+=this.sliceSerialize(ce),ye.position.end=Mi(ce.end)}function z(ce){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=ye.children[ye.children.length-1];Ce.position.end=Mi(ce.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ye.type)&&(R.call(this,ce),B.call(this,ce))}function q(){this.data.atHardBreak=!0}function F(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function Y(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function K(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ce}function G(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=ye,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function X(){const ce=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ce.type+="Reference",ce.referenceType=ye,delete ce.url,delete ce.title}else delete ce.identifier,delete ce.label;this.data.referenceType=void 0}function J(ce){const ye=this.sliceSerialize(ce),Ce=this.stack[this.stack.length-2];Ce.label=Rb(ye),Ce.identifier=An(ye).toLowerCase()}function I(){const ce=this.stack[this.stack.length-1],ye=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Ae=ce.children;Ce.children=Ae}else Ce.alt=ye}function O(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ce}function j(){const ce=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ce}function V(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function ne(ce){const ye=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=ye,Ce.identifier=An(this.sliceSerialize(ce)).toLowerCase(),this.data.referenceType="full"}function _e(ce){this.data.characterReferenceType=ce.type}function me(ce){const ye=this.sliceSerialize(ce),Ce=this.data.characterReferenceType;let Ae;Ce?(Ae=Dg(ye,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=qc(ye);const Ne=this.stack[this.stack.length-1];Ne.value+=Ae}function $(ce){const ye=this.stack.pop();ye.position.end=Mi(ce.end)}function H(ce){B.call(this,ce);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(ce)}function te(ce){B.call(this,ce);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(ce)}function Z(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function Se(){return{type:"inlineCode",value:""}}function Me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ie(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ue(){return{type:"break"}}function ge(){return{type:"html",value:""}}function $e(){return{type:"image",title:null,url:"",alt:null}}function Oe(){return{type:"link",title:null,url:"",children:[]}}function dt(ce){return{type:"list",ordered:ce.type==="listOrdered",start:null,spread:ce._spread,children:[]}}function Le(ce){return{type:"listItem",spread:ce._spread,checked:null,children:[]}}function wt(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function et(){return{type:"thematicBreak"}}}function Mi(n){return{line:n.line,column:n.column,offset:n.offset}}function Ug(n,r){let s=-1;for(;++s<r.length;){const o=r[s];Array.isArray(o)?Ug(n,o):Bb(n,o)}}function Bb(n,r){let s;for(s in r)if(Ig.call(r,s))switch(s){case"canContainEols":{const o=r[s];o&&n[s].push(...o);break}case"transforms":{const o=r[s];o&&n[s].push(...o);break}case"enter":case"exit":{const o=r[s];o&&Object.assign(n[s],o);break}}}function Mm(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+Qs({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+Qs({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Qs({start:r.start,end:r.end})+") is still open")}function Nb(n){const r=this;r.parser=s;function s(o){return Lb(o,{...r.data("settings"),...n,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function jb(n,r){const s={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(r),!0)};return n.patch(r,s),n.applyData(r,s)}function zb(n,r){const s={type:"element",tagName:"br",properties:{},children:[]};return n.patch(r,s),[n.applyData(r,s),{type:"text",value:`
66
+ `}]}function Hb(n,r){const s=r.value?r.value+`
67
+ `:"",o={},p=r.lang?r.lang.split(/\s+/):[];p.length>0&&(o.className=["language-"+p[0]]);let y={type:"element",tagName:"code",properties:o,children:[{type:"text",value:s}]};return r.meta&&(y.data={meta:r.meta}),n.patch(r,y),y=n.applyData(r,y),y={type:"element",tagName:"pre",properties:{},children:[y]},n.patch(r,y),y}function Ib(n,r){const s={type:"element",tagName:"del",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Ub(n,r){const s={type:"element",tagName:"em",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Pb(n,r){const s=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),p=Qr(o.toLowerCase()),y=n.footnoteOrder.indexOf(o);let f,a=n.footnoteCounts.get(o);a===void 0?(a=0,n.footnoteOrder.push(o),f=n.footnoteOrder.length):f=y+1,a+=1,n.footnoteCounts.set(o,a);const u={type:"element",tagName:"a",properties:{href:"#"+s+"fn-"+p,id:s+"fnref-"+p+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(r,u);const h={type:"element",tagName:"sup",properties:{},children:[u]};return n.patch(r,h),n.applyData(r,h)}function Fb(n,r){const s={type:"element",tagName:"h"+r.depth,properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function qb(n,r){if(n.options.allowDangerousHtml){const s={type:"raw",value:r.value};return n.patch(r,s),n.applyData(r,s)}}function Pg(n,r){const s=r.referenceType;let o="]";if(s==="collapsed"?o+="[]":s==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const p=n.all(r),y=p[0];y&&y.type==="text"?y.value="["+y.value:p.unshift({type:"text",value:"["});const f=p[p.length-1];return f&&f.type==="text"?f.value+=o:p.push({type:"text",value:o}),p}function Vb(n,r){const s=String(r.identifier).toUpperCase(),o=n.definitionById.get(s);if(!o)return Pg(n,r);const p={src:Qr(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(p.title=o.title);const y={type:"element",tagName:"img",properties:p,children:[]};return n.patch(r,y),n.applyData(r,y)}function Gb(n,r){const s={src:Qr(r.url)};r.alt!==null&&r.alt!==void 0&&(s.alt=r.alt),r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"img",properties:s,children:[]};return n.patch(r,o),n.applyData(r,o)}function $b(n,r){const s={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};n.patch(r,s);const o={type:"element",tagName:"code",properties:{},children:[s]};return n.patch(r,o),n.applyData(r,o)}function Yb(n,r){const s=String(r.identifier).toUpperCase(),o=n.definitionById.get(s);if(!o)return Pg(n,r);const p={href:Qr(o.url||"")};o.title!==null&&o.title!==void 0&&(p.title=o.title);const y={type:"element",tagName:"a",properties:p,children:n.all(r)};return n.patch(r,y),n.applyData(r,y)}function Kb(n,r){const s={href:Qr(r.url)};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"a",properties:s,children:n.all(r)};return n.patch(r,o),n.applyData(r,o)}function Wb(n,r,s){const o=n.all(r),p=s?Xb(s):Fg(r),y={},f=[];if(typeof r.checked=="boolean"){const d=o[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},o.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),y.className=["task-list-item"]}let a=-1;for(;++a<o.length;){const d=o[a];(p||a!==0||d.type!=="element"||d.tagName!=="p")&&f.push({type:"text",value:`
68
68
  `}),d.type==="element"&&d.tagName==="p"&&!p?f.push(...d.children):f.push(d)}const u=o[o.length-1];u&&(p||u.type!=="element"||u.tagName!=="p")&&f.push({type:"text",value:`
69
- `});const h={type:"element",tagName:"li",properties:y,children:f};return n.patch(r,h),n.applyData(r,h)}function Kb(n){let r=!1;if(n.type==="list"){r=n.spread||!1;const s=n.children;let o=-1;for(;!r&&++o<s.length;)r=Pg(s[o])}return r}function Pg(n){const r=n.spread;return r??n.children.length>1}function Wb(n,r){const s={},o=n.all(r);let p=-1;for(typeof r.start=="number"&&r.start!==1&&(s.start=r.start);++p<o.length;){const f=o[p];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){s.className=["contains-task-list"];break}}const y={type:"element",tagName:r.ordered?"ol":"ul",properties:s,children:n.wrap(o,!0)};return n.patch(r,y),n.applyData(r,y)}function Xb(n,r){const s={type:"element",tagName:"p",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Qb(n,r){const s={type:"root",children:n.wrap(n.all(r))};return n.patch(r,s),n.applyData(r,s)}function Zb(n,r){const s={type:"element",tagName:"strong",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Jb(n,r){const s=n.all(r),o=s.shift(),p=[];if(o){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([o],!0)};n.patch(r.children[0],f),p.push(f)}if(s.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(s,!0)},a=Hc(r.children[1]),u=Sg(r.children[r.children.length-1]);a&&u&&(f.position={start:a,end:u}),p.push(f)}const y={type:"element",tagName:"table",properties:{},children:n.wrap(p,!0)};return n.patch(r,y),n.applyData(r,y)}function eC(n,r,s){const o=s?s.children:void 0,y=(o?o.indexOf(r):1)===0?"th":"td",f=s&&s.type==="table"?s.align:void 0,a=f?f.length:r.children.length;let u=-1;const h=[];for(;++u<a;){const c=r.children[u],S={},w=f?f[u]:void 0;w&&(S.align=w);let A={type:"element",tagName:y,properties:S,children:[]};c&&(A.children=n.all(c),n.patch(c,A),A=n.applyData(c,A)),h.push(A)}const d={type:"element",tagName:"tr",properties:{},children:n.wrap(h,!0)};return n.patch(r,d),n.applyData(r,d)}function tC(n,r){const s={type:"element",tagName:"td",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}const Lm=9,Om=32;function nC(n){const r=String(n),s=/\r?\n|\r/g;let o=s.exec(r),p=0;const y=[];for(;o;)y.push(Bm(r.slice(p,o.index),p>0,!0),o[0]),p=o.index+o[0].length,o=s.exec(r);return y.push(Bm(r.slice(p),p>0,!1)),y.join("")}function Bm(n,r,s){let o=0,p=n.length;if(r){let y=n.codePointAt(o);for(;y===Lm||y===Om;)o++,y=n.codePointAt(o)}if(s){let y=n.codePointAt(p-1);for(;y===Lm||y===Om;)p--,y=n.codePointAt(p-1)}return p>o?n.slice(o,p):""}function iC(n,r){const s={type:"text",value:nC(String(r.value))};return n.patch(r,s),n.applyData(r,s)}function rC(n,r){const s={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(r,s),n.applyData(r,s)}const sC={blockquote:Bb,break:Nb,code:jb,delete:zb,emphasis:Hb,footnoteReference:Ib,heading:Ub,html:Pb,imageReference:Fb,image:qb,inlineCode:Vb,linkReference:Gb,link:$b,listItem:Yb,list:Wb,paragraph:Xb,root:Qb,strong:Zb,table:Jb,tableCell:tC,tableRow:eC,text:iC,thematicBreak:rC,toml:Sa,yaml:Sa,definition:Sa,footnoteDefinition:Sa};function Sa(){}const Fg=-1,Oa=0,Js=1,Ta=2,Gc=3,$c=4,Yc=5,Kc=6,qg=7,Vg=8,lC=typeof self=="object"?self:globalThis,Nm=(n,r)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new lC[n](r)},aC=(n,r)=>{const s=(p,y)=>(n.set(y,p),p),o=p=>{if(n.has(p))return n.get(p);const[y,f]=r[p];switch(y){case Oa:case Fg:return s(f,p);case Js:{const a=s([],p);for(const u of f)a.push(o(u));return a}case Ta:{const a=s({},p);for(const[u,h]of f)a[o(u)]=o(h);return a}case Gc:return s(new Date(f),p);case $c:{const{source:a,flags:u}=f;return s(new RegExp(a,u),p)}case Yc:{const a=s(new Map,p);for(const[u,h]of f)a.set(o(u),o(h));return a}case Kc:{const a=s(new Set,p);for(const u of f)a.add(o(u));return a}case qg:{const{name:a,message:u}=f;return s(Nm(a,u),p)}case Vg:return s(BigInt(f),p);case"BigInt":return s(Object(BigInt(f)),p);case"ArrayBuffer":return s(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:a}=new Uint8Array(f);return s(new DataView(a),f)}}return s(Nm(y,f),p)};return o},jm=n=>aC(new Map,n)(0),Vr="",{toString:oC}={},{keys:uC}=Object,Ws=n=>{const r=typeof n;if(r!=="object"||!n)return[Oa,r];const s=oC.call(n).slice(8,-1);switch(s){case"Array":return[Js,Vr];case"Object":return[Ta,Vr];case"Date":return[Gc,Vr];case"RegExp":return[$c,Vr];case"Map":return[Yc,Vr];case"Set":return[Kc,Vr];case"DataView":return[Js,s]}return s.includes("Array")?[Js,s]:s.includes("Error")?[qg,s]:[Ta,s]},ba=([n,r])=>n===Oa&&(r==="function"||r==="symbol"),cC=(n,r,s,o)=>{const p=(f,a)=>{const u=o.push(f)-1;return s.set(a,u),u},y=f=>{if(s.has(f))return s.get(f);let[a,u]=Ws(f);switch(a){case Oa:{let d=f;switch(u){case"bigint":a=Vg,d=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return p([Fg],f)}return p([a,d],f)}case Js:{if(u){let S=f;return u==="DataView"?S=new Uint8Array(f.buffer):u==="ArrayBuffer"&&(S=new Uint8Array(f)),p([u,[...S]],f)}const d=[],c=p([a,d],f);for(const S of f)d.push(y(S));return c}case Ta:{if(u)switch(u){case"BigInt":return p([u,f.toString()],f);case"Boolean":case"Number":case"String":return p([u,f.valueOf()],f)}if(r&&"toJSON"in f)return y(f.toJSON());const d=[],c=p([a,d],f);for(const S of uC(f))(n||!ba(Ws(f[S])))&&d.push([y(S),y(f[S])]);return c}case Gc:return p([a,f.toISOString()],f);case $c:{const{source:d,flags:c}=f;return p([a,{source:d,flags:c}],f)}case Yc:{const d=[],c=p([a,d],f);for(const[S,w]of f)(n||!(ba(Ws(S))||ba(Ws(w))))&&d.push([y(S),y(w)]);return c}case Kc:{const d=[],c=p([a,d],f);for(const S of f)(n||!ba(Ws(S)))&&d.push(y(S));return c}}const{message:h}=f;return p([a,{name:u,message:h}],f)};return y},zm=(n,{json:r,lossy:s}={})=>{const o=[];return cC(!(r||s),!!r,new Map,o)(n),o},Da=typeof structuredClone=="function"?(n,r)=>r&&("json"in r||"lossy"in r)?jm(zm(n,r)):structuredClone(n):(n,r)=>jm(zm(n,r));function hC(n,r){const s=[{type:"text",value:"↩"}];return r>1&&s.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),s}function fC(n,r){return"Back to reference "+(n+1)+(r>1?"-"+r:"")}function dC(n){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",s=n.options.footnoteBackContent||hC,o=n.options.footnoteBackLabel||fC,p=n.options.footnoteLabel||"Footnotes",y=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<n.footnoteOrder.length;){const h=n.footnoteById.get(n.footnoteOrder[u]);if(!h)continue;const d=n.all(h),c=String(h.identifier).toUpperCase(),S=Qr(c.toLowerCase());let w=0;const A=[],x=n.footnoteCounts.get(c);for(;x!==void 0&&++w<=x;){A.length>0&&A.push({type:"text",value:" "});let g=typeof s=="string"?s:s(u,w);typeof g=="string"&&(g={type:"text",value:g}),A.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+S+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(u,w),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const g=b.children[b.children.length-1];g&&g.type==="text"?g.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...A)}else d.push(...A);const _={type:"element",tagName:"li",properties:{id:r+"fn-"+S},children:n.wrap(d,!0)};n.patch(h,_),a.push(_)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:y,properties:{...Da(f),id:"footnote-label"},children:[{type:"text",value:p}]},{type:"text",value:`
69
+ `});const h={type:"element",tagName:"li",properties:y,children:f};return n.patch(r,h),n.applyData(r,h)}function Xb(n){let r=!1;if(n.type==="list"){r=n.spread||!1;const s=n.children;let o=-1;for(;!r&&++o<s.length;)r=Fg(s[o])}return r}function Fg(n){const r=n.spread;return r??n.children.length>1}function Qb(n,r){const s={},o=n.all(r);let p=-1;for(typeof r.start=="number"&&r.start!==1&&(s.start=r.start);++p<o.length;){const f=o[p];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){s.className=["contains-task-list"];break}}const y={type:"element",tagName:r.ordered?"ol":"ul",properties:s,children:n.wrap(o,!0)};return n.patch(r,y),n.applyData(r,y)}function Zb(n,r){const s={type:"element",tagName:"p",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function Jb(n,r){const s={type:"root",children:n.wrap(n.all(r))};return n.patch(r,s),n.applyData(r,s)}function eC(n,r){const s={type:"element",tagName:"strong",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}function tC(n,r){const s=n.all(r),o=s.shift(),p=[];if(o){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([o],!0)};n.patch(r.children[0],f),p.push(f)}if(s.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(s,!0)},a=Hc(r.children[1]),u=bg(r.children[r.children.length-1]);a&&u&&(f.position={start:a,end:u}),p.push(f)}const y={type:"element",tagName:"table",properties:{},children:n.wrap(p,!0)};return n.patch(r,y),n.applyData(r,y)}function nC(n,r,s){const o=s?s.children:void 0,y=(o?o.indexOf(r):1)===0?"th":"td",f=s&&s.type==="table"?s.align:void 0,a=f?f.length:r.children.length;let u=-1;const h=[];for(;++u<a;){const c=r.children[u],S={},w=f?f[u]:void 0;w&&(S.align=w);let A={type:"element",tagName:y,properties:S,children:[]};c&&(A.children=n.all(c),n.patch(c,A),A=n.applyData(c,A)),h.push(A)}const d={type:"element",tagName:"tr",properties:{},children:n.wrap(h,!0)};return n.patch(r,d),n.applyData(r,d)}function iC(n,r){const s={type:"element",tagName:"td",properties:{},children:n.all(r)};return n.patch(r,s),n.applyData(r,s)}const Lm=9,Om=32;function rC(n){const r=String(n),s=/\r?\n|\r/g;let o=s.exec(r),p=0;const y=[];for(;o;)y.push(Bm(r.slice(p,o.index),p>0,!0),o[0]),p=o.index+o[0].length,o=s.exec(r);return y.push(Bm(r.slice(p),p>0,!1)),y.join("")}function Bm(n,r,s){let o=0,p=n.length;if(r){let y=n.codePointAt(o);for(;y===Lm||y===Om;)o++,y=n.codePointAt(o)}if(s){let y=n.codePointAt(p-1);for(;y===Lm||y===Om;)p--,y=n.codePointAt(p-1)}return p>o?n.slice(o,p):""}function sC(n,r){const s={type:"text",value:rC(String(r.value))};return n.patch(r,s),n.applyData(r,s)}function lC(n,r){const s={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(r,s),n.applyData(r,s)}const aC={blockquote:jb,break:zb,code:Hb,delete:Ib,emphasis:Ub,footnoteReference:Pb,heading:Fb,html:qb,imageReference:Vb,image:Gb,inlineCode:$b,linkReference:Yb,link:Kb,listItem:Wb,list:Qb,paragraph:Zb,root:Jb,strong:eC,table:tC,tableCell:iC,tableRow:nC,text:sC,thematicBreak:lC,toml:Sa,yaml:Sa,definition:Sa,footnoteDefinition:Sa};function Sa(){}const qg=-1,Oa=0,Js=1,Ta=2,Gc=3,$c=4,Yc=5,Kc=6,Vg=7,Gg=8,oC=typeof self=="object"?self:globalThis,Nm=(n,r)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new oC[n](r)},uC=(n,r)=>{const s=(p,y)=>(n.set(y,p),p),o=p=>{if(n.has(p))return n.get(p);const[y,f]=r[p];switch(y){case Oa:case qg:return s(f,p);case Js:{const a=s([],p);for(const u of f)a.push(o(u));return a}case Ta:{const a=s({},p);for(const[u,h]of f)a[o(u)]=o(h);return a}case Gc:return s(new Date(f),p);case $c:{const{source:a,flags:u}=f;return s(new RegExp(a,u),p)}case Yc:{const a=s(new Map,p);for(const[u,h]of f)a.set(o(u),o(h));return a}case Kc:{const a=s(new Set,p);for(const u of f)a.add(o(u));return a}case Vg:{const{name:a,message:u}=f;return s(Nm(a,u),p)}case Gg:return s(BigInt(f),p);case"BigInt":return s(Object(BigInt(f)),p);case"ArrayBuffer":return s(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:a}=new Uint8Array(f);return s(new DataView(a),f)}}return s(Nm(y,f),p)};return o},jm=n=>uC(new Map,n)(0),Vr="",{toString:cC}={},{keys:hC}=Object,Ws=n=>{const r=typeof n;if(r!=="object"||!n)return[Oa,r];const s=cC.call(n).slice(8,-1);switch(s){case"Array":return[Js,Vr];case"Object":return[Ta,Vr];case"Date":return[Gc,Vr];case"RegExp":return[$c,Vr];case"Map":return[Yc,Vr];case"Set":return[Kc,Vr];case"DataView":return[Js,s]}return s.includes("Array")?[Js,s]:s.includes("Error")?[Vg,s]:[Ta,s]},ba=([n,r])=>n===Oa&&(r==="function"||r==="symbol"),fC=(n,r,s,o)=>{const p=(f,a)=>{const u=o.push(f)-1;return s.set(a,u),u},y=f=>{if(s.has(f))return s.get(f);let[a,u]=Ws(f);switch(a){case Oa:{let d=f;switch(u){case"bigint":a=Gg,d=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return p([qg],f)}return p([a,d],f)}case Js:{if(u){let S=f;return u==="DataView"?S=new Uint8Array(f.buffer):u==="ArrayBuffer"&&(S=new Uint8Array(f)),p([u,[...S]],f)}const d=[],c=p([a,d],f);for(const S of f)d.push(y(S));return c}case Ta:{if(u)switch(u){case"BigInt":return p([u,f.toString()],f);case"Boolean":case"Number":case"String":return p([u,f.valueOf()],f)}if(r&&"toJSON"in f)return y(f.toJSON());const d=[],c=p([a,d],f);for(const S of hC(f))(n||!ba(Ws(f[S])))&&d.push([y(S),y(f[S])]);return c}case Gc:return p([a,f.toISOString()],f);case $c:{const{source:d,flags:c}=f;return p([a,{source:d,flags:c}],f)}case Yc:{const d=[],c=p([a,d],f);for(const[S,w]of f)(n||!(ba(Ws(S))||ba(Ws(w))))&&d.push([y(S),y(w)]);return c}case Kc:{const d=[],c=p([a,d],f);for(const S of f)(n||!ba(Ws(S)))&&d.push(y(S));return c}}const{message:h}=f;return p([a,{name:u,message:h}],f)};return y},zm=(n,{json:r,lossy:s}={})=>{const o=[];return fC(!(r||s),!!r,new Map,o)(n),o},Da=typeof structuredClone=="function"?(n,r)=>r&&("json"in r||"lossy"in r)?jm(zm(n,r)):structuredClone(n):(n,r)=>jm(zm(n,r));function dC(n,r){const s=[{type:"text",value:"↩"}];return r>1&&s.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),s}function pC(n,r){return"Back to reference "+(n+1)+(r>1?"-"+r:"")}function mC(n){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",s=n.options.footnoteBackContent||dC,o=n.options.footnoteBackLabel||pC,p=n.options.footnoteLabel||"Footnotes",y=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<n.footnoteOrder.length;){const h=n.footnoteById.get(n.footnoteOrder[u]);if(!h)continue;const d=n.all(h),c=String(h.identifier).toUpperCase(),S=Qr(c.toLowerCase());let w=0;const A=[],x=n.footnoteCounts.get(c);for(;x!==void 0&&++w<=x;){A.length>0&&A.push({type:"text",value:" "});let g=typeof s=="string"?s:s(u,w);typeof g=="string"&&(g={type:"text",value:g}),A.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+S+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(u,w),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const g=b.children[b.children.length-1];g&&g.type==="text"?g.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...A)}else d.push(...A);const _={type:"element",tagName:"li",properties:{id:r+"fn-"+S},children:n.wrap(d,!0)};n.patch(h,_),a.push(_)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:y,properties:{...Da(f),id:"footnote-label"},children:[{type:"text",value:p}]},{type:"text",value:`
70
70
  `},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:`
71
- `}]}}const Ba=(function(n){if(n==null)return _C;if(typeof n=="function")return Na(n);if(typeof n=="object")return Array.isArray(n)?pC(n):mC(n);if(typeof n=="string")return gC(n);throw new Error("Expected function, string, or object as test")});function pC(n){const r=[];let s=-1;for(;++s<n.length;)r[s]=Ba(n[s]);return Na(o);function o(...p){let y=-1;for(;++y<r.length;)if(r[y].apply(this,p))return!0;return!1}}function mC(n){const r=n;return Na(s);function s(o){const p=o;let y;for(y in n)if(p[y]!==r[y])return!1;return!0}}function gC(n){return Na(r);function r(s){return s&&s.type===n}}function Na(n){return r;function r(s,o,p){return!!(vC(s)&&n.call(this,s,typeof o=="number"?o:void 0,p||void 0))}}function _C(){return!0}function vC(n){return n!==null&&typeof n=="object"&&"type"in n}const Gg=[],yC=!0,Ac=!1,SC="skip";function $g(n,r,s,o){let p;typeof r=="function"&&typeof s!="function"?(o=s,s=r):p=r;const y=Ba(p),f=o?-1:1;a(n,void 0,[])();function a(u,h,d){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const w=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(u.type+(w?"<"+w+">":""))+")"})}return S;function S(){let w=Gg,A,x,b;if((!r||y(u,h,d[d.length-1]||void 0))&&(w=bC(s(u,d)),w[0]===Ac))return w;if("children"in u&&u.children){const _=u;if(_.children&&w[0]!==SC)for(x=(o?_.children.length:-1)+f,b=d.concat(_);x>-1&&x<_.children.length;){const g=_.children[x];if(A=a(g,x,b)(),A[0]===Ac)return A;x=typeof A[1]=="number"?A[1]:x+f}}return w}}}function bC(n){return Array.isArray(n)?n:typeof n=="number"?[yC,n]:n==null?Gg:[n]}function Wc(n,r,s,o){let p,y,f;typeof r=="function"&&typeof s!="function"?(y=void 0,f=r,p=s):(y=r,f=s,p=o),$g(n,y,a,p);function a(u,h){const d=h[h.length-1],c=d?d.children.indexOf(u):void 0;return f(u,c,d)}}const Tc={}.hasOwnProperty,CC={};function wC(n,r){const s=r||CC,o=new Map,p=new Map,y=new Map,f={...sC,...s.handlers},a={all:h,applyData:EC,definitionById:o,footnoteById:p,footnoteCounts:y,footnoteOrder:[],handlers:f,one:u,options:s,patch:xC,wrap:AC};return Wc(n,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?o:p,S=String(d.identifier).toUpperCase();c.has(S)||c.set(S,d)}}),a;function u(d,c){const S=d.type,w=a.handlers[S];if(Tc.call(a.handlers,S)&&w)return w(a,d,c);if(a.options.passThrough&&a.options.passThrough.includes(S)){if("children"in d){const{children:x,...b}=d,_=Da(b);return _.children=a.all(d),_}return Da(d)}return(a.options.unknownHandler||kC)(a,d,c)}function h(d){const c=[];if("children"in d){const S=d.children;let w=-1;for(;++w<S.length;){const A=a.one(S[w],d);if(A){if(w&&S[w-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Hm(A.value)),!Array.isArray(A)&&A.type==="element")){const x=A.children[0];x&&x.type==="text"&&(x.value=Hm(x.value))}Array.isArray(A)?c.push(...A):c.push(A)}}}return c}}function xC(n,r){n.position&&(r.position=hy(n))}function EC(n,r){let s=r;if(n&&n.data){const o=n.data.hName,p=n.data.hChildren,y=n.data.hProperties;if(typeof o=="string")if(s.type==="element")s.tagName=o;else{const f="children"in s?s.children:[s];s={type:"element",tagName:o,properties:{},children:f}}s.type==="element"&&y&&Object.assign(s.properties,Da(y)),"children"in s&&s.children&&p!==null&&p!==void 0&&(s.children=p)}return s}function kC(n,r){const s=r.data||{},o="value"in r&&!(Tc.call(s,"hProperties")||Tc.call(s,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:n.all(r)};return n.patch(r,o),n.applyData(r,o)}function AC(n,r){const s=[];let o=-1;for(r&&s.push({type:"text",value:`
71
+ `}]}}const Ba=(function(n){if(n==null)return yC;if(typeof n=="function")return Na(n);if(typeof n=="object")return Array.isArray(n)?gC(n):_C(n);if(typeof n=="string")return vC(n);throw new Error("Expected function, string, or object as test")});function gC(n){const r=[];let s=-1;for(;++s<n.length;)r[s]=Ba(n[s]);return Na(o);function o(...p){let y=-1;for(;++y<r.length;)if(r[y].apply(this,p))return!0;return!1}}function _C(n){const r=n;return Na(s);function s(o){const p=o;let y;for(y in n)if(p[y]!==r[y])return!1;return!0}}function vC(n){return Na(r);function r(s){return s&&s.type===n}}function Na(n){return r;function r(s,o,p){return!!(SC(s)&&n.call(this,s,typeof o=="number"?o:void 0,p||void 0))}}function yC(){return!0}function SC(n){return n!==null&&typeof n=="object"&&"type"in n}const $g=[],bC=!0,Ac=!1,CC="skip";function Yg(n,r,s,o){let p;typeof r=="function"&&typeof s!="function"?(o=s,s=r):p=r;const y=Ba(p),f=o?-1:1;a(n,void 0,[])();function a(u,h,d){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const w=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(u.type+(w?"<"+w+">":""))+")"})}return S;function S(){let w=$g,A,x,b;if((!r||y(u,h,d[d.length-1]||void 0))&&(w=wC(s(u,d)),w[0]===Ac))return w;if("children"in u&&u.children){const _=u;if(_.children&&w[0]!==CC)for(x=(o?_.children.length:-1)+f,b=d.concat(_);x>-1&&x<_.children.length;){const g=_.children[x];if(A=a(g,x,b)(),A[0]===Ac)return A;x=typeof A[1]=="number"?A[1]:x+f}}return w}}}function wC(n){return Array.isArray(n)?n:typeof n=="number"?[bC,n]:n==null?$g:[n]}function Wc(n,r,s,o){let p,y,f;typeof r=="function"&&typeof s!="function"?(y=void 0,f=r,p=s):(y=r,f=s,p=o),Yg(n,y,a,p);function a(u,h){const d=h[h.length-1],c=d?d.children.indexOf(u):void 0;return f(u,c,d)}}const Tc={}.hasOwnProperty,xC={};function EC(n,r){const s=r||xC,o=new Map,p=new Map,y=new Map,f={...aC,...s.handlers},a={all:h,applyData:AC,definitionById:o,footnoteById:p,footnoteCounts:y,footnoteOrder:[],handlers:f,one:u,options:s,patch:kC,wrap:DC};return Wc(n,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?o:p,S=String(d.identifier).toUpperCase();c.has(S)||c.set(S,d)}}),a;function u(d,c){const S=d.type,w=a.handlers[S];if(Tc.call(a.handlers,S)&&w)return w(a,d,c);if(a.options.passThrough&&a.options.passThrough.includes(S)){if("children"in d){const{children:x,...b}=d,_=Da(b);return _.children=a.all(d),_}return Da(d)}return(a.options.unknownHandler||TC)(a,d,c)}function h(d){const c=[];if("children"in d){const S=d.children;let w=-1;for(;++w<S.length;){const A=a.one(S[w],d);if(A){if(w&&S[w-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Hm(A.value)),!Array.isArray(A)&&A.type==="element")){const x=A.children[0];x&&x.type==="text"&&(x.value=Hm(x.value))}Array.isArray(A)?c.push(...A):c.push(A)}}}return c}}function kC(n,r){n.position&&(r.position=dy(n))}function AC(n,r){let s=r;if(n&&n.data){const o=n.data.hName,p=n.data.hChildren,y=n.data.hProperties;if(typeof o=="string")if(s.type==="element")s.tagName=o;else{const f="children"in s?s.children:[s];s={type:"element",tagName:o,properties:{},children:f}}s.type==="element"&&y&&Object.assign(s.properties,Da(y)),"children"in s&&s.children&&p!==null&&p!==void 0&&(s.children=p)}return s}function TC(n,r){const s=r.data||{},o="value"in r&&!(Tc.call(s,"hProperties")||Tc.call(s,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:n.all(r)};return n.patch(r,o),n.applyData(r,o)}function DC(n,r){const s=[];let o=-1;for(r&&s.push({type:"text",value:`
72
72
  `});++o<n.length;)o&&s.push({type:"text",value:`
73
73
  `}),s.push(n[o]);return r&&n.length>0&&s.push({type:"text",value:`
74
- `}),s}function Hm(n){let r=0,s=n.charCodeAt(r);for(;s===9||s===32;)r++,s=n.charCodeAt(r);return n.slice(r)}function Im(n,r){const s=wC(n,r),o=s.one(n,void 0),p=dC(s),y=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return p&&y.children.push({type:"text",value:`
75
- `},p),y}function TC(n,r){return n&&"run"in n?async function(s,o){const p=Im(s,{file:o,...r});await n.run(p,o)}:function(s,o){return Im(s,{file:o,...n||r})}}function Um(n){if(n)throw n}var oc,Pm;function DC(){if(Pm)return oc;Pm=1;var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},y=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var d=n.call(h,"constructor"),c=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!c)return!1;var S;for(S in h);return typeof S>"u"||n.call(h,S)},f=function(h,d){s&&d.name==="__proto__"?s(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},a=function(h,d){if(d==="__proto__")if(n.call(h,d)){if(o)return o(h,d).value}else return;return h[d]};return oc=function u(){var h,d,c,S,w,A,x=arguments[0],b=1,_=arguments.length,g=!1;for(typeof x=="boolean"&&(g=x,x=arguments[1]||{},b=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});b<_;++b)if(h=arguments[b],h!=null)for(d in h)c=a(x,d),S=a(h,d),x!==S&&(g&&S&&(y(S)||(w=p(S)))?(w?(w=!1,A=c&&p(c)?c:[]):A=c&&y(c)?c:{},f(x,{name:d,newValue:u(g,A,S)})):typeof S<"u"&&f(x,{name:d,newValue:S}));return x},oc}var RC=DC();const uc=ig(RC);function Dc(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function MC(){const n=[],r={run:s,use:o};return r;function s(...p){let y=-1;const f=p.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);a(null,...p);function a(u,...h){const d=n[++y];let c=-1;if(u){f(u);return}for(;++c<p.length;)(h[c]===null||h[c]===void 0)&&(h[c]=p[c]);p=h,d?LC(d,a)(...h):f(null,...h)}}function o(p){if(typeof p!="function")throw new TypeError("Expected `middelware` to be a function, not "+p);return n.push(p),r}}function LC(n,r){let s;return o;function o(...f){const a=n.length>f.length;let u;a&&f.push(p);try{u=n.apply(this,f)}catch(h){const d=h;if(a&&s)throw d;return p(d)}a||(u&&u.then&&typeof u.then=="function"?u.then(y,p):u instanceof Error?p(u):y(u))}function p(f,...a){s||(s=!0,r(f,...a))}function y(f){p(null,f)}}const Bn={basename:OC,dirname:BC,extname:NC,join:jC,sep:"/"};function OC(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');sl(n);let s=0,o=-1,p=n.length,y;if(r===void 0||r.length===0||r.length>n.length){for(;p--;)if(n.codePointAt(p)===47){if(y){s=p+1;break}}else o<0&&(y=!0,o=p+1);return o<0?"":n.slice(s,o)}if(r===n)return"";let f=-1,a=r.length-1;for(;p--;)if(n.codePointAt(p)===47){if(y){s=p+1;break}}else f<0&&(y=!0,f=p+1),a>-1&&(n.codePointAt(p)===r.codePointAt(a--)?a<0&&(o=p):(a=-1,o=f));return s===o?o=f:o<0&&(o=n.length),n.slice(s,o)}function BC(n){if(sl(n),n.length===0)return".";let r=-1,s=n.length,o;for(;--s;)if(n.codePointAt(s)===47){if(o){r=s;break}}else o||(o=!0);return r<0?n.codePointAt(0)===47?"/":".":r===1&&n.codePointAt(0)===47?"//":n.slice(0,r)}function NC(n){sl(n);let r=n.length,s=-1,o=0,p=-1,y=0,f;for(;r--;){const a=n.codePointAt(r);if(a===47){if(f){o=r+1;break}continue}s<0&&(f=!0,s=r+1),a===46?p<0?p=r:y!==1&&(y=1):p>-1&&(y=-1)}return p<0||s<0||y===0||y===1&&p===s-1&&p===o+1?"":n.slice(p,s)}function jC(...n){let r=-1,s;for(;++r<n.length;)sl(n[r]),n[r]&&(s=s===void 0?n[r]:s+"/"+n[r]);return s===void 0?".":zC(s)}function zC(n){sl(n);const r=n.codePointAt(0)===47;let s=HC(n,!r);return s.length===0&&!r&&(s="."),s.length>0&&n.codePointAt(n.length-1)===47&&(s+="/"),r?"/"+s:s}function HC(n,r){let s="",o=0,p=-1,y=0,f=-1,a,u;for(;++f<=n.length;){if(f<n.length)a=n.codePointAt(f);else{if(a===47)break;a=47}if(a===47){if(!(p===f-1||y===1))if(p!==f-1&&y===2){if(s.length<2||o!==2||s.codePointAt(s.length-1)!==46||s.codePointAt(s.length-2)!==46){if(s.length>2){if(u=s.lastIndexOf("/"),u!==s.length-1){u<0?(s="",o=0):(s=s.slice(0,u),o=s.length-1-s.lastIndexOf("/")),p=f,y=0;continue}}else if(s.length>0){s="",o=0,p=f,y=0;continue}}r&&(s=s.length>0?s+"/..":"..",o=2)}else s.length>0?s+="/"+n.slice(p+1,f):s=n.slice(p+1,f),o=f-p-1;p=f,y=0}else a===46&&y>-1?y++:y=-1}return s}function sl(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const IC={cwd:UC};function UC(){return"/"}function Rc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function PC(n){if(typeof n=="string")n=new URL(n);else if(!Rc(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return FC(n)}function FC(n){if(n.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 r=n.pathname;let s=-1;for(;++s<r.length;)if(r.codePointAt(s)===37&&r.codePointAt(s+1)===50){const o=r.codePointAt(s+2);if(o===70||o===102){const p=new TypeError("File URL path must not include encoded / characters");throw p.code="ERR_INVALID_FILE_URL_PATH",p}}return decodeURIComponent(r)}const cc=["history","path","basename","stem","extname","dirname"];class Yg{constructor(r){let s;r?Rc(r)?s={path:r}:typeof r=="string"||qC(r)?s={value:r}:s=r:s={},this.cwd="cwd"in s?"":IC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<cc.length;){const y=cc[o];y in s&&s[y]!==void 0&&s[y]!==null&&(this[y]=y==="history"?[...s[y]]:s[y])}let p;for(p in s)cc.includes(p)||(this[p]=s[p])}get basename(){return typeof this.path=="string"?Bn.basename(this.path):void 0}set basename(r){fc(r,"basename"),hc(r,"basename"),this.path=Bn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Bn.dirname(this.path):void 0}set dirname(r){Fm(this.basename,"dirname"),this.path=Bn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Bn.extname(this.path):void 0}set extname(r){if(hc(r,"extname"),Fm(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Bn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Rc(r)&&(r=PC(r)),fc(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Bn.basename(this.path,this.extname):void 0}set stem(r){fc(r,"stem"),hc(r,"stem"),this.path=Bn.join(this.dirname||"",r+(this.extname||""))}fail(r,s,o){const p=this.message(r,s,o);throw p.fatal=!0,p}info(r,s,o){const p=this.message(r,s,o);return p.fatal=void 0,p}message(r,s,o){const p=new qt(r,s,o);return this.path&&(p.name=this.path+":"+p.name,p.file=this.path),p.fatal=!1,this.messages.push(p),p}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function hc(n,r){if(n&&n.includes(Bn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Bn.sep+"`")}function fc(n,r){if(!n)throw new Error("`"+r+"` cannot be empty")}function Fm(n,r){if(!n)throw new Error("Setting `"+r+"` requires `path` to be set too")}function qC(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const VC=(function(n){const o=this.constructor.prototype,p=o[n],y=function(){return p.apply(y,arguments)};return Object.setPrototypeOf(y,o),y}),GC={}.hasOwnProperty;class Xc extends VC{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=MC()}copy(){const r=new Xc;let s=-1;for(;++s<this.attachers.length;){const o=this.attachers[s];r.use(...o)}return r.data(uc(!0,{},this.namespace)),r}data(r,s){return typeof r=="string"?arguments.length===2?(mc("data",this.frozen),this.namespace[r]=s,this):GC.call(this.namespace,r)&&this.namespace[r]||void 0:r?(mc("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[s,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const p=s.call(r,...o);typeof p=="function"&&this.transformers.use(p)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const s=Ca(r),o=this.parser||this.Parser;return dc("parse",o),o(String(s),s)}process(r,s){const o=this;return this.freeze(),dc("process",this.parser||this.Parser),pc("process",this.compiler||this.Compiler),s?p(void 0,s):new Promise(p);function p(y,f){const a=Ca(r),u=o.parse(a);o.run(u,a,function(d,c,S){if(d||!c||!S)return h(d);const w=c,A=o.stringify(w,S);KC(A)?S.value=A:S.result=A,h(d,S)});function h(d,c){d||!c?f(d):y?y(c):s(void 0,c)}}}processSync(r){let s=!1,o;return this.freeze(),dc("processSync",this.parser||this.Parser),pc("processSync",this.compiler||this.Compiler),this.process(r,p),Vm("processSync","process",s),o;function p(y,f){s=!0,Um(y),o=f}}run(r,s,o){qm(r),this.freeze();const p=this.transformers;return!o&&typeof s=="function"&&(o=s,s=void 0),o?y(void 0,o):new Promise(y);function y(f,a){const u=Ca(s);p.run(r,u,h);function h(d,c,S){const w=c||r;d?a(d):f?f(w):o(void 0,w,S)}}}runSync(r,s){let o=!1,p;return this.run(r,s,y),Vm("runSync","run",o),p;function y(f,a){Um(f),p=a,o=!0}}stringify(r,s){this.freeze();const o=Ca(s),p=this.compiler||this.Compiler;return pc("stringify",p),qm(r),p(r,o)}use(r,...s){const o=this.attachers,p=this.namespace;if(mc("use",this.frozen),r!=null)if(typeof r=="function")u(r,s);else if(typeof r=="object")Array.isArray(r)?a(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function y(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...c]=h;u(d,c)}else f(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function f(h){if(!("plugins"in h)&&!("settings"in h))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");a(h.plugins),h.settings&&(p.settings=uc(!0,p.settings,h.settings))}function a(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const c=h[d];y(c)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,d){let c=-1,S=-1;for(;++c<o.length;)if(o[c][0]===h){S=c;break}if(S===-1)o.push([h,...d]);else if(d.length>0){let[w,...A]=d;const x=o[S][1];Dc(x)&&Dc(w)&&(w=uc(!0,x,w)),o[S]=[h,w,...A]}}}}const $C=new Xc().freeze();function dc(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function pc(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function mc(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qm(n){if(!Dc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Vm(n,r,s){if(!s)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function Ca(n){return YC(n)?n:new Yg(n)}function YC(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function KC(n){return typeof n=="string"||WC(n)}function WC(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const XC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gm=[],$m={allowDangerousHtml:!0},QC=/^(https?|ircs?|mailto|xmpp)$/i,ZC=[{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 JC(n){const r=ew(n),s=tw(n);return nw(r.runSync(r.parse(s),s),n)}function ew(n){const r=n.rehypePlugins||Gm,s=n.remarkPlugins||Gm,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...$m}:$m;return $C().use(Ob).use(s).use(TC,o).use(r)}function tw(n){const r=n.children||"",s=new Yg;return typeof r=="string"&&(s.value=r),s}function nw(n,r){const s=r.allowedElements,o=r.allowElement,p=r.components,y=r.disallowedElements,f=r.skipHtml,a=r.unwrapDisallowed,u=r.urlTransform||iw;for(const d of ZC)Object.hasOwn(r,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+XC+d.id,void 0);return Wc(n,h),gy(n,{Fragment:N.Fragment,components:p,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function h(d,c,S){if(d.type==="raw"&&S&&typeof c=="number")return f?S.children.splice(c,1):S.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let w;for(w in sc)if(Object.hasOwn(sc,w)&&Object.hasOwn(d.properties,w)){const A=d.properties[w],x=sc[w];(x===null||x.includes(d.tagName))&&(d.properties[w]=u(String(A||""),w,d))}}if(d.type==="element"){let w=s?!s.includes(d.tagName):y?y.includes(d.tagName):!1;if(!w&&o&&typeof c=="number"&&(w=!o(d,c,S)),w&&S&&typeof c=="number")return a&&d.children?S.children.splice(c,1,...d.children):S.children.splice(c,1),c}}}function iw(n){const r=n.indexOf(":"),s=n.indexOf("?"),o=n.indexOf("#"),p=n.indexOf("/");return r===-1||p!==-1&&r>p||s!==-1&&r>s||o!==-1&&r>o||QC.test(n.slice(0,r))?n:""}function Ym(n,r){const s=String(n);if(typeof r!="string")throw new TypeError("Expected character");let o=0,p=s.indexOf(r);for(;p!==-1;)o++,p=s.indexOf(r,p+r.length);return o}function rw(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function sw(n,r,s){const p=Ba((s||{}).ignore||[]),y=lw(r);let f=-1;for(;++f<y.length;)$g(n,"text",a);function a(h,d){let c=-1,S;for(;++c<d.length;){const w=d[c],A=S?S.children:void 0;if(p(w,A?A.indexOf(w):void 0,S))return;S=w}if(S)return u(h,d)}function u(h,d){const c=d[d.length-1],S=y[f][0],w=y[f][1];let A=0;const b=c.children.indexOf(h);let _=!1,g=[];S.lastIndex=0;let v=S.exec(h.value);for(;v;){const k=v.index,M={index:v.index,input:v.input,stack:[...d,h]};let D=w(...v,M);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?S.lastIndex=k+1:(A!==k&&g.push({type:"text",value:h.value.slice(A,k)}),Array.isArray(D)?g.push(...D):D&&g.push(D),A=k+v[0].length,_=!0),!S.global)break;v=S.exec(h.value)}return _?(A<h.value.length&&g.push({type:"text",value:h.value.slice(A)}),c.children.splice(b,1,...g)):g=[h],b+g.length}}function lw(n){const r=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const s=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<s.length;){const p=s[o];r.push([aw(p[0]),ow(p[1])])}return r}function aw(n){return typeof n=="string"?new RegExp(rw(n),"g"):n}function ow(n){return typeof n=="function"?n:function(){return n}}const gc="phrasing",_c=["autolink","link","image","label"];function uw(){return{transforms:[gw],enter:{literalAutolink:hw,literalAutolinkEmail:vc,literalAutolinkHttp:vc,literalAutolinkWww:vc},exit:{literalAutolink:mw,literalAutolinkEmail:pw,literalAutolinkHttp:fw,literalAutolinkWww:dw}}}function cw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gc,notInConstruct:_c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gc,notInConstruct:_c},{character:":",before:"[ps]",after:"\\/",inConstruct:gc,notInConstruct:_c}]}}function hw(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function vc(n){this.config.enter.autolinkProtocol.call(this,n)}function fw(n){this.config.exit.autolinkProtocol.call(this,n)}function dw(n){this.config.exit.data.call(this,n);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(n)}function pw(n){this.config.exit.autolinkEmail.call(this,n)}function mw(n){this.exit(n)}function gw(n){sw(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_w],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vw]],{ignore:["link","linkReference"]})}function _w(n,r,s,o,p){let y="";if(!Kg(p)||(/^w/i.test(r)&&(s=r+s,r="",y="http://"),!yw(s)))return!1;const f=Sw(s+o);if(!f[0])return!1;const a={type:"link",title:null,url:y+r+f[0],children:[{type:"text",value:r+f[0]}]};return f[1]?[a,{type:"text",value:f[1]}]:a}function vw(n,r,s,o){return!Kg(o,!0)||/[-\d_]$/.test(s)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+s,children:[{type:"text",value:r+"@"+s}]}}function yw(n){const r=n.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Sw(n){const r=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!r)return[n,void 0];n=n.slice(0,r.index);let s=r[0],o=s.indexOf(")");const p=Ym(n,"(");let y=Ym(n,")");for(;o!==-1&&p>y;)n+=s.slice(0,o+1),s=s.slice(o+1),o=s.indexOf(")"),y++;return[n,s]}function Kg(n,r){const s=n.input.charCodeAt(n.index-1);return(n.index===0||tr(s)||Ma(s))&&(!r||s!==47)}Wg.peek=Dw;function bw(){this.buffer()}function Cw(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function ww(){this.buffer()}function xw(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Ew(n){const r=this.resume(),s=this.stack[this.stack.length-1];s.type,s.identifier=An(this.sliceSerialize(n)).toLowerCase(),s.label=r}function kw(n){this.exit(n)}function Aw(n){const r=this.resume(),s=this.stack[this.stack.length-1];s.type,s.identifier=An(this.sliceSerialize(n)).toLowerCase(),s.label=r}function Tw(n){this.exit(n)}function Dw(){return"["}function Wg(n,r,s,o){const p=s.createTracker(o);let y=p.move("[^");const f=s.enter("footnoteReference"),a=s.enter("reference");return y+=p.move(s.safe(s.associationId(n),{after:"]",before:y})),a(),f(),y+=p.move("]"),y}function Rw(){return{enter:{gfmFootnoteCallString:bw,gfmFootnoteCall:Cw,gfmFootnoteDefinitionLabelString:ww,gfmFootnoteDefinition:xw},exit:{gfmFootnoteCallString:Ew,gfmFootnoteCall:kw,gfmFootnoteDefinitionLabelString:Aw,gfmFootnoteDefinition:Tw}}}function Mw(n){let r=!1;return n&&n.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:s,footnoteReference:Wg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function s(o,p,y,f){const a=y.createTracker(f);let u=a.move("[^");const h=y.enter("footnoteDefinition"),d=y.enter("label");return u+=a.move(y.safe(y.associationId(o),{before:u,after:"]"})),d(),u+=a.move("]:"),o.children&&o.children.length>0&&(a.shift(4),u+=a.move((r?`
76
- `:" ")+y.indentLines(y.containerFlow(o,a.current()),r?Xg:Lw))),h(),u}}function Lw(n,r,s){return r===0?n:Xg(n,r,s)}function Xg(n,r,s){return(s?"":" ")+n}const Ow=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Qg.peek=Hw;function Bw(){return{canContainEols:["delete"],enter:{strikethrough:jw},exit:{strikethrough:zw}}}function Nw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ow}],handlers:{delete:Qg}}}function jw(n){this.enter({type:"delete",children:[]},n)}function zw(n){this.exit(n)}function Qg(n,r,s,o){const p=s.createTracker(o),y=s.enter("strikethrough");let f=p.move("~~");return f+=s.containerPhrasing(n,{...p.current(),before:f,after:"~"}),f+=p.move("~~"),y(),f}function Hw(){return"~"}function Iw(n){return n.length}function Uw(n,r){const s=r||{},o=(s.align||[]).concat(),p=s.stringLength||Iw,y=[],f=[],a=[],u=[];let h=0,d=-1;for(;++d<n.length;){const x=[],b=[];let _=-1;for(n[d].length>h&&(h=n[d].length);++_<n[d].length;){const g=Pw(n[d][_]);if(s.alignDelimiters!==!1){const v=p(g);b[_]=v,(u[_]===void 0||v>u[_])&&(u[_]=v)}x.push(g)}f[d]=x,a[d]=b}let c=-1;if(typeof o=="object"&&"length"in o)for(;++c<h;)y[c]=Km(o[c]);else{const x=Km(o);for(;++c<h;)y[c]=x}c=-1;const S=[],w=[];for(;++c<h;){const x=y[c];let b="",_="";x===99?(b=":",_=":"):x===108?b=":":x===114&&(_=":");let g=s.alignDelimiters===!1?1:Math.max(1,u[c]-b.length-_.length);const v=b+"-".repeat(g)+_;s.alignDelimiters!==!1&&(g=b.length+g+_.length,g>u[c]&&(u[c]=g),w[c]=g),S[c]=v}f.splice(1,0,S),a.splice(1,0,w),d=-1;const A=[];for(;++d<f.length;){const x=f[d],b=a[d];c=-1;const _=[];for(;++c<h;){const g=x[c]||"";let v="",k="";if(s.alignDelimiters!==!1){const M=u[c]-(b[c]||0),D=y[c];D===114?v=" ".repeat(M):D===99?M%2?(v=" ".repeat(M/2+.5),k=" ".repeat(M/2-.5)):(v=" ".repeat(M/2),k=v):k=" ".repeat(M)}s.delimiterStart!==!1&&!c&&_.push("|"),s.padding!==!1&&!(s.alignDelimiters===!1&&g==="")&&(s.delimiterStart!==!1||c)&&_.push(" "),s.alignDelimiters!==!1&&_.push(v),_.push(g),s.alignDelimiters!==!1&&_.push(k),s.padding!==!1&&_.push(" "),(s.delimiterEnd!==!1||c!==h-1)&&_.push("|")}A.push(s.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return A.join(`
77
- `)}function Pw(n){return n==null?"":String(n)}function Km(n){const r=typeof n=="string"?n.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function Fw(n,r,s,o){const p=s.enter("blockquote"),y=s.createTracker(o);y.move("> "),y.shift(2);const f=s.indentLines(s.containerFlow(n,y.current()),qw);return p(),f}function qw(n,r,s){return">"+(s?"":" ")+n}function Vw(n,r){return Wm(n,r.inConstruct,!0)&&!Wm(n,r.notInConstruct,!1)}function Wm(n,r,s){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return s;let o=-1;for(;++o<r.length;)if(n.includes(r[o]))return!0;return!1}function Xm(n,r,s,o){let p=-1;for(;++p<s.unsafe.length;)if(s.unsafe[p].character===`
78
- `&&Vw(s.stack,s.unsafe[p]))return/[ \t]/.test(o.before)?"":" ";return`\\
79
- `}function Gw(n,r){const s=String(n);let o=s.indexOf(r),p=o,y=0,f=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===p?++y>f&&(f=y):y=1,p=o+r.length,o=s.indexOf(r,p);return f}function $w(n,r){return!!(r.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function Yw(n){const r=n.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Kw(n,r,s,o){const p=Yw(s),y=n.value||"",f=p==="`"?"GraveAccent":"Tilde";if($w(n,s)){const c=s.enter("codeIndented"),S=s.indentLines(y,Ww);return c(),S}const a=s.createTracker(o),u=p.repeat(Math.max(Gw(y,p)+1,3)),h=s.enter("codeFenced");let d=a.move(u);if(n.lang){const c=s.enter(`codeFencedLang${f}`);d+=a.move(s.safe(n.lang,{before:d,after:" ",encode:["`"],...a.current()})),c()}if(n.lang&&n.meta){const c=s.enter(`codeFencedMeta${f}`);d+=a.move(" "),d+=a.move(s.safe(n.meta,{before:d,after:`
74
+ `}),s}function Hm(n){let r=0,s=n.charCodeAt(r);for(;s===9||s===32;)r++,s=n.charCodeAt(r);return n.slice(r)}function Im(n,r){const s=EC(n,r),o=s.one(n,void 0),p=mC(s),y=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return p&&y.children.push({type:"text",value:`
75
+ `},p),y}function RC(n,r){return n&&"run"in n?async function(s,o){const p=Im(s,{file:o,...r});await n.run(p,o)}:function(s,o){return Im(s,{file:o,...n||r})}}function Um(n){if(n)throw n}var oc,Pm;function MC(){if(Pm)return oc;Pm=1;var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},y=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var d=n.call(h,"constructor"),c=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!c)return!1;var S;for(S in h);return typeof S>"u"||n.call(h,S)},f=function(h,d){s&&d.name==="__proto__"?s(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},a=function(h,d){if(d==="__proto__")if(n.call(h,d)){if(o)return o(h,d).value}else return;return h[d]};return oc=function u(){var h,d,c,S,w,A,x=arguments[0],b=1,_=arguments.length,g=!1;for(typeof x=="boolean"&&(g=x,x=arguments[1]||{},b=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});b<_;++b)if(h=arguments[b],h!=null)for(d in h)c=a(x,d),S=a(h,d),x!==S&&(g&&S&&(y(S)||(w=p(S)))?(w?(w=!1,A=c&&p(c)?c:[]):A=c&&y(c)?c:{},f(x,{name:d,newValue:u(g,A,S)})):typeof S<"u"&&f(x,{name:d,newValue:S}));return x},oc}var LC=MC();const uc=ig(LC);function Dc(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function OC(){const n=[],r={run:s,use:o};return r;function s(...p){let y=-1;const f=p.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);a(null,...p);function a(u,...h){const d=n[++y];let c=-1;if(u){f(u);return}for(;++c<p.length;)(h[c]===null||h[c]===void 0)&&(h[c]=p[c]);p=h,d?BC(d,a)(...h):f(null,...h)}}function o(p){if(typeof p!="function")throw new TypeError("Expected `middelware` to be a function, not "+p);return n.push(p),r}}function BC(n,r){let s;return o;function o(...f){const a=n.length>f.length;let u;a&&f.push(p);try{u=n.apply(this,f)}catch(h){const d=h;if(a&&s)throw d;return p(d)}a||(u&&u.then&&typeof u.then=="function"?u.then(y,p):u instanceof Error?p(u):y(u))}function p(f,...a){s||(s=!0,r(f,...a))}function y(f){p(null,f)}}const Bn={basename:NC,dirname:jC,extname:zC,join:HC,sep:"/"};function NC(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');sl(n);let s=0,o=-1,p=n.length,y;if(r===void 0||r.length===0||r.length>n.length){for(;p--;)if(n.codePointAt(p)===47){if(y){s=p+1;break}}else o<0&&(y=!0,o=p+1);return o<0?"":n.slice(s,o)}if(r===n)return"";let f=-1,a=r.length-1;for(;p--;)if(n.codePointAt(p)===47){if(y){s=p+1;break}}else f<0&&(y=!0,f=p+1),a>-1&&(n.codePointAt(p)===r.codePointAt(a--)?a<0&&(o=p):(a=-1,o=f));return s===o?o=f:o<0&&(o=n.length),n.slice(s,o)}function jC(n){if(sl(n),n.length===0)return".";let r=-1,s=n.length,o;for(;--s;)if(n.codePointAt(s)===47){if(o){r=s;break}}else o||(o=!0);return r<0?n.codePointAt(0)===47?"/":".":r===1&&n.codePointAt(0)===47?"//":n.slice(0,r)}function zC(n){sl(n);let r=n.length,s=-1,o=0,p=-1,y=0,f;for(;r--;){const a=n.codePointAt(r);if(a===47){if(f){o=r+1;break}continue}s<0&&(f=!0,s=r+1),a===46?p<0?p=r:y!==1&&(y=1):p>-1&&(y=-1)}return p<0||s<0||y===0||y===1&&p===s-1&&p===o+1?"":n.slice(p,s)}function HC(...n){let r=-1,s;for(;++r<n.length;)sl(n[r]),n[r]&&(s=s===void 0?n[r]:s+"/"+n[r]);return s===void 0?".":IC(s)}function IC(n){sl(n);const r=n.codePointAt(0)===47;let s=UC(n,!r);return s.length===0&&!r&&(s="."),s.length>0&&n.codePointAt(n.length-1)===47&&(s+="/"),r?"/"+s:s}function UC(n,r){let s="",o=0,p=-1,y=0,f=-1,a,u;for(;++f<=n.length;){if(f<n.length)a=n.codePointAt(f);else{if(a===47)break;a=47}if(a===47){if(!(p===f-1||y===1))if(p!==f-1&&y===2){if(s.length<2||o!==2||s.codePointAt(s.length-1)!==46||s.codePointAt(s.length-2)!==46){if(s.length>2){if(u=s.lastIndexOf("/"),u!==s.length-1){u<0?(s="",o=0):(s=s.slice(0,u),o=s.length-1-s.lastIndexOf("/")),p=f,y=0;continue}}else if(s.length>0){s="",o=0,p=f,y=0;continue}}r&&(s=s.length>0?s+"/..":"..",o=2)}else s.length>0?s+="/"+n.slice(p+1,f):s=n.slice(p+1,f),o=f-p-1;p=f,y=0}else a===46&&y>-1?y++:y=-1}return s}function sl(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const PC={cwd:FC};function FC(){return"/"}function Rc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function qC(n){if(typeof n=="string")n=new URL(n);else if(!Rc(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return VC(n)}function VC(n){if(n.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 r=n.pathname;let s=-1;for(;++s<r.length;)if(r.codePointAt(s)===37&&r.codePointAt(s+1)===50){const o=r.codePointAt(s+2);if(o===70||o===102){const p=new TypeError("File URL path must not include encoded / characters");throw p.code="ERR_INVALID_FILE_URL_PATH",p}}return decodeURIComponent(r)}const cc=["history","path","basename","stem","extname","dirname"];class Kg{constructor(r){let s;r?Rc(r)?s={path:r}:typeof r=="string"||GC(r)?s={value:r}:s=r:s={},this.cwd="cwd"in s?"":PC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<cc.length;){const y=cc[o];y in s&&s[y]!==void 0&&s[y]!==null&&(this[y]=y==="history"?[...s[y]]:s[y])}let p;for(p in s)cc.includes(p)||(this[p]=s[p])}get basename(){return typeof this.path=="string"?Bn.basename(this.path):void 0}set basename(r){fc(r,"basename"),hc(r,"basename"),this.path=Bn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Bn.dirname(this.path):void 0}set dirname(r){Fm(this.basename,"dirname"),this.path=Bn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Bn.extname(this.path):void 0}set extname(r){if(hc(r,"extname"),Fm(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Bn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Rc(r)&&(r=qC(r)),fc(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Bn.basename(this.path,this.extname):void 0}set stem(r){fc(r,"stem"),hc(r,"stem"),this.path=Bn.join(this.dirname||"",r+(this.extname||""))}fail(r,s,o){const p=this.message(r,s,o);throw p.fatal=!0,p}info(r,s,o){const p=this.message(r,s,o);return p.fatal=void 0,p}message(r,s,o){const p=new qt(r,s,o);return this.path&&(p.name=this.path+":"+p.name,p.file=this.path),p.fatal=!1,this.messages.push(p),p}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function hc(n,r){if(n&&n.includes(Bn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Bn.sep+"`")}function fc(n,r){if(!n)throw new Error("`"+r+"` cannot be empty")}function Fm(n,r){if(!n)throw new Error("Setting `"+r+"` requires `path` to be set too")}function GC(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const $C=(function(n){const o=this.constructor.prototype,p=o[n],y=function(){return p.apply(y,arguments)};return Object.setPrototypeOf(y,o),y}),YC={}.hasOwnProperty;class Xc extends $C{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=OC()}copy(){const r=new Xc;let s=-1;for(;++s<this.attachers.length;){const o=this.attachers[s];r.use(...o)}return r.data(uc(!0,{},this.namespace)),r}data(r,s){return typeof r=="string"?arguments.length===2?(mc("data",this.frozen),this.namespace[r]=s,this):YC.call(this.namespace,r)&&this.namespace[r]||void 0:r?(mc("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[s,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const p=s.call(r,...o);typeof p=="function"&&this.transformers.use(p)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const s=Ca(r),o=this.parser||this.Parser;return dc("parse",o),o(String(s),s)}process(r,s){const o=this;return this.freeze(),dc("process",this.parser||this.Parser),pc("process",this.compiler||this.Compiler),s?p(void 0,s):new Promise(p);function p(y,f){const a=Ca(r),u=o.parse(a);o.run(u,a,function(d,c,S){if(d||!c||!S)return h(d);const w=c,A=o.stringify(w,S);XC(A)?S.value=A:S.result=A,h(d,S)});function h(d,c){d||!c?f(d):y?y(c):s(void 0,c)}}}processSync(r){let s=!1,o;return this.freeze(),dc("processSync",this.parser||this.Parser),pc("processSync",this.compiler||this.Compiler),this.process(r,p),Vm("processSync","process",s),o;function p(y,f){s=!0,Um(y),o=f}}run(r,s,o){qm(r),this.freeze();const p=this.transformers;return!o&&typeof s=="function"&&(o=s,s=void 0),o?y(void 0,o):new Promise(y);function y(f,a){const u=Ca(s);p.run(r,u,h);function h(d,c,S){const w=c||r;d?a(d):f?f(w):o(void 0,w,S)}}}runSync(r,s){let o=!1,p;return this.run(r,s,y),Vm("runSync","run",o),p;function y(f,a){Um(f),p=a,o=!0}}stringify(r,s){this.freeze();const o=Ca(s),p=this.compiler||this.Compiler;return pc("stringify",p),qm(r),p(r,o)}use(r,...s){const o=this.attachers,p=this.namespace;if(mc("use",this.frozen),r!=null)if(typeof r=="function")u(r,s);else if(typeof r=="object")Array.isArray(r)?a(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function y(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...c]=h;u(d,c)}else f(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function f(h){if(!("plugins"in h)&&!("settings"in h))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");a(h.plugins),h.settings&&(p.settings=uc(!0,p.settings,h.settings))}function a(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const c=h[d];y(c)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,d){let c=-1,S=-1;for(;++c<o.length;)if(o[c][0]===h){S=c;break}if(S===-1)o.push([h,...d]);else if(d.length>0){let[w,...A]=d;const x=o[S][1];Dc(x)&&Dc(w)&&(w=uc(!0,x,w)),o[S]=[h,w,...A]}}}}const KC=new Xc().freeze();function dc(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function pc(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function mc(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qm(n){if(!Dc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Vm(n,r,s){if(!s)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function Ca(n){return WC(n)?n:new Kg(n)}function WC(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function XC(n){return typeof n=="string"||QC(n)}function QC(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const ZC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gm=[],$m={allowDangerousHtml:!0},JC=/^(https?|ircs?|mailto|xmpp)$/i,ew=[{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 tw(n){const r=nw(n),s=iw(n);return rw(r.runSync(r.parse(s),s),n)}function nw(n){const r=n.rehypePlugins||Gm,s=n.remarkPlugins||Gm,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...$m}:$m;return KC().use(Nb).use(s).use(RC,o).use(r)}function iw(n){const r=n.children||"",s=new Kg;return typeof r=="string"&&(s.value=r),s}function rw(n,r){const s=r.allowedElements,o=r.allowElement,p=r.components,y=r.disallowedElements,f=r.skipHtml,a=r.unwrapDisallowed,u=r.urlTransform||sw;for(const d of ew)Object.hasOwn(r,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+ZC+d.id,void 0);return Wc(n,h),vy(n,{Fragment:N.Fragment,components:p,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function h(d,c,S){if(d.type==="raw"&&S&&typeof c=="number")return f?S.children.splice(c,1):S.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let w;for(w in sc)if(Object.hasOwn(sc,w)&&Object.hasOwn(d.properties,w)){const A=d.properties[w],x=sc[w];(x===null||x.includes(d.tagName))&&(d.properties[w]=u(String(A||""),w,d))}}if(d.type==="element"){let w=s?!s.includes(d.tagName):y?y.includes(d.tagName):!1;if(!w&&o&&typeof c=="number"&&(w=!o(d,c,S)),w&&S&&typeof c=="number")return a&&d.children?S.children.splice(c,1,...d.children):S.children.splice(c,1),c}}}function sw(n){const r=n.indexOf(":"),s=n.indexOf("?"),o=n.indexOf("#"),p=n.indexOf("/");return r===-1||p!==-1&&r>p||s!==-1&&r>s||o!==-1&&r>o||JC.test(n.slice(0,r))?n:""}function Ym(n,r){const s=String(n);if(typeof r!="string")throw new TypeError("Expected character");let o=0,p=s.indexOf(r);for(;p!==-1;)o++,p=s.indexOf(r,p+r.length);return o}function lw(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function aw(n,r,s){const p=Ba((s||{}).ignore||[]),y=ow(r);let f=-1;for(;++f<y.length;)Yg(n,"text",a);function a(h,d){let c=-1,S;for(;++c<d.length;){const w=d[c],A=S?S.children:void 0;if(p(w,A?A.indexOf(w):void 0,S))return;S=w}if(S)return u(h,d)}function u(h,d){const c=d[d.length-1],S=y[f][0],w=y[f][1];let A=0;const b=c.children.indexOf(h);let _=!1,g=[];S.lastIndex=0;let v=S.exec(h.value);for(;v;){const k=v.index,M={index:v.index,input:v.input,stack:[...d,h]};let D=w(...v,M);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?S.lastIndex=k+1:(A!==k&&g.push({type:"text",value:h.value.slice(A,k)}),Array.isArray(D)?g.push(...D):D&&g.push(D),A=k+v[0].length,_=!0),!S.global)break;v=S.exec(h.value)}return _?(A<h.value.length&&g.push({type:"text",value:h.value.slice(A)}),c.children.splice(b,1,...g)):g=[h],b+g.length}}function ow(n){const r=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const s=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<s.length;){const p=s[o];r.push([uw(p[0]),cw(p[1])])}return r}function uw(n){return typeof n=="string"?new RegExp(lw(n),"g"):n}function cw(n){return typeof n=="function"?n:function(){return n}}const gc="phrasing",_c=["autolink","link","image","label"];function hw(){return{transforms:[vw],enter:{literalAutolink:dw,literalAutolinkEmail:vc,literalAutolinkHttp:vc,literalAutolinkWww:vc},exit:{literalAutolink:_w,literalAutolinkEmail:gw,literalAutolinkHttp:pw,literalAutolinkWww:mw}}}function fw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gc,notInConstruct:_c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gc,notInConstruct:_c},{character:":",before:"[ps]",after:"\\/",inConstruct:gc,notInConstruct:_c}]}}function dw(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function vc(n){this.config.enter.autolinkProtocol.call(this,n)}function pw(n){this.config.exit.autolinkProtocol.call(this,n)}function mw(n){this.config.exit.data.call(this,n);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(n)}function gw(n){this.config.exit.autolinkEmail.call(this,n)}function _w(n){this.exit(n)}function vw(n){aw(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Sw]],{ignore:["link","linkReference"]})}function yw(n,r,s,o,p){let y="";if(!Wg(p)||(/^w/i.test(r)&&(s=r+s,r="",y="http://"),!bw(s)))return!1;const f=Cw(s+o);if(!f[0])return!1;const a={type:"link",title:null,url:y+r+f[0],children:[{type:"text",value:r+f[0]}]};return f[1]?[a,{type:"text",value:f[1]}]:a}function Sw(n,r,s,o){return!Wg(o,!0)||/[-\d_]$/.test(s)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+s,children:[{type:"text",value:r+"@"+s}]}}function bw(n){const r=n.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Cw(n){const r=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!r)return[n,void 0];n=n.slice(0,r.index);let s=r[0],o=s.indexOf(")");const p=Ym(n,"(");let y=Ym(n,")");for(;o!==-1&&p>y;)n+=s.slice(0,o+1),s=s.slice(o+1),o=s.indexOf(")"),y++;return[n,s]}function Wg(n,r){const s=n.input.charCodeAt(n.index-1);return(n.index===0||tr(s)||Ma(s))&&(!r||s!==47)}Xg.peek=Mw;function ww(){this.buffer()}function xw(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Ew(){this.buffer()}function kw(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Aw(n){const r=this.resume(),s=this.stack[this.stack.length-1];s.type,s.identifier=An(this.sliceSerialize(n)).toLowerCase(),s.label=r}function Tw(n){this.exit(n)}function Dw(n){const r=this.resume(),s=this.stack[this.stack.length-1];s.type,s.identifier=An(this.sliceSerialize(n)).toLowerCase(),s.label=r}function Rw(n){this.exit(n)}function Mw(){return"["}function Xg(n,r,s,o){const p=s.createTracker(o);let y=p.move("[^");const f=s.enter("footnoteReference"),a=s.enter("reference");return y+=p.move(s.safe(s.associationId(n),{after:"]",before:y})),a(),f(),y+=p.move("]"),y}function Lw(){return{enter:{gfmFootnoteCallString:ww,gfmFootnoteCall:xw,gfmFootnoteDefinitionLabelString:Ew,gfmFootnoteDefinition:kw},exit:{gfmFootnoteCallString:Aw,gfmFootnoteCall:Tw,gfmFootnoteDefinitionLabelString:Dw,gfmFootnoteDefinition:Rw}}}function Ow(n){let r=!1;return n&&n.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:s,footnoteReference:Xg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function s(o,p,y,f){const a=y.createTracker(f);let u=a.move("[^");const h=y.enter("footnoteDefinition"),d=y.enter("label");return u+=a.move(y.safe(y.associationId(o),{before:u,after:"]"})),d(),u+=a.move("]:"),o.children&&o.children.length>0&&(a.shift(4),u+=a.move((r?`
76
+ `:" ")+y.indentLines(y.containerFlow(o,a.current()),r?Qg:Bw))),h(),u}}function Bw(n,r,s){return r===0?n:Qg(n,r,s)}function Qg(n,r,s){return(s?"":" ")+n}const Nw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zg.peek=Uw;function jw(){return{canContainEols:["delete"],enter:{strikethrough:Hw},exit:{strikethrough:Iw}}}function zw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Nw}],handlers:{delete:Zg}}}function Hw(n){this.enter({type:"delete",children:[]},n)}function Iw(n){this.exit(n)}function Zg(n,r,s,o){const p=s.createTracker(o),y=s.enter("strikethrough");let f=p.move("~~");return f+=s.containerPhrasing(n,{...p.current(),before:f,after:"~"}),f+=p.move("~~"),y(),f}function Uw(){return"~"}function Pw(n){return n.length}function Fw(n,r){const s=r||{},o=(s.align||[]).concat(),p=s.stringLength||Pw,y=[],f=[],a=[],u=[];let h=0,d=-1;for(;++d<n.length;){const x=[],b=[];let _=-1;for(n[d].length>h&&(h=n[d].length);++_<n[d].length;){const g=qw(n[d][_]);if(s.alignDelimiters!==!1){const v=p(g);b[_]=v,(u[_]===void 0||v>u[_])&&(u[_]=v)}x.push(g)}f[d]=x,a[d]=b}let c=-1;if(typeof o=="object"&&"length"in o)for(;++c<h;)y[c]=Km(o[c]);else{const x=Km(o);for(;++c<h;)y[c]=x}c=-1;const S=[],w=[];for(;++c<h;){const x=y[c];let b="",_="";x===99?(b=":",_=":"):x===108?b=":":x===114&&(_=":");let g=s.alignDelimiters===!1?1:Math.max(1,u[c]-b.length-_.length);const v=b+"-".repeat(g)+_;s.alignDelimiters!==!1&&(g=b.length+g+_.length,g>u[c]&&(u[c]=g),w[c]=g),S[c]=v}f.splice(1,0,S),a.splice(1,0,w),d=-1;const A=[];for(;++d<f.length;){const x=f[d],b=a[d];c=-1;const _=[];for(;++c<h;){const g=x[c]||"";let v="",k="";if(s.alignDelimiters!==!1){const M=u[c]-(b[c]||0),D=y[c];D===114?v=" ".repeat(M):D===99?M%2?(v=" ".repeat(M/2+.5),k=" ".repeat(M/2-.5)):(v=" ".repeat(M/2),k=v):k=" ".repeat(M)}s.delimiterStart!==!1&&!c&&_.push("|"),s.padding!==!1&&!(s.alignDelimiters===!1&&g==="")&&(s.delimiterStart!==!1||c)&&_.push(" "),s.alignDelimiters!==!1&&_.push(v),_.push(g),s.alignDelimiters!==!1&&_.push(k),s.padding!==!1&&_.push(" "),(s.delimiterEnd!==!1||c!==h-1)&&_.push("|")}A.push(s.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return A.join(`
77
+ `)}function qw(n){return n==null?"":String(n)}function Km(n){const r=typeof n=="string"?n.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function Vw(n,r,s,o){const p=s.enter("blockquote"),y=s.createTracker(o);y.move("> "),y.shift(2);const f=s.indentLines(s.containerFlow(n,y.current()),Gw);return p(),f}function Gw(n,r,s){return">"+(s?"":" ")+n}function $w(n,r){return Wm(n,r.inConstruct,!0)&&!Wm(n,r.notInConstruct,!1)}function Wm(n,r,s){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return s;let o=-1;for(;++o<r.length;)if(n.includes(r[o]))return!0;return!1}function Xm(n,r,s,o){let p=-1;for(;++p<s.unsafe.length;)if(s.unsafe[p].character===`
78
+ `&&$w(s.stack,s.unsafe[p]))return/[ \t]/.test(o.before)?"":" ";return`\\
79
+ `}function Yw(n,r){const s=String(n);let o=s.indexOf(r),p=o,y=0,f=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===p?++y>f&&(f=y):y=1,p=o+r.length,o=s.indexOf(r,p);return f}function Kw(n,r){return!!(r.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function Ww(n){const r=n.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Xw(n,r,s,o){const p=Ww(s),y=n.value||"",f=p==="`"?"GraveAccent":"Tilde";if(Kw(n,s)){const c=s.enter("codeIndented"),S=s.indentLines(y,Qw);return c(),S}const a=s.createTracker(o),u=p.repeat(Math.max(Yw(y,p)+1,3)),h=s.enter("codeFenced");let d=a.move(u);if(n.lang){const c=s.enter(`codeFencedLang${f}`);d+=a.move(s.safe(n.lang,{before:d,after:" ",encode:["`"],...a.current()})),c()}if(n.lang&&n.meta){const c=s.enter(`codeFencedMeta${f}`);d+=a.move(" "),d+=a.move(s.safe(n.meta,{before:d,after:`
80
80
  `,encode:["`"],...a.current()})),c()}return d+=a.move(`
81
81
  `),y&&(d+=a.move(y+`
82
- `)),d+=a.move(u),h(),d}function Ww(n,r,s){return(s?"":" ")+n}function Qc(n){const r=n.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Xw(n,r,s,o){const p=Qc(s),y=p==='"'?"Quote":"Apostrophe",f=s.enter("definition");let a=s.enter("label");const u=s.createTracker(o);let h=u.move("[");return h+=u.move(s.safe(s.associationId(n),{before:h,after:"]",...u.current()})),h+=u.move("]: "),a(),!n.url||/[\0- \u007F]/.test(n.url)?(a=s.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(s.safe(n.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(a=s.enter("destinationRaw"),h+=u.move(s.safe(n.url,{before:h,after:n.title?" ":`
83
- `,...u.current()}))),a(),n.title&&(a=s.enter(`title${y}`),h+=u.move(" "+p),h+=u.move(s.safe(n.title,{before:h,after:p,...u.current()})),h+=u.move(p),a()),f(),h}function Qw(n){const r=n.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function nl(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Ra(n,r,s){const o=Kr(n),p=Kr(r);return o===void 0?p===void 0?s==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:p===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?p===void 0?{inside:!1,outside:!1}:p===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:p===void 0?{inside:!1,outside:!1}:p===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Zg.peek=Zw;function Zg(n,r,s,o){const p=Qw(s),y=s.enter("emphasis"),f=s.createTracker(o),a=f.move(p);let u=f.move(s.containerPhrasing(n,{after:p,before:a,...f.current()}));const h=u.charCodeAt(0),d=Ra(o.before.charCodeAt(o.before.length-1),h,p);d.inside&&(u=nl(h)+u.slice(1));const c=u.charCodeAt(u.length-1),S=Ra(o.after.charCodeAt(0),c,p);S.inside&&(u=u.slice(0,-1)+nl(c));const w=f.move(p);return y(),s.attentionEncodeSurroundingInfo={after:S.outside,before:d.outside},a+u+w}function Zw(n,r,s){return s.options.emphasis||"*"}function Jw(n,r){let s=!1;return Wc(n,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return s=!0,Ac}),!!((!n.depth||n.depth<3)&&Fc(n)&&(r.options.setext||s))}function ex(n,r,s,o){const p=Math.max(Math.min(6,n.depth||1),1),y=s.createTracker(o);if(Jw(n,s)){const d=s.enter("headingSetext"),c=s.enter("phrasing"),S=s.containerPhrasing(n,{...y.current(),before:`
82
+ `)),d+=a.move(u),h(),d}function Qw(n,r,s){return(s?"":" ")+n}function Qc(n){const r=n.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Zw(n,r,s,o){const p=Qc(s),y=p==='"'?"Quote":"Apostrophe",f=s.enter("definition");let a=s.enter("label");const u=s.createTracker(o);let h=u.move("[");return h+=u.move(s.safe(s.associationId(n),{before:h,after:"]",...u.current()})),h+=u.move("]: "),a(),!n.url||/[\0- \u007F]/.test(n.url)?(a=s.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(s.safe(n.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(a=s.enter("destinationRaw"),h+=u.move(s.safe(n.url,{before:h,after:n.title?" ":`
83
+ `,...u.current()}))),a(),n.title&&(a=s.enter(`title${y}`),h+=u.move(" "+p),h+=u.move(s.safe(n.title,{before:h,after:p,...u.current()})),h+=u.move(p),a()),f(),h}function Jw(n){const r=n.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function nl(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Ra(n,r,s){const o=Kr(n),p=Kr(r);return o===void 0?p===void 0?s==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:p===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?p===void 0?{inside:!1,outside:!1}:p===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:p===void 0?{inside:!1,outside:!1}:p===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Jg.peek=ex;function Jg(n,r,s,o){const p=Jw(s),y=s.enter("emphasis"),f=s.createTracker(o),a=f.move(p);let u=f.move(s.containerPhrasing(n,{after:p,before:a,...f.current()}));const h=u.charCodeAt(0),d=Ra(o.before.charCodeAt(o.before.length-1),h,p);d.inside&&(u=nl(h)+u.slice(1));const c=u.charCodeAt(u.length-1),S=Ra(o.after.charCodeAt(0),c,p);S.inside&&(u=u.slice(0,-1)+nl(c));const w=f.move(p);return y(),s.attentionEncodeSurroundingInfo={after:S.outside,before:d.outside},a+u+w}function ex(n,r,s){return s.options.emphasis||"*"}function tx(n,r){let s=!1;return Wc(n,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return s=!0,Ac}),!!((!n.depth||n.depth<3)&&Fc(n)&&(r.options.setext||s))}function nx(n,r,s,o){const p=Math.max(Math.min(6,n.depth||1),1),y=s.createTracker(o);if(tx(n,s)){const d=s.enter("headingSetext"),c=s.enter("phrasing"),S=s.containerPhrasing(n,{...y.current(),before:`
84
84
  `,after:`
85
85
  `});return c(),d(),S+`
86
86
  `+(p===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
87
87
  `))+1))}const f="#".repeat(p),a=s.enter("headingAtx"),u=s.enter("phrasing");y.move(f+" ");let h=s.containerPhrasing(n,{before:"# ",after:`
88
- `,...y.current()});return/^[\t ]/.test(h)&&(h=nl(h.charCodeAt(0))+h.slice(1)),h=h?f+" "+h:f,s.options.closeAtx&&(h+=" "+f),u(),a(),h}Jg.peek=tx;function Jg(n){return n.value||""}function tx(){return"<"}e_.peek=nx;function e_(n,r,s,o){const p=Qc(s),y=p==='"'?"Quote":"Apostrophe",f=s.enter("image");let a=s.enter("label");const u=s.createTracker(o);let h=u.move("![");return h+=u.move(s.safe(n.alt,{before:h,after:"]",...u.current()})),h+=u.move("]("),a(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(a=s.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(s.safe(n.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(a=s.enter("destinationRaw"),h+=u.move(s.safe(n.url,{before:h,after:n.title?" ":")",...u.current()}))),a(),n.title&&(a=s.enter(`title${y}`),h+=u.move(" "+p),h+=u.move(s.safe(n.title,{before:h,after:p,...u.current()})),h+=u.move(p),a()),h+=u.move(")"),f(),h}function nx(){return"!"}t_.peek=ix;function t_(n,r,s,o){const p=n.referenceType,y=s.enter("imageReference");let f=s.enter("label");const a=s.createTracker(o);let u=a.move("![");const h=s.safe(n.alt,{before:u,after:"]",...a.current()});u+=a.move(h+"]["),f();const d=s.stack;s.stack=[],f=s.enter("reference");const c=s.safe(s.associationId(n),{before:u,after:"]",...a.current()});return f(),s.stack=d,y(),p==="full"||!h||h!==c?u+=a.move(c+"]"):p==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function ix(){return"!"}n_.peek=rx;function n_(n,r,s){let o=n.value||"",p="`",y=-1;for(;new RegExp("(^|[^`])"+p+"([^`]|$)").test(o);)p+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++y<s.unsafe.length;){const f=s.unsafe[y],a=s.compilePattern(f);let u;if(f.atBreak)for(;u=a.exec(o);){let h=u.index;o.charCodeAt(h)===10&&o.charCodeAt(h-1)===13&&h--,o=o.slice(0,h)+" "+o.slice(u.index+1)}}return p+o+p}function rx(){return"`"}function i_(n,r){const s=Fc(n);return!!(!r.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(s===n.url||"mailto:"+s===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}r_.peek=sx;function r_(n,r,s,o){const p=Qc(s),y=p==='"'?"Quote":"Apostrophe",f=s.createTracker(o);let a,u;if(i_(n,s)){const d=s.stack;s.stack=[],a=s.enter("autolink");let c=f.move("<");return c+=f.move(s.containerPhrasing(n,{before:c,after:">",...f.current()})),c+=f.move(">"),a(),s.stack=d,c}a=s.enter("link"),u=s.enter("label");let h=f.move("[");return h+=f.move(s.containerPhrasing(n,{before:h,after:"](",...f.current()})),h+=f.move("]("),u(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(u=s.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(s.safe(n.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(u=s.enter("destinationRaw"),h+=f.move(s.safe(n.url,{before:h,after:n.title?" ":")",...f.current()}))),u(),n.title&&(u=s.enter(`title${y}`),h+=f.move(" "+p),h+=f.move(s.safe(n.title,{before:h,after:p,...f.current()})),h+=f.move(p),u()),h+=f.move(")"),a(),h}function sx(n,r,s){return i_(n,s)?"<":"["}s_.peek=lx;function s_(n,r,s,o){const p=n.referenceType,y=s.enter("linkReference");let f=s.enter("label");const a=s.createTracker(o);let u=a.move("[");const h=s.containerPhrasing(n,{before:u,after:"]",...a.current()});u+=a.move(h+"]["),f();const d=s.stack;s.stack=[],f=s.enter("reference");const c=s.safe(s.associationId(n),{before:u,after:"]",...a.current()});return f(),s.stack=d,y(),p==="full"||!h||h!==c?u+=a.move(c+"]"):p==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function lx(){return"["}function Zc(n){const r=n.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function ax(n){const r=Zc(n),s=n.options.bulletOther;if(!s)return r==="*"?"-":"*";if(s!=="*"&&s!=="+"&&s!=="-")throw new Error("Cannot serialize items with `"+s+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(s===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+s+"`) to be different");return s}function ox(n){const r=n.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function l_(n){const r=n.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function ux(n,r,s,o){const p=s.enter("list"),y=s.bulletCurrent;let f=n.ordered?ox(s):Zc(s);const a=n.ordered?f==="."?")":".":ax(s);let u=r&&s.bulletLastUsed?f===s.bulletLastUsed:!1;if(!n.ordered){const d=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&d&&(!d.children||!d.children[0])&&s.stack[s.stack.length-1]==="list"&&s.stack[s.stack.length-2]==="listItem"&&s.stack[s.stack.length-3]==="list"&&s.stack[s.stack.length-4]==="listItem"&&s.indexStack[s.indexStack.length-1]===0&&s.indexStack[s.indexStack.length-2]===0&&s.indexStack[s.indexStack.length-3]===0&&(u=!0),l_(s)===f&&d){let c=-1;for(;++c<n.children.length;){const S=n.children[c];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(f=a),s.bulletCurrent=f;const h=s.containerFlow(n,o);return s.bulletLastUsed=f,s.bulletCurrent=y,p(),h}function cx(n){const r=n.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function hx(n,r,s,o){const p=cx(s);let y=s.bulletCurrent||Zc(s);r&&r.type==="list"&&r.ordered&&(y=(typeof r.start=="number"&&r.start>-1?r.start:1)+(s.options.incrementListMarker===!1?0:r.children.indexOf(n))+y);let f=y.length+1;(p==="tab"||p==="mixed"&&(r&&r.type==="list"&&r.spread||n.spread))&&(f=Math.ceil(f/4)*4);const a=s.createTracker(o);a.move(y+" ".repeat(f-y.length)),a.shift(f);const u=s.enter("listItem"),h=s.indentLines(s.containerFlow(n,a.current()),d);return u(),h;function d(c,S,w){return S?(w?"":" ".repeat(f))+c:(w?y:y+" ".repeat(f-y.length))+c}}function fx(n,r,s,o){const p=s.enter("paragraph"),y=s.enter("phrasing"),f=s.containerPhrasing(n,o);return y(),p(),f}const dx=Ba(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function px(n,r,s,o){return(n.children.some(function(f){return dx(f)})?s.containerPhrasing:s.containerFlow).call(s,n,o)}function mx(n){const r=n.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}a_.peek=gx;function a_(n,r,s,o){const p=mx(s),y=s.enter("strong"),f=s.createTracker(o),a=f.move(p+p);let u=f.move(s.containerPhrasing(n,{after:p,before:a,...f.current()}));const h=u.charCodeAt(0),d=Ra(o.before.charCodeAt(o.before.length-1),h,p);d.inside&&(u=nl(h)+u.slice(1));const c=u.charCodeAt(u.length-1),S=Ra(o.after.charCodeAt(0),c,p);S.inside&&(u=u.slice(0,-1)+nl(c));const w=f.move(p+p);return y(),s.attentionEncodeSurroundingInfo={after:S.outside,before:d.outside},a+u+w}function gx(n,r,s){return s.options.strong||"*"}function _x(n,r,s,o){return s.safe(n.value,o)}function vx(n){const r=n.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function yx(n,r,s){const o=(l_(s)+(s.options.ruleSpaces?" ":"")).repeat(vx(s));return s.options.ruleSpaces?o.slice(0,-1):o}const o_={blockquote:Fw,break:Xm,code:Kw,definition:Xw,emphasis:Zg,hardBreak:Xm,heading:ex,html:Jg,image:e_,imageReference:t_,inlineCode:n_,link:r_,linkReference:s_,list:ux,listItem:hx,paragraph:fx,root:px,strong:a_,text:_x,thematicBreak:yx};function Sx(){return{enter:{table:bx,tableData:Qm,tableHeader:Qm,tableRow:wx},exit:{codeText:xx,table:Cx,tableData:yc,tableHeader:yc,tableRow:yc}}}function bx(n){const r=n._align;this.enter({type:"table",align:r.map(function(s){return s==="none"?null:s}),children:[]},n),this.data.inTable=!0}function Cx(n){this.exit(n),this.data.inTable=void 0}function wx(n){this.enter({type:"tableRow",children:[]},n)}function yc(n){this.exit(n)}function Qm(n){this.enter({type:"tableCell",children:[]},n)}function xx(n){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,Ex));const s=this.stack[this.stack.length-1];s.type,s.value=r,this.exit(n)}function Ex(n,r){return r==="|"?r:n}function kx(n){const r=n||{},s=r.tableCellPadding,o=r.tablePipeAlign,p=r.stringLength,y=s?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
88
+ `,...y.current()});return/^[\t ]/.test(h)&&(h=nl(h.charCodeAt(0))+h.slice(1)),h=h?f+" "+h:f,s.options.closeAtx&&(h+=" "+f),u(),a(),h}e_.peek=ix;function e_(n){return n.value||""}function ix(){return"<"}t_.peek=rx;function t_(n,r,s,o){const p=Qc(s),y=p==='"'?"Quote":"Apostrophe",f=s.enter("image");let a=s.enter("label");const u=s.createTracker(o);let h=u.move("![");return h+=u.move(s.safe(n.alt,{before:h,after:"]",...u.current()})),h+=u.move("]("),a(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(a=s.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(s.safe(n.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(a=s.enter("destinationRaw"),h+=u.move(s.safe(n.url,{before:h,after:n.title?" ":")",...u.current()}))),a(),n.title&&(a=s.enter(`title${y}`),h+=u.move(" "+p),h+=u.move(s.safe(n.title,{before:h,after:p,...u.current()})),h+=u.move(p),a()),h+=u.move(")"),f(),h}function rx(){return"!"}n_.peek=sx;function n_(n,r,s,o){const p=n.referenceType,y=s.enter("imageReference");let f=s.enter("label");const a=s.createTracker(o);let u=a.move("![");const h=s.safe(n.alt,{before:u,after:"]",...a.current()});u+=a.move(h+"]["),f();const d=s.stack;s.stack=[],f=s.enter("reference");const c=s.safe(s.associationId(n),{before:u,after:"]",...a.current()});return f(),s.stack=d,y(),p==="full"||!h||h!==c?u+=a.move(c+"]"):p==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function sx(){return"!"}i_.peek=lx;function i_(n,r,s){let o=n.value||"",p="`",y=-1;for(;new RegExp("(^|[^`])"+p+"([^`]|$)").test(o);)p+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++y<s.unsafe.length;){const f=s.unsafe[y],a=s.compilePattern(f);let u;if(f.atBreak)for(;u=a.exec(o);){let h=u.index;o.charCodeAt(h)===10&&o.charCodeAt(h-1)===13&&h--,o=o.slice(0,h)+" "+o.slice(u.index+1)}}return p+o+p}function lx(){return"`"}function r_(n,r){const s=Fc(n);return!!(!r.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(s===n.url||"mailto:"+s===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}s_.peek=ax;function s_(n,r,s,o){const p=Qc(s),y=p==='"'?"Quote":"Apostrophe",f=s.createTracker(o);let a,u;if(r_(n,s)){const d=s.stack;s.stack=[],a=s.enter("autolink");let c=f.move("<");return c+=f.move(s.containerPhrasing(n,{before:c,after:">",...f.current()})),c+=f.move(">"),a(),s.stack=d,c}a=s.enter("link"),u=s.enter("label");let h=f.move("[");return h+=f.move(s.containerPhrasing(n,{before:h,after:"](",...f.current()})),h+=f.move("]("),u(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(u=s.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(s.safe(n.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(u=s.enter("destinationRaw"),h+=f.move(s.safe(n.url,{before:h,after:n.title?" ":")",...f.current()}))),u(),n.title&&(u=s.enter(`title${y}`),h+=f.move(" "+p),h+=f.move(s.safe(n.title,{before:h,after:p,...f.current()})),h+=f.move(p),u()),h+=f.move(")"),a(),h}function ax(n,r,s){return r_(n,s)?"<":"["}l_.peek=ox;function l_(n,r,s,o){const p=n.referenceType,y=s.enter("linkReference");let f=s.enter("label");const a=s.createTracker(o);let u=a.move("[");const h=s.containerPhrasing(n,{before:u,after:"]",...a.current()});u+=a.move(h+"]["),f();const d=s.stack;s.stack=[],f=s.enter("reference");const c=s.safe(s.associationId(n),{before:u,after:"]",...a.current()});return f(),s.stack=d,y(),p==="full"||!h||h!==c?u+=a.move(c+"]"):p==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function ox(){return"["}function Zc(n){const r=n.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function ux(n){const r=Zc(n),s=n.options.bulletOther;if(!s)return r==="*"?"-":"*";if(s!=="*"&&s!=="+"&&s!=="-")throw new Error("Cannot serialize items with `"+s+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(s===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+s+"`) to be different");return s}function cx(n){const r=n.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function a_(n){const r=n.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function hx(n,r,s,o){const p=s.enter("list"),y=s.bulletCurrent;let f=n.ordered?cx(s):Zc(s);const a=n.ordered?f==="."?")":".":ux(s);let u=r&&s.bulletLastUsed?f===s.bulletLastUsed:!1;if(!n.ordered){const d=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&d&&(!d.children||!d.children[0])&&s.stack[s.stack.length-1]==="list"&&s.stack[s.stack.length-2]==="listItem"&&s.stack[s.stack.length-3]==="list"&&s.stack[s.stack.length-4]==="listItem"&&s.indexStack[s.indexStack.length-1]===0&&s.indexStack[s.indexStack.length-2]===0&&s.indexStack[s.indexStack.length-3]===0&&(u=!0),a_(s)===f&&d){let c=-1;for(;++c<n.children.length;){const S=n.children[c];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(f=a),s.bulletCurrent=f;const h=s.containerFlow(n,o);return s.bulletLastUsed=f,s.bulletCurrent=y,p(),h}function fx(n){const r=n.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function dx(n,r,s,o){const p=fx(s);let y=s.bulletCurrent||Zc(s);r&&r.type==="list"&&r.ordered&&(y=(typeof r.start=="number"&&r.start>-1?r.start:1)+(s.options.incrementListMarker===!1?0:r.children.indexOf(n))+y);let f=y.length+1;(p==="tab"||p==="mixed"&&(r&&r.type==="list"&&r.spread||n.spread))&&(f=Math.ceil(f/4)*4);const a=s.createTracker(o);a.move(y+" ".repeat(f-y.length)),a.shift(f);const u=s.enter("listItem"),h=s.indentLines(s.containerFlow(n,a.current()),d);return u(),h;function d(c,S,w){return S?(w?"":" ".repeat(f))+c:(w?y:y+" ".repeat(f-y.length))+c}}function px(n,r,s,o){const p=s.enter("paragraph"),y=s.enter("phrasing"),f=s.containerPhrasing(n,o);return y(),p(),f}const mx=Ba(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gx(n,r,s,o){return(n.children.some(function(f){return mx(f)})?s.containerPhrasing:s.containerFlow).call(s,n,o)}function _x(n){const r=n.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}o_.peek=vx;function o_(n,r,s,o){const p=_x(s),y=s.enter("strong"),f=s.createTracker(o),a=f.move(p+p);let u=f.move(s.containerPhrasing(n,{after:p,before:a,...f.current()}));const h=u.charCodeAt(0),d=Ra(o.before.charCodeAt(o.before.length-1),h,p);d.inside&&(u=nl(h)+u.slice(1));const c=u.charCodeAt(u.length-1),S=Ra(o.after.charCodeAt(0),c,p);S.inside&&(u=u.slice(0,-1)+nl(c));const w=f.move(p+p);return y(),s.attentionEncodeSurroundingInfo={after:S.outside,before:d.outside},a+u+w}function vx(n,r,s){return s.options.strong||"*"}function yx(n,r,s,o){return s.safe(n.value,o)}function Sx(n){const r=n.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function bx(n,r,s){const o=(a_(s)+(s.options.ruleSpaces?" ":"")).repeat(Sx(s));return s.options.ruleSpaces?o.slice(0,-1):o}const u_={blockquote:Vw,break:Xm,code:Xw,definition:Zw,emphasis:Jg,hardBreak:Xm,heading:nx,html:e_,image:t_,imageReference:n_,inlineCode:i_,link:s_,linkReference:l_,list:hx,listItem:dx,paragraph:px,root:gx,strong:o_,text:yx,thematicBreak:bx};function Cx(){return{enter:{table:wx,tableData:Qm,tableHeader:Qm,tableRow:Ex},exit:{codeText:kx,table:xx,tableData:yc,tableHeader:yc,tableRow:yc}}}function wx(n){const r=n._align;this.enter({type:"table",align:r.map(function(s){return s==="none"?null:s}),children:[]},n),this.data.inTable=!0}function xx(n){this.exit(n),this.data.inTable=void 0}function Ex(n){this.enter({type:"tableRow",children:[]},n)}function yc(n){this.exit(n)}function Qm(n){this.enter({type:"tableCell",children:[]},n)}function kx(n){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,Ax));const s=this.stack[this.stack.length-1];s.type,s.value=r,this.exit(n)}function Ax(n,r){return r==="|"?r:n}function Tx(n){const r=n||{},s=r.tableCellPadding,o=r.tablePipeAlign,p=r.stringLength,y=s?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
89
89
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:u,tableRow:a}};function f(w,A,x,b){return h(d(w,x,b),w.align)}function a(w,A,x,b){const _=c(w,x,b),g=h([_]);return g.slice(0,g.indexOf(`
90
- `))}function u(w,A,x,b){const _=x.enter("tableCell"),g=x.enter("phrasing"),v=x.containerPhrasing(w,{...b,before:y,after:y});return g(),_(),v}function h(w,A){return Uw(w,{align:A,alignDelimiters:o,padding:s,stringLength:p})}function d(w,A,x){const b=w.children;let _=-1;const g=[],v=A.enter("table");for(;++_<b.length;)g[_]=c(b[_],A,x);return v(),g}function c(w,A,x){const b=w.children;let _=-1;const g=[],v=A.enter("tableRow");for(;++_<b.length;)g[_]=u(b[_],w,A,x);return v(),g}function S(w,A,x){let b=o_.inlineCode(w,A,x);return x.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function Ax(){return{exit:{taskListCheckValueChecked:Zm,taskListCheckValueUnchecked:Zm,paragraph:Dx}}}function Tx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Rx}}}function Zm(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function Dx(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const s=this.stack[this.stack.length-1];s.type;const o=s.children[0];if(o&&o.type==="text"){const p=r.children;let y=-1,f;for(;++y<p.length;){const a=p[y];if(a.type==="paragraph"){f=a;break}}f===s&&(o.value=o.value.slice(1),o.value.length===0?s.children.shift():s.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,s.position.start=Object.assign({},o.position.start)))}}this.exit(n)}function Rx(n,r,s,o){const p=n.children[0],y=typeof n.checked=="boolean"&&p&&p.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",a=s.createTracker(o);y&&a.move(f);let u=o_.listItem(n,r,s,{...o,...a.current()});return y&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),u;function h(d){return d+f}}function Mx(){return[uw(),Rw(),Bw(),Sx(),Ax()]}function Lx(n){return{extensions:[cw(),Mw(n),Nw(),kx(n),Tx()]}}const Ox={tokenize:Ix,partial:!0},u_={tokenize:Ux,partial:!0},c_={tokenize:Px,partial:!0},h_={tokenize:Fx,partial:!0},Bx={tokenize:qx,partial:!0},f_={name:"wwwAutolink",tokenize:zx,previous:p_},d_={name:"protocolAutolink",tokenize:Hx,previous:m_},ii={name:"emailAutolink",tokenize:jx,previous:g_},Nn={};function Nx(){return{text:Nn}}let Ji=48;for(;Ji<123;)Nn[Ji]=ii,Ji++,Ji===58?Ji=65:Ji===91&&(Ji=97);Nn[43]=ii;Nn[45]=ii;Nn[46]=ii;Nn[95]=ii;Nn[72]=[ii,d_];Nn[104]=[ii,d_];Nn[87]=[ii,f_];Nn[119]=[ii,f_];function jx(n,r,s){const o=this;let p,y;return f;function f(c){return!Mc(c)||!g_.call(o,o.previous)||Jc(o.events)?s(c):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),a(c))}function a(c){return Mc(c)?(n.consume(c),a):c===64?(n.consume(c),u):s(c)}function u(c){return c===46?n.check(Bx,d,h)(c):c===45||c===95||Ft(c)?(y=!0,n.consume(c),u):d(c)}function h(c){return n.consume(c),p=!0,u}function d(c){return y&&p&&Gt(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),r(c)):s(c)}}function zx(n,r,s){const o=this;return p;function p(f){return f!==87&&f!==119||!p_.call(o,o.previous)||Jc(o.events)?s(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Ox,n.attempt(u_,n.attempt(c_,y),s),s)(f))}function y(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(f)}}function Hx(n,r,s){const o=this;let p="",y=!1;return f;function f(c){return(c===72||c===104)&&m_.call(o,o.previous)&&!Jc(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),p+=String.fromCodePoint(c),n.consume(c),a):s(c)}function a(c){if(Gt(c)&&p.length<5)return p+=String.fromCodePoint(c),n.consume(c),a;if(c===58){const S=p.toLowerCase();if(S==="http"||S==="https")return n.consume(c),u}return s(c)}function u(c){return c===47?(n.consume(c),y?h:(y=!0,u)):s(c)}function h(c){return c===null||Aa(c)||ot(c)||tr(c)||Ma(c)?s(c):n.attempt(u_,n.attempt(c_,d),s)(c)}function d(c){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(c)}}function Ix(n,r,s){let o=0;return p;function p(f){return(f===87||f===119)&&o<3?(o++,n.consume(f),p):f===46&&o===3?(n.consume(f),y):s(f)}function y(f){return f===null?s(f):r(f)}}function Ux(n,r,s){let o,p,y;return f;function f(h){return h===46||h===95?n.check(h_,u,a)(h):h===null||ot(h)||tr(h)||h!==45&&Ma(h)?u(h):(y=!0,n.consume(h),f)}function a(h){return h===95?o=!0:(p=o,o=void 0),n.consume(h),f}function u(h){return p||o||!y?s(h):r(h)}}function Px(n,r){let s=0,o=0;return p;function p(f){return f===40?(s++,n.consume(f),p):f===41&&o<s?y(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(h_,r,y)(f):f===null||ot(f)||tr(f)?r(f):(n.consume(f),p)}function y(f){return f===41&&o++,n.consume(f),p}}function Fx(n,r,s){return o;function o(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(n.consume(a),o):a===38?(n.consume(a),y):a===93?(n.consume(a),p):a===60||a===null||ot(a)||tr(a)?r(a):s(a)}function p(a){return a===null||a===40||a===91||ot(a)||tr(a)?r(a):o(a)}function y(a){return Gt(a)?f(a):s(a)}function f(a){return a===59?(n.consume(a),o):Gt(a)?(n.consume(a),f):s(a)}}function qx(n,r,s){return o;function o(y){return n.consume(y),p}function p(y){return Ft(y)?s(y):r(y)}}function p_(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||ot(n)}function m_(n){return!Gt(n)}function g_(n){return!(n===47||Mc(n))}function Mc(n){return n===43||n===45||n===46||n===95||Ft(n)}function Jc(n){let r=n.length,s=!1;for(;r--;){const o=n[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){s=!0;break}if(o._gfmAutolinkLiteralWalkedInto){s=!1;break}}return n.length>0&&!s&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),s}const Vx={tokenize:Zx,partial:!0};function Gx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Wx,continuation:{tokenize:Xx},exit:Qx}},text:{91:{name:"gfmFootnoteCall",tokenize:Kx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$x,resolveTo:Yx}}}}function $x(n,r,s){const o=this;let p=o.events.length;const y=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f;for(;p--;){const u=o.events[p][1];if(u.type==="labelImage"){f=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!f||!f._balanced)return s(u);const h=An(o.sliceSerialize({start:f.end,end:o.now()}));return h.codePointAt(0)!==94||!y.includes(h.slice(1))?s(u):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(u),n.exit("gfmFootnoteCallLabelMarker"),r(u))}}function Yx(n,r){let s=n.length;for(;s--;)if(n[s][1].type==="labelImage"&&n[s][0]==="enter"){n[s][1];break}n[s+1][1].type="data",n[s+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[s+3][1].start),end:Object.assign({},n[n.length-1][1].end)},p={type:"gfmFootnoteCallMarker",start:Object.assign({},n[s+3][1].end),end:Object.assign({},n[s+3][1].end)};p.end.column++,p.end.offset++,p.end._bufferIndex++;const y={type:"gfmFootnoteCallString",start:Object.assign({},p.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},y.start),end:Object.assign({},y.end)},a=[n[s+1],n[s+2],["enter",o,r],n[s+3],n[s+4],["enter",p,r],["exit",p,r],["enter",y,r],["enter",f,r],["exit",f,r],["exit",y,r],n[n.length-2],n[n.length-1],["exit",o,r]];return n.splice(s,n.length-s+1,...a),n}function Kx(n,r,s){const o=this,p=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let y=0,f;return a;function a(c){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(c),n.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?s(c):(n.enter("gfmFootnoteCallMarker"),n.consume(c),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",h)}function h(c){if(y>999||c===93&&!f||c===null||c===91||ot(c))return s(c);if(c===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return p.includes(An(o.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(c),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):s(c)}return ot(c)||(f=!0),y++,n.consume(c),c===92?d:h}function d(c){return c===91||c===92||c===93?(n.consume(c),y++,h):h(c)}}function Wx(n,r,s){const o=this,p=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let y,f=0,a;return u;function u(A){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(A){return A===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",d):s(A)}function d(A){if(f>999||A===93&&!a||A===null||A===91||ot(A))return s(A);if(A===93){n.exit("chunkString");const x=n.exit("gfmFootnoteDefinitionLabelString");return y=An(o.sliceSerialize(x)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return ot(A)||(a=!0),f++,n.consume(A),A===92?c:d}function c(A){return A===91||A===92||A===93?(n.consume(A),f++,d):d(A)}function S(A){return A===58?(n.enter("definitionMarker"),n.consume(A),n.exit("definitionMarker"),p.includes(y)||p.push(y),Xe(n,w,"gfmFootnoteDefinitionWhitespace")):s(A)}function w(A){return r(A)}}function Xx(n,r,s){return n.check(rl,r,n.attempt(Vx,r,s))}function Qx(n){n.exit("gfmFootnoteDefinition")}function Zx(n,r,s){const o=this;return Xe(n,p,"gfmFootnoteDefinitionIndent",5);function p(y){const f=o.events[o.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?r(y):s(y)}}function Jx(n){let s=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:y,resolveAll:p};return s==null&&(s=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function p(f,a){let u=-1;for(;++u<f.length;)if(f[u][0]==="enter"&&f[u][1].type==="strikethroughSequenceTemporary"&&f[u][1]._close){let h=u;for(;h--;)if(f[h][0]==="exit"&&f[h][1].type==="strikethroughSequenceTemporary"&&f[h][1]._open&&f[u][1].end.offset-f[u][1].start.offset===f[h][1].end.offset-f[h][1].start.offset){f[u][1].type="strikethroughSequence",f[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},f[h][1].start),end:Object.assign({},f[u][1].end)},c={type:"strikethroughText",start:Object.assign({},f[h][1].end),end:Object.assign({},f[u][1].start)},S=[["enter",d,a],["enter",f[h][1],a],["exit",f[h][1],a],["enter",c,a]],w=a.parser.constructs.insideSpan.null;w&&hn(S,S.length,0,La(w,f.slice(h+1,u),a)),hn(S,S.length,0,[["exit",c,a],["enter",f[u][1],a],["exit",f[u][1],a],["exit",d,a]]),hn(f,h-1,u-h+3,S),u=h+S.length-2;break}}for(u=-1;++u<f.length;)f[u][1].type==="strikethroughSequenceTemporary"&&(f[u][1].type="data");return f}function y(f,a,u){const h=this.previous,d=this.events;let c=0;return S;function S(A){return h===126&&d[d.length-1][1].type!=="characterEscape"?u(A):(f.enter("strikethroughSequenceTemporary"),w(A))}function w(A){const x=Kr(h);if(A===126)return c>1?u(A):(f.consume(A),c++,w);if(c<2&&!s)return u(A);const b=f.exit("strikethroughSequenceTemporary"),_=Kr(A);return b._open=!_||_===2&&!!x,b._close=!x||x===2&&!!_,a(A)}}}class e2{constructor(){this.map=[]}add(r,s,o){t2(this,r,s,o)}consume(r){if(this.map.sort(function(y,f){return y[0]-f[0]}),this.map.length===0)return;let s=this.map.length;const o=[];for(;s>0;)s-=1,o.push(r.slice(this.map[s][0]+this.map[s][1]),this.map[s][2]),r.length=this.map[s][0];o.push(r.slice()),r.length=0;let p=o.pop();for(;p;){for(const y of p)r.push(y);p=o.pop()}this.map.length=0}}function t2(n,r,s,o){let p=0;if(!(s===0&&o.length===0)){for(;p<n.map.length;){if(n.map[p][0]===r){n.map[p][1]+=s,n.map[p][2].push(...o);return}p+=1}n.map.push([r,s,o])}}function n2(n,r){let s=!1;const o=[];for(;r<n.length;){const p=n[r];if(s){if(p[0]==="enter")p[1].type==="tableContent"&&o.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(p[1].type==="tableContent"){if(n[r-1][1].type==="tableDelimiterMarker"){const y=o.length-1;o[y]=o[y]==="left"?"center":"right"}}else if(p[1].type==="tableDelimiterRow")break}else p[0]==="enter"&&p[1].type==="tableDelimiterRow"&&(s=!0);r+=1}return o}function i2(){return{flow:{null:{name:"table",tokenize:r2,resolveAll:s2}}}}function r2(n,r,s){const o=this;let p=0,y=0,f;return a;function a(B){let z=o.events.length-1;for(;z>-1;){const Y=o.events[z][1].type;if(Y==="lineEnding"||Y==="linePrefix")z--;else break}const q=z>-1?o.events[z][1].type:null,F=q==="tableHead"||q==="tableRow"?D:u;return F===D&&o.parser.lazy[o.now().line]?s(B):F(B)}function u(B){return n.enter("tableHead"),n.enter("tableRow"),h(B)}function h(B){return B===124||(f=!0,y+=1),d(B)}function d(B){return B===null?s(B):Te(B)?y>1?(y=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),w):s(B):Ve(B)?Xe(n,d,"whitespace")(B):(y+=1,f&&(f=!1,p+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),f=!0,d):(n.enter("data"),c(B)))}function c(B){return B===null||B===124||ot(B)?(n.exit("data"),d(B)):(n.consume(B),B===92?S:c)}function S(B){return B===92||B===124?(n.consume(B),c):c(B)}function w(B){return o.interrupt=!1,o.parser.lazy[o.now().line]?s(B):(n.enter("tableDelimiterRow"),f=!1,Ve(B)?Xe(n,A,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):A(B))}function A(B){return B===45||B===58?b(B):B===124?(f=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),x):M(B)}function x(B){return Ve(B)?Xe(n,b,"whitespace")(B):b(B)}function b(B){return B===58?(y+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),_):B===45?(y+=1,_(B)):B===null||Te(B)?k(B):M(B)}function _(B){return B===45?(n.enter("tableDelimiterFiller"),g(B)):M(B)}function g(B){return B===45?(n.consume(B),g):B===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),v):(n.exit("tableDelimiterFiller"),v(B))}function v(B){return Ve(B)?Xe(n,k,"whitespace")(B):k(B)}function k(B){return B===124?A(B):B===null||Te(B)?!f||p!==y?M(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(B)):M(B)}function M(B){return s(B)}function D(B){return n.enter("tableRow"),T(B)}function T(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),T):B===null||Te(B)?(n.exit("tableRow"),r(B)):Ve(B)?Xe(n,T,"whitespace")(B):(n.enter("data"),E(B))}function E(B){return B===null||B===124||ot(B)?(n.exit("data"),T(B)):(n.consume(B),B===92?R:E)}function R(B){return B===92||B===124?(n.consume(B),E):E(B)}}function s2(n,r){let s=-1,o=!0,p=0,y=[0,0,0,0],f=[0,0,0,0],a=!1,u=0,h,d,c;const S=new e2;for(;++s<n.length;){const w=n[s],A=w[1];w[0]==="enter"?A.type==="tableHead"?(a=!1,u!==0&&(Jm(S,r,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},S.add(s,0,[["enter",h,r]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(o=!0,c=void 0,y=[0,0,0,0],f=[0,s+1,0,0],a&&(a=!1,d={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},S.add(s,0,[["enter",d,r]])),p=A.type==="tableDelimiterRow"?2:d?3:1):p&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(o=!1,f[2]===0&&(y[1]!==0&&(f[0]=f[1],c=wa(S,r,y,p,void 0,c),y=[0,0,0,0]),f[2]=s)):A.type==="tableCellDivider"&&(o?o=!1:(y[1]!==0&&(f[0]=f[1],c=wa(S,r,y,p,void 0,c)),y=f,f=[y[1],s,0,0])):A.type==="tableHead"?(a=!0,u=s):A.type==="tableRow"||A.type==="tableDelimiterRow"?(u=s,y[1]!==0?(f[0]=f[1],c=wa(S,r,y,p,s,c)):f[1]!==0&&(c=wa(S,r,f,p,s,c)),p=0):p&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(f[3]=s)}for(u!==0&&Jm(S,r,u,h,d),S.consume(r.events),s=-1;++s<r.events.length;){const w=r.events[s];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=n2(r.events,s))}return n}function wa(n,r,s,o,p,y){const f=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",a="tableContent";s[0]!==0&&(y.end=Object.assign({},Gr(r.events,s[0])),n.add(s[0],0,[["exit",y,r]]));const u=Gr(r.events,s[1]);if(y={type:f,start:Object.assign({},u),end:Object.assign({},u)},n.add(s[1],0,[["enter",y,r]]),s[2]!==0){const h=Gr(r.events,s[2]),d=Gr(r.events,s[3]),c={type:a,start:Object.assign({},h),end:Object.assign({},d)};if(n.add(s[2],0,[["enter",c,r]]),o!==2){const S=r.events[s[2]],w=r.events[s[3]];if(S[1].end=Object.assign({},w[1].end),S[1].type="chunkText",S[1].contentType="text",s[3]>s[2]+1){const A=s[2]+1,x=s[3]-s[2]-1;n.add(A,x,[])}}n.add(s[3]+1,0,[["exit",c,r]])}return p!==void 0&&(y.end=Object.assign({},Gr(r.events,p)),n.add(p,0,[["exit",y,r]]),y=void 0),y}function Jm(n,r,s,o,p){const y=[],f=Gr(r.events,s);p&&(p.end=Object.assign({},f),y.push(["exit",p,r])),o.end=Object.assign({},f),y.push(["exit",o,r]),n.add(s+1,0,y)}function Gr(n,r){const s=n[r],o=s[0]==="enter"?"start":"end";return s[1][o]}const l2={name:"tasklistCheck",tokenize:o2};function a2(){return{text:{91:l2}}}function o2(n,r,s){const o=this;return p;function p(u){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?s(u):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(u),n.exit("taskListCheckMarker"),y)}function y(u){return ot(u)?(n.enter("taskListCheckValueUnchecked"),n.consume(u),n.exit("taskListCheckValueUnchecked"),f):u===88||u===120?(n.enter("taskListCheckValueChecked"),n.consume(u),n.exit("taskListCheckValueChecked"),f):s(u)}function f(u){return u===93?(n.enter("taskListCheckMarker"),n.consume(u),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),a):s(u)}function a(u){return Te(u)?r(u):Ve(u)?n.check({tokenize:u2},r,s)(u):s(u)}}function u2(n,r,s){return Xe(n,o,"whitespace");function o(p){return p===null?s(p):r(p)}}function c2(n){return Ag([Nx(),Gx(),Jx(n),i2(),a2()])}const h2={};function f2(n){const r=this,s=n||h2,o=r.data(),p=o.micromarkExtensions||(o.micromarkExtensions=[]),y=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),f=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);p.push(c2(s)),y.push(Mx()),f.push(Lx(s))}const d2=500;function p2({settings:n,busy:r=!1,promptPreviews:s,testResult:o,onSave:p,onTest:y,onClose:f}){const[a,u]=ue.useState(n),[h,d]=ue.useState(n.apiKey??"");return ue.useEffect(()=>{u(n),d(n.apiKey??"")},[n]),N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{className:"translation-settings-modal",role:"dialog","aria-modal":"true","aria-label":"Translation Settings",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Translation Settings"}),N.jsx("p",{children:"Use an OpenAI-compatible endpoint for the embedded translation panel."})]}),N.jsx("button",{type:"button",onClick:f,children:"Close"})]}),N.jsxs("div",{className:"translation-settings-grid",children:[N.jsxs("label",{children:[N.jsx("span",{children:"Base URL"}),N.jsx("input",{value:a.baseUrl,onChange:c=>u({...a,baseUrl:c.target.value}),placeholder:"https://api.openai.com/v1"})]}),N.jsxs("label",{children:[N.jsx("span",{children:"API key"}),N.jsx("input",{value:h,onChange:c=>d(c.target.value),placeholder:"API key",autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,type:"text"})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Model"}),N.jsx("input",{value:a.model,onChange:c=>u({...a,model:c.target.value})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Target language"}),N.jsx("input",{value:a.targetLanguage,onChange:c=>u({...a,targetLanguage:c.target.value})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Use context"}),N.jsx("input",{checked:a.contextEnabled,type:"checkbox",onChange:c=>u({...a,contextEnabled:c.target.checked})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Timeout ms"}),N.jsx("input",{min:3e3,type:"number",value:a.requestTimeoutMs,onChange:c=>u({...a,requestTimeoutMs:Number(c.target.value)})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Temperature"}),N.jsx("input",{min:0,max:1,step:.1,type:"number",value:a.temperature,onChange:c=>u({...a,temperature:Number(c.target.value)})})]})]}),N.jsxs("section",{className:"translation-prompt-settings",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h3",{children:"Translation Prompts"}),N.jsx("p",{children:"Edit the three cc-pm style prompt slots directly."})]}),N.jsx("button",{type:"button",disabled:r,onClick:()=>u({...a,prompts:void 0}),children:"Reset prompts"})]}),N.jsx("div",{className:"translation-prompt-stack",children:s.map(c=>N.jsxs("label",{children:[N.jsx("span",{children:c.label}),N.jsx("textarea",{value:g2(a,c),onChange:S=>u({...a,prompts:m2(a.prompts,c.key,S.target.value,c.defaultPrompt)})})]},c.key))})]}),o?N.jsx("div",{className:o.ok?"translation-test-result is-ok":"translation-test-result is-error",children:o.ok?`Connection ok: ${o.model} in ${o.elapsedMs}ms`:o.error}):null,N.jsxs("footer",{children:[N.jsx("button",{type:"button",disabled:r,onClick:y,children:"Test Connection"}),N.jsx("button",{type:"button",disabled:r,onClick:()=>void p({...a,enabled:!0,translateOutput:!0,translateUserInput:!0,inputMode:"review-before-send"},h.trim()),children:"Save"})]})]})})}function m2(n,r,s,o){const p={...n??{}};return s.trim()&&s!==o?p[r]=s:delete p[r],Object.keys(p).length>0?p:void 0}function g2(n,r){var s;return((s=n.prompts)==null?void 0:s[r.key])??r.defaultPrompt}function _2({active:n=!0,taskSlug:r,role:s,sessionId:o}){const[p,y]=ue.useState(null),[f,a]=ue.useState([]),[u,h]=ue.useState([]),[d,c]=ue.useState(""),[S,w]=ue.useState(!1),[A,x]=ue.useState(!1),[b,_]=ue.useState(!1),[g,v]=ue.useState("ready"),[k,M]=ue.useState(""),[D,T]=ue.useState(Date.now()),[E,R]=ue.useState(!1),[B,z]=ue.useState(""),[q,F]=ue.useState(!1),[Y,K]=ue.useState([]),[G,X]=ue.useState(),[J,I]=ue.useState(0),[O,j]=ue.useState(0),V=ue.useRef(n),U=ue.useRef(1),ne=ue.useRef(null);ue.useEffect(()=>{V.current=n},[n]),ue.useEffect(()=>{Promise.all([xe.getTranslationSettings(),xe.getTranslationPrompts()]).then(([ge,$e])=>{y(ge),K($e)}).catch(ge=>z(ge.message))},[]),ue.useEffect(()=>{a([]),h([]),z(""),v("ready"),M(""),U.current=1;let ge=!1,$e;const Oe=()=>{ge||($e=window.setTimeout(dt,V.current?200:1e3))},dt=async()=>{if(!ge)try{const Le=await xe.pollTranslationSession(o,U.current);if(ge)return;$(Le.events),U.current=Le.nextCursor,v(Le.status),V.current&&M(A2(new Date().toISOString()))}catch(Le){ge||z(Le instanceof Error?Le.message:"Translation poll failed.")}finally{Oe()}};return xe.startTranslationSession(r,s).then(Le=>{ge||(v(Le.status),U.current=Le.nextCursor,dt())}).catch(Le=>{ge||z(Le instanceof Error?Le.message:"Translation start failed.")}),()=>{ge=!0,$e!==void 0&&window.clearTimeout($e)}},[o,r,s,J]),ue.useEffect(()=>{if(!n)return;const ge=ne.current;if(!ge)return;const $e=window.requestAnimationFrame(()=>{ge.scrollTop=ge.scrollHeight});return()=>window.cancelAnimationFrame($e)},[n,O]);const _e=S2(f);ue.useEffect(()=>{if(!_e)return;T(Date.now());const ge=window.setInterval(()=>T(Date.now()),250);return()=>window.clearInterval(ge)},[_e]);async function me(ge=!1){if(p){R(!0),z(""),w(!1);try{const $e=await xe.translateUserInput(r,s,{text:d,mode:ge?"auto-send":"review-before-send",useContext:p.contextEnabled,send:ge});_($e.contextUsed),$e.sent?(c(""),w(!1)):(c($e.englishPreview),w(!0))}catch($e){z($e instanceof Error?$e.message:"Translation failed.")}finally{R(!1)}}}function $(ge){if(ge.length===0)return;for(const Oe of ge)Oe.type==="status"?v(Oe.status):Oe.type==="error"?z(Oe.message):Oe.type==="failures"&&h(Oe.failures);const $e=ge.filter(Oe=>Oe.type==="entry");$e.length>0&&(a(Oe=>{const dt=$e.reduce((wt,ae)=>E2(wt,ae.entry),Oe),Le=C2(dt);return Le.removedIds.size>0&&h(wt=>wt.filter(ae=>!Le.removedIds.has(ae.translationId))),Le.entries}),j(Oe=>Oe+1))}async function H(){if(d.trim()){R(!0),z("");try{await xe.sendTranslatedInput(r,s,{englishText:d}),c(""),w(!1),_(!1)}catch(ge){z(ge instanceof Error?ge.message:"Failed to send English input.")}finally{R(!1)}}}function te(ge){ge.key!=="Enter"||ge.shiftKey||ge.nativeEvent.isComposing||(ge.preventDefault(),!E&&d.trim()&&(S?H():me(A)))}async function Z(ge,$e){R(!0),z("");try{const Oe=await xe.updateTranslationSettings({...ge,...$e!==void 0?{apiKey:$e}:{}}),dt=await xe.getTranslationPrompts();y(Oe),K(dt),F(!1),I(Le=>Le+1)}catch(Oe){z(Oe instanceof Error?Oe.message:"Failed to save translation settings.")}finally{R(!1)}}async function fe(){R(!0),z("");try{X(await xe.testTranslationProvider())}catch(ge){z(ge instanceof Error?ge.message:"Provider test failed.")}finally{R(!1)}}async function Se(){a([]),h([]),U.current=1,await xe.clearTranslationSession(o).catch(ge=>z(ge.message))}async function Me(){R(!0),z("");try{const ge=await xe.ignoreTranslationFailures(o);h(ge.failures)}catch(ge){z(ge instanceof Error?ge.message:"Failed to ignore translation failures.")}finally{R(!1)}}async function Ie(){R(!0),z("");try{const ge=await xe.retryTranslationFailures(o);h(ge.failures)}catch(ge){z(ge instanceof Error?ge.message:"Failed to retry translation failures.")}finally{R(!1)}}if(!p)return N.jsx("aside",{className:"translation-panel",children:N.jsx("p",{className:"muted",children:"Loading translation settings..."})});const Ge=b2(f,g,D),Ue=u.length;return N.jsxs("aside",{className:"translation-panel",children:[N.jsxs("header",{className:"translation-panel-header",children:[N.jsxs("div",{className:"translation-panel-titlebar",children:[N.jsx("h2",{children:"Translation"}),N.jsxs("div",{className:"translation-panel-actions",children:[N.jsx("button",{"aria-pressed":A,className:`auto-send-toggle${A?" is-active":""}`,type:"button",onClick:()=>x(ge=>!ge),children:A?"✅ Auto-send":"× Auto-send"}),Ue>0?N.jsxs(N.Fragment,{children:[N.jsxs("button",{type:"button",disabled:E,onClick:()=>void Me(),children:["Ignore ",Ue]}),N.jsxs("button",{type:"button",disabled:E,onClick:()=>void Ie(),children:["Retry ",Ue]})]}):null,N.jsx("button",{type:"button",onClick:()=>F(!0),children:"Settings"}),N.jsx("button",{type:"button",onClick:()=>void Se(),children:"Clear"})]})]}),N.jsxs("div",{className:"translation-status-row",children:[N.jsxs("p",{children:[p.model," · ",Ge,b?" · context used":""]}),N.jsx("p",{children:k?`poll ${k}`:"poll -"})]})]}),B?N.jsx("div",{className:"error-banner",children:B}):null,N.jsxs("div",{className:"translation-entry-list",ref:ne,children:[f.length===0?N.jsx("p",{className:"muted",children:"Translated Claude Code output will appear here."}):null,f.map(ge=>N.jsx(v2,{entry:ge},ge.id))]}),N.jsx("div",{className:"translation-composer",children:N.jsxs("div",{className:"translation-composer-row",children:[N.jsx("textarea",{value:d,onChange:ge=>{c(ge.target.value),ge.target.value.trim()||w(!1)},onKeyDown:te,placeholder:"输入中文,先翻译成英文工程指令..."}),N.jsx("div",{className:"translation-composer-actions",children:N.jsx("button",{type:"button",disabled:E||!S||!d.trim(),onClick:()=>void H(),children:"Send English"})})]})}),q?N.jsx(p2,{settings:p,busy:E,promptPreviews:Y,testResult:G,onSave:Z,onTest:fe,onClose:()=>F(!1)}):null]})}function v2({entry:n}){if(n.sourceKind==="conversation-boundary")return N.jsx(y2,{entry:n});const r=x2(n),s=n.sourceKind==="tool-output",o=n.direction==="user-input-to-english",p=["translation-entry",`is-${n.sourceKind}`,o?"is-user-input":""].filter(Boolean).join(" ");return N.jsxs("article",{className:p,children:[s?N.jsx("pre",{children:r}):N.jsx("div",{className:"translation-markdown",children:N.jsx(JC,{remarkPlugins:[f2],children:r})}),n.warning?N.jsx("p",{className:"translation-entry-note",children:n.warning}):null,n.error?N.jsx("p",{className:"translation-entry-note is-error",children:n.error}):null]})}function y2({entry:n}){const r=n.boundaryKind==="end"?"结束":"开始",s=n.conversationTurn??0,o=T2(n.occurredAt??n.createdAt);return N.jsxs("div",{className:"translation-conversation-boundary","aria-label":`${r} 第 ${s} 轮 ${o}`,children:[N.jsx("span",{className:"translation-boundary-dash","aria-hidden":"true"}),N.jsx("span",{children:r}),N.jsxs("span",{children:["第 ",s," 轮"]}),N.jsx("time",{children:o}),N.jsx("span",{className:"translation-boundary-dash","aria-hidden":"true"})]})}function S2(n){const r=n.find(eh);return(r==null?void 0:r.translationStartedAt)??(r==null?void 0:r.createdAt)}function b2(n,r,s){const o=n.find(eh);if(o)return`translating ${k2(Math.max(0,s-w2(o)))}`;const p=n.at(-1);return(p==null?void 0:p.status)==="failed"||r==="failed"?"error":r}function eh(n){return n.status==="queued"||n.status==="translating"}function C2(n){const r=n.length-d2;if(r<=0)return{entries:n,removedIds:new Set};const s=new Set;for(const o of n){if(s.size>=r)break;eh(o)||s.add(o.id)}return s.size===0?{entries:n,removedIds:s}:{entries:n.filter(o=>!s.has(o.id)),removedIds:s}}function w2(n){const r=Date.parse(n.translationStartedAt??n.createdAt);return Number.isFinite(r)?r:Date.now()}function x2(n){return n.status==="queued"||n.status==="translating"?n.sourceText:n.status==="translated"?n.translatedText:n.translatedText||n.sourceText}function E2(n,r){return n.findIndex(o=>o.id===r.id)===-1?[...n,r]:n.map(o=>o.id===r.id?r:o)}function k2(n){if(n<1e3)return`${Math.max(.1,n/1e3).toFixed(1)}s`;const r=n/1e3;if(r<60)return`${r.toFixed(1)}s`;const s=Math.floor(r/60),o=Math.floor(r%60).toString().padStart(2,"0");return`${s}:${o}`}function A2(n){const r=new Date(n);return Number.isNaN(r.getTime())?n:r.toLocaleTimeString()}function T2(n){const r=new Date(n);return Number.isNaN(r.getTime())?n:r.toLocaleTimeString()}function D2({role:n,session:r,permissionMode:s,model:o,effort:p,active:y=!0,busy:f,orchestrationMode:a,translationEnabled:u,onPermissionModeChange:h,onModelChange:d,onEffortChange:c,onOrchestrationModeChange:S,onStart:w,onResume:A,onStop:x,onRestart:b,onTerminalEvent:_}){const g=a==="auto",v=n==="codex-reviewer";return N.jsxs("section",{className:"session-console",children:[N.jsxs("div",{className:"session-console-top",children:[N.jsx(I1,{role:n,session:r,permissionMode:s,model:o,effort:p,busy:f,onPermissionModeChange:h,onModelChange:d,onEffortChange:c,onStart:w,onResume:A,onStop:x,onRestart:b}),v?null:N.jsx("div",{className:"session-console-actions",children:N.jsx("button",{"aria-label":`Auto orchestration is ${g?"on":"off"}`,"aria-pressed":g,className:`translation-toggle${g?" is-active":""}`,disabled:f,type:"button",onClick:()=>S(g?"manual":"auto"),children:g?"✅ Auto orchestration":"× Auto orchestration"})})]}),(r==null?void 0:r.status)==="running"?N.jsx(R2,{active:y,onTerminalEvent:_,role:n,session:r,taskSlug:r.taskSlug,translationEnabled:!v&&u}):N.jsxs("div",{className:"terminal-empty",children:[N.jsx("strong",{children:n}),N.jsx("span",{children:v?r!=null&&r.claudeSessionId?"Resume this role to reconnect the Codex Reviewer terminal.":"Start this role to open an embedded Codex Reviewer terminal.":r!=null&&r.claudeSessionId?"Resume this role to reconnect its Claude Code conversation.":"Start this role to open an embedded Claude Code terminal."})]})]})}function R2({active:n,onTerminalEvent:r,role:s,session:o,taskSlug:p,translationEnabled:y}){return N.jsxs("div",{className:y?"session-console-body has-translation":"session-console-body",children:[N.jsx("div",{className:"terminal-pane",children:N.jsx(ag,{sessionId:o.id,active:n,onEvent:r},o.id)}),y?N.jsx("div",{className:"translation-pane",children:N.jsx(_2,{active:n,taskSlug:p,role:s,sessionId:o.id},o.id)}):null]})}function M2(n,r,s){var y;if(!n||s.mode!=="auto")return null;const o=new Map(n.map(f=>[f.id,f])),p=r.filter(f=>{var a;return f.dispatchingAt?((a=o.get(f.id))==null?void 0:a.dispatchingAt)!==f.dispatchingAt:!1});return p.length===0?null:((y=p.sort(L2)[p.length-1])==null?void 0:y.toRole)??null}function L2(n,r){const s=n.dispatchingAt??n.deliveredAt??n.acceptedAt??"",o=r.dispatchingAt??r.deliveredAt??r.acceptedAt??"";return s!==o?s.localeCompare(o):n.createdAt.localeCompare(r.createdAt)}function O2({task:n,activeRole:r,codexReviewerEnabled:s,translationEnabled:o,refreshNonce:p=0,onTaskChanged:y,onActiveRoleChange:f,onTranslationEnabledChange:a,onMessagesChanged:u,onOrchestrationChanged:h,onRoundStateChanged:d,onEventsChanged:c,onLaunchStateChanged:S}){const[w,A]=ue.useState(null),[x,b]=ue.useState({"project-manager":"default",architect:"default",coder:"default",reviewer:"default","codex-reviewer":"default"}),[_,g]=ue.useState({"project-manager":"default",architect:"default",coder:"default",reviewer:"default","codex-reviewer":"gpt-5.5"}),[v,k]=ue.useState({"project-manager":"default",architect:"default",coder:"default",reviewer:"default","codex-reviewer":"xhigh"}),[M,D]=ue.useState(!1),[T,E]=ue.useState(""),[R,B]=ue.useState([]),[z,q]=ue.useState(null),F=ue.useRef(null),Y=!!(w!=null&&w.sessions.some($=>$.role==="codex-reviewer")),K=s||Y,G=K?[...er,sg]:er,X=ue.useCallback(($,H)=>{var fe;const te=((fe=F.current)==null?void 0:fe.taskSlug)===n.taskSlug?F.current.messages:null,Z=M2(te,$,H);F.current={taskSlug:n.taskSlug,messages:$},q(H),u==null||u($),h==null||h(H),Z&&(f(Z),V(`auto switched to ${Z} before VCM dispatch`))},[f,u,h,n.taskSlug]),J=ue.useCallback(($,H,te,Z)=>{A($),X(H,te),d==null||d(Z)},[X,d]),I=ue.useCallback(async()=>{const[$,H,te,Z]=await Promise.all([xe.getTaskStatus(n.taskSlug),xe.listMessages(n.taskSlug),xe.getOrchestrationState(n.taskSlug),xe.getSessionRoundState(n.taskSlug)]);J($,H,te,Z)},[J,n.taskSlug]);ue.useEffect(()=>{I().catch($=>E($.message))},[I,p]),ue.useEffect(()=>{B([]),c==null||c([])},[c,n.taskSlug]),ue.useEffect(()=>{w&&!K&&r==="codex-reviewer"&&f("project-manager")},[r,K,f,w]),ue.useEffect(()=>{b($=>{let H=!1;const te={...$};for(const Z of(w==null?void 0:w.sessions)??[])te[Z.role]!==Z.permissionMode&&(te[Z.role]=Z.permissionMode,H=!0);return H?te:$})},[w==null?void 0:w.sessions]),ue.useEffect(()=>{g($=>{let H=!1;const te={...$};for(const Z of(w==null?void 0:w.sessions)??[]){const fe=Z.model??"default";te[Z.role]!==fe&&(te[Z.role]=fe,H=!0)}return H?te:$})},[w==null?void 0:w.sessions]),ue.useEffect(()=>{k($=>{let H=!1;const te={...$};for(const Z of(w==null?void 0:w.sessions)??[]){const fe=Z.effort??"default";te[Z.role]!==fe&&(te[Z.role]=fe,H=!0)}return H?te:$})},[w==null?void 0:w.sessions]),ue.useEffect(()=>{const $=(w==null?void 0:w.sessions)??[],H=$.filter(fe=>fe.role!=="codex-reviewer"),te=new Set(H.map(fe=>fe.role)),Z={};for(const fe of er)Z[fe.name]={permissionMode:x[fe.name],model:_[fe.name],effort:v[fe.name]};S==null||S({taskSlug:n.taskSlug,roles:Z,autoOrchestration:((z==null?void 0:z.mode)??"auto")==="auto",translationEnabled:o,statusLoaded:!!w,sessionCount:$.length,hasAnySession:$.length>0,allRolesHaveSession:er.every(fe=>te.has(fe.name))})},[_,v,S,z==null?void 0:z.mode,x,w,n.taskSlug,o]),ue.useEffect(()=>{const $=window.setInterval(()=>{Promise.all([xe.getTaskStatus(n.taskSlug),xe.listMessages(n.taskSlug),xe.getOrchestrationState(n.taskSlug),xe.getSessionRoundState(n.taskSlug)]).then(([H,te,Z,fe])=>{J(H,te,Z,fe)}).catch(H=>E(H.message))},3e3);return()=>window.clearInterval($)},[J,n.taskSlug]),ue.useEffect(()=>{let $=!1,H=!1;const te=window.setInterval(()=>{H||(H=!0,Promise.all([xe.listMessages(n.taskSlug),xe.getOrchestrationState(n.taskSlug)]).then(([Z,fe])=>{$||X(Z,fe)}).catch(Z=>{$||E(Z.message)}).finally(()=>{H=!1}))},200);return()=>{$=!0,window.clearInterval(te)}},[X,n.taskSlug]);async function O($){D(!0),E("");try{await $(),await I(),await y()}catch(H){E(H instanceof Error?H.message:"Action failed.")}finally{D(!1)}}async function j(){const $=n.worktreePath?[`Close task "${n.taskSlug}"?`,"","This is destructive:","- stops VCM-managed running role sessions for this task",`- deletes the task worktree: ${n.worktreePath}`,`- deletes the Git branch: ${n.branch}`,"- deletes VCM task/session/message/orchestration state","","VCM will not check running sessions or uncommitted changes before closing."].join(`
90
+ `))}function u(w,A,x,b){const _=x.enter("tableCell"),g=x.enter("phrasing"),v=x.containerPhrasing(w,{...b,before:y,after:y});return g(),_(),v}function h(w,A){return Fw(w,{align:A,alignDelimiters:o,padding:s,stringLength:p})}function d(w,A,x){const b=w.children;let _=-1;const g=[],v=A.enter("table");for(;++_<b.length;)g[_]=c(b[_],A,x);return v(),g}function c(w,A,x){const b=w.children;let _=-1;const g=[],v=A.enter("tableRow");for(;++_<b.length;)g[_]=u(b[_],w,A,x);return v(),g}function S(w,A,x){let b=u_.inlineCode(w,A,x);return x.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function Dx(){return{exit:{taskListCheckValueChecked:Zm,taskListCheckValueUnchecked:Zm,paragraph:Mx}}}function Rx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Lx}}}function Zm(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function Mx(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const s=this.stack[this.stack.length-1];s.type;const o=s.children[0];if(o&&o.type==="text"){const p=r.children;let y=-1,f;for(;++y<p.length;){const a=p[y];if(a.type==="paragraph"){f=a;break}}f===s&&(o.value=o.value.slice(1),o.value.length===0?s.children.shift():s.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,s.position.start=Object.assign({},o.position.start)))}}this.exit(n)}function Lx(n,r,s,o){const p=n.children[0],y=typeof n.checked=="boolean"&&p&&p.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",a=s.createTracker(o);y&&a.move(f);let u=u_.listItem(n,r,s,{...o,...a.current()});return y&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),u;function h(d){return d+f}}function Ox(){return[hw(),Lw(),jw(),Cx(),Dx()]}function Bx(n){return{extensions:[fw(),Ow(n),zw(),Tx(n),Rx()]}}const Nx={tokenize:Px,partial:!0},c_={tokenize:Fx,partial:!0},h_={tokenize:qx,partial:!0},f_={tokenize:Vx,partial:!0},jx={tokenize:Gx,partial:!0},d_={name:"wwwAutolink",tokenize:Ix,previous:m_},p_={name:"protocolAutolink",tokenize:Ux,previous:g_},ii={name:"emailAutolink",tokenize:Hx,previous:__},Nn={};function zx(){return{text:Nn}}let Ji=48;for(;Ji<123;)Nn[Ji]=ii,Ji++,Ji===58?Ji=65:Ji===91&&(Ji=97);Nn[43]=ii;Nn[45]=ii;Nn[46]=ii;Nn[95]=ii;Nn[72]=[ii,p_];Nn[104]=[ii,p_];Nn[87]=[ii,d_];Nn[119]=[ii,d_];function Hx(n,r,s){const o=this;let p,y;return f;function f(c){return!Mc(c)||!__.call(o,o.previous)||Jc(o.events)?s(c):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),a(c))}function a(c){return Mc(c)?(n.consume(c),a):c===64?(n.consume(c),u):s(c)}function u(c){return c===46?n.check(jx,d,h)(c):c===45||c===95||Ft(c)?(y=!0,n.consume(c),u):d(c)}function h(c){return n.consume(c),p=!0,u}function d(c){return y&&p&&Gt(o.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),r(c)):s(c)}}function Ix(n,r,s){const o=this;return p;function p(f){return f!==87&&f!==119||!m_.call(o,o.previous)||Jc(o.events)?s(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Nx,n.attempt(c_,n.attempt(h_,y),s),s)(f))}function y(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(f)}}function Ux(n,r,s){const o=this;let p="",y=!1;return f;function f(c){return(c===72||c===104)&&g_.call(o,o.previous)&&!Jc(o.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),p+=String.fromCodePoint(c),n.consume(c),a):s(c)}function a(c){if(Gt(c)&&p.length<5)return p+=String.fromCodePoint(c),n.consume(c),a;if(c===58){const S=p.toLowerCase();if(S==="http"||S==="https")return n.consume(c),u}return s(c)}function u(c){return c===47?(n.consume(c),y?h:(y=!0,u)):s(c)}function h(c){return c===null||Aa(c)||ot(c)||tr(c)||Ma(c)?s(c):n.attempt(c_,n.attempt(h_,d),s)(c)}function d(c){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(c)}}function Px(n,r,s){let o=0;return p;function p(f){return(f===87||f===119)&&o<3?(o++,n.consume(f),p):f===46&&o===3?(n.consume(f),y):s(f)}function y(f){return f===null?s(f):r(f)}}function Fx(n,r,s){let o,p,y;return f;function f(h){return h===46||h===95?n.check(f_,u,a)(h):h===null||ot(h)||tr(h)||h!==45&&Ma(h)?u(h):(y=!0,n.consume(h),f)}function a(h){return h===95?o=!0:(p=o,o=void 0),n.consume(h),f}function u(h){return p||o||!y?s(h):r(h)}}function qx(n,r){let s=0,o=0;return p;function p(f){return f===40?(s++,n.consume(f),p):f===41&&o<s?y(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(f_,r,y)(f):f===null||ot(f)||tr(f)?r(f):(n.consume(f),p)}function y(f){return f===41&&o++,n.consume(f),p}}function Vx(n,r,s){return o;function o(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(n.consume(a),o):a===38?(n.consume(a),y):a===93?(n.consume(a),p):a===60||a===null||ot(a)||tr(a)?r(a):s(a)}function p(a){return a===null||a===40||a===91||ot(a)||tr(a)?r(a):o(a)}function y(a){return Gt(a)?f(a):s(a)}function f(a){return a===59?(n.consume(a),o):Gt(a)?(n.consume(a),f):s(a)}}function Gx(n,r,s){return o;function o(y){return n.consume(y),p}function p(y){return Ft(y)?s(y):r(y)}}function m_(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||ot(n)}function g_(n){return!Gt(n)}function __(n){return!(n===47||Mc(n))}function Mc(n){return n===43||n===45||n===46||n===95||Ft(n)}function Jc(n){let r=n.length,s=!1;for(;r--;){const o=n[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){s=!0;break}if(o._gfmAutolinkLiteralWalkedInto){s=!1;break}}return n.length>0&&!s&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),s}const $x={tokenize:e2,partial:!0};function Yx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Qx,continuation:{tokenize:Zx},exit:Jx}},text:{91:{name:"gfmFootnoteCall",tokenize:Xx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Kx,resolveTo:Wx}}}}function Kx(n,r,s){const o=this;let p=o.events.length;const y=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let f;for(;p--;){const u=o.events[p][1];if(u.type==="labelImage"){f=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!f||!f._balanced)return s(u);const h=An(o.sliceSerialize({start:f.end,end:o.now()}));return h.codePointAt(0)!==94||!y.includes(h.slice(1))?s(u):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(u),n.exit("gfmFootnoteCallLabelMarker"),r(u))}}function Wx(n,r){let s=n.length;for(;s--;)if(n[s][1].type==="labelImage"&&n[s][0]==="enter"){n[s][1];break}n[s+1][1].type="data",n[s+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},n[s+3][1].start),end:Object.assign({},n[n.length-1][1].end)},p={type:"gfmFootnoteCallMarker",start:Object.assign({},n[s+3][1].end),end:Object.assign({},n[s+3][1].end)};p.end.column++,p.end.offset++,p.end._bufferIndex++;const y={type:"gfmFootnoteCallString",start:Object.assign({},p.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},y.start),end:Object.assign({},y.end)},a=[n[s+1],n[s+2],["enter",o,r],n[s+3],n[s+4],["enter",p,r],["exit",p,r],["enter",y,r],["enter",f,r],["exit",f,r],["exit",y,r],n[n.length-2],n[n.length-1],["exit",o,r]];return n.splice(s,n.length-s+1,...a),n}function Xx(n,r,s){const o=this,p=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let y=0,f;return a;function a(c){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(c),n.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?s(c):(n.enter("gfmFootnoteCallMarker"),n.consume(c),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",h)}function h(c){if(y>999||c===93&&!f||c===null||c===91||ot(c))return s(c);if(c===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return p.includes(An(o.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(c),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):s(c)}return ot(c)||(f=!0),y++,n.consume(c),c===92?d:h}function d(c){return c===91||c===92||c===93?(n.consume(c),y++,h):h(c)}}function Qx(n,r,s){const o=this,p=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let y,f=0,a;return u;function u(A){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(A){return A===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",d):s(A)}function d(A){if(f>999||A===93&&!a||A===null||A===91||ot(A))return s(A);if(A===93){n.exit("chunkString");const x=n.exit("gfmFootnoteDefinitionLabelString");return y=An(o.sliceSerialize(x)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(A),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return ot(A)||(a=!0),f++,n.consume(A),A===92?c:d}function c(A){return A===91||A===92||A===93?(n.consume(A),f++,d):d(A)}function S(A){return A===58?(n.enter("definitionMarker"),n.consume(A),n.exit("definitionMarker"),p.includes(y)||p.push(y),Xe(n,w,"gfmFootnoteDefinitionWhitespace")):s(A)}function w(A){return r(A)}}function Zx(n,r,s){return n.check(rl,r,n.attempt($x,r,s))}function Jx(n){n.exit("gfmFootnoteDefinition")}function e2(n,r,s){const o=this;return Xe(n,p,"gfmFootnoteDefinitionIndent",5);function p(y){const f=o.events[o.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?r(y):s(y)}}function t2(n){let s=(n||{}).singleTilde;const o={name:"strikethrough",tokenize:y,resolveAll:p};return s==null&&(s=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function p(f,a){let u=-1;for(;++u<f.length;)if(f[u][0]==="enter"&&f[u][1].type==="strikethroughSequenceTemporary"&&f[u][1]._close){let h=u;for(;h--;)if(f[h][0]==="exit"&&f[h][1].type==="strikethroughSequenceTemporary"&&f[h][1]._open&&f[u][1].end.offset-f[u][1].start.offset===f[h][1].end.offset-f[h][1].start.offset){f[u][1].type="strikethroughSequence",f[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},f[h][1].start),end:Object.assign({},f[u][1].end)},c={type:"strikethroughText",start:Object.assign({},f[h][1].end),end:Object.assign({},f[u][1].start)},S=[["enter",d,a],["enter",f[h][1],a],["exit",f[h][1],a],["enter",c,a]],w=a.parser.constructs.insideSpan.null;w&&hn(S,S.length,0,La(w,f.slice(h+1,u),a)),hn(S,S.length,0,[["exit",c,a],["enter",f[u][1],a],["exit",f[u][1],a],["exit",d,a]]),hn(f,h-1,u-h+3,S),u=h+S.length-2;break}}for(u=-1;++u<f.length;)f[u][1].type==="strikethroughSequenceTemporary"&&(f[u][1].type="data");return f}function y(f,a,u){const h=this.previous,d=this.events;let c=0;return S;function S(A){return h===126&&d[d.length-1][1].type!=="characterEscape"?u(A):(f.enter("strikethroughSequenceTemporary"),w(A))}function w(A){const x=Kr(h);if(A===126)return c>1?u(A):(f.consume(A),c++,w);if(c<2&&!s)return u(A);const b=f.exit("strikethroughSequenceTemporary"),_=Kr(A);return b._open=!_||_===2&&!!x,b._close=!x||x===2&&!!_,a(A)}}}class n2{constructor(){this.map=[]}add(r,s,o){i2(this,r,s,o)}consume(r){if(this.map.sort(function(y,f){return y[0]-f[0]}),this.map.length===0)return;let s=this.map.length;const o=[];for(;s>0;)s-=1,o.push(r.slice(this.map[s][0]+this.map[s][1]),this.map[s][2]),r.length=this.map[s][0];o.push(r.slice()),r.length=0;let p=o.pop();for(;p;){for(const y of p)r.push(y);p=o.pop()}this.map.length=0}}function i2(n,r,s,o){let p=0;if(!(s===0&&o.length===0)){for(;p<n.map.length;){if(n.map[p][0]===r){n.map[p][1]+=s,n.map[p][2].push(...o);return}p+=1}n.map.push([r,s,o])}}function r2(n,r){let s=!1;const o=[];for(;r<n.length;){const p=n[r];if(s){if(p[0]==="enter")p[1].type==="tableContent"&&o.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(p[1].type==="tableContent"){if(n[r-1][1].type==="tableDelimiterMarker"){const y=o.length-1;o[y]=o[y]==="left"?"center":"right"}}else if(p[1].type==="tableDelimiterRow")break}else p[0]==="enter"&&p[1].type==="tableDelimiterRow"&&(s=!0);r+=1}return o}function s2(){return{flow:{null:{name:"table",tokenize:l2,resolveAll:a2}}}}function l2(n,r,s){const o=this;let p=0,y=0,f;return a;function a(B){let z=o.events.length-1;for(;z>-1;){const Y=o.events[z][1].type;if(Y==="lineEnding"||Y==="linePrefix")z--;else break}const q=z>-1?o.events[z][1].type:null,F=q==="tableHead"||q==="tableRow"?D:u;return F===D&&o.parser.lazy[o.now().line]?s(B):F(B)}function u(B){return n.enter("tableHead"),n.enter("tableRow"),h(B)}function h(B){return B===124||(f=!0,y+=1),d(B)}function d(B){return B===null?s(B):Te(B)?y>1?(y=0,o.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),w):s(B):Ve(B)?Xe(n,d,"whitespace")(B):(y+=1,f&&(f=!1,p+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),f=!0,d):(n.enter("data"),c(B)))}function c(B){return B===null||B===124||ot(B)?(n.exit("data"),d(B)):(n.consume(B),B===92?S:c)}function S(B){return B===92||B===124?(n.consume(B),c):c(B)}function w(B){return o.interrupt=!1,o.parser.lazy[o.now().line]?s(B):(n.enter("tableDelimiterRow"),f=!1,Ve(B)?Xe(n,A,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):A(B))}function A(B){return B===45||B===58?b(B):B===124?(f=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),x):M(B)}function x(B){return Ve(B)?Xe(n,b,"whitespace")(B):b(B)}function b(B){return B===58?(y+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),_):B===45?(y+=1,_(B)):B===null||Te(B)?k(B):M(B)}function _(B){return B===45?(n.enter("tableDelimiterFiller"),g(B)):M(B)}function g(B){return B===45?(n.consume(B),g):B===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),v):(n.exit("tableDelimiterFiller"),v(B))}function v(B){return Ve(B)?Xe(n,k,"whitespace")(B):k(B)}function k(B){return B===124?A(B):B===null||Te(B)?!f||p!==y?M(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(B)):M(B)}function M(B){return s(B)}function D(B){return n.enter("tableRow"),T(B)}function T(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),T):B===null||Te(B)?(n.exit("tableRow"),r(B)):Ve(B)?Xe(n,T,"whitespace")(B):(n.enter("data"),E(B))}function E(B){return B===null||B===124||ot(B)?(n.exit("data"),T(B)):(n.consume(B),B===92?R:E)}function R(B){return B===92||B===124?(n.consume(B),E):E(B)}}function a2(n,r){let s=-1,o=!0,p=0,y=[0,0,0,0],f=[0,0,0,0],a=!1,u=0,h,d,c;const S=new n2;for(;++s<n.length;){const w=n[s],A=w[1];w[0]==="enter"?A.type==="tableHead"?(a=!1,u!==0&&(Jm(S,r,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},S.add(s,0,[["enter",h,r]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(o=!0,c=void 0,y=[0,0,0,0],f=[0,s+1,0,0],a&&(a=!1,d={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},S.add(s,0,[["enter",d,r]])),p=A.type==="tableDelimiterRow"?2:d?3:1):p&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(o=!1,f[2]===0&&(y[1]!==0&&(f[0]=f[1],c=wa(S,r,y,p,void 0,c),y=[0,0,0,0]),f[2]=s)):A.type==="tableCellDivider"&&(o?o=!1:(y[1]!==0&&(f[0]=f[1],c=wa(S,r,y,p,void 0,c)),y=f,f=[y[1],s,0,0])):A.type==="tableHead"?(a=!0,u=s):A.type==="tableRow"||A.type==="tableDelimiterRow"?(u=s,y[1]!==0?(f[0]=f[1],c=wa(S,r,y,p,s,c)):f[1]!==0&&(c=wa(S,r,f,p,s,c)),p=0):p&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(f[3]=s)}for(u!==0&&Jm(S,r,u,h,d),S.consume(r.events),s=-1;++s<r.events.length;){const w=r.events[s];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=r2(r.events,s))}return n}function wa(n,r,s,o,p,y){const f=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",a="tableContent";s[0]!==0&&(y.end=Object.assign({},Gr(r.events,s[0])),n.add(s[0],0,[["exit",y,r]]));const u=Gr(r.events,s[1]);if(y={type:f,start:Object.assign({},u),end:Object.assign({},u)},n.add(s[1],0,[["enter",y,r]]),s[2]!==0){const h=Gr(r.events,s[2]),d=Gr(r.events,s[3]),c={type:a,start:Object.assign({},h),end:Object.assign({},d)};if(n.add(s[2],0,[["enter",c,r]]),o!==2){const S=r.events[s[2]],w=r.events[s[3]];if(S[1].end=Object.assign({},w[1].end),S[1].type="chunkText",S[1].contentType="text",s[3]>s[2]+1){const A=s[2]+1,x=s[3]-s[2]-1;n.add(A,x,[])}}n.add(s[3]+1,0,[["exit",c,r]])}return p!==void 0&&(y.end=Object.assign({},Gr(r.events,p)),n.add(p,0,[["exit",y,r]]),y=void 0),y}function Jm(n,r,s,o,p){const y=[],f=Gr(r.events,s);p&&(p.end=Object.assign({},f),y.push(["exit",p,r])),o.end=Object.assign({},f),y.push(["exit",o,r]),n.add(s+1,0,y)}function Gr(n,r){const s=n[r],o=s[0]==="enter"?"start":"end";return s[1][o]}const o2={name:"tasklistCheck",tokenize:c2};function u2(){return{text:{91:o2}}}function c2(n,r,s){const o=this;return p;function p(u){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?s(u):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(u),n.exit("taskListCheckMarker"),y)}function y(u){return ot(u)?(n.enter("taskListCheckValueUnchecked"),n.consume(u),n.exit("taskListCheckValueUnchecked"),f):u===88||u===120?(n.enter("taskListCheckValueChecked"),n.consume(u),n.exit("taskListCheckValueChecked"),f):s(u)}function f(u){return u===93?(n.enter("taskListCheckMarker"),n.consume(u),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),a):s(u)}function a(u){return Te(u)?r(u):Ve(u)?n.check({tokenize:h2},r,s)(u):s(u)}}function h2(n,r,s){return Xe(n,o,"whitespace");function o(p){return p===null?s(p):r(p)}}function f2(n){return Tg([zx(),Yx(),t2(n),s2(),u2()])}const d2={};function p2(n){const r=this,s=n||d2,o=r.data(),p=o.micromarkExtensions||(o.micromarkExtensions=[]),y=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),f=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);p.push(f2(s)),y.push(Ox()),f.push(Bx(s))}const m2=500;function g2({settings:n,busy:r=!1,promptPreviews:s,testResult:o,onSave:p,onTest:y,onClose:f}){const[a,u]=ue.useState(n),[h,d]=ue.useState(n.apiKey??"");return ue.useEffect(()=>{u(n),d(n.apiKey??"")},[n]),N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{className:"translation-settings-modal",role:"dialog","aria-modal":"true","aria-label":"Translation Settings",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{children:"Translation Settings"}),N.jsx("p",{children:"Use an OpenAI-compatible endpoint for the embedded translation panel."})]}),N.jsx("button",{type:"button",onClick:f,children:"Close"})]}),N.jsxs("div",{className:"translation-settings-grid",children:[N.jsxs("label",{children:[N.jsx("span",{children:"Base URL"}),N.jsx("input",{value:a.baseUrl,onChange:c=>u({...a,baseUrl:c.target.value}),placeholder:"https://api.openai.com/v1"})]}),N.jsxs("label",{children:[N.jsx("span",{children:"API key"}),N.jsx("input",{value:h,onChange:c=>d(c.target.value),placeholder:"API key",autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,type:"text"})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Model"}),N.jsx("input",{value:a.model,onChange:c=>u({...a,model:c.target.value})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Target language"}),N.jsx("input",{value:a.targetLanguage,onChange:c=>u({...a,targetLanguage:c.target.value})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Use context"}),N.jsx("input",{checked:a.contextEnabled,type:"checkbox",onChange:c=>u({...a,contextEnabled:c.target.checked})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Timeout ms"}),N.jsx("input",{min:3e3,type:"number",value:a.requestTimeoutMs,onChange:c=>u({...a,requestTimeoutMs:Number(c.target.value)})})]}),N.jsxs("label",{children:[N.jsx("span",{children:"Temperature"}),N.jsx("input",{min:0,max:1,step:.1,type:"number",value:a.temperature,onChange:c=>u({...a,temperature:Number(c.target.value)})})]})]}),N.jsxs("section",{className:"translation-prompt-settings",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h3",{children:"Translation Prompts"}),N.jsx("p",{children:"Edit the three cc-pm style prompt slots directly."})]}),N.jsx("button",{type:"button",disabled:r,onClick:()=>u({...a,prompts:void 0}),children:"Reset prompts"})]}),N.jsx("div",{className:"translation-prompt-stack",children:s.map(c=>N.jsxs("label",{children:[N.jsx("span",{children:c.label}),N.jsx("textarea",{value:v2(a,c),onChange:S=>u({...a,prompts:_2(a.prompts,c.key,S.target.value,c.defaultPrompt)})})]},c.key))})]}),o?N.jsx("div",{className:o.ok?"translation-test-result is-ok":"translation-test-result is-error",children:o.ok?`Connection ok: ${o.model} in ${o.elapsedMs}ms`:o.error}):null,N.jsxs("footer",{children:[N.jsx("button",{type:"button",disabled:r,onClick:y,children:"Test Connection"}),N.jsx("button",{type:"button",disabled:r,onClick:()=>void p({...a,enabled:!0,translateOutput:!0,translateUserInput:!0,inputMode:"review-before-send"},h.trim()),children:"Save"})]})]})})}function _2(n,r,s,o){const p={...n??{}};return s.trim()&&s!==o?p[r]=s:delete p[r],Object.keys(p).length>0?p:void 0}function v2(n,r){var s;return((s=n.prompts)==null?void 0:s[r.key])??r.defaultPrompt}function y2({active:n=!0,taskSlug:r,role:s,sessionId:o}){const[p,y]=ue.useState(null),[f,a]=ue.useState([]),[u,h]=ue.useState([]),[d,c]=ue.useState(""),[S,w]=ue.useState(!1),[A,x]=ue.useState(!1),[b,_]=ue.useState(!1),[g,v]=ue.useState("ready"),[k,M]=ue.useState(""),[D,T]=ue.useState(Date.now()),[E,R]=ue.useState(!1),[B,z]=ue.useState(""),[q,F]=ue.useState(!1),[Y,K]=ue.useState([]),[G,X]=ue.useState(),[J,I]=ue.useState(0),[O,j]=ue.useState(0),V=ue.useRef(n),U=ue.useRef(1),ne=ue.useRef(null);ue.useEffect(()=>{V.current=n},[n]),ue.useEffect(()=>{Promise.all([xe.getTranslationSettings(),xe.getTranslationPrompts()]).then(([ge,$e])=>{y(ge),K($e)}).catch(ge=>z(ge.message))},[]),ue.useEffect(()=>{a([]),h([]),z(""),v("ready"),M(""),U.current=1;let ge=!1,$e;const Oe=()=>{ge||($e=window.setTimeout(dt,V.current?200:1e3))},dt=async()=>{if(!ge)try{const Le=await xe.pollTranslationSession(o,U.current);if(ge)return;$(Le.events),U.current=Le.nextCursor,v(Le.status),V.current&&M(D2(new Date().toISOString()))}catch(Le){ge||z(Le instanceof Error?Le.message:"Translation poll failed.")}finally{Oe()}};return xe.startTranslationSession(r,s).then(Le=>{ge||(v(Le.status),U.current=Le.nextCursor,dt())}).catch(Le=>{ge||z(Le instanceof Error?Le.message:"Translation start failed.")}),()=>{ge=!0,$e!==void 0&&window.clearTimeout($e)}},[o,r,s,J]),ue.useEffect(()=>{if(!n)return;const ge=ne.current;if(!ge)return;const $e=window.requestAnimationFrame(()=>{ge.scrollTop=ge.scrollHeight});return()=>window.cancelAnimationFrame($e)},[n,O]);const _e=C2(f);ue.useEffect(()=>{if(!_e)return;T(Date.now());const ge=window.setInterval(()=>T(Date.now()),250);return()=>window.clearInterval(ge)},[_e]);async function me(ge=!1){if(p){R(!0),z(""),w(!1);try{const $e=await xe.translateUserInput(r,s,{text:d,mode:ge?"auto-send":"review-before-send",useContext:p.contextEnabled,send:ge});_($e.contextUsed),$e.sent?(c(""),w(!1)):(c($e.englishPreview),w(!0))}catch($e){z($e instanceof Error?$e.message:"Translation failed.")}finally{R(!1)}}}function $(ge){if(ge.length===0)return;for(const Oe of ge)Oe.type==="status"?v(Oe.status):Oe.type==="error"?z(Oe.message):Oe.type==="failures"&&h(Oe.failures);const $e=ge.filter(Oe=>Oe.type==="entry");$e.length>0&&(a(Oe=>{const dt=$e.reduce((wt,ae)=>A2(wt,ae.entry),Oe),Le=x2(dt);return Le.removedIds.size>0&&h(wt=>wt.filter(ae=>!Le.removedIds.has(ae.translationId))),Le.entries}),j(Oe=>Oe+1))}async function H(){if(d.trim()){R(!0),z("");try{await xe.sendTranslatedInput(r,s,{englishText:d}),c(""),w(!1),_(!1)}catch(ge){z(ge instanceof Error?ge.message:"Failed to send English input.")}finally{R(!1)}}}function te(ge){ge.key!=="Enter"||ge.shiftKey||ge.nativeEvent.isComposing||(ge.preventDefault(),!E&&d.trim()&&(S?H():me(A)))}async function Z(ge,$e){R(!0),z("");try{const Oe=await xe.updateTranslationSettings({...ge,...$e!==void 0?{apiKey:$e}:{}}),dt=await xe.getTranslationPrompts();y(Oe),K(dt),F(!1),I(Le=>Le+1)}catch(Oe){z(Oe instanceof Error?Oe.message:"Failed to save translation settings.")}finally{R(!1)}}async function fe(){R(!0),z("");try{X(await xe.testTranslationProvider())}catch(ge){z(ge instanceof Error?ge.message:"Provider test failed.")}finally{R(!1)}}async function Se(){a([]),h([]),U.current=1,await xe.clearTranslationSession(o).catch(ge=>z(ge.message))}async function Me(){R(!0),z("");try{const ge=await xe.ignoreTranslationFailures(o);h(ge.failures)}catch(ge){z(ge instanceof Error?ge.message:"Failed to ignore translation failures.")}finally{R(!1)}}async function Ie(){R(!0),z("");try{const ge=await xe.retryTranslationFailures(o);h(ge.failures)}catch(ge){z(ge instanceof Error?ge.message:"Failed to retry translation failures.")}finally{R(!1)}}if(!p)return N.jsx("aside",{className:"translation-panel",children:N.jsx("p",{className:"muted",children:"Loading translation settings..."})});const Ge=w2(f,g,D),Ue=u.length;return N.jsxs("aside",{className:"translation-panel",children:[N.jsxs("header",{className:"translation-panel-header",children:[N.jsxs("div",{className:"translation-panel-titlebar",children:[N.jsx("h2",{children:"Translation"}),N.jsxs("div",{className:"translation-panel-actions",children:[N.jsx("button",{"aria-pressed":A,className:`auto-send-toggle${A?" is-active":""}`,type:"button",onClick:()=>x(ge=>!ge),children:A?"✅ Auto-send":"× Auto-send"}),Ue>0?N.jsxs(N.Fragment,{children:[N.jsxs("button",{type:"button",disabled:E,onClick:()=>void Me(),children:["Ignore ",Ue]}),N.jsxs("button",{type:"button",disabled:E,onClick:()=>void Ie(),children:["Retry ",Ue]})]}):null,N.jsx("button",{type:"button",onClick:()=>F(!0),children:"Settings"}),N.jsx("button",{type:"button",onClick:()=>void Se(),children:"Clear"})]})]}),N.jsxs("div",{className:"translation-status-row",children:[N.jsxs("p",{children:[p.model," · ",Ge,b?" · context used":""]}),N.jsx("p",{children:k?`poll ${k}`:"poll -"})]})]}),B?N.jsx("div",{className:"error-banner",children:B}):null,N.jsxs("div",{className:"translation-entry-list",ref:ne,children:[f.length===0?N.jsx("p",{className:"muted",children:"Translated Claude Code output will appear here."}):null,f.map(ge=>N.jsx(S2,{entry:ge},ge.id))]}),N.jsx("div",{className:"translation-composer",children:N.jsxs("div",{className:"translation-composer-row",children:[N.jsx("textarea",{value:d,onChange:ge=>{c(ge.target.value),ge.target.value.trim()||w(!1)},onKeyDown:te,placeholder:"输入中文,先翻译成英文工程指令..."}),N.jsx("div",{className:"translation-composer-actions",children:N.jsx("button",{type:"button",disabled:E||!S||!d.trim(),onClick:()=>void H(),children:"Send English"})})]})}),q?N.jsx(g2,{settings:p,busy:E,promptPreviews:Y,testResult:G,onSave:Z,onTest:fe,onClose:()=>F(!1)}):null]})}function S2({entry:n}){if(n.sourceKind==="conversation-boundary")return N.jsx(b2,{entry:n});const r=k2(n),s=n.sourceKind==="tool-output",o=n.direction==="user-input-to-english",p=["translation-entry",`is-${n.sourceKind}`,o?"is-user-input":""].filter(Boolean).join(" ");return N.jsxs("article",{className:p,children:[s?N.jsx("pre",{children:r}):N.jsx("div",{className:"translation-markdown",children:N.jsx(tw,{remarkPlugins:[p2],children:r})}),n.warning?N.jsx("p",{className:"translation-entry-note",children:n.warning}):null,n.error?N.jsx("p",{className:"translation-entry-note is-error",children:n.error}):null]})}function b2({entry:n}){const r=n.boundaryKind==="end"?"结束":"开始",s=n.conversationTurn??0,o=R2(n.occurredAt??n.createdAt);return N.jsxs("div",{className:"translation-conversation-boundary","aria-label":`${r} 第 ${s} 轮 ${o}`,children:[N.jsx("span",{className:"translation-boundary-dash","aria-hidden":"true"}),N.jsx("span",{children:r}),N.jsxs("span",{children:["第 ",s," 轮"]}),N.jsx("time",{children:o}),N.jsx("span",{className:"translation-boundary-dash","aria-hidden":"true"})]})}function C2(n){const r=n.find(eh);return(r==null?void 0:r.translationStartedAt)??(r==null?void 0:r.createdAt)}function w2(n,r,s){const o=n.find(eh);if(o)return`translating ${T2(Math.max(0,s-E2(o)))}`;const p=n.at(-1);return(p==null?void 0:p.status)==="failed"||r==="failed"?"error":r}function eh(n){return n.status==="queued"||n.status==="translating"}function x2(n){const r=n.length-m2;if(r<=0)return{entries:n,removedIds:new Set};const s=new Set;for(const o of n){if(s.size>=r)break;eh(o)||s.add(o.id)}return s.size===0?{entries:n,removedIds:s}:{entries:n.filter(o=>!s.has(o.id)),removedIds:s}}function E2(n){const r=Date.parse(n.translationStartedAt??n.createdAt);return Number.isFinite(r)?r:Date.now()}function k2(n){return n.status==="queued"||n.status==="translating"?n.sourceText:n.status==="translated"?n.translatedText:n.translatedText||n.sourceText}function A2(n,r){return n.findIndex(o=>o.id===r.id)===-1?[...n,r]:n.map(o=>o.id===r.id?r:o)}function T2(n){if(n<1e3)return`${Math.max(.1,n/1e3).toFixed(1)}s`;const r=n/1e3;if(r<60)return`${r.toFixed(1)}s`;const s=Math.floor(r/60),o=Math.floor(r%60).toString().padStart(2,"0");return`${s}:${o}`}function D2(n){const r=new Date(n);return Number.isNaN(r.getTime())?n:r.toLocaleTimeString()}function R2(n){const r=new Date(n);return Number.isNaN(r.getTime())?n:r.toLocaleTimeString()}function M2({role:n,session:r,permissionMode:s,model:o,effort:p,active:y=!0,busy:f,orchestrationMode:a,translationEnabled:u,onPermissionModeChange:h,onModelChange:d,onEffortChange:c,onOrchestrationModeChange:S,onStart:w,onResume:A,onStop:x,onRestart:b,onTerminalEvent:_}){const g=a==="auto",v=n==="codex-reviewer";return N.jsxs("section",{className:"session-console",children:[N.jsxs("div",{className:"session-console-top",children:[N.jsx(P1,{role:n,session:r,permissionMode:s,model:o,effort:p,busy:f,onPermissionModeChange:h,onModelChange:d,onEffortChange:c,onStart:w,onResume:A,onStop:x,onRestart:b}),v?null:N.jsx("div",{className:"session-console-actions",children:N.jsx("button",{"aria-label":`Auto orchestration is ${g?"on":"off"}`,"aria-pressed":g,className:`translation-toggle${g?" is-active":""}`,disabled:f,type:"button",onClick:()=>S(g?"manual":"auto"),children:g?"✅ Auto orchestration":"× Auto orchestration"})})]}),(r==null?void 0:r.status)==="running"?N.jsx(L2,{active:y,onTerminalEvent:_,role:n,session:r,taskSlug:r.taskSlug,translationEnabled:!v&&u}):N.jsxs("div",{className:"terminal-empty",children:[N.jsx("strong",{children:n}),N.jsx("span",{children:v?r!=null&&r.claudeSessionId?"Resume this role to reconnect the Codex Reviewer terminal.":"Start this role to open an embedded Codex Reviewer terminal.":r!=null&&r.claudeSessionId?"Resume this role to reconnect its Claude Code conversation.":"Start this role to open an embedded Claude Code terminal."})]})]})}function L2({active:n,onTerminalEvent:r,role:s,session:o,taskSlug:p,translationEnabled:y}){return N.jsxs("div",{className:y?"session-console-body has-translation":"session-console-body",children:[N.jsx("div",{className:"terminal-pane",children:N.jsx(ag,{sessionId:o.id,active:n,onEvent:r},o.id)}),y?N.jsx("div",{className:"translation-pane",children:N.jsx(y2,{active:n,taskSlug:p,role:s,sessionId:o.id},o.id)}):null]})}function O2(n,r,s){var y;if(!n||s.mode!=="auto")return null;const o=new Map(n.map(f=>[f.id,f])),p=r.filter(f=>{var a;return f.dispatchingAt?((a=o.get(f.id))==null?void 0:a.dispatchingAt)!==f.dispatchingAt:!1});return p.length===0?null:((y=p.sort(B2)[p.length-1])==null?void 0:y.toRole)??null}function B2(n,r){const s=n.dispatchingAt??n.deliveredAt??n.acceptedAt??"",o=r.dispatchingAt??r.deliveredAt??r.acceptedAt??"";return s!==o?s.localeCompare(o):n.createdAt.localeCompare(r.createdAt)}function N2({task:n,activeRole:r,codexReviewerEnabled:s,translationEnabled:o,refreshNonce:p=0,onTaskChanged:y,onActiveRoleChange:f,onTranslationEnabledChange:a,onMessagesChanged:u,onOrchestrationChanged:h,onRoundStateChanged:d,onEventsChanged:c,onLaunchStateChanged:S}){const[w,A]=ue.useState(null),[x,b]=ue.useState({"project-manager":"default",architect:"default",coder:"default",reviewer:"default","codex-reviewer":"default"}),[_,g]=ue.useState({"project-manager":"default",architect:"default",coder:"default",reviewer:"default","codex-reviewer":"gpt-5.5"}),[v,k]=ue.useState({"project-manager":"default",architect:"default",coder:"default",reviewer:"default","codex-reviewer":"xhigh"}),[M,D]=ue.useState(!1),[T,E]=ue.useState(""),[R,B]=ue.useState([]),[z,q]=ue.useState(null),F=ue.useRef(null),Y=!!(w!=null&&w.sessions.some($=>$.role==="codex-reviewer")),K=s||Y,G=K?[...er,sg]:er,X=ue.useCallback(($,H)=>{var fe;const te=((fe=F.current)==null?void 0:fe.taskSlug)===n.taskSlug?F.current.messages:null,Z=O2(te,$,H);F.current={taskSlug:n.taskSlug,messages:$},q(H),u==null||u($),h==null||h(H),Z&&(f(Z),V(`auto switched to ${Z} before VCM dispatch`))},[f,u,h,n.taskSlug]),J=ue.useCallback(($,H,te,Z)=>{A($),X(H,te),d==null||d(Z)},[X,d]),I=ue.useCallback(async()=>{const[$,H,te,Z]=await Promise.all([xe.getTaskStatus(n.taskSlug),xe.listMessages(n.taskSlug),xe.getOrchestrationState(n.taskSlug),xe.getSessionRoundState(n.taskSlug)]);J($,H,te,Z)},[J,n.taskSlug]);ue.useEffect(()=>{I().catch($=>E($.message))},[I,p]),ue.useEffect(()=>{B([]),c==null||c([])},[c,n.taskSlug]),ue.useEffect(()=>{w&&!K&&r==="codex-reviewer"&&f("project-manager")},[r,K,f,w]),ue.useEffect(()=>{b($=>{let H=!1;const te={...$};for(const Z of(w==null?void 0:w.sessions)??[])te[Z.role]!==Z.permissionMode&&(te[Z.role]=Z.permissionMode,H=!0);return H?te:$})},[w==null?void 0:w.sessions]),ue.useEffect(()=>{g($=>{let H=!1;const te={...$};for(const Z of(w==null?void 0:w.sessions)??[]){const fe=Z.model??"default";te[Z.role]!==fe&&(te[Z.role]=fe,H=!0)}return H?te:$})},[w==null?void 0:w.sessions]),ue.useEffect(()=>{k($=>{let H=!1;const te={...$};for(const Z of(w==null?void 0:w.sessions)??[]){const fe=Z.effort??"default";te[Z.role]!==fe&&(te[Z.role]=fe,H=!0)}return H?te:$})},[w==null?void 0:w.sessions]),ue.useEffect(()=>{const $=(w==null?void 0:w.sessions)??[],H=$.filter(fe=>fe.role!=="codex-reviewer"),te=new Set(H.map(fe=>fe.role)),Z={};for(const fe of er)Z[fe.name]={permissionMode:x[fe.name],model:_[fe.name],effort:v[fe.name]};S==null||S({taskSlug:n.taskSlug,roles:Z,autoOrchestration:((z==null?void 0:z.mode)??"auto")==="auto",translationEnabled:o,statusLoaded:!!w,sessionCount:$.length,hasAnySession:$.length>0,allRolesHaveSession:er.every(fe=>te.has(fe.name))})},[_,v,S,z==null?void 0:z.mode,x,w,n.taskSlug,o]),ue.useEffect(()=>{const $=window.setInterval(()=>{Promise.all([xe.getTaskStatus(n.taskSlug),xe.listMessages(n.taskSlug),xe.getOrchestrationState(n.taskSlug),xe.getSessionRoundState(n.taskSlug)]).then(([H,te,Z,fe])=>{J(H,te,Z,fe)}).catch(H=>E(H.message))},3e3);return()=>window.clearInterval($)},[J,n.taskSlug]),ue.useEffect(()=>{let $=!1,H=!1;const te=window.setInterval(()=>{H||(H=!0,Promise.all([xe.listMessages(n.taskSlug),xe.getOrchestrationState(n.taskSlug)]).then(([Z,fe])=>{$||X(Z,fe)}).catch(Z=>{$||E(Z.message)}).finally(()=>{H=!1}))},200);return()=>{$=!0,window.clearInterval(te)}},[X,n.taskSlug]);async function O($){D(!0),E("");try{await $(),await I(),await y()}catch(H){E(H instanceof Error?H.message:"Action failed.")}finally{D(!1)}}async function j(){const $=n.worktreePath?[`Close task "${n.taskSlug}"?`,"","This is destructive:","- stops VCM-managed running role sessions for this task",`- deletes the task worktree: ${n.worktreePath}`,`- deletes the Git branch: ${n.branch}`,"- deletes VCM task/session/message/orchestration state","","VCM will not check running sessions or uncommitted changes before closing."].join(`
91
91
  `):[`Close task "${n.taskSlug}"?`,"","This task was created without a separate worktree/branch.","VCM will stop VCM-managed running role sessions for this task.","VCM will delete task/session/message/orchestration state only.","","VCM will not check running sessions or uncommitted changes before closing."].join(`
92
- `);if(window.confirm($)){D(!0),E("");try{await xe.cleanupTask(n.taskSlug,{force:!0,deleteBranch:!!n.worktreePath,forceDeleteBranch:!0}),V(`closed ${n.taskSlug}`),await y()}catch(te){E(te instanceof Error?te.message:"Close task failed.")}finally{D(!1)}}}function V($){B(H=>{const te=[...H,`${new Date().toLocaleTimeString()} ${$}`];return c==null||c(te),te})}function U($,H){b(te=>({...te,[$]:H}))}function ne($,H){g(te=>({...te,[$]:H}))}function _e($,H){k(te=>({...te,[$]:H}))}async function me($){D(!0),E("");try{const H=await xe.updateOrchestrationState(n.taskSlug,{mode:$});q(H),h==null||h(H),V(`auto orchestration ${$==="auto"?"enabled":"disabled"}`)}catch(H){E(H instanceof Error?H.message:"Failed to update orchestration mode.")}finally{D(!1)}}return N.jsxs("div",{className:"task-workspace",children:[N.jsxs("header",{className:"workspace-header",children:[N.jsx("div",{className:"workspace-title-line",children:N.jsx("h1",{children:n.title||n.taskSlug})}),N.jsx(H1,{activeRole:r,roles:G,sessions:(w==null?void 0:w.sessions)??[],onSelect:f}),N.jsxs("div",{className:"workspace-header-actions",children:[N.jsx("button",{"aria-pressed":o,className:`translation-toggle${o?" is-active":""}`,type:"button",onClick:()=>a(!o),children:o?"✅ Translate":"× Translate"}),N.jsx("button",{className:"danger-button",type:"button",disabled:M,onClick:()=>void j(),children:"Close Task"})]})]}),T?N.jsx("div",{className:"error-banner",children:T}):null,N.jsx("div",{className:"workspace-grid",children:N.jsx("div",{className:"workspace-main",children:N.jsx("div",{className:"role-console-stack",children:G.map($=>{const H=$.name,te=H===r,Z=ug((w==null?void 0:w.sessions)??[],H);return N.jsx("div",{className:te?"role-console-panel is-active":"role-console-panel","aria-hidden":!te,children:N.jsx(D2,{role:H,session:Z,permissionMode:x[H],model:_[H],effort:v[H],active:te,busy:M,orchestrationMode:(z==null?void 0:z.mode)??"auto",translationEnabled:o,onPermissionModeChange:fe=>U(H,fe),onModelChange:fe=>ne(H,fe),onEffortChange:fe=>_e(H,fe),onOrchestrationModeChange:fe=>void me(fe),onStart:()=>void O(async()=>{await xe.startRoleSession(n.taskSlug,H,{cols:100,rows:28,permissionMode:x[H],model:_[H],effort:v[H]}),V(`started ${H} with ${x[H]} / ${_[H]} / ${v[H]}`)}),onResume:()=>void O(async()=>{await xe.resumeRoleSession(n.taskSlug,H,{cols:100,rows:28,permissionMode:x[H],model:_[H],effort:v[H]}),V(`resumed ${H} with ${x[H]} / ${_[H]} / ${v[H]}`)}),onStop:()=>void O(async()=>{await xe.stopRoleSession(n.taskSlug,H),V(`stopped ${H}`)}),onRestart:()=>void O(async()=>{await xe.restartRoleSession(n.taskSlug,H,{cols:100,rows:28,permissionMode:x[H],model:_[H],effort:v[H]}),V(`restarted ${H} with ${x[H]} / ${_[H]} / ${v[H]}`)}),onTerminalEvent:fe=>V(`${$.label}: ${fe}`)})},H)})})})})]})}const B2=120*1e3,eg=1400,N2=3;function j2(){const[n,r]=ue.useState(null),[s,o]=ue.useState([]),[p,y]=ue.useState(null),[f,a]=ue.useState(null),[u,h]=ue.useState(null),[d,c]=ue.useState(null),[S,w]=ue.useState(null),[A,x]=ue.useState(null),[b,_]=ue.useState(!1),[g,v]=ue.useState([]),[k,M]=ue.useState(null),[D,T]=ue.useState(null),[E,R]=ue.useState(null),[B,z]=ue.useState(null),[q,F]=ue.useState(null),[Y,K]=ue.useState(null),[G,X]=ue.useState("project-manager"),[J,I]=ue.useState("system"),[O,j]=ue.useState(!0),[V,U]=ue.useState("off"),[ne,_e]=ue.useState(()=>Z0()),[me,$]=ue.useState(null),[H,te]=ue.useState({}),[Z,fe]=ue.useState(0),[Se,Me]=ue.useState(null),[Ie,Ge]=ue.useState(!1),[Ue,ge]=ue.useState(!1),[$e,Oe]=ue.useState(""),dt=ue.useRef({}),Le=ue.useRef(null),wt=ue.useRef(""),ae=ue.useMemo(()=>e1(g,k),[g,k]),ct=ae?H[ae.taskSlug]??!1:!1,et=(me==null?void 0:me.taskSlug)===(ae==null?void 0:ae.taskSlug)?me:null,ce=!!(et!=null&&et.statusLoaded&&et.allRolesHaveSession),ye=!!(ae&&(et!=null&&et.statusLoaded)&&!et.hasAnySession),Ce=ue.useCallback(le=>{I(le.themeMode),j(le.flowPauseAlerts),U(le.permissionRequestMode),_e(le.launchTemplate)},[]),Ae=ue.useCallback(()=>{Le.current!==null&&(window.clearInterval(Le.current),Le.current=null)},[]),Ne=ue.useCallback((le={})=>{Ae(),le.resetAudio&&F2(),xa(),Le.current=window.setInterval(()=>{xa()},eg)},[Ae]),_t=ue.useCallback(()=>{Ae(),Me(null);let le=1;xa(),Le.current=window.setInterval(()=>{le+=1,xa(),le>=N2&&Le.current!==null&&(window.clearInterval(Le.current),Le.current=null)},eg)},[Ae]),Pe=ue.useCallback((le,be=`manual-${Date.now()}`,St={})=>{Me({id:be,text:le}),Ne(St)},[Ne]),Dt=ue.useCallback(()=>{Ae(),Me(null)},[Ae]),pt=ue.useCallback(()=>{Ae(),Me(null),j(!1)},[Ae]),It=ue.useCallback(le=>{ae!=null&&ae.taskSlug&&T({taskSlug:ae.taskSlug,messages:le})},[ae==null?void 0:ae.taskSlug]),tt=ue.useCallback(le=>{ae!=null&&ae.taskSlug&&R({taskSlug:ae.taskSlug,orchestration:le})},[ae==null?void 0:ae.taskSlug]),Tn=ue.useCallback(le=>{ae!=null&&ae.taskSlug&&z({taskSlug:ae.taskSlug,events:le})},[ae==null?void 0:ae.taskSlug]),tn=ue.useCallback(le=>{if(!(ae!=null&&ae.taskSlug)||le.taskSlug!==ae.taskSlug||(F({taskSlug:le.taskSlug,roundState:le}),le.status!=="stopped"||!le.roundId))return;const be=U2(le);if(dt.current[le.taskSlug]===be||!O)return;const Ot=le.activeRole??"role";I2(le)>=B2?Pe(`No new turn started after ${Ot} stopped.`,be):_t(),dt.current[le.taskSlug]=be},[ae==null?void 0:ae.taskSlug,O,_t,Pe]),ja=ue.useCallback(le=>{$(be=>(be==null?void 0:be.taskSlug)===le.taskSlug&&be.statusLoaded===le.statusLoaded&&be.sessionCount===le.sessionCount&&be.hasAnySession===le.hasAnySession&&be.allRolesHaveSession===le.allRolesHaveSession&&be.autoOrchestration===le.autoOrchestration&&be.translationEnabled===le.translationEnabled&&JSON.stringify(be.roles)===JSON.stringify(le.roles)?be:le)},[]);async function Dn(){const le=await xe.listTasks();return v(le),M(be=>{var St;return be&&le.some(Ot=>Ot.taskSlug===be)?be:((St=le[0])==null?void 0:St.taskSlug)??null}),le}async function jn(){const le=await xe.getHarnessStatus();return y(le),le}async function zn(){const le=await xe.getHarnessBootstrapStatus();return a(le),le}async function wn(){const le=await xe.getGatewayStatus();return c(le),le}async function ir(){const le=await xe.getRecentRepositoryPaths();return o(le),le}async function Hn(le){const[be,St]=await Promise.all([xe.listMessages(le),xe.getOrchestrationState(le)]);T({taskSlug:le,messages:be}),R({taskSlug:le,orchestration:St})}async function Zr(le){const be=await xe.getCodexReviewState(le);return K({taskSlug:le,state:be}),be}ue.useEffect(()=>{Promise.all([xe.getCurrentProject(),xe.getRecentRepositoryPaths(),xe.getAppPreferences(),xe.getGatewayStatus()]).then(async([le,be,St,Ot])=>{r(le),o(be),c(Ot),Ce(St),le&&await Promise.all([Dn(),jn(),zn()])}).catch(le=>Oe(le.message))},[Ce]),ue.useEffect(()=>{const le=window.matchMedia("(prefers-color-scheme: dark)"),be=()=>Ge(le.matches);return be(),le.addEventListener("change",be),()=>le.removeEventListener("change",be)},[]),ue.useEffect(()=>()=>Ae(),[Ae]),ue.useEffect(()=>{const le=J==="system"?Ie?"dark":"light":J;document.documentElement.dataset.theme=le,document.documentElement.dataset.themeMode=J},[Ie,J]),ue.useEffect(()=>{!(d!=null&&d.enabled)||!O||(pt(),xe.updateAppPreferences({flowPauseAlerts:!1}).then(le=>Ce(le)).catch(le=>Oe(le.message)))},[Ce,pt,O,d==null?void 0:d.enabled]),ue.useEffect(()=>{if(!(d!=null&&d.enabled)||!n||!ae)return;const le=`${n.repoRoot}:${ae.taskSlug}`;if(d.currentProjectId===n.repoRoot&&d.currentTaskSlug===ae.taskSlug){wt.current=le;return}wt.current!==le&&(wt.current=le,xe.updateGatewaySettings({currentProjectId:n.repoRoot,currentTaskSlug:ae.taskSlug}).then(be=>c(be)).catch(be=>{wt.current===le&&(wt.current=""),Oe(be.message)}))},[ae==null?void 0:ae.taskSlug,d==null?void 0:d.currentProjectId,d==null?void 0:d.currentTaskSlug,d==null?void 0:d.enabled,n==null?void 0:n.repoRoot]),ue.useEffect(()=>{if(!(ae!=null&&ae.taskSlug)){K(null);return}Zr(ae.taskSlug).catch(le=>Oe(le.message))},[ae==null?void 0:ae.taskSlug]),ue.useEffect(()=>{if(!(ae!=null&&ae.taskSlug))return;const le=ae.taskSlug,be=window.setInterval(()=>{Zr(le).catch(St=>Oe(St.message))},3e3);return()=>window.clearInterval(be)},[ae==null?void 0:ae.taskSlug]);async function mt(le){ge(!0),Oe("");try{await le()}catch(be){Oe(be instanceof Error?be.message:"Action failed.")}finally{ge(!1)}}const Jr=D&&D.taskSlug===(ae==null?void 0:ae.taskSlug)?D.messages:[],Ni=E&&E.taskSlug===(ae==null?void 0:ae.taskSlug)?E.orchestration:null,za=B&&B.taskSlug===(ae==null?void 0:ae.taskSlug)?B.events:[],ll=q&&q.taskSlug===(ae==null?void 0:ae.taskSlug)?q.roundState:null,rr=Y&&Y.taskSlug===(ae==null?void 0:ae.taskSlug)?Y.state:null,es=!!(rr&&Object.values(rr.gates).some(le=>le.required));return N.jsxs(J0,{sidebar:N.jsx(k1,{project:n,recentRepositoryPaths:s,tasks:g,activeTaskSlug:(ae==null?void 0:ae.taskSlug)??null,messages:Jr,orchestration:Ni,events:za,roundState:ll,codexReview:rr,harnessStatus:p,harnessBootstrapStatus:f,harnessApplyResult:u,gatewayStatus:d,gatewayQrLogin:S,gatewayQrCheck:A,busy:Ue,onConnect:le=>mt(async()=>{const be=await xe.connectProject({repoPath:le});r(be),h(null),await Promise.all([Dn(),jn(),zn(),ir()])}),onRefreshConnectedRepository:()=>mt(async()=>{const le=await xe.getCurrentProject();r(le)}),onPullConnectedRepository:()=>mt(async()=>{const le=await xe.pullCurrentProject();r(le)}),onRefreshHarness:()=>mt(async()=>{h(null),await Promise.all([jn(),zn()])}),onApplyHarness:()=>mt(async()=>{const le=await xe.applyHarness();h(le),await Promise.all([jn(),zn()])}),onStartHarnessBootstrap:()=>mt(async()=>{const le=await xe.startHarnessBootstrap();a(le.status)}),onRefreshGateway:()=>mt(async()=>{await wn()}),onGatewayEnabledChange:le=>{mt(async()=>{const[be,St]=await Promise.all([xe.updateGatewaySettings({enabled:le,...le&&n?{currentProjectId:n.repoRoot,currentTaskSlug:(ae==null?void 0:ae.taskSlug)??null}:{}}),le?xe.updateAppPreferences({flowPauseAlerts:!1}):Promise.resolve(null)]);St&&Ce(St),le&&pt(),c(be)})},onGatewayTranslationChange:le=>{mt(async()=>{const be=await xe.updateGatewaySettings({translationEnabled:le});c(be)})},onStartGatewayQrLogin:()=>{mt(async()=>{const le=await xe.startGatewayQrLogin();w(le),x(null),_(!0),await wn()})},onResetGatewayBinding:()=>{mt(async()=>{const le=await xe.resetGatewayBinding();c(le),w(null),x(null),_(!1)})},onCodexGateEnabledChange:(le,be)=>{mt(async()=>{if(!ae)throw new Error("Create or select a task before changing Codex Review Gates.");const St=await xe.updateCodexReviewSettings(ae.taskSlug,{gates:{[le]:be}});K({taskSlug:ae.taskSlug,state:St})})},onCreateTask:le=>mt(async()=>{const be=await xe.createTask(le);await Dn(),M(be.taskSlug),await Zr(be.taskSlug)}),onSelectTask:M,themeMode:J,onThemeModeChange:le=>{I(le),mt(async()=>{const be=await xe.updateAppPreferences({themeMode:le});Ce(be)})},flowPauseAlerts:O,onFlowPauseAlertsChange:le=>{if(d!=null&&d.enabled){pt();return}j(le),le&&P2(),mt(async()=>{const be=await xe.updateAppPreferences({flowPauseAlerts:le});Ce(be)})},permissionRequestMode:V,onPermissionRequestModeChange:le=>{U(le),mt(async()=>{const be=await xe.updateAppPreferences({permissionRequestMode:le});Ce(be)})},launchTemplate:ne,canSaveLaunchTemplate:ce,canOneClickStart:ye,onSaveLaunchTemplate:()=>{mt(async()=>{if(!(et!=null&&et.allRolesHaveSession))throw new Error("Start all four role sessions before saving a launch template.");const le=await xe.updateAppPreferences({launchTemplate:{version:1,roles:et.roles,autoOrchestration:et.autoOrchestration,translationEnabled:et.translationEnabled}});Ce(le)})},onOneClickStart:()=>{mt(async()=>{if(!ae)throw new Error("Create or select a task before one-click start.");if((await xe.getTaskStatus(ae.taskSlug)).sessions.length>0)throw new Error("One-click start is only available before any role session has started.");te(Ot=>({...Ot,[ae.taskSlug]:ne.translationEnabled}));const be=await xe.updateOrchestrationState(ae.taskSlug,{mode:ne.autoOrchestration?"auto":"manual"});R({taskSlug:ae.taskSlug,orchestration:be});const St=n1(ne,{codexReviewerEnabled:es});for(const Ot of St)await xe.startRoleSession(ae.taskSlug,Ot.role,{cols:100,rows:28,permissionMode:Ot.permissionMode,model:Ot.model,effort:Ot.effort});X("project-manager"),await Hn(ae.taskSlug),await Dn(),fe(Ot=>Ot+1)})},onTryFlowPauseAlert:()=>{Pe("This is a test flow pause alert.",void 0,{resetAudio:!0})},onMarkAllMessagesDone:le=>{mt(async()=>{const be=await xe.markAllMessagesDone(le);T({taskSlug:le,messages:be.messages}),await Hn(le)})},onDeleteMessageHistory:le=>{mt(async()=>{const be=await xe.deleteMessageHistory(le);T({taskSlug:le,messages:be.messages}),await Hn(le)})}}),children:[$e?N.jsx("div",{className:"error-banner",children:$e}):null,Se?N.jsx("div",{className:"flow-pause-alert-backdrop",children:N.jsxs("section",{"aria-describedby":"flow-pause-alert-body flow-pause-alert-hint","aria-labelledby":"flow-pause-alert-title","aria-modal":"true",className:"flow-pause-alert",role:"alertdialog",children:[N.jsx("p",{className:"flow-pause-alert-kicker",children:"VCM needs attention"}),N.jsx("h2",{id:"flow-pause-alert-title",children:"Flow needs attention"}),N.jsx("p",{id:"flow-pause-alert-body",children:Se.text}),N.jsx("p",{id:"flow-pause-alert-hint",className:"flow-pause-alert-hint",children:"The task may be complete, waiting for your decision, or blocked by a workflow issue."}),N.jsx("button",{type:"button",autoFocus:!0,onClick:Dt,children:"Confirm"})]})}):null,b&&S?N.jsx(z2,{busy:Ue,qrCheck:A,qrLogin:S,onCheck:()=>{mt(async()=>{const le=await xe.checkGatewayQrLogin();x(le),(le.status==="confirmed"||le.status==="binded_redirect")&&_(!1),await wn()})},onClose:()=>_(!1)}):null,n&&ae?N.jsx(O2,{task:ae,activeRole:G,codexReviewerEnabled:es,translationEnabled:ct,refreshNonce:Z,onTaskChanged:async()=>{await Dn()},onActiveRoleChange:X,onTranslationEnabledChange:le=>{te(be=>({...be,[ae.taskSlug]:le}))},onMessagesChanged:It,onOrchestrationChanged:tt,onRoundStateChanged:tn,onEventsChanged:Tn,onLaunchStateChanged:ja}):N.jsxs("section",{className:"empty-workspace",children:[N.jsx("h1",{children:n?"Create a task to open the workspace":"Connect a repository to begin"}),N.jsx("p",{children:n?"Tasks create local role commands, logs, and handoff artifacts for the selected repository.":"VibeCodingMaster will create a local task workspace, role sessions, logs, and handoff artifacts."})]})]})}function z2({busy:n,onCheck:r,onClose:s,qrCheck:o,qrLogin:p}){const[y,f]=ue.useState(""),[a,u]=ue.useState("");return ue.useEffect(()=>{let h=!1;if(u(""),f(""),p.qrcodeUrl.startsWith("data:image/")){f(p.qrcodeUrl);return}try{const d=Wr(0,"M");d.addData(p.qrcodeUrl),d.make(),h||f(d.createDataURL(8,2))}catch(d){h||u(d instanceof Error?d.message:"Failed to render QR code.")}return()=>{h=!0}},[p.qrcodeUrl]),N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{"aria-labelledby":"gateway-qr-title","aria-modal":"true",className:"gateway-qr-modal",role:"dialog",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{id:"gateway-qr-title",children:"Weixin Gateway Login"}),N.jsx("p",{className:"muted",children:"Scan with Weixin, confirm on the phone, then click Confirm."})]}),N.jsx("button",{type:"button",onClick:s,children:"Close"})]}),N.jsxs("div",{className:"gateway-qr-modal-body",children:[N.jsx("div",{className:"gateway-qr-code-frame",children:y?N.jsx("img",{alt:"Weixin Gateway QR login",src:y}):N.jsx("div",{className:"gateway-qr-placeholder",children:a||"Rendering QR code..."})}),N.jsxs("dl",{className:"gateway-qr-meta",children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Status"}),N.jsx("dd",{children:(o==null?void 0:o.status)??p.status})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Expires"}),N.jsx("dd",{children:H2(p.expiresAt)})]}),o!=null&&o.message?N.jsxs("div",{children:[N.jsx("dt",{children:"Message"}),N.jsx("dd",{children:o.message})]}):null]})]}),N.jsx("footer",{children:N.jsx("button",{type:"button",disabled:n,onClick:r,children:"Confirm"})})]})})}function H2(n){const r=new Date(n);return Number.isNaN(r.getTime())?"-":new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(r)}let Oi=null;function I2(n){const r=Date.parse(n.startedAt??""),s=Date.parse(n.stoppedAt??n.lastTurnEndedAt??"");return!Number.isFinite(r)||!Number.isFinite(s)?0:Math.max(0,s-r)}function U2(n){const r=n.roundId??n.startedAt??n.taskSlug,s=n.stoppedAt??n.lastTurnEndedAt??"stopped";return`${r}:${s}`}async function P2(){const n=__();return n?v_(n):!1}async function xa(){const n=__();if(!n||!await v_(n))return!1;try{const s=n.createGain(),o=n.currentTime+.025;return s.gain.setValueAtTime(.85,n.currentTime),s.connect(n.destination),ng(n,s,{frequency:587.33,startAt:o,duration:.18,peakGain:.045}),ng(n,s,{frequency:783.99,startAt:o+.11,duration:.28,peakGain:.055}),window.setTimeout(()=>{s.disconnect()},800),!0}catch{return!1}}function __(){const n=window.AudioContext??window.webkitAudioContext;if(!n)return null;try{return(!Oi||Oi.state==="closed")&&(Oi=new n),Oi}catch{return null}}function F2(){Lc(Oi)}function Lc(n){Oi=null,n&&n.state!=="closed"&&n.close().catch(()=>{})}async function v_(n){if(tg(n))return!0;try{await n.resume();const r=tg(n);return!r&&n===Oi&&Lc(n),r}catch{return n===Oi&&Lc(n),!1}}function tg(n){return n.state==="running"}function ng(n,r,s){const o=n.createGain(),p=n.createOscillator(),y=n.createOscillator(),f=s.startAt+s.duration;o.gain.setValueAtTime(1e-4,s.startAt),o.gain.exponentialRampToValueAtTime(s.peakGain,s.startAt+.018),o.gain.exponentialRampToValueAtTime(1e-4,f),p.type="sine",p.frequency.setValueAtTime(s.frequency,s.startAt),y.type="triangle",y.frequency.setValueAtTime(s.frequency*2.01,s.startAt),p.connect(o),y.connect(o),o.connect(r),p.start(s.startAt),y.start(s.startAt),p.stop(f+.02),y.stop(f+.02)}const y_=document.getElementById("root");if(!y_)throw new Error("Missing #root element.");F0.createRoot(y_).render(N.jsx(ue.StrictMode,{children:N.jsx(j2,{})}));
92
+ `);if(window.confirm($)){D(!0),E("");try{await xe.cleanupTask(n.taskSlug,{force:!0,deleteBranch:!!n.worktreePath,forceDeleteBranch:!0}),V(`closed ${n.taskSlug}`),await y()}catch(te){E(te instanceof Error?te.message:"Close task failed.")}finally{D(!1)}}}function V($){B(H=>{const te=[...H,`${new Date().toLocaleTimeString()} ${$}`];return c==null||c(te),te})}function U($,H){b(te=>({...te,[$]:H}))}function ne($,H){g(te=>({...te,[$]:H}))}function _e($,H){k(te=>({...te,[$]:H}))}async function me($){D(!0),E("");try{const H=await xe.updateOrchestrationState(n.taskSlug,{mode:$});q(H),h==null||h(H),V(`auto orchestration ${$==="auto"?"enabled":"disabled"}`)}catch(H){E(H instanceof Error?H.message:"Failed to update orchestration mode.")}finally{D(!1)}}return N.jsxs("div",{className:"task-workspace",children:[N.jsxs("header",{className:"workspace-header",children:[N.jsx("div",{className:"workspace-title-line",children:N.jsx("h1",{children:n.title||n.taskSlug})}),N.jsx(I1,{activeRole:r,roles:G,sessions:(w==null?void 0:w.sessions)??[],onSelect:f}),N.jsxs("div",{className:"workspace-header-actions",children:[N.jsx("button",{"aria-pressed":o,className:`translation-toggle${o?" is-active":""}`,type:"button",onClick:()=>a(!o),children:o?"✅ Translate":"× Translate"}),N.jsx("button",{className:"danger-button",type:"button",disabled:M,onClick:()=>void j(),children:"Close Task"})]})]}),T?N.jsx("div",{className:"error-banner",children:T}):null,N.jsx("div",{className:"workspace-grid",children:N.jsx("div",{className:"workspace-main",children:N.jsx("div",{className:"role-console-stack",children:G.map($=>{const H=$.name,te=H===r,Z=ug((w==null?void 0:w.sessions)??[],H);return N.jsx("div",{className:te?"role-console-panel is-active":"role-console-panel","aria-hidden":!te,children:N.jsx(M2,{role:H,session:Z,permissionMode:x[H],model:_[H],effort:v[H],active:te,busy:M,orchestrationMode:(z==null?void 0:z.mode)??"auto",translationEnabled:o,onPermissionModeChange:fe=>U(H,fe),onModelChange:fe=>ne(H,fe),onEffortChange:fe=>_e(H,fe),onOrchestrationModeChange:fe=>void me(fe),onStart:()=>void O(async()=>{await xe.startRoleSession(n.taskSlug,H,{cols:100,rows:28,permissionMode:x[H],model:_[H],effort:v[H]}),V(`started ${H} with ${x[H]} / ${_[H]} / ${v[H]}`)}),onResume:()=>void O(async()=>{await xe.resumeRoleSession(n.taskSlug,H,{cols:100,rows:28,permissionMode:x[H],model:_[H],effort:v[H]}),V(`resumed ${H} with ${x[H]} / ${_[H]} / ${v[H]}`)}),onStop:()=>void O(async()=>{await xe.stopRoleSession(n.taskSlug,H),V(`stopped ${H}`)}),onRestart:()=>void O(async()=>{await xe.restartRoleSession(n.taskSlug,H,{cols:100,rows:28,permissionMode:x[H],model:_[H],effort:v[H]}),V(`restarted ${H} with ${x[H]} / ${_[H]} / ${v[H]}`)}),onTerminalEvent:fe=>V(`${$.label}: ${fe}`)})},H)})})})})]})}const j2=120*1e3,eg=1400,z2=3;function H2(){const[n,r]=ue.useState(null),[s,o]=ue.useState([]),[p,y]=ue.useState(null),[f,a]=ue.useState(null),[u,h]=ue.useState(null),[d,c]=ue.useState(null),[S,w]=ue.useState(null),[A,x]=ue.useState(null),[b,_]=ue.useState(!1),[g,v]=ue.useState([]),[k,M]=ue.useState(null),[D,T]=ue.useState(null),[E,R]=ue.useState(null),[B,z]=ue.useState(null),[q,F]=ue.useState(null),[Y,K]=ue.useState(null),[G,X]=ue.useState("project-manager"),[J,I]=ue.useState("system"),[O,j]=ue.useState(!0),[V,U]=ue.useState("off"),[ne,_e]=ue.useState(()=>J0()),[me,$]=ue.useState(null),[H,te]=ue.useState({}),[Z,fe]=ue.useState(0),[Se,Me]=ue.useState(null),[Ie,Ge]=ue.useState(!1),[Ue,ge]=ue.useState(!1),[$e,Oe]=ue.useState(""),dt=ue.useRef({}),Le=ue.useRef(null),wt=ue.useRef(""),ae=ue.useMemo(()=>t1(g,k),[g,k]),ct=ae?H[ae.taskSlug]??!1:!1,et=(me==null?void 0:me.taskSlug)===(ae==null?void 0:ae.taskSlug)?me:null,ce=!!(et!=null&&et.statusLoaded&&et.allRolesHaveSession),ye=!!(ae&&(et!=null&&et.statusLoaded)&&!et.hasAnySession),Ce=ue.useCallback(le=>{I(le.themeMode),j(le.flowPauseAlerts),U(le.permissionRequestMode),_e(le.launchTemplate)},[]),Ae=ue.useCallback(()=>{Le.current!==null&&(window.clearInterval(Le.current),Le.current=null)},[]),Ne=ue.useCallback((le={})=>{Ae(),le.resetAudio&&V2(),xa(),Le.current=window.setInterval(()=>{xa()},eg)},[Ae]),_t=ue.useCallback(()=>{Ae(),Me(null);let le=1;xa(),Le.current=window.setInterval(()=>{le+=1,xa(),le>=z2&&Le.current!==null&&(window.clearInterval(Le.current),Le.current=null)},eg)},[Ae]),Pe=ue.useCallback((le,be=`manual-${Date.now()}`,St={})=>{Me({id:be,text:le}),Ne(St)},[Ne]),Dt=ue.useCallback(()=>{Ae(),Me(null)},[Ae]),pt=ue.useCallback(()=>{Ae(),Me(null),j(!1)},[Ae]),It=ue.useCallback(le=>{ae!=null&&ae.taskSlug&&T({taskSlug:ae.taskSlug,messages:le})},[ae==null?void 0:ae.taskSlug]),tt=ue.useCallback(le=>{ae!=null&&ae.taskSlug&&R({taskSlug:ae.taskSlug,orchestration:le})},[ae==null?void 0:ae.taskSlug]),Tn=ue.useCallback(le=>{ae!=null&&ae.taskSlug&&z({taskSlug:ae.taskSlug,events:le})},[ae==null?void 0:ae.taskSlug]),tn=ue.useCallback(le=>{if(!(ae!=null&&ae.taskSlug)||le.taskSlug!==ae.taskSlug||(F({taskSlug:le.taskSlug,roundState:le}),le.status!=="stopped"||!le.roundId))return;const be=F2(le);if(dt.current[le.taskSlug]===be||!O)return;const Ot=le.activeRole??"role";P2(le)>=j2?Pe(`No new turn started after ${Ot} stopped.`,be):_t(),dt.current[le.taskSlug]=be},[ae==null?void 0:ae.taskSlug,O,_t,Pe]),ja=ue.useCallback(le=>{$(be=>(be==null?void 0:be.taskSlug)===le.taskSlug&&be.statusLoaded===le.statusLoaded&&be.sessionCount===le.sessionCount&&be.hasAnySession===le.hasAnySession&&be.allRolesHaveSession===le.allRolesHaveSession&&be.autoOrchestration===le.autoOrchestration&&be.translationEnabled===le.translationEnabled&&JSON.stringify(be.roles)===JSON.stringify(le.roles)?be:le)},[]);async function Dn(){const le=await xe.listTasks();return v(le),M(be=>{var St;return be&&le.some(Ot=>Ot.taskSlug===be)?be:((St=le[0])==null?void 0:St.taskSlug)??null}),le}async function jn(){const le=await xe.getHarnessStatus();return y(le),le}async function zn(){const le=await xe.getHarnessBootstrapStatus();return a(le),le}async function wn(){const le=await xe.getGatewayStatus();return c(le),le}async function ir(){const le=await xe.getRecentRepositoryPaths();return o(le),le}async function Hn(le){const[be,St]=await Promise.all([xe.listMessages(le),xe.getOrchestrationState(le)]);T({taskSlug:le,messages:be}),R({taskSlug:le,orchestration:St})}async function Zr(le){const be=await xe.getCodexReviewState(le);return K({taskSlug:le,state:be}),be}ue.useEffect(()=>{Promise.all([xe.getCurrentProject(),xe.getRecentRepositoryPaths(),xe.getAppPreferences(),xe.getGatewayStatus()]).then(async([le,be,St,Ot])=>{r(le),o(be),c(Ot),Ce(St),le&&await Promise.all([Dn(),jn(),zn()])}).catch(le=>Oe(le.message))},[Ce]),ue.useEffect(()=>{const le=window.matchMedia("(prefers-color-scheme: dark)"),be=()=>Ge(le.matches);return be(),le.addEventListener("change",be),()=>le.removeEventListener("change",be)},[]),ue.useEffect(()=>()=>Ae(),[Ae]),ue.useEffect(()=>{const le=J==="system"?Ie?"dark":"light":J;document.documentElement.dataset.theme=le,document.documentElement.dataset.themeMode=J},[Ie,J]),ue.useEffect(()=>{!(d!=null&&d.enabled)||!O||(pt(),xe.updateAppPreferences({flowPauseAlerts:!1}).then(le=>Ce(le)).catch(le=>Oe(le.message)))},[Ce,pt,O,d==null?void 0:d.enabled]),ue.useEffect(()=>{if(!(d!=null&&d.enabled)||!n||!ae)return;const le=`${n.repoRoot}:${ae.taskSlug}`;if(d.currentProjectId===n.repoRoot&&d.currentTaskSlug===ae.taskSlug){wt.current=le;return}wt.current!==le&&(wt.current=le,xe.updateGatewaySettings({currentProjectId:n.repoRoot,currentTaskSlug:ae.taskSlug}).then(be=>c(be)).catch(be=>{wt.current===le&&(wt.current=""),Oe(be.message)}))},[ae==null?void 0:ae.taskSlug,d==null?void 0:d.currentProjectId,d==null?void 0:d.currentTaskSlug,d==null?void 0:d.enabled,n==null?void 0:n.repoRoot]),ue.useEffect(()=>{if(!(ae!=null&&ae.taskSlug)){K(null);return}Zr(ae.taskSlug).catch(le=>Oe(le.message))},[ae==null?void 0:ae.taskSlug]),ue.useEffect(()=>{if(!(ae!=null&&ae.taskSlug))return;const le=ae.taskSlug,be=window.setInterval(()=>{Zr(le).catch(St=>Oe(St.message))},3e3);return()=>window.clearInterval(be)},[ae==null?void 0:ae.taskSlug]);async function mt(le){ge(!0),Oe("");try{await le()}catch(be){Oe(be instanceof Error?be.message:"Action failed.")}finally{ge(!1)}}const Jr=D&&D.taskSlug===(ae==null?void 0:ae.taskSlug)?D.messages:[],Ni=E&&E.taskSlug===(ae==null?void 0:ae.taskSlug)?E.orchestration:null,za=B&&B.taskSlug===(ae==null?void 0:ae.taskSlug)?B.events:[],ll=q&&q.taskSlug===(ae==null?void 0:ae.taskSlug)?q.roundState:null,rr=Y&&Y.taskSlug===(ae==null?void 0:ae.taskSlug)?Y.state:null,es=!!(rr&&Object.values(rr.gates).some(le=>le.required));return N.jsxs(e1,{sidebar:N.jsx(A1,{project:n,recentRepositoryPaths:s,tasks:g,activeTaskSlug:(ae==null?void 0:ae.taskSlug)??null,messages:Jr,orchestration:Ni,events:za,roundState:ll,codexReview:rr,harnessStatus:p,harnessBootstrapStatus:f,harnessApplyResult:u,gatewayStatus:d,gatewayQrLogin:S,gatewayQrCheck:A,busy:Ue,onConnect:le=>mt(async()=>{const be=await xe.connectProject({repoPath:le});r(be),h(null),await Promise.all([Dn(),jn(),zn(),ir()])}),onRefreshConnectedRepository:()=>mt(async()=>{const le=await xe.getCurrentProject();r(le)}),onPullConnectedRepository:()=>mt(async()=>{const le=await xe.pullCurrentProject();r(le)}),onRefreshHarness:()=>mt(async()=>{h(null),await Promise.all([jn(),zn()])}),onApplyHarness:()=>mt(async()=>{const le=await xe.applyHarness();h(le),await Promise.all([jn(),zn()])}),onStartHarnessBootstrap:()=>mt(async()=>{const le=await xe.startHarnessBootstrap();a(le.status)}),onRefreshGateway:()=>mt(async()=>{await wn()}),onGatewayEnabledChange:le=>{mt(async()=>{const[be,St]=await Promise.all([xe.updateGatewaySettings({enabled:le,...le&&n?{currentProjectId:n.repoRoot,currentTaskSlug:(ae==null?void 0:ae.taskSlug)??null}:{}}),le?xe.updateAppPreferences({flowPauseAlerts:!1}):Promise.resolve(null)]);St&&Ce(St),le&&pt(),c(be)})},onGatewayTranslationChange:le=>{mt(async()=>{const be=await xe.updateGatewaySettings({translationEnabled:le});c(be)})},onStartGatewayQrLogin:()=>{mt(async()=>{const le=await xe.startGatewayQrLogin();w(le),x(null),_(!0),await wn()})},onResetGatewayBinding:()=>{mt(async()=>{const le=await xe.resetGatewayBinding();c(le),w(null),x(null),_(!1)})},onCodexGateEnabledChange:(le,be)=>{mt(async()=>{if(!ae)throw new Error("Create or select a task before changing Codex Review Gates.");const St=await xe.updateCodexReviewSettings(ae.taskSlug,{gates:{[le]:be}});K({taskSlug:ae.taskSlug,state:St})})},onCreateTask:le=>mt(async()=>{const be=await xe.createTask(le);await Dn(),M(be.taskSlug),await Zr(be.taskSlug)}),onSelectTask:M,themeMode:J,onThemeModeChange:le=>{I(le),mt(async()=>{const be=await xe.updateAppPreferences({themeMode:le});Ce(be)})},flowPauseAlerts:O,onFlowPauseAlertsChange:le=>{if(d!=null&&d.enabled){pt();return}j(le),le&&q2(),mt(async()=>{const be=await xe.updateAppPreferences({flowPauseAlerts:le});Ce(be)})},permissionRequestMode:V,onPermissionRequestModeChange:le=>{U(le),mt(async()=>{const be=await xe.updateAppPreferences({permissionRequestMode:le});Ce(be)})},launchTemplate:ne,canSaveLaunchTemplate:ce,canOneClickStart:ye,onSaveLaunchTemplate:()=>{mt(async()=>{if(!(et!=null&&et.allRolesHaveSession))throw new Error("Start all four role sessions before saving a launch template.");const le=await xe.updateAppPreferences({launchTemplate:{version:1,roles:et.roles,autoOrchestration:et.autoOrchestration,translationEnabled:et.translationEnabled}});Ce(le)})},onOneClickStart:()=>{mt(async()=>{if(!ae)throw new Error("Create or select a task before one-click start.");if((await xe.getTaskStatus(ae.taskSlug)).sessions.length>0)throw new Error("One-click start is only available before any role session has started.");te(Ot=>({...Ot,[ae.taskSlug]:ne.translationEnabled}));const be=await xe.updateOrchestrationState(ae.taskSlug,{mode:ne.autoOrchestration?"auto":"manual"});R({taskSlug:ae.taskSlug,orchestration:be});const St=i1(ne,{codexReviewerEnabled:es});for(const Ot of St)await xe.startRoleSession(ae.taskSlug,Ot.role,{cols:100,rows:28,permissionMode:Ot.permissionMode,model:Ot.model,effort:Ot.effort});X("project-manager"),await Hn(ae.taskSlug),await Dn(),fe(Ot=>Ot+1)})},onTryFlowPauseAlert:()=>{Pe("This is a test flow pause alert.",void 0,{resetAudio:!0})},onMarkAllMessagesDone:le=>{mt(async()=>{const be=await xe.markAllMessagesDone(le);T({taskSlug:le,messages:be.messages}),await Hn(le)})},onDeleteMessageHistory:le=>{mt(async()=>{const be=await xe.deleteMessageHistory(le);T({taskSlug:le,messages:be.messages}),await Hn(le)})}}),children:[$e?N.jsx("div",{className:"error-banner",children:$e}):null,Se?N.jsx("div",{className:"flow-pause-alert-backdrop",children:N.jsxs("section",{"aria-describedby":"flow-pause-alert-body flow-pause-alert-hint","aria-labelledby":"flow-pause-alert-title","aria-modal":"true",className:"flow-pause-alert",role:"alertdialog",children:[N.jsx("p",{className:"flow-pause-alert-kicker",children:"VCM needs attention"}),N.jsx("h2",{id:"flow-pause-alert-title",children:"Flow needs attention"}),N.jsx("p",{id:"flow-pause-alert-body",children:Se.text}),N.jsx("p",{id:"flow-pause-alert-hint",className:"flow-pause-alert-hint",children:"The task may be complete, waiting for your decision, or blocked by a workflow issue."}),N.jsx("button",{type:"button",autoFocus:!0,onClick:Dt,children:"Confirm"})]})}):null,b&&S?N.jsx(I2,{busy:Ue,qrCheck:A,qrLogin:S,onCheck:()=>{mt(async()=>{const le=await xe.checkGatewayQrLogin();x(le),(le.status==="confirmed"||le.status==="binded_redirect")&&_(!1),await wn()})},onClose:()=>_(!1)}):null,n&&ae?N.jsx(N2,{task:ae,activeRole:G,codexReviewerEnabled:es,translationEnabled:ct,refreshNonce:Z,onTaskChanged:async()=>{await Dn()},onActiveRoleChange:X,onTranslationEnabledChange:le=>{te(be=>({...be,[ae.taskSlug]:le}))},onMessagesChanged:It,onOrchestrationChanged:tt,onRoundStateChanged:tn,onEventsChanged:Tn,onLaunchStateChanged:ja}):N.jsxs("section",{className:"empty-workspace",children:[N.jsx("h1",{children:n?"Create a task to open the workspace":"Connect a repository to begin"}),N.jsx("p",{children:n?"Tasks create local role commands, logs, and handoff artifacts for the selected repository.":"VibeCodingMaster will create a local task workspace, role sessions, logs, and handoff artifacts."})]})]})}function I2({busy:n,onCheck:r,onClose:s,qrCheck:o,qrLogin:p}){const[y,f]=ue.useState(""),[a,u]=ue.useState("");return ue.useEffect(()=>{let h=!1;if(u(""),f(""),p.qrcodeUrl.startsWith("data:image/")){f(p.qrcodeUrl);return}try{const d=Wr(0,"M");d.addData(p.qrcodeUrl),d.make(),h||f(d.createDataURL(8,2))}catch(d){h||u(d instanceof Error?d.message:"Failed to render QR code.")}return()=>{h=!0}},[p.qrcodeUrl]),N.jsx("div",{className:"modal-backdrop",children:N.jsxs("section",{"aria-labelledby":"gateway-qr-title","aria-modal":"true",className:"gateway-qr-modal",role:"dialog",children:[N.jsxs("header",{children:[N.jsxs("div",{children:[N.jsx("h2",{id:"gateway-qr-title",children:"Weixin Gateway Login"}),N.jsx("p",{className:"muted",children:"Scan with Weixin, confirm on the phone, then click Confirm."})]}),N.jsx("button",{type:"button",onClick:s,children:"Close"})]}),N.jsxs("div",{className:"gateway-qr-modal-body",children:[N.jsx("div",{className:"gateway-qr-code-frame",children:y?N.jsx("img",{alt:"Weixin Gateway QR login",src:y}):N.jsx("div",{className:"gateway-qr-placeholder",children:a||"Rendering QR code..."})}),N.jsxs("dl",{className:"gateway-qr-meta",children:[N.jsxs("div",{children:[N.jsx("dt",{children:"Status"}),N.jsx("dd",{children:(o==null?void 0:o.status)??p.status})]}),N.jsxs("div",{children:[N.jsx("dt",{children:"Expires"}),N.jsx("dd",{children:U2(p.expiresAt)})]}),o!=null&&o.message?N.jsxs("div",{children:[N.jsx("dt",{children:"Message"}),N.jsx("dd",{children:o.message})]}):null]})]}),N.jsx("footer",{children:N.jsx("button",{type:"button",disabled:n,onClick:r,children:"Confirm"})})]})})}function U2(n){const r=new Date(n);return Number.isNaN(r.getTime())?"-":new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(r)}let Oi=null;function P2(n){const r=Date.parse(n.startedAt??""),s=Date.parse(n.stoppedAt??n.lastTurnEndedAt??"");return!Number.isFinite(r)||!Number.isFinite(s)?0:Math.max(0,s-r)}function F2(n){const r=n.roundId??n.startedAt??n.taskSlug,s=n.stoppedAt??n.lastTurnEndedAt??"stopped";return`${r}:${s}`}async function q2(){const n=v_();return n?y_(n):!1}async function xa(){const n=v_();if(!n||!await y_(n))return!1;try{const s=n.createGain(),o=n.currentTime+.025;return s.gain.setValueAtTime(.85,n.currentTime),s.connect(n.destination),ng(n,s,{frequency:587.33,startAt:o,duration:.18,peakGain:.045}),ng(n,s,{frequency:783.99,startAt:o+.11,duration:.28,peakGain:.055}),window.setTimeout(()=>{s.disconnect()},800),!0}catch{return!1}}function v_(){const n=window.AudioContext??window.webkitAudioContext;if(!n)return null;try{return(!Oi||Oi.state==="closed")&&(Oi=new n),Oi}catch{return null}}function V2(){Lc(Oi)}function Lc(n){Oi=null,n&&n.state!=="closed"&&n.close().catch(()=>{})}async function y_(n){if(tg(n))return!0;try{await n.resume();const r=tg(n);return!r&&n===Oi&&Lc(n),r}catch{return n===Oi&&Lc(n),!1}}function tg(n){return n.state==="running"}function ng(n,r,s){const o=n.createGain(),p=n.createOscillator(),y=n.createOscillator(),f=s.startAt+s.duration;o.gain.setValueAtTime(1e-4,s.startAt),o.gain.exponentialRampToValueAtTime(s.peakGain,s.startAt+.018),o.gain.exponentialRampToValueAtTime(1e-4,f),p.type="sine",p.frequency.setValueAtTime(s.frequency,s.startAt),y.type="triangle",y.frequency.setValueAtTime(s.frequency*2.01,s.startAt),p.connect(o),y.connect(o),o.connect(r),p.start(s.startAt),y.start(s.startAt),p.stop(f+.02),y.stop(f+.02)}const S_=document.getElementById("root");if(!S_)throw new Error("Missing #root element.");q0.createRoot(S_).render(N.jsx(ue.StrictMode,{children:N.jsx(H2,{})}));